class Binance::Authentication

Authentication response to API key and signature

Public Class Methods

new(key, secret) click to toggle source
# File lib/binance/authentication.rb, line 6
def initialize(key, secret)
  @key = key
  @secret = secret
end

Public Instance Methods

key() click to toggle source
# File lib/binance/authentication.rb, line 11
def key
  ENV['BINANCE_PUBLIC_API_KEY'] || @key
end
secret() click to toggle source
# File lib/binance/authentication.rb, line 15
def secret
  ENV['BINANCE_PRIVATE_SECRET'] || @secret
end