An open API service indexing awesome lists of open source software.

https://github.com/ztrade/train

A simple trade train tool
https://github.com/ztrade/train

Last synced: 5 months ago
JSON representation

A simple trade train tool

Awesome Lists containing this project

README

          

# A simple trade train tool

## build
```
go build
```

## add config.yaml
```
#proxy: socks5://127.0.0.1:1080

exchanges:
binance:
type: binance
kind: futures
key: YOUR_API_KEY
secret: YOUR_SECRET_KEY
timeout: 1m
# Symbol to train
Symbol: BTCUSDT
# Total Balance
Balance: 100000
# Percent to buy/Sell
OncePercent: 0.1
# History klines
History: 100
# Start time
Start: "2020-01-01 00:00:00"
# Kline chat rows
Rows:
-
- Dur: 5m
History: 200
- Dur: 15m
History: 200
-
- Dur: 1h
History: 200
- Dur: 4h
History: 200
# - Dur: 24h
# History: 100

```

## run
```
./train
```