Closed ItsNash0 closed 3 years ago
added positionRisk endpoint, useful to know without making a slow call to account information to get the data about a position on a certain symbol
Thank you for your commits
Can you undo this commit please? the V2 endpoint causes 404's on orders queries. Changing this back to v1 solves it. I haven't checked Binance's release notes myself but maybe someone should before changing the endpoint to v2 :D
Also, please let me know if you want me to create a PR.
Can you undo this commit please? the V2 endpoint causes 404's on orders queries. Changing this back to v1 solves it. I haven't checked Binance's release notes myself but maybe someone should before changing the endpoint to v2 :D
Also, please let me know if you want me to create a PR.
Or I do a version control, the default is V1, v2 can be set by setting.Do you think this is okay?
//You can set special needs
$binance->setOptions([
//Set the request timeout to 60 seconds by default
'timeout'=>10,
//https://github.com/guzzle/guzzle
'proxy'=>[],
//https://www.php.net/manual/en/book.curl.php
'curl'=>[],
//default is v1
'version'=>'v2',
]);
ooh yeah, even better
ooh yeah, even better I have released version 2.2.0, it defaults to v1, you can
$binance->setOptions([ //default is v1 //'version'=>'v2', ]);
@ItsNash0
didn't check if there are any new parameters or changes required for V2, just renamed the api endpoints