HTX Get Spot Margin Snapshot
htx_get_spot_margin_snapshotRetrieve spot-margin balances, debt/risk metrics, and loan quotas to preflight borrowing, repayment, or margin-funded trades.
Instructions
Return compact spot-margin balances, debt/risk fields, and current loan quotas.
This read-only preflight is designed to precede borrowing, repayment, or any margin-funded trade.
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": {
"margin_mode": "<margin_mode>"
},
"name": "htx_get_spot_margin_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instrument | No | Required isolated-margin symbol; omit for cross margin. | |
| include_raw | No | When true, include the original HTX envelopes in addition to compact normalized data. | |
| margin_mode | Yes | Spot-margin mode: isolated per symbol or cross across currencies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||