Class: Bitex::Trade
- Inherits:
-
Object
- Object
- Bitex::Trade
- Defined in:
- lib/bitex/trade.rb
Overview
Utility class for fetching an heterogeneous list of objects that compose your transaction history.
Class Method Summary collapse
-
.all ⇒ Array<Bitex::Buy, Bitex::Sell] Returns an heterogeneous array with all your transactions for the past 30 days sorted by descending date.
Array<Bitex::Buy, Bitex::Sell] Returns an heterogeneous array with all your transactions for the past 30 days sorted by descending date.
Class Method Details
.all ⇒ Array<Bitex::Buy, Bitex::Sell] Returns an heterogeneous array with all your transactions for the past 30 days sorted by descending date.
Array<Bitex::Buy, Bitex::Sell] Returns an heterogeneous array with all your transactions for the past 30 days sorted by descending date.
8 9 10 |
# File 'lib/bitex/trade.rb', line 8 def self.all Api.private(:GET, '/private/trades').map { |t| Api.deserialize(t) } end |