You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to buy BTC, but I only have BRL (Brazilian Real) in my account. Since there is no BTC-BRL trading pair, I assume I must first convert my BRL to USD (or USDC) in order to purchase BTC-USD.
To get a conversion quote, I attempted the following code:
quote=client.create_convert_quote(
from_currency="BRL",
to_currency="USD",
amount="100"# Replace with the amount of BRL you want to convert
)
However, this results in the following error:
requests.exceptions.HTTPError: 400 Client Error: Bad Request {"error":"INVALID_ARGUMENT","error_details":"Unsupported account in this conversion","message":"Unsupported account in this conversion"}
Questions
Is BRL conversion supported via the SDK?
If not, is there an alternative way to convert BRL to USD (or USDC) programmatically?
What is the correct workflow for buying BTC if I only have BRL?
Should I first manually convert BRL to another supported currency?
If so, what endpoints should I use?
Is there a list of supported conversion pairs for create_convert_quote()?
If BRL to USD is not supported, is there a way to retrieve the available conversion paths?
The text was updated successfully, but these errors were encountered:
Thank you for reporting! If this is an SDK specific issue, we will look into it and get back to you soon. If this is an API related request, report it in our Advanced API Discord instead (use this invite link if it's your first time accessing the Discord).
I'm trying to buy BTC, but I only have BRL (Brazilian Real) in my account. Since there is no BTC-BRL trading pair, I assume I must first convert my BRL to USD (or USDC) in order to purchase BTC-USD.
To get a conversion quote, I attempted the following code:
However, this results in the following error:
Questions
Is BRL conversion supported via the SDK?
What is the correct workflow for buying BTC if I only have BRL?
Is there a list of supported conversion pairs for
create_convert_quote()
?The text was updated successfully, but these errors were encountered: