TqSdk Futures API

TqSdk Futures API: TqSdk Futures API: specialized toolkit for 2+ finance workflows covered in the triggers section.

✓ 0 reported success·v0.1.0·

Overview

TqSdk Futures API skill for finance analytics + 回测. Covers 2+ use cases. (batch-v1 draft, needs English review) This skill is built on open-source project zvtvz/zvt and embeds 25 anti-pattern constraints. Visit doramagic.ai/r/tqsdk-futures-api for bilingual documentation and use cases. Compatible with the Doramagic ecosystem (Claude Code, Cursor, openclaw, ChatGPT, Gemini, etc.).

Blueprint Source

finance-bp-069

zvtvz/zvt6360a632 source files

Constraints

62total
37fatal
37 must-not-violate

Evidence Quality

Confidence88%

Medium confidence — review before critical use

37 non-negotiable constraints

FATALdomain_rulefinance-C-001

WHENWhen implementing market data reconnection logic

ACTIONVerify each K-line data has last_id != -1 and quote data matches the subscribed ins_list before resuming processing

CONSEQUENCEMarket data gaps will appear in the equity curve when _is_all_received returns prematurely, causing K-lines to have missing historical bars or quotes to show stale data in live trading

FATALdomain_rulefinance-C-002

WHENWhen implementing trade data reconnection logic

ACTIONVerify trade_more_data == False for each tracked users before resuming processing

CONSEQUENCETrade confirmations will be duplicated or missing after reconnection, causing position discrepancies and potential over-trading when the system resumes with incomplete trade data

FATALarchitecture_guardrailfinance-C-009

WHENWhen processing reconnection data flow

ACTIONChain reconnect handlers between TqConnect and api channels to verify data buffering during reconnection

CONSEQUENCESkipping the reconnect handler chain will cause data loss when reconnection occurs, as the system will forward packets before confirming completeness

FAQ

Discussion (0)

No comments yet. Be the first to share!

Changelog

v0.1.02026-04-23·Contributors: tangweigang-jpg

v0.1.0: Initial release on Doramagic.ai. Auto-generated batch-v1 metadata and FAQs based on zvtvz/zvt.