CCXT 加密交易接口
CCXT 加密交易接口:CCXT 库统一封装全球主流加密货币交易所的交易 API,支持订单管理、市场行情查询、账户余额监控与自动化借贷等核心操作。 含 13 条反模式约束。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
46 条不可违反的约束
WHENWhen implementing exchange market loading
ACTIONCall load_markets() before any market lookups to verify self.markets is populated
CONSEQUENCEAny attempt to look up a market via this.market(symbol) will fail with 'markets not loaded' ExchangeError, causing all trading operations to break
WHENWhen parsing exchange market data
ACTIONVerify each market dict contains symbol, base, quote, precision, and limits fields with None defaults
CONSEQUENCETrading operations will fail with KeyError when accessing market properties that were not initialized, causing order placement and data retrieval to crash
WHENWhen converting exchange-specific market-ids to unified symbols
ACTIONSend unified symbols directly to exchange API endpoints that require exchange-specific market-ids
CONSEQUENCEExchange will reject requests with invalid symbol format, returning BadSymbol errors and causing all API calls to fail
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 tangweigang-jpg/doramagic-skills 的自动化 batch-v1 元数据 + 自动生成 FAQ。