fix: ccxt Gate 类名 gateio 改为兼容 gate

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-04 22:21:33 +08:00
parent 4923b32bbe
commit df28e6dfb8
3 changed files with 15 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
"""Gate.io ccxt 构造(ccxt 4.x 起类名由 gateio 改为 gate)。"""
from __future__ import annotations
import ccxt
def gate_ccxt_class():
"""返回 ccxt Gate 交易所类(兼容旧版 gateio 名称)。"""
return getattr(ccxt, "gate", None) or ccxt.gateio