Skip to main content

Accounts, IDs & scopes

Every endpoint acts on your account​

Trader API paths end in /me or /accounts/me, for example GET /api/v1/positions/accounts/me. They always act on the account your token belongs to, so you never pass an account ID and can never touch anyone else's account.

IDs you'll see​

IDWhat it is
account_idYour trading account — holds the balance, orders and positions. It's also the username for password login.
client_idYour API key's identifier (<account_id>_<digits>). Only used to get a token.
session_idOne login. An account can have several sessions at once. The WebSocket needs it.
symbol_idAn instrument, e.g. EURUSD. Orders, positions and price ticks use the numeric ID, not the name.
order_idAn order (market or pending).
position_idAn open or closed trade that came from a filled order.
deal idOne booked leg of a trade — an entry (direction: 0) or an exit (direction: 1).

How they relate is explained in Orders, positions & deals.

Scopes​

The scope returned with your token decides what it can do.

ScopeHow you get itCan
API_TraderAPI keyTrade and read everything a bot needs. No password changes, API keys, inbox or reports.
TraderPassword loginEverything API_Trader can, plus password changes, API keys, and reports.
InvestorLogin with the investor passwordRead only. Every order and position change is refused.

Calling an endpoint your scope can't use returns 403 with the message unauthorized to access this resource.

Share read-only access safely

To let someone watch your account (a signal subscriber, a monitoring dashboard), give them the investor password, not your API key.

The endpoints a bot uses​

NeedEndpoint
Balance, equity, margin, leverage, prop statusGET /api/v1/accounts/me
Tradable symbolsGET /api/v1/symbols/me
One symbol by nameGET /api/v1/symbols/me/by_name?symbol=EURUSD
CandlesGET /api/v1/market/history
Place an orderPOST /api/v1/orders/accounts/me
Pending ordersGET /api/v1/orders/accounts/me
Open positionsGET /api/v1/positions/accounts/me
Change SL/TPPUT /api/v1/positions/{position_id}/accounts/me
ClosePOST /api/v1/positions/{position_id}/accounts/me
Closed tradesGET /api/v1/deals/accounts/me
Deposits and withdrawalsGET /api/v1/accounts/me/transactions

The full list, with a Try It panel for each, is in the API Reference.

Account fields worth watching​

GET /api/v1/accounts/me returns, among others:

FieldMeaning
balanceSettled cash.
creditBroker credit (bonus) — counts toward equity, not withdrawable.
equityBalance plus credit plus floating P/L of open positions.
used_margin / free_marginMargin held by open positions / what's left for new ones.
margin_levelEquity relative to used margin. Your broker's margin-call and stop-out levels apply to this.
leverageYour leverage. 0 means the group default applies.
currency, currency_digitsAccount currency and its decimal places.
status2 active. 0 read-only, 1 pending, 3 rejected, 4 liquidation, 5 liquidated, 6 trial expired.
trade_type0 live, 1 demo.
prop, prop_status, prop_phaseProp-firm rules, how close you are to breaching them, and challenge progress. A bot on a prop account should check prop_status before trading.

The same live numbers stream over the WebSocket as account_Summary, so poll this endpoint once at startup, not in a loop.