module TDAmeritrade::Operations::Support::BuildWatchlistItems
Public Instance Methods
build_watchlist_items(symbol_list)
click to toggle source
This gem only supports EQUITY type, even though there is a lot more you can do with the API
# File lib/tdameritrade/operations/support/build_watchlist_items.rb, line 5 def build_watchlist_items(symbol_list) symbol_list.map do |symbol| { "quantity": 0, "averagePrice": 0, "commission": 0, "purchasedDate": (Date.today).strftime('%Y-%m-%d'), "instrument": { "symbol": symbol, "assetType": "EQUITY" } } end end