I don't have permission to use getQuote API endpoint and make Convert requests

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.’}

I’ve seen a lot of responses about similar issues saying that the signature is wrong but I’ve copied/pasted the example available here: https://github.com/binance/binance-signature-examples/blob/master/python/spot/spot.py and it works fine with the endpoint “GET /sapi/v1/convert/assetInfo” which also requires a signature.

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:

My question is, how can I get authorized to make convert requests?

Yes, I’ve got the access. It took a week for them to reply.

2 Likes

Amazing! Day 8 just begun so it should be any day now :smiley: thanks man!

Btw. Did you figure how we can use the Convert API to create Limit Convert orders like on the website? Or can we only make market orders? I couldnt find anything about the limit orders in the documentation:
https://binance-docs.github.io/apidocs/spot/en/#convert-endpoints

1 Like

Hi, is it possible to speed up process? Or is there any way to contact real people support from Binance?

1 Like

@Vladimir_Katrina i dont know man, i want to contact the binance people too, who may be responsible for this. Still have no access… they wrotr as an information during the application that the waiting period may go up to 14 days…

1 Like

Hi,

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?

Hi jonte,

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.

In case it helps, here is my python code:

    print(getBalance("USDT"))

    # Test if signature is correct
    response = send_signed_request("GET", "/api/v3/account")
    print(response['makerCommission'])

    # Send quote request (USER_DATA)
    params = {
        "fromAsset": "USDT",
        "toAsset": "BTC",
        "fromAmount": 11,
    }
    response = send_signed_request("POST", "/sapi/v1/convert/getQuote", params)
    print(response)

And here is the exact output:

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&timestamp=1687341092269&signature=56c0e94a50446765c3ffe804ca4e91db995a1de238f04cf8ab7cafbd1d8fd321
{'code': -1002, 'msg': 'You are not authorized to execute this request.'}

Damn, did I fall into the Abyss? x’)

By the way, I didn’t see the convert/getOrder request in the Binance Python Connector: https://github.com/binance/binance-connector-python

Is it missing because the endpoint just… doesn’t work?

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.

1 Like

did you get access? i have been waiting for 5 days now, they said it could go up to 14 days… how long did it take for you to get access?

@cristalgrip I can’t find the reply button in the proper place…
Regarding your question, that’s something I would like to do as well, but couldn’t figure out how to do it. I wonder if it is really possible.

@edhowler @Vladimir_Katrina guys just got the access! :smiley:

Wow, great. After how many working days?

@Vladimir_Katrina must be around 10 business days (12 weekdays)

1 Like