Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Spot Test Network #409

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Conversation

ch1ll0ut1
Copy link

@ch1ll0ut1 ch1ll0ut1 commented Mar 2, 2024

Summary

  • Adds support for spot test network to REST and Websocket clients.
  • Implement futures test net change "The Websocket baseurl for testnet is updated to "wss:https://fstream.binancefuture.com""

Additional Infos

Official resource from binance: https://testnet.binance.vision

Copy link
Owner

@tiagosiebler tiagosiebler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spending time on this. One small request about the never type, otherwise this looks good to me!

src/websocket-client.ts Outdated Show resolved Hide resolved
src/websocket-client.ts Show resolved Hide resolved
Copy link
Owner

@tiagosiebler tiagosiebler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking change on the MIN_NOTIONAL vs NOTIONAL filter type. Please also increase the version number in the package.json. Thanks.

@@ -280,9 +281,11 @@ export interface SymbolLotSizeFilter {
}

export interface SymbolMinNotionalFilter {
filterType: 'MIN_NOTIONAL';
filterType: 'NOTIONAL';
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change, MIN_NOTIONAL is definitely there for futures:
https://binance-docs.github.io/apidocs/futures/en/#filters

and for spot as well:
https://binance-docs.github.io/apidocs/spot/en/#filters

Seems I don't have an interface yet for filterType: 'NOTIONAL', I'd welcome a change to add it, but it should not be at the cost of removing the existing SymbolMinNotionalFilter interface. You can make a new one such as SymbolNotionalFilter, but please revert this breaking change.

@tiagosiebler tiagosiebler marked this pull request as draft March 19, 2024 22:13
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.

None yet

2 participants