5867f71450
* feat(core): add 3 trade-flow microstructure indicators SignedVolume (per-trade size signed by aggressor), CumulativeVolumeDelta (running signed-volume total), and TradeImbalance (rolling buy/sell volume imbalance over a trade window). All consume the Trade type, with full unit coverage. Extends the Microstructure family. * feat(bindings): expose trade-flow microstructure indicators Python, Node and WASM bindings for SignedVolume, CumulativeVolumeDelta and TradeImbalance. Each takes a trade via update(price, size, is_buy); Python and Node expose a batch over three parallel arrays, WASM exposes per-trade update. Regenerates node index.d.ts/.js. * test(bindings,fuzz,bench): cover trade-flow microstructure indicators Python and Node: reference values, streaming-vs-batch, lifecycle/repr and input validation (zero window, negative size, non-positive price, mismatched batch lengths). New indicator_update_trade fuzz target. Synthetic trade-tape benches (signed_volume cheapest, trade_imbalance windowed/expensive). * docs: add trade-flow indicators + bump counter to 227 README Microstructure family row gains signed volume / CVD / trade imbalance and the counter goes 224 -> 227; CHANGELOG records the trade-flow indicators.
75 lines
1.4 KiB
TOML
75 lines
1.4 KiB
TOML
[package]
|
|
name = "wickra-fuzz"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition = "2021"
|
|
|
|
[package.metadata]
|
|
cargo-fuzz = true
|
|
|
|
[dependencies]
|
|
libfuzzer-sys = "0.4"
|
|
serde_json = "1"
|
|
wickra-core = { path = "../crates/wickra-core" }
|
|
wickra-data = { path = "../crates/wickra-data", features = ["live-binance"] }
|
|
|
|
# Detach this crate from the parent workspace — cargo-fuzz builds it on its
|
|
# own with sanitizer flags.
|
|
[workspace]
|
|
|
|
[[bin]]
|
|
name = "csv_reader"
|
|
path = "fuzz_targets/csv_reader.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "binance_envelope"
|
|
path = "fuzz_targets/binance_envelope.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "indicator_update"
|
|
path = "fuzz_targets/indicator_update.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "indicator_update_candle"
|
|
path = "fuzz_targets/indicator_update_candle.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "indicator_update_pair"
|
|
path = "fuzz_targets/indicator_update_pair.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "indicator_update_orderbook"
|
|
path = "fuzz_targets/indicator_update_orderbook.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "indicator_update_trade"
|
|
path = "fuzz_targets/indicator_update_trade.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|
|
|
|
[[bin]]
|
|
name = "tick_aggregator"
|
|
path = "fuzz_targets/tick_aggregator.rs"
|
|
test = false
|
|
doc = false
|
|
bench = false
|