API दस्तावेज़ीकरण
get
/api/v1/Trade/positionsReturns open positions for a trading account owned by the caller. Shape matches SignalR {PortfolioUpdated} position rows (instrument, qtyBought/qtySold, qty/amount, avgPx, PnL fields, side, oca). Live bid/ask/trade are included when available on the server instrument cache; otherwise those quote fields are null.
Trade
पैरामीटर
accountId
query · integer
आवश्यक
version
path · string
आवश्यक
जवाब
- 200Array of open positions (quantity not zero).application/json
[ { "instrument": { "symbol": "EURUSD.spot", "bid": { "exchangeDateTime": "2026-07-25T05:07:01.429Z", "instrumentId": 0, "price": 1.1367, "size": 11.4135, "dateTime": "2026-07-25T05:07:02.179Z" }, "ask": null, "trade": null }, "qtyBought": 78813.24, "qtySold": 70900, "qty": 7913.24, "amount": 7913.24, "avgPx": 1.1437, "price": 1.1367, "openValue": 9050.33, "value": 8994.98, "valueCCY": 8994.98, "pnL": 2624.99, "pnLCCY": 2624.99, "uPnL": -55.35, "uPnLCCY": -55.35, "fxccy": "USD", "side": 0, "oca": "[EURUSD.spot]" } ] - 400Invalid account.application/json
{ "status": "rejected", "message": "Validation failed." } - 403Caller lacks Trading claim or account not owned.