Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-01-2023, 01:30 PM   #1
notinmybackyard
Confirmed User
 
notinmybackyard's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 3,230
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


The error
__________________
officially retired as of March 01 2018 but still fucking around and getting into shit.
notinmybackyard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2023, 01:42 PM   #2
NoWhErE
Too lazy to set a custom title
 
NoWhErE's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Canada
Posts: 10,223
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.
__________________
skype: lordofthecameltoe
NoWhErE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-01-2023, 03:45 PM   #3
notinmybackyard
Confirmed User
 
notinmybackyard's Avatar
 
Industry Role:
Join Date: Sep 2012
Posts: 3,230
Quote:
Originally Posted by NoWhErE View Post
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.
__________________
officially retired as of March 01 2018 but still fucking around and getting into shit.
notinmybackyard is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
usd, fiat, error, request, exchange, offered, api, crypto, properly, document, feature, added, wields, failed, involved, requires, post, disappointingly, aforementioned, causing, correctly, listed, weird, /get_all_currencies;, returning



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.