examples: move the bundled BTCUSDT datasets to a top-level examples/data/

The seven BTCUSDT OHLCV datasets used to live under
crates/wickra/examples/data/, which buried them inside a Rust crate even
though the Node backtest example and the upcoming Rust/Node/WASM example
restructure need to reach them too. Move them to the workspace-level
examples/data/ so every language's examples can resolve the same path.

The bench (crates/wickra/benches/indicators.rs), the example_data
integration test, fetch_btcusdt.rs and the Node backtest example all take
the new ../../examples/data/ path; Data-Layer.md, examples/README.md and
the CHANGELOG entry are updated to match. No data file content changes.
This commit is contained in:
kingchenc
2026-05-23 00:01:52 +02:00
parent ba10898801
commit a1c646ae7c
14 changed files with 32 additions and 28 deletions
+2 -4
View File
@@ -26,15 +26,13 @@ const wickra = require('..');
// every one of them (any extra columns are ignored).
const REQUIRED_COLUMNS = ['timestamp', 'open', 'high', 'low', 'close', 'volume'];
// Default dataset: the checked-in BTCUSDT daily candles under
// crates/wickra/examples/data/, resolved relative to this file.
// Default dataset: the checked-in BTCUSDT daily candles under the workspace
// `examples/data/` directory, resolved relative to this file.
const DEFAULT_CSV = path.join(
__dirname,
'..',
'..',
'..',
'crates',
'wickra',
'examples',
'data',
'btcusdt-1d.csv',