Closed rise0chen closed 1 year ago
export ENDPOINT=binance-u
export INST=BTCUSDT
And, example binance_trade_bid_ask
is work
The correct instrument format is all lowercase and without separators for Binance, like btcusdt
. But it is a problem that it won't throw an error when the format is wrong.
And you can also try the InstrumentsLayer
which will create a conversion layer that can convert between the standard instrument format and the exchange-defined format. You can check the examples for binance and okx. Though there are too many details and not easy to use for now, not until I define the ToExchange
trait.
ok, export INST=btcusdt
is work
The program is blocked on
tickers.next().await
in https://github.com/Nouzan/exc/blob/main/examples/examples/binance_ticker.rs