Skip to content

🔴 Binance remove support for backwards compatible defaultType #20361

Open
@frosty00

Description

@frosty00

We will remove support for the backwards compatible Binance defaultType. So in the future the following backwards compatible code will no longer work:


$${\textbf{\color{red}↓ ↓ ↓ DEPRECATED ↓ ↓ ↓}}$$

binance.options['defaultType'] = 'future'
binance.options['defaultType'] = 'delivery'

$${\textbf{\color{red}↑ ↑ ↑ DEPRECATED ↑ ↑ ↑}}$$


Use either the unified defaultSubTypes and defaultTypes or use the unified symbols:

binance.options['defaultType'] = 'swap'
binance.options['defaultSubType'] = 'linear'
binance.options['defaultSubType'] = 'inverse'

DO NOT USE the market ids like 'ETHUSDT' to reference a swap market with the old defaultType of future and delivery

Use the unified market symbols such as 'ETH/USDT:USDT' where possible to avoid any conflicts between spot and swap markets

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions