Module: Bitfinex::RESTv2Stats
- Included in:
- RESTv2
- Defined in:
- lib/rest/v2/stats.rb
Instance Method Summary collapse
-
#stats(symbol = 'fUSD', key = 'funding.size', side = "long", section = "last", size = '1m', params = {}) ⇒ Array
Various statistics about the requested pair.
Instance Method Details
#stats(symbol = 'fUSD', key = 'funding.size', side = "long", section = "last", size = '1m', params = {}) ⇒ Array
Various statistics about the requested pair.
@example:
client.stats('fUSD', 'pos.size')
19 20 21 22 |
# File 'lib/rest/v2/stats.rb', line 19 def stats(symbol = 'fUSD', key = 'funding.size', side = "long", section = "last", size = '1m', params = {}) check_params(params, %i{sort}) get("stats1/#{key}:#{size}:#{symbol}:#{side}/#{section}").body end |