Method: Kaesen::Lakebtc#ticker
- Defined in:
- lib/kaesen/lakebtc.rb
#ticker ⇒ hash
Get ticker information.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/kaesen/lakebtc.rb', line 42 def ticker h = get_ssl(@url_public + "/ticker") # the id of BTCJPY is 5. h = h["JPY"] { "ask" => BigDecimal.new(h["ask"].to_s), "bid" => BigDecimal.new(h["bid"].to_s), "last" => BigDecimal.new(h["last"].to_s), # "high" # "low" # "volume" "ltimestamp" => Time.now.to_i, # "vwap" } end |