Which accounts have it
Readcapabilities.symbolConfig on the account — it is on every row from List
accounts and on every account
snapshot. It is what to render off: the engine
re-checks every gate server-side and fails closed, so capabilities drive what you offer, never
what is authorized.
The contract is explicit about one exclusion: on futures, leverage is a fixed contract property
rather than an account setting, and the routes below answer 400 on a venue without the surface
at all. The reference’s own request example targets a perpetual.
The same asymmetry shows up in position rows. leverage, liquidationPrice and margin on a
position are venue-reported and null where the concept does not exist — futures and prop accounts.
Render an em dash there, never a faked 1.
1
Read the instrument's current setting
Get leverage and margin mode is
configuration, not exposure, so it is neither plan-gated nor risk-gated.
config is null when the venue has no setting for that instrument — a real answer, not an
error. When it is present it carries leverage, marginMode (cross or isolated) and
maxLeverage, which is the ceiling to bound your input control by.2
Set leverage, margin mode, or both
Set leverage and margin mode takes the
instrument plus at least one of the two fields. A body with neither is a Send only
400 rather than a
silent no-op, and a non-positive leverage is a 400 too.marginMode to switch between cross and isolated without touching the multiplier.3
Price the order before you send it
Preview order margin returns the buying-power
impact of a hypothetical order. The call is read-only: it never places an order, it carries no
Three fields decide how you present the answer:
clientOrderId because there is no intent to make idempotent, and it is not risk-gated.A
400 here can mean the asset class is one this broker cannot route; it carries a machine
code so you can tell that apart from a bad price or quantity.Instruments, and how to name them
The exact string an order carries differs by class: a futures product root likeES, or a
venue-prefixed crypto canonical like HYPERLIQUID:BTC. List account
instruments is the authoritative set for one
account — a futures account lists the contract catalog, a crypto venue account lists that venue’s
perpetuals, and the demo lists both. Reading it takes no venue call and never touches account
state, so it is cheap to keep a picker fed from it.
Where to go deeper
- List open positions — where
leverage,marginandliquidationPriceare reported per position. - Place your first order — the order body the margin preview is describing.
- Track fills and P&L — the account money, after the fact.
- Conventions — signed quantities, true nulls, and account targeting.