Class: Alpaca::Trade::Api::Configuration
- Inherits:
-
Object
- Object
- Alpaca::Trade::Api::Configuration
- Defined in:
- lib/alpaca/trade/api/configuration.rb
Instance Attribute Summary collapse
-
#data_endpoint ⇒ Object
readonly
Returns the value of attribute data_endpoint.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#key_id ⇒ Object
Returns the value of attribute key_id.
-
#key_secret ⇒ Object
Returns the value of attribute key_secret.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 |
# File 'lib/alpaca/trade/api/configuration.rb', line 10 def initialize @endpoint = 'https://paper-api.alpaca.markets' @data_endpoint = 'https://data.alpaca.markets' @key_id = ENV['ALPACA_API_KEY_ID'] @key_secret = ENV['ALPACA_API_SECRET_KEY'] end |
Instance Attribute Details
#data_endpoint ⇒ Object (readonly)
Returns the value of attribute data_endpoint.
8 9 10 |
# File 'lib/alpaca/trade/api/configuration.rb', line 8 def data_endpoint @data_endpoint end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
7 8 9 |
# File 'lib/alpaca/trade/api/configuration.rb', line 7 def endpoint @endpoint end |
#key_id ⇒ Object
Returns the value of attribute key_id.
7 8 9 |
# File 'lib/alpaca/trade/api/configuration.rb', line 7 def key_id @key_id end |
#key_secret ⇒ Object
Returns the value of attribute key_secret.
7 8 9 |
# File 'lib/alpaca/trade/api/configuration.rb', line 7 def key_secret @key_secret end |