algorithmic-trading-python icon indicating copy to clipboard operation
algorithmic-trading-python copied to clipboard

batch api URL

Open inaG17 opened this issue 1 year ago • 3 comments

batch api url changes

inaG17 avatar Mar 17 '23 13:03 inaG17

split stocks to 20

symbol_groups = list(chunks(stocks['Ticker'], 20)) symbol_strings = [] for i in range(0, len(symbol_groups)): symbol_strings.append(','.join(symbol_groups[i])

final_dataframe = pd.DataFrame(columns = my_columns)

for symbol_string in symbol_strings[:1]:

batch_api_call_url = f'https://cloud.iexapis.com/stable/stock/market/batch/types=quote&symbols{symbol_string}&token={IEX_CLOUD_API_TOKEN}'
print(batch_api_call_url)

inaG17 avatar Mar 18 '23 06:03 inaG17

For all the Batch API call errors Follow this thread ------> https://github.com/nickmccullum/algorithmic-trading-python/issues/53#issuecomment-1495485369 I have answered all the errors/changes occuring

rohitx01 avatar Apr 04 '23 07:04 rohitx01

batch_api_call_url = https://cloud.iexapis.com/v1/stock/market/batch?symbols={symbol_string}&types=quote&token={IEX_CLOUD_API_TOKEN}

This works for me. Following this links: https://stackoverflow.com/questions/56806064/how-to-call-multiple-quotes-from-iex-cloud-api

Hongyac avatar Apr 05 '23 19:04 Hongyac