1.2 KiB
1.2 KiB
trade
I hope trade is "The last trade app you need" !
Features
- Develop/write strategy with only go language,no other script need
- Event base framework,easy to extend
- Support binance,okx,ctp
- usegoplusas script engine
- can build strategy to go golang plugin,best performance
build
make
simple run
cd dist
./trade --help
Use
replace your key and secret
replace your key and secret in dist/configs/trade.yaml
download history Kline
# run first
./trade download --binSize 1m --start "2020-01-01 08:00:00" --end "2021-01-01 08:00:00" --exchange binance --symbol BTCUSDT
# auto download kline
./trade download --symbol BTCUSDT -a --exchange binance
backtest
./trade backtest --script debug.go --start "2020-01-01 08:00:00" --end "2021-01-01 08:00:00" --symbol BTCUSDT --exchange binance
real trade
./trade trade --symbol BTCUSDT --exchange binance --script debug.go
strategy
show examples: