Answers for "IEX charts ruby on rails"

0

gem 'iex-ruby-client' how to set up

# Use initializer by creating a config file(i.e: iex_client.rb) under the directory /config/initializers and add:

Configure IEX::Api.configure do |config|
  config.publishable_token = 'token' # defaults to 
  ENV['IEX_API_PUBLISHABLE_TOKEN']
  config.endpoint = 'https://sandbox.iexapis.com/v1' # defaults to 
  'https://cloud.iexapis.com/v1'
end 

# You probably need to replace token with a correct one. You also need to make sure to require the library wherever you wanna use it.
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language