CCXT Crypto Exchange Library
2025Emma/vibe-coding-cn
Reference help for the CCXT library covering crypto exchange APIs, market data, trading and order management across 150+ exchanges in JavaScript, Python and PHP.
Answers TqSdk Python questions on market data, accounts, orders, margin trials, simulation and backtesting, using the library's own docs and examples.
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-data --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .claude/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .claude/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .claude/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-dataType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-data --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .agents/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .agents/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .agents/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-data --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .cursor/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .cursor/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/shinnytech/tqsdk-python.git --path doc/ai_editor/skills/tqsdk-trading-and-data--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-data --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .gemini/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .gemini/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-dataInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .github/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .github/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .github/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install shinnytech/tqsdk-python tqsdk-trading-and-data --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shinnytech/tqsdk-python.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/doc/ai_editor/skills/tqsdk-trading-and-data .opencode/skills/tqsdk-trading-and-data && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "tqsdk-trading-and-data" agent skill from https://github.com/shinnytech/tqsdk-python/tree/master/doc/ai_editor/skills/tqsdk-trading-and-data into .opencode/skills/tqsdk-trading-and-data/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "tqsdk-trading-and-data", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
tqsdk-trading-and-dataAnswers TqSdk Python questions on market data, accounts, orders, margin trials, simulation and backtesting, using the library's own docs and examples.
The skill answers TqSdk questions from the library's real APIs, docs and examples, preferring minimal runnable snippets and keeping futures and stock behavior separate. Whenever a problem depends on `wait_update()`, it explains the update loop explicitly, and before writing code it identifies the task mode: market data only, local simulation, quick simulation, real account, stock or futures trading, backtest or margin trial.
A routing list sends the agent to one reference file per topic: the update loop and `is_changing`, market data (`get_quote`, `get_kline_serial`, `get_tick_serial`, `DataDownloader`), account classes such as `TqAccount`, `TqKq`, `TqSim` and `TqMultiAccount`, account and order getters, `TqScenario` margin and risk-ratio what-if analysis, order and position tools such as `insert_order`, `TargetPosTask` and `Twap`, field meanings, simulation and backtest limits, an error FAQ and an example map.
10 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 78c9922. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
TqSdk Trading and Data loads about 2k tokens when it runs, and up to ~15k if it reads all its reference files. Until then it costs about 247 tokens; SKILL.md has 832 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from shinnytech/tqsdk-python at commit 78c9922, republished under its Apache-2.0 licence (© shinnytech). 832 words, ~2,024 tokens.
.claude/skills/tqsdk-trading-and-data/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.Use 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, TqTradingUnit, OTG account classes, and TqMultiAccount.TqScenario, real-account margin-rate lookup, margin occupancy calculation, risk-ratio what-if analysis, and limited built-in margin discount rules.insert_order, cancel_order, TargetPosTask, support_open_min_volume, TargetPosScheduler, Twap, and advanced execution helpers.Quote, K-line or tick rows, Account, Position, Order, Trade, or their stock variants.query_quotes(..., expired=False), query_options(..., expired=False), or a main-contract symbol before using it.KQ.m@SHFE.rb for market-data and historical-download examples when the user does not need a tradable delivery month.TargetPosTask, and margin examples.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.TargetPosTask(..., support_open_min_volume=True) only for contracts with exchange minimum opening size rules when approximate completion is acceptable.TargetPosScheduler plus twap_table or vwap_table from tqsdk.algorithm for scheduled execution.TargetPosScheduler(..., support_open_min_volume=True) when the scheduled execution targets a contract with exchange minimum opening size rules.tqsdk.algorithm.Twap(..., support_open_min_volume=True) only when the user asks for the older/direct TWAP helper; note that it is not for backtest.InsertOrderTask and InsertOrderUntilAllTradedTask as internal or advanced helpers, not the default answer.TqScenario for synchronous what-if margin and risk trials, not for live order placement. It is futures-only, single-account, and updates the trial snapshot immediately after each call.TqScenario answer:account=None or TqSim() uses Quote margin data.TqAccount(...) or TqKq() queries account-specific rates synchronously and may fall back to Quote margin if lookup fails.TqScenario object for step-by-step trial actions, and do not promise broker-specific preferential rules beyond the limited built-in rules modeled by TqSdk.TqScenario. For SHFE or INE futures, keep CLOSE versus CLOSETODAY consistent with the imported position snapshot.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.TqScenario, say what snapshot goes into positions, what balance goes into init_balance, and whether the result comes from quote margin or account-specific margin rates.© shinnytech, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 11 other files (references) in doc/ai_editor/skills/tqsdk-trading-and-data of shinnytech/tqsdk-python.
Open the folder on GitHubat commit 78c9922
TqSdk Trading and Data next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| TqSdk Trading and Data this skillshinnytech/tqsdk-python | 5.1k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| CCXT Crypto Exchange Library2025Emma/vibe-coding-cn | 23k | 1 repos | ~4.4k | Automated safety check: Pass | MIT | |
| Tiger Brokers OpenAPI SDKqusong0627/QuantMind | 1.7k | — | ~1.4k | Automated safety check: Pass | Apache-2.0 | |
| Backtest DiagnosisHKUDS/Vibe-Trading | 35k | — | ~1.2k | Automated safety check: Pass | MIT | |
| Vibetrading Code GenLeoYeAI/openclaw-master-skills | 2.2k | — | ~5.7k | Automated safety check: Pass | MIT | |
| Polymarket Tennislivetennisapi/livetennisapi-mcp | 152 | — | ~3k | Automated safety check: Pass | MIT |
2025Emma/vibe-coding-cn
Reference help for the CCXT library covering crypto exchange APIs, market data, trading and order management across 150+ exchanges in JavaScript, Python and PHP.
qusong0627/QuantMind
Covers the Tiger Brokers OpenAPI Python SDK for market data, stock, futures and options trading, push subscriptions, a CLI and an MCP server, defaulting to paper trading.
HKUDS/Vibe-Trading
Finds why a trading backtest crashed or gave odd results, sorts the cause into a runtime, logic or data error, fixes the code and checks the rerun metrics.
LeoYeAI/openclaw-master-skills
Generate executable Hyperliquid trading strategy code from natural language prompts.
livetennisapi/livetennisapi-mcp
Build observe-only Polymarket and Kalshi tennis market tooling on the polymarket-tennis Python package (MIT) plus the Live Tennis API free tier.
marketcalls/openalgo
Bump a version in the OpenAlgo repo. An agent skill from marketcalls/openalgo.
Works with
Categories
Answers TqSdk Python questions on market data, accounts, orders, margin trials, simulation and backtesting, using the library's own docs and examples. The skill answers TqSdk questions from the library's real APIs, docs and examples, preferring minimal runnable snippets and keeping futures and stock behavior separate. Whenever a problem depends on `wait_update()`, it explains the update loop explicitly, and before writing code it identifies the task mode: market data only, local simulation, quick simulation, real account, stock or futures trading, backtest or margin trial.
TqSdk Trading and Data fits situations like: debugging a TqSdk strategy that stalls or never updates in its wait_update loop; downloading historical K-line or tick data with TqSdk; choosing between TqSim, TqKq and real-account classes; placing, cancelling or adjusting positions with TargetPosTask.
Run `npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a claude-code`. Or copy the skill folder (doc/ai_editor/skills/tqsdk-trading-and-data in shinnytech/tqsdk-python) into .claude/skills/tqsdk-trading-and-data in your project. Claude Code loads it when a task matches its description.
Run `npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a codex`. Or copy the skill folder (doc/ai_editor/skills/tqsdk-trading-and-data in shinnytech/tqsdk-python) into .agents/skills/tqsdk-trading-and-data in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shinnytech/tqsdk-python --skill tqsdk-trading-and-data -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/tqsdk-trading-and-data, .gemini/skills/tqsdk-trading-and-data, .github/skills/tqsdk-trading-and-data and .opencode/skills/tqsdk-trading-and-data in your project.
SKILL.md names no scripts, command-line tools or credentials: TqSdk Trading and Data is instructions for the agent only. Our summary lists: Python with the TqSdk library.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
TqSdk Trading and Data is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 13k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with TqSdk Trading and Data: CCXT Crypto Exchange Library (2025Emma/vibe-coding-cn, 23k stars), Tiger Brokers OpenAPI SDK (qusong0627/QuantMind, 1.7k stars), Backtest Diagnosis (HKUDS/Vibe-Trading, 35k stars) and Vibetrading Code Gen (LeoYeAI/openclaw-master-skills, 2.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
shinnytech (a GitHub organization) maintains it in shinnytech/tqsdk-python, which has 5,070 GitHub stars. The repository was last updated on August 18, 2026.
Source: shinnytech/tqsdk-python on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.