Module: Bitfinex::RESTv1HistoricalData
- Included in:
- RESTv1
- Defined in:
- lib/rest/v1/historical_data.rb
Instance Method Summary collapse
-
#history(currency = "usd", params = {}) ⇒ Array
View all of your balance ledger entries.
-
#movements(currency = "usd", params = {}) ⇒ Array
View your past deposits/withdrawals.
-
#mytrades(symbol, params = {}) ⇒ Array
View your past trades.
Instance Method Details
#history(currency = "usd", params = {}) ⇒ Array
View all of your balance ledger entries.
@example:
client.history
14 15 16 17 18 |
# File 'lib/rest/v1/historical_data.rb', line 14 def history(currency="usd", params = {}) check_params(params, %i{since until limit wallet}) params.merge!({currency: currency}) authenticated_post("history", params: params).body end |
#movements(currency = "usd", params = {}) ⇒ Array
View your past deposits/withdrawals.
@example:
client.movements
30 31 32 33 34 |
# File 'lib/rest/v1/historical_data.rb', line 30 def movements(currency="usd", params = {}) check_params(params, %i{method since until limit since_movement until_movement}) params.merge!({currency: currency}) authenticated_post("history/movements", params: params).body end |
#mytrades(symbol, params = {}) ⇒ Array
View your past trades.
@example:
client.mytrades
47 48 49 50 51 |
# File 'lib/rest/v1/historical_data.rb', line 47 def mytrades(symbol, params = {}) check_params(params, %i{until limit_trades reverse timestamp}) params.merge!({symbol: symbol}) authenticated_post("mytrades", params: params).body end |