alpacahq / alpaca-trade-api-js

Node.js library for Alpaca Trade API.
https://www.npmjs.com/package/@alpacahq/alpaca-trade-api
Apache License 2.0
509 stars 132 forks source link

Node.js Mean-Reversion Example not working #217

Open cboydstun opened 2 years ago

cboydstun commented 2 years ago

Getting this "getBars is not a function" error when attempting to run this example. image

drew887 commented 2 years ago

Hey @cboydstun thank you for reporting this; this example needs to be upgraded to use the data v2 functions :disappointed:

cboydstun commented 2 years ago

Thanks! Yes I found the getBarsV2() function in 'marketdataV2.ts' example: image

Started browsing directories and remembered, wait, I have a day job, too! 🤪