HTX Get Market Context
htx_get_market_contextNeed more than indicators? Retrieve inspectable OHLCV candles, recent trade tape, and swap funding history for HTX spot or perpetual contracts. Returns a bounded REST snapshot without exposing raw exchange envelopes.
Instructions
Return bounded research context without exposing raw HTX envelopes.
Use this when indicators alone are insufficient and a trader needs inspectable OHLCV, a recent public trade tape, or swap funding history. It is a REST snapshot, not a low-latency stream.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| include | No | Optional context sections. Omit for candles and recent trades; funding_history is available only for swaps. | |
| product | Yes | HTX product family: spot or USDT-margined perpetual swap. | |
| instrument | Yes | Spot symbol such as 'btcusdt' or swap contract such as 'BTC-USDT'. | |
| candle_size | No | Number of normalized candles (1-500). | |
| candle_period | No | HTX candle interval for candles: 1min, 5min, 15min, 30min, 60min, 4hour, 1day, 1week, or 1mon. | 60min |
| recent_trade_limit | No | Number of normalized tape records (1-200). | |
| funding_history_limit | No | Number of swap funding-rate records (1-50). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||