ztrade

command module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 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. use gomacro as 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

gomacro

vnpy

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
ctl
exchange/ok/api/account
Package account provides primitives to interact with the openapi HTTP API.
Package account provides primitives to interact with the openapi HTTP API.
exchange/ok/api/market
Package market provides primitives to interact with the openapi HTTP API.
Package market provides primitives to interact with the openapi HTTP API.
exchange/ok/api/public
Package public provides primitives to interact with the openapi HTTP API.
Package public provides primitives to interact with the openapi HTTP API.
exchange/ok/api/trade
Package trade provides primitives to interact with the openapi HTTP API.
Package trade provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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