Class: MaxExchangeApi::PrivateApi

Inherits:
BaseApi
  • Object
show all
Defined in:
lib/max_exchange_api/private_api.rb

Direct Known Subclasses

PrivateV2Api, PrivateV3Api

Instance Attribute Summary collapse

Attributes inherited from BaseApi

#config

Instance Method Summary collapse

Constructor Details

#initialize(access_key, secret_key, config: nil) ⇒ PrivateApi

Returns a new instance of PrivateApi.



9
10
11
12
13
14
15
# File 'lib/max_exchange_api/private_api.rb', line 9

def initialize(access_key, secret_key, config: nil)
  super(config: config)

  @access_key = access_key
  @secret_key = secret_key
  @base_path = URI.parse(self.class.base_uri).path
end

Instance Attribute Details

#current_sub_account_snObject

Returns the value of attribute current_sub_account_sn.



7
8
9
# File 'lib/max_exchange_api/private_api.rb', line 7

def 
  @current_sub_account_sn
end