Method: Bitfinex::RESTv1HistoricalData#history

Defined in:
lib/rest/v1/historical_data.rb

#history(currency = "usd", params = {}) ⇒ Array

View all of your balance ledger entries.

@example:

client.history

Parameters:

  • currency (string) (defaults to: "usd")

    (optional) Specify the currency, default “USD”

  • params (defaults to: {})

    :since [time] (optional) Return only the history after this timestamp.

  • params (defaults to: {})

    :until [time] (optional) Return only the history before this timestamp.

  • params (defaults to: {})

    :limit [int] (optional) Limit the number of entries to return. Default is 500.

  • params (defaults to: {})

    :wallet [string] (optional) Return only entries that took place in this wallet. Accepted inputs are: “trading”, “exchange”, “deposit”

Returns:

  • (Array)


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