Trade bot using Alpaca as a bropker
$ yarn
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
paper trading on the left navigationALPACA_API_KEY & ALPACA_SECRET_KEY to the .env variablesBOT_TYPE=LONG_SHORTPlease have a look at .env.sample to get started
There are two different types of algorithms
MEAN_REVERSIONLONG_SHORTThis algorithm requires an additional env variable:
MEAN_REVERSION_STOCK
This variable should have the value of the name of the stock. Example Apple = AAPL
This project is done to test different trading strategies in a paper trading environment. If you want to try this to do live trading do it by your own risk.
$ claude mcp add trading-bot \
-- python -m otcore.mcp_server <graph>