Trading
Stream real-time open orders, open and closed positions with live updates, PnL tracking, and order status monitoring
Get open orders
Connection
/frontoffice/ws/v4/account?access_token={YOUR_ACCESS_TOKEN}{
"arguments": [
"67d0456f8c7b1108e4cf5d46"
],
"invocationId": "0",
"target": "OpenOrders",
"type": 4
}Message
{
"type": 2,
"invocationId": "0",
"item": [
{
"marketId": "cfd.eur_chf",
"marketType": "Cfd",
"marketDisplayName": "EUR/CHF",
"marketFullName": "",
"orderId": "01JVQBFSTVC40VK03A0AY7K016",
"timeInForce": "Gtc",
"status": "Pending",
"source": "Manual",
"reason": "Trader",
"side": "Buy",
"orderType": "Limit",
"requestedAmount": "10000",
"remainingAmount": "10000",
"requestedPrice": "0.9",
"executionPrice": "0",
"createdAt": "2025-05-20T17:22:31.899Z",
"updatedAt": "2025-05-20T17:22:31.9001213Z",
"cancellationDate": null,
"commissionAssetId": "eur",
"commissionAmount": "0",
"leverage": 1,
"fillFactor": "0",
"takeProfit": null,
"stopLoss": null
}
]
}Get open positions
Connection
/frontoffice/ws/v4/account?access_token={YOUR_ACCESS_TOKEN}{
"arguments": [
"67d0456f8c7b1108e4cf5d46"
],
"invocationId": "0",
"target": "OpenPositions",
"type": 4
}Message
{
"type": 2,
"invocationId": "0",
"item": {
"item": [
{
"positionId": "01JP4H3AMS7Q1H6Y6H3XJ52JTA",
"marketId": "cfd.eur_chf",
"marketType": "Cfd",
"marketDisplayName": "EUR/CHF",
"marketFullName": "",
"createdAt": "2025-03-12T06:36:31.257Z",
"updatedAt": "2025-03-12T06:36:31.257Z",
"side": "Buy",
"status": "Open",
"leverage": 1,
"positionLotAmount": "0.01",
"positionPriceInRAT": "1000.46",
"rateToRAT": "1.07",
"usedMarginInRAT": "1000.53",
"openPrice": "0.96304",
"currentMarketPrice": "0.93501",
"unrealizedPnlDayInRAT": "1.86",
"unrealizedPnlDayPercent": "0.0018",
"unrealizedPnlTotalInRAT": "-29.93",
"unrealizedPnlTotalPercent": "-0.0291",
"takeProfit": null,
"stopLoss": null,
"positionModifier": "Trader"
},
{
"positionId": "01JVQB9ZWJ6G4QV0P98X0QWNA7",
"marketId": "cfd.eur_chf",
"marketType": "Cfd",
"marketDisplayName": "EUR/CHF",
"marketFullName": "",
"createdAt": "2025-05-20T17:19:21.49Z",
"updatedAt": "2025-05-20T17:19:21.491321Z",
"side": "Buy",
"status": "Open",
"leverage": 100,
"positionLotAmount": "0.1",
"positionPriceInRAT": "10004.6",
"rateToRAT": "1.07",
"usedMarginInRAT": "100.06",
"openPrice": "0.93666",
"currentMarketPrice": "0.93501",
"unrealizedPnlDayInRAT": "18.61",
"unrealizedPnlDayPercent": "0.0018",
"unrealizedPnlTotalInRAT": "-17.02",
"unrealizedPnlTotalPercent": "-0.0017",
"takeProfit": null,
"stopLoss": null,
"positionModifier": "Trader"
}
],
"snapshot": false
}
}Get closed positions
Connection
Message
Last updated

