Method: Binance::Client::REST#initialize
- Defined in:
- lib/binance/client/rest.rb
#initialize(api_key: '', secret_key: '', adapter: Faraday.default_adapter) ⇒ REST
Returns a new instance of REST.
14 15 16 17 18 19 20 21 22 |
# File 'lib/binance/client/rest.rb', line 14 def initialize(api_key: '', secret_key: '', adapter: Faraday.default_adapter) @clients = {} @clients[:public] = public_client adapter @clients[:verified] = verified_client api_key, adapter @clients[:signed] = signed_client api_key, secret_key, adapter @clients[:withdraw] = withdraw_client api_key, secret_key, adapter @clients[:public_withdraw] = public_withdraw_client adapter end |