Position P&L Updates
Method: WebSocket
Description
Retrieve profit and loss from Positions as they change in real time.
Response Attributes
| Name | Type | Description |
|---|---|---|
| id | integer | The id associated with the Position. |
| pnl | decimal | The profit/loss associated with the open Position. |
Example Response
- Balance Updated
{
"data":{
"id":1270,
"pnl":-15.000000000
},
"action": 1 // 0 = create, 1 = update, 2 = delete/remove
}