v4

latestOpenAPI 3.0.3Apache 2.02026-08-0854311207.3 KB

Update Leverage for Multiple Instruments

Update leverage for up to 100 unique instruments. Updates are processed sequentially and are not atomic. If only some responses arrive before the gateway deadline, missing item results use internal_error; whether those updates applied is unknown. If no responses arrive, the request returns 500. Requires proxy signature, see Update Leverage.

patch/v1/trade/leverage/batch

Request body

sigstring required

Signature in hex format

saltinteger required

Salt

tsinteger required

Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).

Example request

{
  "op": {
    "args": [
      {
        "iid": 1,
        "lev": 10
      }
    ]
  },
  "sig": "0x1234567890...",
  "salt": 1234567890,
  "ts": 1767225600000
}

Response

Ordered result for each requested instrument.

Example response

[
  {
    "instrument_id": 1,
    "leverage": 10
  }
]