快速开始
quick-start.py
from thinktrader import Client, Order # Initialize client with API credentials client = Client( api_key="your_api_key", secret_key="your_secret_key", env="sandbox" # Use "production" for live trading ) # Create a limit order order = Order( symbol="AAPL", side="BUY", quantity=100, price=150.00, order_type="LIMIT" ) # Submit order with sub-millisecond execution response = client.submit_order(order) print(f"Order ID: {response.order_id}") print(f"Status: {response.status}")
开发者工具和资源
RESTful API & WebSocket 支持
Python/C++ SDK
沙盒测试环境
完整 API 文档
示例代码库
查看完整文档和更多示例代码
docs.thinktrader.net