Cascade
Account

Update Margin

Update account's desired margin in a market

POST
/account/margin
accountstring
expiresAtinteger
Formatint64
Range0 <= value
isolatedboolean
marginstring
nonceinteger
Formatint64
Range0 <= value
signaturesarray<string>
subaccountIndexinteger
Formatint32
Range0 <= value
symbolstring

Response Body

application/json

text/plain

text/plain

curl -X POST "https://matcher.cascade.xyz/account/margin" \  -H "Content-Type: application/json" \  -d '{    "account": "string",    "expiresAt": 0,    "isolated": true,    "margin": "string",    "nonce": 0,    "signatures": [      "string"    ],    "subaccountIndex": 0,    "symbol": "string"  }'
null
"Unauthorized to change margin for account 0xf4758f8ad7721bded5e6344ffa2cbc022e0e6e37"
"Account not found"