dogabot dogabot Documentation

Set exchange margin mode

post https://api.dogabot.com/api/v1/exchange/margin-mode

Switches cross/isolated margin for a symbol. Response scope says whether the venue applied it per symbol, account-wide, or combined with leverage. Requires confirm_live=true. Requires write:terminal on the key and feat:terminal on the account. Send Idempotency-Key.

Scopes write:terminal write

Headers

Idempotency-Key string required

Unique key per mutation so retries stay safe.

Example retry-1

Body parameters

application/json required

exchange string required
symbol string required
margin_mode string required
One of crossedcrossisolated
leverage integer

Required on kraken_futures, hyperliquid and lighter when it cannot be resolved from the venue position.

≥ 1≤ 125
confirm_live boolean required

Responses

200 OK
401 Unauthorized
403 Forbidden — missing scope or feature gate
404 Not found
429 Rate limited