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
- Host: GitHub
- URL: https://github.com/ztrade/train
- Owner: ztrade
- Created: 2025-05-24T15:38:58.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-24T15:44:54.000Z (about 1 year ago)
- Last Synced: 2025-06-28T11:53:47.936Z (11 months ago)
- Language: Go
- Size: 45.9 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```