TqSdk2 模块参考
- tqsdk2.api - 框架及核心业务
TqApi
TqApi.wait_update()
TqApi.get_account()
TqApi.get_position()
TqApi.get_order()
TqApi.get_trade()
TqApi.get_quote()
TqApi.get_quote_list()
TqApi.get_kline_serial()
TqApi.get_tick_serial()
TqApi.insert_order()
TqApi.cancel_order()
TqApi.is_changing()
TqApi.get_trading_unit()
TqApi.query_quotes()
TqApi.query_options()
TqApi.query_cont_quotes()
TqApi.query_all_level_options()
TqApi.query_all_level_finance_options()
TqApi.get_trading_status()
TqApi.get_margin_rates()
- tqsdk2.TqAuth - 用户认证类
- TqSdk2.TqSim - 本地模拟类
- TqSdk2.TqAccount - 中继实盘类
- TqSdk2.TqKq - 快期模拟
- TqSdk2.TqKqStock - 快期股票模拟
- TqSdk2.TqCtp - 直连交易类
- TqSdk2.TqCtpMini - CTP MINI 交易类
- TqSdk2.TqRohon - 融航资管交易类
- TqSdk2.TqJees - 杰宜斯资管交易类
- TqSdk2.TqYida - 易达交易类
- TqMarketMaker - 做市商模板类
- TqSdk2.TargetPosTask - 目标持仓工具
- TqSdk2 业务对象 - 行情对象
Quote
Quote.exchange_id
Quote.symbol
Quote.last_price
Quote.ask_price1
Quote.ask_price2
Quote.ask_price3
Quote.ask_price4
Quote.ask_price5
Quote.ask_volume1
Quote.ask_volume2
Quote.ask_volume3
Quote.ask_volume4
Quote.ask_volume5
Quote.bid_price1
Quote.bid_price2
Quote.bid_price3
Quote.bid_price4
Quote.bid_price5
Quote.bid_volume1
Quote.bid_volume2
Quote.bid_volume3
Quote.bid_volume4
Quote.bid_volume5
Quote.highest
Quote.lowest
Quote.open
Quote.close
Quote.average
Quote.volume
Quote.amount
Quote.open_interest
Quote.settlement
Quote.upper_limit
Quote.lower_limit
Quote.pre_open_interest
Quote.pre_settlement
Quote.pre_close
Quote.price_tick
Quote.price_decs
Quote.volume_multiple
Quote.strike_price
Quote.instrument_id
Quote.instrument_name
Quote.expired
Quote.delivery_year
Quote.delivery_month
Quote.product_id
Quote.margin
Quote.commission
Quote.underlying_symbol
Quote.expire_datetime
Quote.trading_time
Quote.datetime
Quote.ins_class
Quote.last_exercise_datetime
Quote.option_class
Quote.exercise_type
Quote.expire_rest_days
- TqSdk2 业务对象 - 账户对象
Account
Account.available
Account.balance
Account.client_equity
Account.close_profit
Account.commission
Account.ctp_available
Account.ctp_balance
Account.currency
Account.deposit
Account.float_profit
Account.frozen_commission
Account.frozen_margin
Account.frozen_premium
Account.investor_id
Account.margin
Account.market_value
Account.position_profit
Account.pre_balance
Account.premium
Account.risk_ratio
Account.withdraw
- TqSdk2 业务对象 - 持仓对象
Position
Position.exchange_id
Position.instrument_id
Position.pos_long_his
Position.pos_long_today
Position.pos_short_his
Position.pos_short_today
Position.volume_long_today
Position.volume_long_his
Position.volume_long
Position.volume_long_frozen_today
Position.volume_long_frozen_his
Position.volume_short_today
Position.volume_short_his
Position.volume_short
Position.volume_short_frozen_today
Position.volume_short_frozen_his
Position.open_price_long
Position.open_price_short
Position.open_cost_long
Position.open_cost_short
Position.position_price_long
Position.position_price_short
Position.position_cost_long
Position.position_cost_short
Position.float_profit_long
Position.float_profit_short
Position.float_profit
Position.position_profit_long
Position.position_profit_short
Position.position_profit
Position.margin_long
Position.margin_short
Position.margin
Position.market_value_long
Position.market_value_short
Position.pos
Position.pos_long
Position.pos_short
Position.investor_id
Position.close_profit
Position.volume_long_yd
Position.volume_short_yd
Position.unit_id
Position.symbol
- TqSdk2 业务对象 - 委托对象
Order
Order.order_id
Order.exchange_order_id
Order.exchange_id
Order.instrument_id
Order.volume_orign
Order.volume_left
Order.limit_price
Order.insert_date_time
Order.last_msg
Order.investor_id
Order.unit_id
Order.direction
Order.offset
Order.price_type
Order.volume_condition
Order.time_condition
Order.status
Order.is_dead
Order.is_online
Order.is_error
- TqSdk2 业务对象 - 成交对象
- TqSdk2 业务对象 - 合约交易状态