跳到主内容
@wquguru
精选88ccxt(GitHub Releases)语言与库

ccxt v4.5.89:废弃 okx uly 参数,重构 request 接口并新增多项交易所功能

v4.5.89

原文
发到 X
推荐理由

本次更新涉及 okx 参数废弃与 base 层接口重构,属于破坏性变更。使用 ccxt 对接 okx 或自定义封装底层请求的开发者必须检查代码以适配新签名逻辑,否则将导致调用失败。

What's Changed

已更改的内容

  • api argument: always string[] across all exchanges by @carlotestor in #30856
  • refactor(base): drop unused headers/body args from request, fetch2 and sign by @carlotestor in #30838
  • chore(deps): bump rustls from 0.23.40 to 0.23.45 in /examples/rust by @dependabot[bot] in #30779
  • chore(deps): patch source-map-js, next, sharp, compression, postcss-selector-parser in docs and examples by @kroitor in #30871
  • fix(python): count aiohttp per-message overhead when draining ws buffer by @carlotestor in #30877
  • feat(networks): single unified network code per network + NetworkCode type by @carlotestor in #30848
  • fix: remove obsolete props by @ttodua in #30868
  • docs(krakenfutures): replace dead doc links in urls.doc and five methods by @rayBastard in #30879
  • feat(paradex): watchMyTrades, watchPositions and watchBalance over ws by @amayvs in #30880
  • fix(gate): leverage tier currency is settle, not base by @carlotestor in #30870
  • fix(bingx): watchMyTrades sends empty frame on private swap stream by @carlotestor in #30834
  • fix(okx): send instFamily instead of deprecated uly in fetchMarketLeverageTiers by @carlotestor in #30863
  • fix(gate): fetch actual leverage tiers for all contracts by @Grivn in #30882
  • feat: add L3 orderbook type by @ttodua in #30855
  • binance: 'future' means dated contracts only; USDⓈ-M = swap + linear by @carlotestor in #30858
  • fix(bybit): read leverage tier symbol from the tier row by @carlotestor in #30867
  • fix(bingx): sign the transfer supportCoins endpoint by @AresArtemius in #30883
  • fix(nado): declare the features block for spot and swap markets by @rayBastard in #30887
  • fix(toobit): read last price from the 'p' field by @rayBastard in #30851
  • feat(poloniex): add fetchTransfer and fetchTransfers by @rayBastard in #30853
  • fix(lighter): allow fetchOrderBook limit up to 250 by @rayBastard in #30852
  • fix(bittrade): map "trade not open now" to BadSymbol (REST + WS) by @carlotestor in #30894
  • fix(mexc): raise NotSupported from the market-type guards by @rayBastard in #30884
  • fix(modetrade): derive market active flag from the status field by @rayBastard in #30878
  • feat(bingx): add fetchBidsAsks by @AresArtemius in #30895
  • fix(poloniex): skip ws order book deltas when the stored book is undefined by @carlotestor in #30893
  • fix(bittrade): guard ws order book handlers against a missing book by @carlotestor in #30892
  • docs: remove orjson README section, halve Order Router manual section by @carlotestor in #30890
  • refactor: remove incorrect .has values by @ttodua in #30866
  • fix(okx): load markets in watchTicker, watchMarkPrice and watchFundingRate by @rayBastard in #30872
  • feat(base): derive isolated position fields in safePosition and add position relationship tests by @carlotestor in #30873
  • fix: reduce recurring live-test failures (Go nil headers, bithumb/foxbit/weex/xt/bitfinex/coinbase/woo/blofin/cex/independentreserve, wtfs harness, skips) by @carlotestor in #30906
  • fix(toobit): fetchMarkOHLCV and fetchIndexOHLCV returned no candles by @rayBastard in #30912
  • feat(modetrade): add fetchTicker and fetchTickers by @rayBastard in #30903
  • refactor(gate): support decimal swap contract sizes when enable_decimal is true by @carlotestor in #30911
  • fix(toobit): parse bid and ask in fetchTicker and fetchTickers by @wavebyrd in #30899
  • feat(backpack): stock support by @Dan-krm in #30901
  • chore(bingx): refresh the stale test skips by @AresArtemius in #30909
  • fix(gate): resolve testnet ws market type in getMarketTypeByUrl by @carlotestor in #30898
  • feat(okx): editOrders, fetchMySettlementHistory + oco, settlement and ws fixes by @carlotestor in #30914
  • fix(bingx): parse the order fee cost as a number by @AresArtemius in #30910
  • fix(hyperliquid): transfer between main <> subAccount by @carlosmiei in #30920
  • api 参数:在所有交易所中始终为 string[],由 @carlotestor 在 #30856 中贡献
  • 重构(base):从 request、fetch2 和 sign 中移除未使用的 headers/body 参数,由 @carlotestor 在 #30838 中贡献
  • 依赖项维护(deps):在 /examples/rust 中将 rustls 从 0.23.40 升级至 0.23.45,由 @dependabot[bot] 在 #30779 中贡献
  • 依赖项维护(deps):在 docs 和 examples 中修补 source-map-js、next、sharp、compression、postcss-selector-parser,由 @kroitor 在 #30871 中贡献
  • 修复(python):在排空 ws 缓冲区时计算 aiohttp 的逐消息开销,由 @carlotestor 在 #30877 中贡献
  • 功能(networks):每个网络使用单一统一的网络代码 + NetworkCode 类型,由 @carlotestor 在 #30848 中贡献
  • 修复:移除过时的属性,由 @ttodua 在 #30868 中贡献
  • 文档(krakenfutures):替换 urls.doc 中的失效文档链接及五个方法,由 @rayBastard 在 #30879 中贡献
  • 功能(paradex):通过 ws 实现 watchMyTrades、watchPositions 和 watchBalance,由 @amayvs 在 #30880 中贡献
  • 修复(gate):结算货币是 settle,而非 base,由 @carlotestor 在 #30870 中贡献
  • 修复(bingx):watchMyTrades 在私有合约流上发送空帧,由 @carlotestor 在 #30834 中贡献
  • 修复(okx):在 fetchMarketLeverageTiers 中发送 instFamily 而非已弃用的 uly,由 @carlotestor 在 #30863 中贡献
  • 修复(gate):获取所有合约的实际杠杆层级,由 @Grivn 在 #30882 中贡献
  • 功能:添加 L3 订单簿类型,由 @ttodua 在 #30855 中贡献
  • binance:'future' 仅指有期限的合约;USDⓈ-M = 永续合约 + 线性合约,由 @carlotestor 在 #30858 中贡献
  • 修复(bybit):从层级行读取杠杆层级符号,由 @carlotestor 在 #30867 中贡献
  • 修复(bingx):对 transfer supportCoins 端点进行签名,由 @AresArtemius 在 #30883 中贡献
  • 修复(nado):声明现货和合约市场的 features 块,由 @rayBastard 在 #30887 中贡献
  • 修复(toobit):从 'p' 字段读取最新价格,由 @rayBastard 在 #30851 中贡献
  • 功能(poloniex):添加 fetchTransfer 和 fetchTransfers,由 @rayBastard 在 #30853 中贡献
  • 修复(lighter):允许 fetchOrderBook 的 limit 最大为 250,由 @rayBastard 在 #30852 中贡献
  • 修复(bittrade):将“交易当前未开放”映射为 BadSymbol(REST + WS),由 @carlotestor 在 #30894 中贡献
  • 修复(mexc):在市场类型守卫中抛出 NotSupported 异常,由 @rayBastard 在 #30884 中贡献
  • 修复(modetrade):由 @rayBastard 在 #30878 中根据 status 字段推导市场活跃标志
  • 功能(bingx):由 @AresArtemius 在 #30895 中添加 fetchBidsAsks
  • 修复(poloniex):由 @carlotestor 在 #30893 中,当存储的订单簿为 undefined 时跳过 ws 订单簿增量更新
  • 修复(bittrade):由 @carlotestor 在 #30892 中,防止 ws 订单簿处理器因缺少订单簿而报错
  • 文档:由 @carlotestor 在 #30890 中移除 orjson README 部分,并将 Order Router 手册部分减半
  • 重构:由 @ttodua 在 #30866 中移除错误的 .has 值
  • 修复(okx):由 @rayBastard 在 #30872 中在 watchTicker、watchMarkPrice 和 watchFundingRate 中加载市场数据
  • 功能(base):由 @carlotestor 在 #30873 中在 safePosition 中推导隔离仓位字段并添加仓位关系测试
  • 修复:由 @carlotestor 在 #30906 中减少重复性实时测试失败(Go nil headers、bithumb/foxbit/weex/xt/bitfinex/coinbase/woo/blofin/cex/independentreserve、wtfs 测试框架、跳过项)
  • 修复(toobit):由 @rayBastard 在 #30912 中修复 fetchMarkOHLCV 和 fetchIndexOHLCV 未返回K线的问题
  • 功能(modetrade):由 @rayBastard 在 #30903 中添加 fetchTicker 和 fetchTickers
  • 重构(gate):由 @carlotestor 在 #30911 中,当 enable_decimal 为 true 时支持小数形式的合约规模
  • 修复(toobit):由 @wavebyrd 在 #30899 中解析 fetchTicker 和 fetchTickers 中的买一价和卖一价
  • 功能(backpack):由 @Dan-krm 在 #30901 中添加股票支持
  • 杂项(bingx):由 @AresArtemius 在 #30909 中刷新过时的测试跳过项
  • 修复(gate):由 @carlotestor 在 #30898 中在 getMarketTypeByUrl 中解决测试网 ws 市场类型问题
  • 功能(okx):由 @carlotestor 在 #30914 中实现 editOrders、fetchMySettlementHistory + oco,以及结算和 ws 修复
  • 修复(bingx):由 @AresArtemius 在 #30910 中将订单手续费成本解析为数字
  • 修复(hyperliquid):由 @carlosmiei 在 #30920 中实现主账户与子账户之间的资金划转

New Contributors

新贡献者

  • @Grivn made their first contribution in #30882
  • @wavebyrd made their first contribution in #30899
  • @Grivn 在 #30882 中完成了首次贡献
  • @wavebyrd 在 #30899 中完成了首次贡献

Full Changelog: v4.5.88...v4.5.89

完整更新日志:v4.5.88...v4.5.89

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

关联信息,但可能不是同一事件