ztrade

command module
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL