GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Teaching myself API part 2. - Fiat to Crypto problem (https://gfy.com/showthread.php?t=1365336)

notinmybackyard 06-01-2023 01:30 PM

Teaching myself API part 2. - Fiat to Crypto problem
 
I know that there's already another thread on this. But it's kind of polluted and I'm easily distracted. Plus, I like to think someone else might be learning from my questions.

The api docs clearly mention being able to perform a fiat exchange, however there are no examples offered of actually doing so.

Replacing the "currency from" field provided in their example with "fiat" or "USD" only wields a 404 error.

It seems making a usd to crypto exchange requires some more involved changes to the POST request, but they failed to properly document it when they added that feature.
I have even gone to the length of sending a GET request to /get_all_currencies; returning a list of all offered currencies. I had hopped they simply gave USD a weird name causing the aforementioned 404 error.

Disappointingly I was able to find USD correctly listed as USD


https://api.simpleswap.io/#/Exchange...createExchange
https://i.imgur.com/UmfYqLM.png

The error
https://i.imgur.com/ckm67ya.png

NoWhErE 06-01-2023 01:42 PM

From what I can tell, the problem is most likely that they don't have "USD" as a currency. Try "USDT" or a similar tether token instead.

Or try an API call with /get_call_currencies to confirm if "USD" is one of their currencies.

notinmybackyard 06-01-2023 03:45 PM

Quote:

Originally Posted by NoWhErE (Post 23140055)
Or try an API call with /get_call_currencies to confirm if "USD" is one of their currencies.

The get call was the 1st thing I tried. ** Scroll up **

I'm having problems figuring out what I should try next.


All times are GMT -7. The time now is 11:02 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc