Skip to content

AndoxADX/andox-algo-trading

Repository files navigation

JavaScript/Alpaca Algorithmic Trading

Setup

  1. Clone the repository
  2. Sign up for Alpaca and get API keys
  3. Insert your Alpaca API keys into a file called .env like this:
API_KEY=<insert API key>
SECRET_API_KEY=<insert secret API key>
  1. Run npm install
  2. Run node index.js

To get ts-node working

  1. Install typescript globally: npm i typescript -g

  2. Go to your project directory and link typescript to the project: cd npm link typescript

  3. Add type: module in package.json "type": "module" in package.json

  4. Execute ts-node using npx: npx ts-node .ts

About

Javascript with Alpaca Algo trading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published