A trading platform for Binance.
- Web interface for easy information lookup
- Insert inforation into database
- Build the website
- Get the basics working
- Make it beautiful
- Realtime simulated test
- Implementing order functionality
- Filter implementation
- Filter testing
- API implementation
- Testing real orders
- Earn some money
- Code cleanup
- Proper market and asset symbol types
Create a Binance account and obtain your API key and secret key.
Set up a PostgreSQL Database to connect the trader to and add the following tables.
CREATE TABLE tickers (
symbol VARCHAR(16),
value DOUBLE PRECISION,
timestamp BIGINT,
PRIMARY KEY(symbol, timestamp)
);
Set the following environment variables either by editing the system environment or by adding a .env
file to the project root.
BINANCE_API_KEY=<API KEY HERE>
BINANCE_SECRET_KEY=<SECRET KEY HERE>
DATABASE_URL=<postgresql://user:password@localhost/database>
DATA_INTERVAL=<SECONDS>
Choose an existing trading strategy or implement a new one.
type MyTrader = StopLoss<Backoff<RSITrader<4200, 30.0, 70.0, 0.1>, 60>, "USDT", 0.95>;
Compile the trading bot using cargo run --release
.