Skip to content

v2.0.1 - CI fixes, ruff format, bilingual docs

Choose a tag to compare

@cloudQuant cloudQuant released this 22 Apr 00:42
· 45 commits to dev since this release

v2.0.1 - CTP Plugin Update

Changes

  • CI workflow fixes: Fixed ${}→${{}} syntax, added tags: [v*] trigger, reduced test matrix to ubuntu-3.11
  • Ruff formatting: Added ruff config to pyproject.toml, formatted all 35 source files (double→single quotes)
  • README update: Replaced CTPApi with correct CtpGatewayAdapter class, full bilingual (EN/ZH) API documentation
  • Expanded docs/index.md: Bilingual API reference with constructor params, place_order/cancel_order payload formats, feed/container class tables
  • mkdocs.yml: Added i18n plugin for EN/ZH language switching

API Changes

  • Gateway class: CtpGatewayAdapter (not CTPApi)
  • Exchange code: CTP___FUTURE
  • Supported exchanges: SHFE, DCE, CZCE, CFFEX, INE, GFEX
  • Methods: connect(), disconnect(), subscribe_symbols(), get_balance(), get_positions(), place_order(), cancel_order()

PyPI Publish

⚠️ PyPI publish step requires PYPI_TOKEN secret scoped to bt_api_ctp. See https://pypi.org/manage/account/tokens/