Install
openclaw skills install tqsdk-skillExplain, implement, or debug TqSdk Python workflows for wait_update or is_changing update loops, market data retrieval, historical download, account type sel...
openclaw skills install tqsdk-skillUse this skill to answer TqSdk questions with the repository's real APIs, docs, and examples. Prefer minimal runnable snippets, keep futures and stock behavior separate, and explain the update loop explicitly whenever the user's issue depends on wait_update().
Read only the references needed for the user's question.
wait_update, is_changing, deadline, async update notifications, Jupyter caveats, or backtest progression questions.get_quote, get_kline_serial, get_tick_serial, contract discovery, symbol metadata, and DataDownloader.TqAccount, TqKq, TqKqStock, TqSim, TqSimStock, OTG account classes, and TqMultiAccount.insert_order, cancel_order, TargetPosTask, TargetPosScheduler, and advanced execution helpers.Quote, K-line or tick rows, Account, Position, Order, Trade, or their stock variants.get_* results as live references, not snapshots. Explain that they refresh during wait_update().wait_update() whenever the user is confused by missing data, stale fields, orders not leaving the client, or TargetPosTask not acting.Account, Position, Order, Trade.SecurityAccount, SecurityPosition, SecurityOrder, SecurityTrade.offset, and TargetPosTask is not for stock trading.TqKq or TqAccount unless the user really needs that account mode.account= for getters and trading calls, or use the account object's own get_account, get_position, get_order, and get_trade.DataDownloader over pretending get_kline_serial is an unlimited history API.TargetPosTask for target net position.TargetPosScheduler plus twap_table or vwap_table from tqsdk.algorithm for scheduled execution.InsertOrderTask and InsertOrderUntilAllTradedTask as internal or advanced helpers, not the default answer.tqsdk.__init__ for top-level APIs. When an API is documented under a submodule, use that official submodule path such as tqsdk.tools or tqsdk.algorithm.