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

403 error #37

Open
ynsorer opened this issue Jun 2, 2022 · 2 comments
Open

403 error #37

ynsorer opened this issue Jun 2, 2022 · 2 comments

Comments

@ynsorer
Copy link

ynsorer commented Jun 2, 2022

hello,
i have been using your library for a long time but a problem started. I get 403 error while trading on binance futures.There is no such problem when I try on testnet network. I have no problems when I try other libraries. I am sure my api access is not blocked.I hope you are still here and can support me thank you

@zhouaini528
Copy link
Owner

hello, i have been using your library for a long time but a problem started. I get 403 error while trading on binance futures.There is no such problem when I try on testnet network. I have no problems when I try other libraries. I am sure my api access is not blocked.I hope you are still here and can support me thank you

Thank you for your support and discovery. I will solve this problem

@ynsorer
Copy link
Author

ynsorer commented Jun 3, 2022

Hello again.
I found the cause of the problem. this may be my fault.

$BASE_URL="https://fapi.binance.com/";  look at last slash. the last slash  was causing the 403 error, but why?  I've been using it like this for a long time
$binance=new BinanceFuture($KEY,$SECRET,$BASE_URL);

and i will ask one more thing
Is it possible to use curl class as an alternative to guzzlehttp?
what path should i follow?

thank you and sorry again. I will continue to use your class! its best :)

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

No branches or pull requests

2 participants