677ea37402
Stacked on #315 (the native Binance REST fetcher). Retarget to `main` once #315 merges. Migrates the runnable examples off third-party data-I/O packages onto Wickra's native data layer (`CandleReader`, `Resampler`, `BinanceFeed`, `fetch_*klines`). ## Third-party packages removed (the zero-dep selling point) - **Node**: `ws` (live feed → BinanceFeed) — dropped from package.json + lockfile - **Go**: `github.com/coder/websocket` — dropped from go.mod / go.sum (`go mod tidy`) - **Java**: `jackson-databind` (live feed + REST fetch) — dropped from pom.xml - **R**: `jsonlite` + `websocket` + `later` — dropped from the README notes Each language's CSV loading now goes through `CandleReader`, manual resampling through `Resampler`, the live feed through `BinanceFeed`, and (Java/R) the REST download through the native fetcher. ## Verification Ran the offline examples per language against the bundled data — backtest and multi_timeframe produce identical output across Python / Node / Go / Java / R (e.g. ATR(14) last 345.1010; 1h→5m resamples to 240 bars, →15m to 80 bars). C# / C / WASM (stdlib-only, no third-party deps to remove) follow in this branch. Note: the streaming `strategy_*` examples have pre-existing candle-indicator runtime bugs (CI only syntax-smokes them); the CSV migration preserves their shape and leaves those bugs for a separate fix.
40 lines
959 B
JSON
40 lines
959 B
JSON
{
|
|
"name": "wickra-examples-node",
|
|
"version": "0.0.0",
|
|
"lockfileVersion": 3,
|
|
"requires": true,
|
|
"packages": {
|
|
"": {
|
|
"name": "wickra-examples-node",
|
|
"version": "0.0.0",
|
|
"license": "SEE LICENSE IN ../../LICENSE",
|
|
"dependencies": {
|
|
"wickra": "file:../../bindings/node"
|
|
}
|
|
},
|
|
"../../bindings/node": {
|
|
"name": "wickra",
|
|
"version": "0.9.2",
|
|
"license": "MIT OR Apache-2.0",
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0"
|
|
},
|
|
"engines": {
|
|
"node": ">= 20"
|
|
},
|
|
"optionalDependencies": {
|
|
"wickra-darwin-arm64": "0.9.2",
|
|
"wickra-darwin-x64": "0.9.2",
|
|
"wickra-linux-arm64-gnu": "0.9.2",
|
|
"wickra-linux-x64-gnu": "0.9.2",
|
|
"wickra-win32-arm64-msvc": "0.9.2",
|
|
"wickra-win32-x64-msvc": "0.9.2"
|
|
}
|
|
},
|
|
"node_modules/wickra": {
|
|
"resolved": "../../bindings/node",
|
|
"link": true
|
|
}
|
|
}
|
|
}
|