Go to file
2024-06-26 00:44:05 +08:00
cmd first commit 2024-06-26 00:19:25 +08:00
configs first commit 2024-06-26 00:19:25 +08:00
doc first commit 2024-06-26 00:19:25 +08:00
pkg update import 2024-06-26 00:44:05 +08:00
.gitignore first commit 2024-06-26 00:19:25 +08:00
go.mod first commit 2024-06-26 00:19:25 +08:00
go.sum first commit 2024-06-26 00:19:25 +08:00
main.go first commit 2024-06-26 00:19:25 +08:00
README_cn.md first commit 2024-06-26 00:19:25 +08:00
README.md first commit 2024-06-26 00:19:25 +08:00

trade

I hope trade is "The last trade app you need" !

中文

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. usegoplusas script engine
  5. 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:

strategy

Thanks

goplus

vnpy