Live prices from the account's broker
Last updated:
Request
Synthetic example for the production API. Replace YOUR_API_KEY and the ids. Do not send it against a live account until you mean to.
curl -X GET "https://api.fxapis.com/v1/accounts/ACCOUNT_ID/quotes" \
-H "Authorization: Bearer YOUR_API_KEY"Bid, ask and spread for up to 20 symbols or instruments, read from the account's own MetaTrader terminal — the prices this account trades at. The account must be online (409 ACCOUNT_NOT_READY otherwise).
Every quote carries time, brokerTime and ageMs; judge freshness from them. stale is true only while the market is open and the last tick is over 60 seconds old; a closed market answers its last price with marketOpen: false. A symbol the broker does not have answers status: unknown_symbol in its place. Poll this; there is no stream. Calls that reach the terminal are charged to the account's live budget (300 a minute + 50, across every caller; cached answers are free), and past it this answers 429 RATE_LIMITED with retry-after. An account whose terminal is not yet updated — rare — answers 501 CAPABILITY_UNAVAILABLE instead.
Authorization
apiKey Authorization: Bearer fx_live_<id>_<secret>.
A key is shown once, at creation. We cannot show it again or recover it for you.
Keys carry a label (live or test) in the key itself, so each configuration is easy to tell
apart. Both reach real brokers: test with a broker demo account.
Scopes are per key. A key without accounts:write can read accounts and nothing else.
In: header
Path Parameters
uuidQuery Parameters
Broker symbols, comma-separated, exactly as this broker names them: EURUSD.a,XAUUSD.a.
Instruments (GET /v1/instruments), comma-separated; each is quoted as this account's own symbol for it.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://api.fxapis.com/v1/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/quotes?symbols=EURUSD%2CXAUUSD&instruments=XAUUSD%2CUS30"{ "data": [ { "symbol": "EURUSD", "instrument": null, "status": "ok", "bid": "1.08450000", "ask": "1.08462000", "spread": 12, "digits": 5, "brokerTime": "2026-10-15 15:00:00.123", "time": null, "observedAt": "2019-08-24T14:15:22Z", "ageMs": null, "stale": true, "marketOpen": null, "tradeMode": "full" } ]}Positions on an account GET
What we last saw, with `observedAt` saying when. The broker is authoritative and this is a snapshot, not a ledger — `observedAt` is here so you can tell a current view from a stale one rather than having to assume. Open positions only, unless `includeClosed=true`.
Price history (candles) from the account's broker GET
Open, high, low and close bars for one symbol or instrument, read from the account's own MetaTrader terminal: `timeframe` M1, M5, M15, M30, H1, H4, D1, W1 or MN1, and up to 1,000 bars (`count`, default 100) counting back from the current one, oldest first; the last bar is still forming. Times are when each bar opened, in UTC (converted with the broker's current clock offset, so bars from before its last daylight-saving change can be an hour out). `tickVolume` counts price changes, not traded volume. The account must be online (409 `ACCOUNT_NOT_READY` otherwise). Each call reaches the terminal and is charged to the account's live budget (300 a minute + 50, shared with quotes and fresh figures); past it this answers 429 `RATE_LIMITED` with `retry-after`. An account whose terminal is not yet updated — rare — answers 501 `CAPABILITY_UNAVAILABLE` instead.