Update leverage
This endpoint allows users to change their account leverage for a specific trading pair. For open positions, users can only increase the leverage setting.
Request Body
Field
Type
Need
Description
Example
"account"
string
required
User's wallet address
42trU9A5...
"symbol"
string
required
Trading pair symbol
BTC
"leverage"
integer
required
New leverage value
10
"timestamp"
integer
required
Current timestamp in milliseconds
1716200000000
"expiry_window"
integer
optional
Signature expiry in milliseconds
30000
"agent_wallet"
string
optional
Agent wallet address
69trU9A5...
"signature"
string
required
Cryptographic signature
5j1Vy9Uq...
Response
Status 200: Leverage updated successfully
Status 400: Invalid request parameters
Status 500: Internal server error
Code Example (Python)
Last updated