Decrease Position Margin
Withdraw margin from a position, increasing the leverage. Only relevant for Isolated Margin users.
POST /draw
curl \
-X POST https://api.testnet.everstrike.io/draw \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d 'pair=string&qty=42.0'
Response examples (200)
{
"code": 200,
"msg": "null",
"result": {
"balances": {
"BTC": {
"free": 21,
"locked": 2,
"withdrawn": 0
}
},
"positions": {
"USD_BTCCALL_PERP": {
"free": 1,
"size": 1,
"stats": {
"lp": 3.7,
"pnl": 0,
"roe": 0,
"mark": 2.1,
"size": 1,
"equity": 1,
"margin": 1,
"bankrupt": 3.78,
"leverage": 2.82,
"notional": 0.14,
"avg_entry": 3.4,
"direction": "BUY"
},
"locked": 0,
"realized": 0
}
}
}
}
Response examples (503)
{
"code": 503,
"msg": "Invalid request",
"result": {}
}