fabianboesiger / trader-deprecated-1

An automated trading platform implemented in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trader

A trading platform for Binance.

TODOs

  • 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

Getting Started

Binance Account

Create a Binance account and obtain your API key and secret key.

PostgreSQL Database Setup

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)
);

Environment Setup

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 your Trading Strategy

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>;

Compilation

Compile the trading bot using cargo run --release.

About

An automated trading platform implemented in Rust.


Languages

Language:Rust 96.3%Language:JavaScript 2.3%Language:HTML 1.1%Language:CSS 0.4%