Skip to content

[Binance] Nautilus rejects a new '测试' symbol on Binance Futures testnet #3053

@siman

Description

@siman

BinanceFuturesInstrumentProvider fails when loading all instruments from testnet.

Error:

[INFO] BACKTESTER-001.BinanceFuturesInstrumentProvider: Loading all instruments...

thread '<unnamed>' panicked at crates/model/src/types/currency.rs:102:74:
Condition failed: invalid string for 'code' contained a non-ASCII char, was '测试'
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fish: Job 1, 'python scripts/nautilus/run_bac…

What happened?

Looks like somebody added a new symbol 测试 (non-ASCII chars) to testnet of Binance Futures. And now Rust code fails when tries to parse the list of available symbols.

Metadata

Metadata

Assignees

Labels

improvementImprovement to existing functionality

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions