Class: Bitmex::Apikey
Overview
Persistent API Keys for Developers
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
Attributes inherited from Base
Instance Method Summary collapse
-
#all ⇒ Array
Get your API Keys.
-
#disable ⇒ Object
NOT SUPPORTED.
-
#enable ⇒ Object
NOT SUPPORTED #return 403 Access Denied.
-
#initialize(rest, api_key = nil) ⇒ Apikey
constructor
Create new Apikey.
Constructor Details
#initialize(rest, api_key = nil) ⇒ Apikey
Create new Apikey
10 11 12 13 |
# File 'lib/bitmex/apikey.rb', line 10 def initialize(rest, api_key = nil) super rest @api_key = api_key end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
5 6 7 |
# File 'lib/bitmex/apikey.rb', line 5 def api_key @api_key end |
Instance Method Details
#all ⇒ Array
Get your API Keys
17 18 19 20 21 |
# File 'lib/bitmex/apikey.rb', line 17 def all rest.get apikey_path, auth: true do |response| response_handler response end end |
#disable ⇒ Object
NOT SUPPORTED
33 34 35 36 37 |
# File 'lib/bitmex/apikey.rb', line 33 def disable rest.post apikey_path(:disable) do |response| response_handler response end end |
#enable ⇒ Object
NOT SUPPORTED #return 403 Access Denied
25 26 27 28 29 |
# File 'lib/bitmex/apikey.rb', line 25 def enable rest.post apikey_path(:enable) do |response| response_handler response end end |