Understand the structure of the examples folder
masterThe examples directory contains demonstration code for three different Huobi contract types:
- Huobi Futures (交割合约)
- Huobi Perpetual (永续合约)
- Huobi Options (期权合约)
Each example consists of two primary files:
config.json: Contains typical configuration settings for the contracts, such assymbolconfigurations.strategy.py: Demonstrates a complete trading lifecycle, including subscribing to market data (quotes), subscribing to order pushes, position pushes, account pushes, and executing RESTful API calls for order cancellation.