Class: FTX::API::Futures
Instance Attribute Summary
Attributes inherited from Base
#config, #key, #secret
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Constructor Details
This class inherits a constructor from FTX::API::Base
Instance Method Details
#funding_rates(query = {}) ⇒ Object
19
20
21
|
# File 'lib/ftx/api/futures.rb', line 19
def funding_rates(query = {})
send_request(:get, '/funding_rates', query)
end
|
#get(futures_name) ⇒ Object
11
12
13
|
# File 'lib/ftx/api/futures.rb', line 11
def get(futures_name)
send_request(:get, "/futures/#{futures_name}", {})
end
|
#list ⇒ Object
7
8
9
|
# File 'lib/ftx/api/futures.rb', line 7
def list
send_request(:get, '/futures', {})
end
|
#stats(futures_name) ⇒ Object
15
16
17
|
# File 'lib/ftx/api/futures.rb', line 15
def stats(futures_name)
send_request(:get, "/futures/#{futures_name}/stats", {})
end
|