torreyleonard / algotrader

Simple algorithmic stock and option trading for Node.js.
https://www.npmjs.com/package/algotrader
Apache License 2.0
635 stars 119 forks source link

Missing Auth in the Instrument.getFundamentals #45

Open itscarlosisaac opened 4 years ago

itscarlosisaac commented 4 years ago

Looks like now to get the data from a stock you also need to be logged in. I was getting a 401 when trying to do it without any auth param.

Modified the static getByUrl to accept the user and added the header with the user.getAuthToken