HTX Get Account Snapshot
htx_get_account_snapshotFetch a compact authenticated snapshot of HTX spot or swap balances, positions, and orders with optional filters. Get normalized account data for quick verification of assets and exposure.
Instructions
Return a compact authenticated snapshot of balances, positions, and orders.
This is read-only and requires API credentials.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Account sections to include. Omit for spot balances/open orders or swap balances/positions/open orders/API status. Spot does not support positions or API status; swap open orders require instrument. | |
| product | Yes | HTX product family: spot or USDT-margined perpetual swap. | |
| verbose | No | Return unfiltered per-record balance details for diagnostics. Defaults to false for a compact valued asset view. | |
| instrument | No | Optional exact symbol or contract to narrow positions/orders. | |
| include_raw | No | When true, include the original HTX envelopes in addition to compact normalized data. | |
| margin_mode | No | Swap margin mode: isolated or cross. | isolated |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| product | Yes | ||
| as_of_ms | Yes | ||
| balances | No | ||
| warnings | Yes | ||
| positions | No | ||
| account_id | No | ||
| api_status | No | ||
| instrument | Yes | ||
| margin_mode | Yes | ||
| open_orders | No | ||
| account_type | No |