trade/README.md

63 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2024-06-25 16:19:25 +00:00
# trade
I hope trade is "The last trade app you need" !
[中文](README_cn.md)
# Features
1. Develop/write strategy with only go language,no other script need
2. Event base framework,easy to extend
3. Support binance,okx,ctp
4. use[goplus](https://goplus.org/)as script engine
5. can build strategy to go golang plugin,best performance
# build
``` shell
make
```
## simple run
``` shell
cd dist
./trade --help
```
# Use
## replace your key and secret
replace your key and secret in dist/configs/trade.yaml
## download history Kline
``` shell
# 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
``` shell
./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
``` shell
./trade trade --symbol BTCUSDT --exchange binance --script debug.go
```
## strategy
show examples:
[strategy](https://git.qtrade.icu/coin-quant/strategy)
## Thanks
[goplus](https://goplus.org/)
[vnpy](https://github.com/vnpy/vnpy)