Class: TDAmeritrade::Operations::GetWatchlists
- Inherits:
-
BaseOperation
- Object
- BaseOperation
- TDAmeritrade::Operations::GetWatchlists
- Defined in:
- lib/tdameritrade/operations/get_watchlists.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(account_id:) ⇒ Object
6 7 8 9 |
# File 'lib/tdameritrade/operations/get_watchlists.rb', line 6 def call(account_id: ) response = perform_api_get_request(url: "https://api.tdameritrade.com/v1/accounts/#{account_id}/watchlists") parse_api_response(response) end |