Sha256: f148de555a5eb8a5c7dc194594177a0a79310ee68c914413faef9e257191621c
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
module CryptocoinchartsApi module API def list_coins(options={}) api_call "listCoins", options end def trading_pair(options={}) currency_1 = options.delete(:currency_1) currency_2 = options.delete(:currency_2) api_call "tradingPair/#{currency_1}_#{currency_2}", options end def trading_pairs(pairs) api_call "tradingPairs", pairs, :post end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cryptocoincharts_api-0.0.3 | lib/cryptocoincharts_api/api.rb |
cryptocoincharts_api-0.0.2 | lib/cryptocoincharts_api/api.rb |