sell

Place a sell order in an instrument. (Authorization is required).
URI: https://deribit.com/api/v1/private/sell
URI Path: /api/v1/private/sell
Parameters: shown as JQuery data for POST
{
    "instrument": "BTC-29JAN16-450-C",  // name 
    "quantity": "1",					// quantity, in contracts ($10 per contract for futures, ฿1 — for options)
    "price": "0.2"					  // float, USD for futures, BTC for options
}
Method: POST
Result is JSON object:
{
    "success": true,
    "result": {
        "order": {
            "orderId": 894,   // id of created order if success = true
            "instrument": "BTC-29JAN16-450-C", //instrument name of the order
            "direction": "sell", // direction, sell
            "price": 0.2,    // price, float, USD for futures, BTC for options
            "quantity": 10,  // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "filledQuantity": 1, //filled quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "commision": 0,  // commision in btc
            "created": 1453399515235,
            "lastUpdate": 1453399515235,
            "state": "open"
        },
        "trades": [ // list of immediate trades
            {
                "quantity": 1, // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
                "price": 415   // price, float, USD for futures, BTC for options
            }
		]
    },
    "message": ""
}
buy
edit