https://github.com/ztrade/ztrade
I hope ztrade is "The last trade app you need" !
https://github.com/ztrade/ztrade
bitmex btc cryptocurrency golang quant trade
Last synced: 5 months ago
JSON representation
I hope ztrade is "The last trade app you need" !
- Host: GitHub
- URL: https://github.com/ztrade/ztrade
- Owner: ztrade
- License: bsd-3-clause
- Created: 2020-05-30T04:31:57.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-26T09:53:51.000Z (about 1 year ago)
- Last Synced: 2025-04-26T10:33:19.247Z (about 1 year ago)
- Topics: bitmex, btc, cryptocurrency, golang, quant, trade
- Language: Go
- Size: 602 KB
- Stars: 27
- Watchers: 1
- Forks: 8
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ztrade
I hope ztrade 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
./ztrade --help
```
# Use
## replace your key and secret
replace your key and secret in dist/configs/ztrade.yaml
## download history Kline
``` shell
# run first
./ztrade download --binSize 1m --start "2020-01-01 08:00:00" --end "2021-01-01 08:00:00" --exchange binance --symbol BTCUSDT
# auto download kline
./ztrade download --symbol BTCUSDT -a --exchange binance
```
## backtest
``` shell
./ztrade 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
./ztrade trade --symbol BTCUSDT --exchange binance --script debug.go
```
## strategy
show examples:
[strategy](https://github.com/ztrade/strategy)
## Thanks
[goplus](https://goplus.org/)
[vnpy](https://github.com/vnpy/vnpy)