getSpotMarginTradeRepaymentAvailableAmount
Check how much of a borrowed cryptocurrency you can repay in spot margin trading. Returns the minimum of your available spot coin balance and outstanding borrow amount for unified accounts.
Instructions
Retrieve the available amount that can be repaid for a specific cryptocurrency in spot margin trading.
Unified account only
Repayment amount = min(spot coin available balance, coin borrow amount)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"currency": "<currency>"
},
"name": "getSpotMarginTradeRepaymentAvailableAmount"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes |