lza_menace
/
totrader
Arquivado
1
1
Derivar 0
Makin money, ya bitch, can ya dig it?
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Pode ver os seus ficheiros e cloná-lo, mas não pode fazer envios para o repositório nem lançar questões ou fazer pedidos de integração.
lza_menace 10fbd8d66e
update dashboard with portfo in btc
há 1 ano
grafana update dashboard with portfo in btc há 1 ano
static adding some documentation há 4 anos
.gitignore Initial commit há 4 anos
LICENSE Initial commit há 4 anos
README.md adding some documentation há 4 anos
db.py make improvements to dashboards and logic of trading script há 1 ano
docker-compose.yaml make improvements to dashboards and logic of trading script há 1 ano
env-example make improvements to dashboards and logic of trading script há 1 ano
requirements.txt reconcile orders, update dashboard, refactor db, refactor trade project há 4 anos
trade.py make improvements to dashboards and logic of trading script há 1 ano
tradeogre.py make improvements to dashboards and logic of trading script há 1 ano

README.md

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: