Bae-trader is an all purpose investment manager. Currently, bae-trader supports algorithmic stock trading via Alpaca Markets API, and crypto trading via Binance API.
- Download and install the .NET core 5 runtime on your computer: https://dotnet.microsoft.com/download
- Create a free account on alpaca: https://app.alpaca.markets/
- Set up a paper (simulation environment) and/or a live account.
- Clone this repository on your local machine.
- Generate API keys for each environment on the alpaca website. Put these keys somewhere safe.
- Run
dotnet run -- paper auto
to configure your "just on paper environment, ordotnet run -- live auto
to configure your real world stock trading environment!
- Create a free account on Binance.us: https://www.binance.us/en/home
- Confirm your identity through Binance (this takes several steps).
- Request API keys from the site. Store them somewhere safe.
- Once you have an API key and a secret key, run
dotnet run -- live crypto
to set up your crypto trading environment.
To start bae-trader, you just need to navigate to the bae-trader directory in a terminal and run one of the following commands.
dotnet run paper
to run the CLI in a paper environment
dotnet run live
to run the CLI in a real stock trading environment
Once you run bae-trader, you can execute several commands for interacting with your target market.
autoinvest
or auto
The autoinvest command automatically manage your stock portfolio on Alpaca Markets.
crypto
Use the crypto command to allow bae-trader to buy and sell crypto currencies through the Binance exchange.
To make things simple, you can also specify the starting command for Bae-trader. This will allow you to enable autonomous trading as soon as you launch Bae-trader. For example...
dotnet run -- paper auto
to run an "on paper" stock trader
or
dotnet run -- live crypto
to run a live crypto trader
Too lazy to fill this out. For now, just take a look at the json configs and figure out how to configure bae-trader to work how you want.