lib/utils.rb in SimBot-0.1.28 vs lib/utils.rb in SimBot-0.1.29
- old
+ new
@@ -111,11 +111,11 @@
return hash['data']['quotes']['ETH']['price'].to_f.round(4)
end
# fetch binance order book
# @return [float] rate
- def self.binane_order_book
- response = RestClient.get('https://api.binance.com/api/v1/depth?symbol=BTCUSDT&limit=500')
+ def self.binance_order_book
+ response = RestClient.get('https://api.binance.com/api/v1/depth?symbol=BCCBTC&limit=500')
hash = JSON.parse(response.body)
bids = hash['bids']
asks = hash['asks']
{ bids: bids, asks: asks }
end