Class: Cryptos::Deribit::Client
- Inherits:
-
Object
- Object
- Cryptos::Deribit::Client
- Includes:
- HTTParty
- Defined in:
- lib/cryptos/deribit/client.rb
Instance Method Summary collapse
- #get_instruments ⇒ Object
- #get_summary(type = :all) ⇒ Object
- #get_trades(type = :all) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #stats ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
9 10 11 |
# File 'lib/cryptos/deribit/client.rb', line 9 def initialize @options = {} end |
Instance Method Details
#get_instruments ⇒ Object
13 14 15 |
# File 'lib/cryptos/deribit/client.rb', line 13 def get_instruments execute '/getinstruments' end |
#get_summary(type = :all) ⇒ Object
21 22 23 |
# File 'lib/cryptos/deribit/client.rb', line 21 def get_summary(type = :all) execute '/getsummary', query: { instrument: type } end |
#get_trades(type = :all) ⇒ Object
17 18 19 |
# File 'lib/cryptos/deribit/client.rb', line 17 def get_trades(type = :all) execute '/getlasttrades', query: { instrument: type } end |
#stats ⇒ Object
25 26 27 |
# File 'lib/cryptos/deribit/client.rb', line 25 def stats execute '/stats' end |