Use case · Dashboards
Their accounts. Your interface.
A trading dashboard is mostly reads: balance, equity, free margin, open positions with live profit, and history. Socketrade returns those as JSON, and streams the prices behind them, so you can build the screen without building a terminal bridge.
How it works
Step 1
Connect the accounts
One seat per account. Demo and live use the same calls.
Step 2
Read on load
Status, positions and history in three calls. Each response is plain JSON.
Step 3
Stream the prices
Subscribe to the symbols on screen and update the bid/ask as ticks arrive.
Step 4
Refresh the slower data
Positions and history on a timer, or after an order. Do not poll ticks.
What the API gives you
- Balance, equity, margin and free margin per account.
- Open positions with live profit, and closed deals with fees and comments.
- Live bid/ask ticks for up to 64 symbols per socket.
- One API key for every account in the dashboard.
A minimal example
curl https://api.socketrade.com/v2/acc_.../status \
-H "X-API-Key: $SOCKETRADE_KEY"
{
"status": "ready",
"account": { "login": 41299492, "balance": 20000,
"equity": 20120, "currency": "USD" },
"broker": { "connected": true, "server": "Deriv-Demo" }
}Honest limits
- No white-label dashboard is included. Socketrade is the data layer, not the UI.
- A WebSocket sends price ticks; positions and history are REST reads.
- Balances in different currencies must never be added together. Show one figure per currency.
- Freshness depends on the broker and the account's connection.