Open mattcam3r0n opened 5 years ago
Hi, thanks for your work on this. I've found it very helpful.
buildBatchQuery() in utilities/index.js is using filters (plural) in the query string while the api seems to want filter (singular).
Status 400 example (generated by node-iex): https://api.iextrading.com/1.0/stock/market/batch?symbols=MSFT,T&types=quote,stats&range=1m&filters=latestPrice,change,changePercent,peRatio,beta,latestEPS
Working example: https://api.iextrading.com/1.0/stock/market/batch?symbols=MSFT,T&types=quote,stats&range=1m&filter=latestPrice,change,changePercent,peRatio,beta,latestEPS
@mattcam3r0n
Apologies on the delay here - this is updated in v/1.0.0 tagged here: https://github.com/aklatzke/node-iex/releases/tag/1.0.0
Hi, thanks for your work on this. I've found it very helpful.
buildBatchQuery() in utilities/index.js is using filters (plural) in the query string while the api seems to want filter (singular).
Status 400 example (generated by node-iex): https://api.iextrading.com/1.0/stock/market/batch?symbols=MSFT,T&types=quote,stats&range=1m&filters=latestPrice,change,changePercent,peRatio,beta,latestEPS
Working example: https://api.iextrading.com/1.0/stock/market/batch?symbols=MSFT,T&types=quote,stats&range=1m&filter=latestPrice,change,changePercent,peRatio,beta,latestEPS