Commit eb430bf3 authored by Sergey Gernyak's avatar Sergey Gernyak

Enhanced initialiser by setting up account manager

parent e690a542
...@@ -16,4 +16,12 @@ BetfairApiNgRails.config do |config| ...@@ -16,4 +16,12 @@ BetfairApiNgRails.config do |config|
config.proxy_enable = false config.proxy_enable = false
# Uncomment next line if you will use go layer and go_enable is set to true # Uncomment next line if you will use go layer and go_enable is set to true
# config.proxy_url = "http://127.0.0.1/" # config.proxy_url = "http://127.0.0.1/"
# Setting up account
BetfairApiNgRails.account_manager.store BetfairApiNgRails::Account.new(config.username,
config.password,
config.application_key,
config.ssl_crt_filepath,
config.ssl_key_filepath)
BetfairApiNgRails.account_manager.default config.username
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment