├── .buildkite └── pipeline.yaml ├── .envrc ├── .github └── pull_request_template.md ├── .gitignore ├── Cargo.toml ├── LICENSE ├── README.md ├── benches └── candle_aggregation.rs ├── data ├── Bitmex_XBTUSD_1M.csv └── Bitstamp_BTCEUR_1M.csv ├── examples ├── aggregate_all_ohlc.rs ├── streaming_aggregate_ohlc.rs └── user_trade_type.rs ├── flake.lock ├── flake.nix ├── img └── relative_price_candles_plot.png ├── mprocs.yaml ├── readme_img ├── agplv3.png ├── monero_donations_qrcode.png └── time_candles_plot.png ├── rustfmt.toml ├── src ├── aggregation_rules │ ├── aggregation_rule_trait.rs │ ├── aligned_time_rule.rs │ ├── mod.rs │ ├── relative_price_rule.rs │ ├── tick_rule.rs │ ├── time_rule.rs │ └── volume_rule.rs ├── aggregator.rs ├── candle_components │ ├── average_price.rs │ ├── candle_component_trait.rs │ ├── close.rs │ ├── close_timestamp.rs │ ├── directional_trade_ratio.rs │ ├── directional_volume_ratio.rs │ ├── entropy.rs │ ├── high.rs │ ├── low.rs │ ├── median_price.rs │ ├── mod.rs │ ├── num_trades.rs │ ├── open.rs │ ├── open_datetime.rs │ ├── open_timestamp.rs │ ├── std_dev_prices.rs │ ├── std_dev_sizes.rs │ ├── time_velocity.rs │ ├── trades.rs │ ├── volume.rs │ ├── volume_buys.rs │ ├── volume_sells.rs │ ├── vpin.rs │ └── weighted_price.rs ├── constants.rs ├── errors.rs ├── lib.rs ├── modular_candle_trait.rs ├── plot.rs ├── types.rs ├── utils.rs └── welford_online.rs └── trade_aggregation_derive ├── Cargo.toml ├── LICENSE ├── README.md └── src └── lib.rs /.buildkite/pipeline.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/.buildkite/pipeline.yaml -------------------------------------------------------------------------------- /.envrc: -------------------------------------------------------------------------------- 1 | use flake 2 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/README.md -------------------------------------------------------------------------------- /benches/candle_aggregation.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/benches/candle_aggregation.rs -------------------------------------------------------------------------------- /data/Bitmex_XBTUSD_1M.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/data/Bitmex_XBTUSD_1M.csv -------------------------------------------------------------------------------- /data/Bitstamp_BTCEUR_1M.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/data/Bitstamp_BTCEUR_1M.csv -------------------------------------------------------------------------------- /examples/aggregate_all_ohlc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/examples/aggregate_all_ohlc.rs -------------------------------------------------------------------------------- /examples/streaming_aggregate_ohlc.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/examples/streaming_aggregate_ohlc.rs -------------------------------------------------------------------------------- /examples/user_trade_type.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/examples/user_trade_type.rs -------------------------------------------------------------------------------- /flake.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/flake.lock -------------------------------------------------------------------------------- /flake.nix: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/flake.nix -------------------------------------------------------------------------------- /img/relative_price_candles_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/img/relative_price_candles_plot.png -------------------------------------------------------------------------------- /mprocs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/mprocs.yaml -------------------------------------------------------------------------------- /readme_img/agplv3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/readme_img/agplv3.png -------------------------------------------------------------------------------- /readme_img/monero_donations_qrcode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/readme_img/monero_donations_qrcode.png -------------------------------------------------------------------------------- /readme_img/time_candles_plot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/readme_img/time_candles_plot.png -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/aggregation_rules/aggregation_rule_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/aggregation_rule_trait.rs -------------------------------------------------------------------------------- /src/aggregation_rules/aligned_time_rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/aligned_time_rule.rs -------------------------------------------------------------------------------- /src/aggregation_rules/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/mod.rs -------------------------------------------------------------------------------- /src/aggregation_rules/relative_price_rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/relative_price_rule.rs -------------------------------------------------------------------------------- /src/aggregation_rules/tick_rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/tick_rule.rs -------------------------------------------------------------------------------- /src/aggregation_rules/time_rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/time_rule.rs -------------------------------------------------------------------------------- /src/aggregation_rules/volume_rule.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregation_rules/volume_rule.rs -------------------------------------------------------------------------------- /src/aggregator.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/aggregator.rs -------------------------------------------------------------------------------- /src/candle_components/average_price.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/average_price.rs -------------------------------------------------------------------------------- /src/candle_components/candle_component_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/candle_component_trait.rs -------------------------------------------------------------------------------- /src/candle_components/close.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/close.rs -------------------------------------------------------------------------------- /src/candle_components/close_timestamp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/close_timestamp.rs -------------------------------------------------------------------------------- /src/candle_components/directional_trade_ratio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/directional_trade_ratio.rs -------------------------------------------------------------------------------- /src/candle_components/directional_volume_ratio.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/directional_volume_ratio.rs -------------------------------------------------------------------------------- /src/candle_components/entropy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/entropy.rs -------------------------------------------------------------------------------- /src/candle_components/high.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/high.rs -------------------------------------------------------------------------------- /src/candle_components/low.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/low.rs -------------------------------------------------------------------------------- /src/candle_components/median_price.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/median_price.rs -------------------------------------------------------------------------------- /src/candle_components/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/mod.rs -------------------------------------------------------------------------------- /src/candle_components/num_trades.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/num_trades.rs -------------------------------------------------------------------------------- /src/candle_components/open.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/open.rs -------------------------------------------------------------------------------- /src/candle_components/open_datetime.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/open_datetime.rs -------------------------------------------------------------------------------- /src/candle_components/open_timestamp.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/open_timestamp.rs -------------------------------------------------------------------------------- /src/candle_components/std_dev_prices.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/std_dev_prices.rs -------------------------------------------------------------------------------- /src/candle_components/std_dev_sizes.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/std_dev_sizes.rs -------------------------------------------------------------------------------- /src/candle_components/time_velocity.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/time_velocity.rs -------------------------------------------------------------------------------- /src/candle_components/trades.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/trades.rs -------------------------------------------------------------------------------- /src/candle_components/volume.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/volume.rs -------------------------------------------------------------------------------- /src/candle_components/volume_buys.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/volume_buys.rs -------------------------------------------------------------------------------- /src/candle_components/volume_sells.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/volume_sells.rs -------------------------------------------------------------------------------- /src/candle_components/vpin.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/vpin.rs -------------------------------------------------------------------------------- /src/candle_components/weighted_price.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/candle_components/weighted_price.rs -------------------------------------------------------------------------------- /src/constants.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/constants.rs -------------------------------------------------------------------------------- /src/errors.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/errors.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/modular_candle_trait.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/modular_candle_trait.rs -------------------------------------------------------------------------------- /src/plot.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/plot.rs -------------------------------------------------------------------------------- /src/types.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/types.rs -------------------------------------------------------------------------------- /src/utils.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/utils.rs -------------------------------------------------------------------------------- /src/welford_online.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/src/welford_online.rs -------------------------------------------------------------------------------- /trade_aggregation_derive/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/trade_aggregation_derive/Cargo.toml -------------------------------------------------------------------------------- /trade_aggregation_derive/LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/trade_aggregation_derive/LICENSE -------------------------------------------------------------------------------- /trade_aggregation_derive/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/trade_aggregation_derive/README.md -------------------------------------------------------------------------------- /trade_aggregation_derive/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MathisWellmann/trade_aggregation-rs/HEAD/trade_aggregation_derive/src/lib.rs --------------------------------------------------------------------------------