Sha256: 8be911f482dfd6f328e09fcf7bed3a0f8892a1d5324cf2f2cdaf62226cc9e39b
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
require 'binance_api/version' require 'binance_api/rest' require 'binance_api/wapi' require 'binance_api/stream' require 'yaml' module BinanceAPI class << self def rest @rest ||= BinanceAPI::REST.new end def wapi @wapi ||= BinanceAPI::WAPI.new end attr_writer :recv_window def recv_window @recv_window || 5000 end def load_config YAML.load_file(File.join(BinanceAPI.root, 'config', 'config.yml')) end def root File.expand_path('../..', __FILE__) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
binance_api-1.0.0 | lib/binance_api.rb |