Skip to content

Commit

Permalink
Merge pull request #9 from arvicco/master
Browse files Browse the repository at this point in the history
Fixed similar issue with history calls silently dropping params
  • Loading branch information
prdn committed Mar 16, 2016
2 parents 9f5c8c3 + 72e0cd5 commit 3477c0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/bitfinex/historical_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module HistoricalDataClient
def history(currency="usd", params = {})
check_params(params, %i{since until limit wallet})
params.merge!({currency: currency})
authenticated_post("history", params).body
authenticated_post("history", params: params).body
end

# View your past deposits/withdrawals.
Expand All @@ -30,7 +30,7 @@ def history(currency="usd", params = {})
def movements(currency="usd", params = {})
check_params(params, %i{method since until limit})
params.merge!({currency: currency})
authenticated_post("history/movements", params).body
authenticated_post("history/movements", params: params).body
end

# View your past trades.
Expand All @@ -47,7 +47,7 @@ def movements(currency="usd", params = {})
def mytrades(symbol, params = {})
check_params(params, %i{until limit_trades reverse timestamp})
params.merge!({symbol: symbol})
authenticated_post("mytrades", params).body
authenticated_post("mytrades", params: params).body
end
end
end

0 comments on commit 3477c0e

Please sign in to comment.