torreyleonard / algotrader

Simple algorithmic stock and option trading for Node.js.

Home Page:https://www.npmjs.com/package/algotrader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yahoo cors issue?

bbuchanan opened this issue · comments

const d = algotrader.Data;
const chains = d.Yahoo.getOptionsChain('spy');

Failed to load https://query2.finance.yahoo.com/v7/finance/options/spy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Has Yahoo stopped allowing CORS requests or is this something on my end?

It looks like Yahoo may be changing its private API. I'm getting a Redis error when I try this.