getopenorders

Retrieve openorders. (Authorization is required).
URI: https://www.deribit.com/api/v1/private/getopenorders
URI Path: /api/v1/private/getopenorders
Parameters: instrument – string [optional], instrument name, example “BTC-19DEC14”.
Method: GET
Result is JSON object:
{
    "success": true,  // true or false
    "message": "",    // empty or text message, e.g. error message
    "result": [       // list of open orders
	{
            "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
        }
    ]
}
cancelall
positions