25454fa89a
Mirror examples/python/live_trading.py for the Node binding: connect to the public Binance kline WebSocket, stream close prices through RSI / MACD / Bollinger Bands, and print BUY/SELL candidate signals when all three agree. The symbol and interval are validated before being spliced into the stream URL, and non-kline frames (acks, heartbeats) are skipped. Uses the standard `ws` package, added as a devDependency so it installs with `npm install` for anyone running the examples but never reaches a consumer of the published package.
70 lines
1.6 KiB
JSON
70 lines
1.6 KiB
JSON
{
|
|
"name": "wickra",
|
|
"version": "0.1.4",
|
|
"description": "Streaming-first technical indicators: incremental, fast, install-free. Node bindings powered by Rust.",
|
|
"author": "kingchenc <kingchencp@gmail.com>",
|
|
"main": "index.js",
|
|
"types": "index.d.ts",
|
|
"license": "SEE LICENSE IN LICENSE",
|
|
"keywords": [
|
|
"trading",
|
|
"indicators",
|
|
"technical-analysis",
|
|
"ta-lib",
|
|
"finance",
|
|
"streaming",
|
|
"rust"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/kingchenc/wickra"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/kingchenc/wickra/issues"
|
|
},
|
|
"homepage": "https://github.com/kingchenc/wickra",
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"npm",
|
|
"*.node"
|
|
],
|
|
"napi": {
|
|
"name": "wickra",
|
|
"triples": {
|
|
"defaults": false,
|
|
"additional": [
|
|
"x86_64-unknown-linux-gnu",
|
|
"aarch64-unknown-linux-gnu",
|
|
"x86_64-apple-darwin",
|
|
"aarch64-apple-darwin",
|
|
"x86_64-pc-windows-msvc",
|
|
"aarch64-pc-windows-msvc"
|
|
]
|
|
}
|
|
},
|
|
"engines": {
|
|
"node": ">= 16"
|
|
},
|
|
"optionalDependencies": {
|
|
"wickra-linux-x64-gnu": "0.1.4",
|
|
"wickra-linux-arm64-gnu": "0.1.4",
|
|
"wickra-darwin-x64": "0.1.4",
|
|
"wickra-darwin-arm64": "0.1.4",
|
|
"wickra-win32-x64-msvc": "0.1.4",
|
|
"wickra-win32-arm64-msvc": "0.1.4"
|
|
},
|
|
"scripts": {
|
|
"build": "napi build --platform --release",
|
|
"build:debug": "napi build --platform",
|
|
"artifacts": "napi artifacts",
|
|
"universal": "napi universal",
|
|
"version": "napi version",
|
|
"test": "node --test __tests__/"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0",
|
|
"ws": "^8.18.0"
|
|
}
|
|
}
|