-
Notifications
You must be signed in to change notification settings - Fork 497
feat: demo-trading support added #519
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
base: master
Are you sure you want to change the base?
Conversation
php-binance-api.php
Outdated
| $this->useTestnet = (bool)$param[2]; | ||
| break; | ||
| case 4: | ||
| $useDemo = (bool)$param[3]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yzh-pelle what if the user provides 3 args, (apiKey/secret/demo)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now to enable demo by default we would need to provide also testnet which is a bit weird, maybe we can replace testnet here with demo since testnet is deprecated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Third arg is for testnet. It is not python, args must be queued. We might add more examples for constructor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
right now to enable demo by default we would need to provide also testnet which is a bit weird, maybe we can replace testnet here with demo since testnet is deprecated
Yeah I was thinking about it. We may leave constructor as is, set default testnet url to demo and add method like useOldUrlForTestnet
No description provided.