positions

Retreive positions. (Authorization is required).
URI: https://deribit.com/api/v1/private/positions
URI Path: /api/v1/private/positions
Parameters: none
Method: GET
Result is JSON object:
{
    "success": true,  // true or false
    "result": [ //list of position objects
        {   //example future position
            "instrument": "BTC-22JAN16", // name of the instrument
            "size": 1,  // position size, in contracts ($10 per contract for futures, ฿1 — for options)
            "averagePrice": 384.289999987, // average price for the position in BTC
            "direction": "buy", 
	        "sizeBtc": 0.025844001, // position size in BTC for futures
            "floatingPl": 0.000178014,
            "realizedPl": -0.00060691,
            "markPrice": 386.937,  // mark price
            "indexPrice": 379.35,  // index price
            "maintenanceMargin": 0.00245518,  // maintenance margin in BTC
            "initialMargin": 0.00439348,      // initial margin in BTC
            "openOrderMargin": 0.184398603
        },
        {   //example option position 
            "instrument": "BTC-22JAN16-360-C",
            "size": -0.2,
            "averagePrice": 0.2, // average price for the position in BTC
            "averageUsdPrice": 78.62, // average price in USD for options
            "direction": "sell",
            "quantity": -1,
            "floatingPl": 0.144582976,
            "floatingUsdPl": 57.597551946,
            "realizedPl": 0,
            "markPrice": 0.05541702431231484,
            "indexPrice": 379.35,
            "maintenanceMargin": 0.1,
            "initialMargin": 0.2,
            "openOrderMargin": 0
        }, .....
    ]
}
getopenorders
orderhistory