Skip to content

ztrade/ztrade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ztrade

I hope ztrade 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
./ztrade --help

Use

replace your key and secret

replace your key and secret in dist/configs/ztrade.yaml

download history Kline

# 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

./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

./ztrade trade --symbol BTCUSDT --exchange binance --script debug.go

strategy

show examples:

strategy

Thanks

goplus

vnpy