Class: TDAmeritrade::Operations::GetQuotes
- Inherits:
-
BaseOperation
- Object
- BaseOperation
- TDAmeritrade::Operations::GetQuotes
- Defined in:
- lib/tdameritrade/operations/get_quotes.rb
Constant Summary
Constants inherited from BaseOperation
BaseOperation::HTTP_DEBUG_OUTPUT
Instance Attribute Summary
Attributes inherited from BaseOperation
Instance Method Summary collapse
Methods inherited from BaseOperation
Methods included from Util
handle_api_error, parse_json_response, response_success?
Constructor Details
This class inherits a constructor from TDAmeritrade::Operations::BaseOperation
Instance Method Details
#call(symbols: []) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tdameritrade/operations/get_quotes.rb', line 6 def call(symbols: []) params = { apikey: client.client_id, symbol: symbols.join(','), } response = perform_api_get_request( url: "https://api.tdameritrade.com/v1/marketdata/quotes", query: params, ) parse_api_response(response) end |