Class: Bitmex::Stats
Overview
Exchange statistics
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#current ⇒ Array
Get exchange-wide and per-series turnover and volume statistics.
-
#history ⇒ Array
Get historical exchange-wide and per-series turnover and volume statistics.
-
#history_usd ⇒ Array
Get a summary of exchange statistics in USD.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Bitmex::Base
Instance Method Details
#current ⇒ Array
Get exchange-wide and per-series turnover and volume statistics
7 8 9 10 11 |
# File 'lib/bitmex/stats.rb', line 7 def current rest.get stats_path do |response| response_handler response end end |
#history ⇒ Array
Get historical exchange-wide and per-series turnover and volume statistics
15 16 17 18 19 |
# File 'lib/bitmex/stats.rb', line 15 def history rest.get stats_path(:history) do |response| response_handler response end end |
#history_usd ⇒ Array
Get a summary of exchange statistics in USD
23 24 25 26 27 |
# File 'lib/bitmex/stats.rb', line 23 def history_usd rest.get stats_path(:historyUSD) do |response| response_handler response end end |