🦀 ClawHub
Tigerbrokers
by @hotea
Tiger Brokers OpenAPI Python SDK — complete skills for AI coding tools. Covers SDK setup, market data queries, stock/futures/options trading, real-time push...
💡 Examples
from tigeropen.common.consts import Language, Market
from tigeropen.tiger_open_config import TigerOpenClientConfig
from tigeropen.common.util.signature_utils import read_private_key
from tigeropen.quote.quote_client import QuoteClient
from tigeropen.trade.trade_client import TradeClient1. Configure / 配置
方式一:配置文件(推荐) / Method 1: Config file (recommended)
config = TigerOpenClientConfig(props_path='/path/to/your/config/')方式二:代码赋值 / Method 2: Code assignment
config = TigerOpenClientConfig()
config.tiger_id = 'your_tiger_id'
config.private_key = read_private_key('/path/to/your_private_key.pem')
config.account = 'your_account'
config.language = Language.en_US
2. Query quotes / 查询行情
quote_client = QuoteClient(config)
quote = quote_client.get_market_status(Market.US)3. Place order / 下单
trade_client = TradeClient(config)
See references/trade.md for order examples
TERMINAL
clawhub install tigerbrokers