Release 1.2.25
/api/v1/public/getlastsettlements
added event "portfolio" for portfolio changes and positions
notification format:
{
"notifications": [
{
"success": true,
"testnet": false,
"message": "portfolio_event",
"result": {
// portfolio info
"portfolio": [{
"currency": "BTC", // currency of portfolio entry
"equity": 100.053215137,
"maintenanceMargin": 0.149999997,
"initialMargin": 1.598694208,
"availableFunds": 98.504520926,
"unrealizedPl": 0.0,
"realizedPl": 0.0,
"totalPl": 0.0
}],
// changed positions, see docs of /api/v1/private/positions
"positions": [
{
"instrument": "BTC-10NOV17-7330-C",
"kind": "option",
"averagePrice": 0.05,
"averageUsdPrice": 365.7085,
"direction": "sell",
"size": -1,
"floatingPl": -0.000001,
"floatingUsdPl": 4.471021674,
"realizedPl": 0,
"markPrice": 0.049999997272526846,
"indexPrice": 7224.75,
"maintenanceMargin": 0.149999997,
"initialMargin": 0.235432019,
"settlementPrice": 0.04999999012986638,
"delta": -0.49672,
"openOrderMargin": 0,
"profitLoss": 0.000002
}
}
],
"msOut": 1509718338845
}