/zapcli

The quickest way to test and improve your trading strategies

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0


ZapCli

The quickest way to write trading automations!

ZapCli is an open-source trading engine. That main focus is to simplify the process of writing trading automations.

GitHub

ZapCLI

  • 💡 Intuitive
  • 🔌 Extensible
  • 🦾 Scalable
  • 📦 Extremely easy to use

Documentation

To learn more about ZapCLI read the documentation here or watch a video

Get Started

npm i @zapcli/cli
zapcli create MyProject
zapcli backtest ./src/hello.zp

Simple example

Buy one share of AAPL if price over EMA 30

const assets = ["AAPL"]
const window = 30
const settings = {}

function run() {
  const AAPL = this.asset(assets[0])
  const ema = this.ema(AAPL, 30)

  if (AAPL.close > ema) {
    this.buy(AAPL, 1)
  }
}

return { assets, settings, window, run }

Useful links:

License

Copyright (c) 2021 ZapCLI Contributors Licensed under the GNU General License.