module Bitstamper::Rest::Public::Transactions

Public Instance Methods

find_transaction(transaction_id) click to toggle source
# File lib/bitstamper/rest/public/transactions.rb, line 11
def find_transaction(transaction_id)
  transactions.select { |transaction| transaction.id == transaction_id }&.first
end
transactions(currency_pair = "btcusd", time: :hour) click to toggle source
# File lib/bitstamper/rest/public/transactions.rb, line 6
def transactions(currency_pair = "btcusd", time: :hour)
  response  =   get(path_with_currency_pair("/v2/transactions", currency_pair), params: {time: time})
  Bitstamper::Models::Transaction.parse(response) if response
end