getlasttrades

Retrieve the latest trades that have occured for a specific instrument.
URI: https://www.deribit.com/api/v1/public/getlasttrades
URI Path: /api/v1/public/getlasttrades
Parameters:
        instrument – string [optional], instrument name, example “BTC-19DEC14” .
        since – integer [optional], “since” trade id, the server returns trades newer than that “since”.
        count – integer [optional], count of trades returned (limitation: max. count is 100)
trade id.
Method: GET
Result is JSON object:
{
    "success": true, // true or false
    "message": "",   // empty or text message 
    "result": [      // list of trades 
        {
            "tradeId": 1,                 // trade id
	    "instrument": "BTC-22JAN16",  // name of the instrument 
            "timeStamp": 1418148659276,   // timestamp in milliseconds, e.g., javascript Date object — new Date(1418148659276)
            "quantity": 2,                // quantity, in contracts ($10 per contract for futures, ฿1 — for options)
            "price": 418.02,              // float, USD for futures, BTC for options
            "direction": "sell",          // "buy", "sell" (direction of taker's order)
            "indexPrice": 420.04,          
            "tickDirection": 0,           // Direction of the "tick". 
                                          // Valid values: 0 = Plus Tick; 1 = Zero-Plus Tick;
                                          //  2 = Minus Tick; 3 = Zero-Minus Tick
        }
    ]
}

 

getorderbook
getsummary