Skip to content

bytx 0.2.7

Latest

Choose a tag to compare

@byttrade byttrade released this 24 Nov 07:39

New

  • ex.assert_demo(): raises ConfigError unless REST requests of the instance really go to the exchange demo/testnet. It checks the transport, not the demo flag: no REST address of the instance may equal a production address of the exchange, and on OKX and Bitget, where the demo uses the production host, the demo header (x-simulated-trading: 1, paptrading: 1) must be set. No network. Market WS streams are not checked (some demos use production ones).

Docs

  • ex.ccxt is an escape hatch, not the recommended path. Exchange id → symbol: ex.symbol('BTCUSDT'); symbol → id: (await ex.market(symbol)).id; demo check: ex.assert_demo().