Class: Cryptos::Deribit::Client

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/cryptos/deribit/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

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_instrumentsObject



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

#statsObject



25
26
27
# File 'lib/cryptos/deribit/client.rb', line 25

def stats
  execute '/stats'
end