trade/README.md
2024-06-26 00:19:25 +08:00

1.2 KiB

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