Hey everyone, I'm looking for a bit of help with the cryptsy API & hoping someone can help
I am able to retrieve single markets and display but am stumped on how to display multiple markets on a webpage.
Can someone PM me the code to make this happen?
Thanks so much
All markets are accessible through their public API:
https://www.cryptsy.com/pages/publicapiYou can get all market data by hitting this URL:
http://pubapi.cryptsy.com/api.php?method=marketdatav2Then you would simply navigate the returned object and only pull out the markets you're interested in displaying.
Alternatively, you could call each individual market you're wanting to display by hitting this URL:
http://pubapi.cryptsy.com/api.php?method=singlemarketdata&marketid=252You'd just need to trawl through the list of all markets and find the market ID's of the markets you're wanting to display.
This method is probably not recommended though because you would have to make multiple CURL requests or however you're talking to the API which would slow down your page load.
You're better off using the first method and getting the whole lot in one go and just trimming it down to your required markets, even though that will mean you're grabbing a lot of info you're not displaying.
What language is your website built in? PHP?