Hey guys, I’m facing a permission issue and I don’t know how to solve it.
I’m trying to convert crypto using the “POST /sapi/v1/convert/getQuote” endpoint has explained in the documentation: https://binance-docs.github.io/apidocs/spot/en/#send-quote-request-user_data
But I get the following error:
{‘code’: -1002, ‘msg’: ‘You are not authorized to execute this request.’}
For me, this is confusing because I can use Convert in the UI so I don’t understand why the API doesn’t let me.
Here are the permissions on my API Key:
I see that you’ve restricted access to trusted IPs. Have you ensured that the IP you’re using to make the request is whitelisted as part of your trusted IPs?
Yes I did and my IP is whitelisted. I can check my balance, check a crypto’s current price, buy and sell crypto but I get this error only on the convert endpoint.
21.05438538
GET https://api.binance.com/api/v3/account?timestamp=1687341091706&signature=f5598d0fce32b11ebf7be45de4976d2beef7eaeb4aa4be488888402797001540
10
POST https://api.binance.com/sapi/v1/convert/getQuote?fromAsset=USDT&toAsset=BTC&fromAmount=11×tamp=1687341092269&signature=56c0e94a50446765c3ffe804ca4e91db995a1de238f04cf8ab7cafbd1d8fd321
{'code': -1002, 'msg': 'You are not authorized to execute this request.'}
Did you answer the questionnaire for asking permission to use the Convert API? Did you get the permission? I want to use it as well, waiting the response for 2 days now.
Would you like to have access to Binance Convert API? Please complete the questionnaire to submit your request for access. The Convert API service is created for users who wish to automate their trading on Binance Convert. You will receive a confirmation email after we have approved your application.