Release 1.1.67

/api/v1/private/getopenorders and /api/v1/private/cancelorder change:

  • renamed order field commision to commission.
  • cancelorder and getopenorders order fields:
...
       {
            "orderId": 5258039,          // ID of the order     
            "instrument": "BTC-26MAY17", // instrument name  
            "direction": "sell",         // order direction, "buy" or "sell"
            "price": 1860,               // float, USD for futures, BTC for options
            "label": "",                 // label set by the owner, up to 32 chars
            "quantity": 10,              // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "filledQuantity": 3,         // filled quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "avgPrice": 1860,            // average fill price of the order  
            "commission": -0.000001613,  // in BTC units
            "created": 1494491899308,    // creation timestamp
            "lastUpdate": 1494491988754, // timestamp of the last order state change
                                         // (before this cancelorder of course)
            "state": "open",             // open, cancelled, etc
            "postOnly": false            // true for post-only orders only
        }
...

orderhistory order fields:

...
      {
            "orderId": 5258039,         // ID of the order
            "instrument": "BTC-26MAY17", // name of the instrument
            "direction": "sell",         // direction of the order, "buy" or "sell"
            "price": 1860,              // float, USD for futures, BTC for options
            "quantity": 10,             // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "filledQuantity": 3,        // filled quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "avgPrice": 1860,           // average fill price of the order
            "state": "cancelled",       // state of the order "open", "cancelled", "filled"
            "created": 1494491899308,   // creation timestamp
            "tstamp": 1494492913288,    // timestamp of the last order state change
            "commission": -0.000001613, // in ฿
            "modified": 1494492913289,  // timestamp of the last db write operation,
                                        // e.g. trade that doesn't change order status
            "postOnly": false           // true for post-only orders only
       }
...

results matching ""

    No results matching ""