orderhistory

Get history. (Authorization is required).
URI: https://www.deribit.com/api/v1/private/orderhistory
URI Path: /api/v1/private/orderhistory
Parameters:
“offset” — optional, integer, offset (for pagination), from which the “count” is counting
“instrument” — optional, filtering parameter can be “future”, “option” or valid instrument name
Method: GET
Result is JSON object:
{
    "success": true,
    "result": [ // list of orders from history, filled quantity > 0 
        {
            "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
            "label" : "",               // order label, if present,
            "adv": false                // advanced type (false, or "usd" or "implv")   
       } ....
    ]
}
positions
General