Skip to content

fix: CcxtBroker OKX/Bybit initialization and market fetching#120

Open
HengWeiBin wants to merge 2 commits intoTraderAlice:devfrom
HengWeiBin:fix/ccxt-okx-on-dev
Open

fix: CcxtBroker OKX/Bybit initialization and market fetching#120
HengWeiBin wants to merge 2 commits intoTraderAlice:devfrom
HengWeiBin:fix/ccxt-okx-on-dev

Conversation

@HengWeiBin
Copy link
Copy Markdown

Summary

Fixes several CCXT initialization issues specifically affecting OKX and Bybit.

Changes

  • Pass 'type' in params to fetchMarkets() to fix 'Parameter instType error' on OKX
  • Add safety checks for enableDemoTrading() to prevent 'undefined (reading rest)' crash
  • Map 'sandbox' mode to enableDemoTrading() for OKX and Bybit
  • Ensure sandbox and demoTrading options are applied correctly without conflict

Wei Bin added 2 commits April 12, 2026 20:38
- Pass 'type' in params to fetchMarkets() to fix 'Parameter instType error' on OKX
- Add safety checks for enableDemoTrading() to prevent 'undefined (reading rest)' crash
- Map 'sandbox' mode to enableDemoTrading() for OKX and Bybit
- Ensure sandbox and demoTrading options are applied correctly without conflict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant