edit

Edit price and/or quantity of the own order. (Authorization is required).
URI: https://www.deribit.com/api/v1/private/edit
URI Path: /api/v1/private/edit
Paramerts: shown as JQuery data for POST
{
    "orderId": "994",   // ID of the order returned by "sell" or "buy" request
    "quantity": "1",    // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
    "price": "415"      // float, USD for futures, BTC for options
    "post_only": true,  // optional field, if it is present the POST-ONLY property is set correspondingly 
                        // -- explicitly, otherwise it stays unchanged
    "adv": "usd"        // optional parameter, can be "implv", "usd", or absent (advanced order type)
 }
  • In case of “adv”=”implv”, field “price” must be a value of Implied Volatility (in percentages), e.g., “price”=100, means implied volatility of 100%
  • In case of “adv”=”usd”, field “price” must be the option price value in USD
  • it is not allowed to combine “adv”=”implv”,”usd” parameter with “post_only”=true
  • “adv” parameter is not applicable to futures, ignored
  • api edit limitation – it is not allowed to change “adv” from “implv” to “usd” and vice versa via “edit” (as well as from empty “adv” to “implv” or “usd” and vice versa) – if necessary to do that, just cancel it and add the new order.
Method: POST
Result is JSON object:
{
    "success": true, // true or false
    "result": {
        "order": {
            "orderId": 994, 	// id of created order if success = true
            "instrument": "BTC-22JAN16", 	//instrument name of the order
            "direction": "buy", 	// direction, buy
            "price": 415, 	// price, float, USD for futures, BTC for options
            "quantity": 1, 	// quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "filledQuantity": 0, 	//filled quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "avgPrice": 0,            // average fill price of the order
            "commission": 0, 	// commision in btc
            "created": 1453398857489,  // creation timestamp
            "lastUpdate": 1453398857489, // timestamp of the last order state change
            "state": "open", // order state
            "post_only": false,       //true or false
            "adv": false              // advanced type (false, or "usd" or "implv") 

             // for advanced orders could be:
            "implv": 250  // implied volatility in %, if "adv"="implv"
            "usd": 50     // usd price, if "adv"="usd"
        },
        "trades": [] // list of immediate trades if they have happened
    },
    "message": "" 	// empty or text message, e.g. error message
}
sell
cancel