https://github.com/ghalex/zapcli
The quickest way to test and improve your trading strategies
https://github.com/ghalex/zapcli
backtesting trading trading-strategies
Last synced: about 1 month ago
JSON representation
The quickest way to test and improve your trading strategies
- Host: GitHub
- URL: https://github.com/ghalex/zapcli
- Owner: ghalex
- License: gpl-3.0
- Created: 2024-05-24T13:44:30.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-25T09:14:35.000Z (over 1 year ago)
- Last Synced: 2025-09-23T04:12:41.147Z (6 months ago)
- Topics: backtesting, trading, trading-strategies
- Language: TypeScript
- Homepage: https://zapcli.com
- Size: 522 KB
- Stars: 21
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.
## ZapCLI
- 💡 Intuitive
- 🔌 Extensible
- 🦾 Scalable
- 📦 Extremely easy to use
## Documentation
To learn more about ZapCLI read the documentation [here](https://zapcli.com/) or [watch a video](https://www.youtube.com/watch?v=4-dnBD4YWwU)
## Get Started
```shell
npm i @zapcli/cli
zapcli create MyProject
zapcli backtest ./src/hello.zp
```
## Simple example
Buy one share of AAPL if price over EMA 30
```javascript
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:
- [Getting Started](https://zapcli.com/getting-started/) full guide.
- [View on Github](https://github.com/ghalex/zapcli)
## License
Copyright (c) 2021 [ZapCLI Contributors](https://github.com/ghalex/zapcli/graphs/contributors)
Licensed under the [GNU General License](https://github.com/ghalex/zapcli/blob/HEAD/LICENSE).