Bitcoin Forum
December 04, 2016, 06:25:08 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Comparing APIs from various trading sites  (Read 515 times)
daybyter
Legendary
*
Offline Offline

Activity: 965


View Profile
May 30, 2012, 10:58:43 AM
 #1

Hi!

I'm implementing APIs from several trading sites at the moment. It's a good way to find shortcomings of an API and compare different concept of requests or posts.

I thought it might be helpful to post some of the findings, so site owners can improve their APIs if they are interested. OTOH it might be helpful for implementer to share workarounds for some problems.


As a start, I'll mention the MtGox trades method.

https://en.bitcoin.it/wiki/MtGox/API/HTTP/v1#Multi_currency_trades

It has a filter to fetch all trades since <id>. Problem is, that I'd like to fetch all trades from the last 7 days or so. It would be cool to have a date filter, so you get all the trades since <date>. As an alternative, id could be relative to the current id. So when you pass -100 as the id, you'd get the last 100 trades.
Intersango implements  filters:
https://intersango.com/api.php
and they have a paramter last_trade_date, although I don't understand yet, if you request all trades earlier than this date (not so good, I think) or all trades after that date.

Ciao,
Andreas

Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!