Skip to content

nielse63/alpaca-trading-scripts

Repository files navigation

alpaca-trading-scripts

Algotrading bot example using TypeScript

Learn how to create your first algotrading bot on Medium.

Installation

git clone https://github.com/nielse63/alpaca-trading-scripts.git
cd alpaca-trading-scripts
nvm use
npm ci

Usage

npm run build
npm start

Development

npm run dev

Testing

npm test

# with coverage
npm test -- --coverage

Running in production

To execute in a production environment:

#!/usr/bin/env bash
/path/to/alpaca-trading-scripts/.bin/run

Creating a new release

gh release create
npm version --no-git-tag-version from-git
git add .
git commit --no-edit --amend