Skip to main content

Operation Type (for Signing)

Request Body

FieldTypeNeedDescriptionExample
”account”stringrequiredUser’s wallet address42trU9A5…
“symbol”stringrequiredTrading pair symbolBTC
”is_isolated”booleanrequiredMargin mode (true for isolated, false for cross)false
”timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”expiry_window”integeroptionalSignature expiry in milliseconds30000
”agent_wallet”stringoptionalAgent wallet address69trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…

Response

  • Status 200: Margin mode updated successfully
  • Status 400: Invalid request parameters
  • Status 500: Internal server error

Code Example (Python)