Makin money, ya bitch, can ya dig it?
Find a file
2020-10-16 13:42:13 -07:00
grafana update xmr dashboard 2020-10-16 13:42:13 -07:00
static adding some documentation 2020-09-29 13:01:36 -07:00
.gitignore Initial commit 2020-09-02 16:45:17 +00:00
db.py add earnings 2020-10-02 19:42:21 -07:00
docker-compose.yaml adding work thus far 2020-09-06 06:27:19 -07:00
env-example adding some documentation 2020-09-29 13:01:36 -07:00
LICENSE Initial commit 2020-09-02 16:45:17 +00:00
README.md adding some documentation 2020-09-29 13:01:36 -07:00
requirements.txt reconcile orders, update dashboard, refactor db, refactor trade project 2020-09-08 21:30:49 -07:00
trade.py add earnings 2020-10-02 19:42:21 -07:00
tradeogre.py reconcile orders, update dashboard, refactor db, refactor trade project 2020-09-08 21:30:49 -07:00

totrader

Experimental market maker script for TradeOgre. As of now it checks if the bid-ask spread is over a certain threshold and places a buy and sell order above and below the current bid and ask.

This is still a work in progress.

Setup

# Setup secrets and adjust parameters
cp env-example .env
vim .env

# Run containers
docker-compose up -d

Usage

This is a command line tool with an option to run continuously or only once.

$ ./trade.py --help
usage: trade.py [-h] [--market-maker] [--balances] [--update-orders]
                [--market-data] [--run]

Helpful TradeOgre trading script

optional arguments:
  -h, --help       show this help message and exit
  --market-maker   Put in buy/sell orders
  --balances       Update coin balances of both base and currency
  --update-orders  Update status of orders
  --market-data    Update market data
  --run            Run continuously

View the results/metrics in your browser at http://localhost:3000 with the Grafana password specified. You'll need to add a datasource for the PostgreSQL database. Dial that in and your graphs should start working. Here's what it looks like: