MtGox's API method 'getTrades' supports parameter 'since' #7

Closed
xHire opened this Issue Aug 14, 2011 · 2 comments

4 participants

@xHire

MtGox's API method 'getTrades' supports parameter 'since' and so should this library. Following code works fine for me (file lib/mtgox/client.rb):

def trades since = nil
  get('/code/data/getTrades.php', since ? { :since => since } : {}).sort_by{|trade| trade['date']}.map do |trade|
    Trade.new(trade)
  end
end
@gutenye

+1

need this feature.

@sferik sferik closed this May 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment