Skip to content

Commit 9b56040

Browse files
Merge pull request #6 from IteraLabs/feature/kraken-market-data-snapshot
v0.0.13
2 parents 5243b11 + 4401b8e commit 9b56040

File tree

184 files changed

+2671
-2320
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+2671
-2320
lines changed

atelier-data/Cargo.toml

Lines changed: 50 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "atelier_data"
3-
version = "0.0.12"
3+
version = "0.0.13"
44
edition = "2024"
55
rust-version = "1.85.0"
66
description = "Data connectors with lightweighted connectivity and integrations for the atelier-rs engine"
@@ -24,73 +24,71 @@ license = "Apache-2.0"
2424
name = "atelier_data"
2525
path = "src/lib.rs"
2626

27-
[[example]]
28-
name = "market_streams"
29-
path = "examples/bybit/market_streams.rs"
27+
# ── market_sync ──
3028

3129
[[example]]
32-
name = "ob_snapshot_fetch_sync_store"
33-
path = "examples/bybit/ob_snapshot_fetch_sync_store.rs"
30+
name = "market_load"
31+
path = "examples/market_sync/market_load.rs"
3432

3533
[[example]]
36-
name = "ob_snapshot_load"
37-
path = "examples/bybit/ob_snapshot_load.rs"
34+
name = "multi_sync_workers"
35+
path = "examples/multi_sync/multi_sync_workers.rs"
3836

39-
[[example]]
40-
name = "trade_fetch_store"
41-
path = "examples/bybit/trade_fetch_store.rs"
37+
# ── per market ──
4238

4339
[[example]]
44-
name = "trade_load"
45-
path = "examples/bybit/trade_load.rs"
40+
name = "bybit_markets"
41+
path = "examples/market_sync/bybit/bybit_markets.rs"
4642

4743
[[example]]
48-
name = "market_snapshot"
49-
path = "examples/bybit/market_snapshot.rs"
44+
name = "coinbase_markets"
45+
path = "examples/market_sync/coinbase/coinbase_markets.rs"
5046

5147
[[example]]
52-
name = "market_snapshot_event"
53-
path = "examples/bybit/market_snapshot_event.rs"
48+
name = "kraken_markets"
49+
path = "examples/market_sync/kraken/kraken_markets.rs"
5450

55-
# ── market_sync ──
51+
# ── bybit tests ──
5652

57-
[[example]]
58-
name = "bybit_markets"
59-
path = "examples/market_sync/bybit/bybit_markets.rs"
53+
[[test]]
54+
name = "test_bybit_orderbook_responses"
55+
path = "tests/sources/bybit/order_books/test_orderbook_responses.rs"
6056

61-
[[example]]
62-
name = "bybit_markets_load"
63-
path = "examples/market_sync/bybit/bybit_markets_load.rs"
57+
[[test]]
58+
name = "test_bybit_trade_responses"
59+
path = "tests/sources/bybit/public_trades/test_public_trades_responses.rs"
6460

65-
[[example]]
66-
name = "bybit_workers"
67-
path = "examples/market_sync/bybit/bybit_workers.rs"
61+
[[test]]
62+
name = "test_bybit_funding_rates_responses"
63+
path = "tests/sources/bybit/funding_rates/test_funding_rates_responses.rs"
6864

69-
[[example]]
70-
name = "base_markets"
71-
path = "examples/market_sync/base/base_markets.rs"
65+
[[test]]
66+
name = "test_bybit_open_interests_responses"
67+
path = "tests/sources/bybit/open_interests/test_open_interests_responses.rs"
68+
69+
[[test]]
70+
name = "test_bybit_liquidations_responses"
71+
path = "tests/sources/bybit/liquidations/test_liquidations_responses.rs"
7272

7373
# ── coinbase tests ──
7474

7575
[[test]]
7676
name = "test_coinbase_orderbook_responses"
77-
path = "tests/coinbase/order_books/test_orderbook_responses.rs"
77+
path = "tests/sources/coinbase/order_books/test_orderbook_responses.rs"
7878

7979
[[test]]
8080
name = "test_coinbase_trade_responses"
81-
path = "tests/coinbase/public_trades/test_trade_responses.rs"
81+
path = "tests/sources/coinbase/public_trades/test_trade_responses.rs"
8282

83-
[[test]]
84-
name = "test_coinbase_liquidations"
85-
path = "tests/coinbase/liquidations/test_liquidations.rs"
83+
# ── kraken tests ──
8684

8785
[[test]]
88-
name = "test_coinbase_funding_rates"
89-
path = "tests/coinbase/funding_rates/test_funding_rates.rs"
86+
name = "test_kraken_orderbook_responses"
87+
path = "tests/sources/kraken/order_books/test_orderbook_responses.rs"
9088

9189
[[test]]
92-
name = "test_coinbase_open_interest"
93-
path = "tests/coinbase/open_interests/test_open_interest.rs"
90+
name = "test_kraken_trade_responses"
91+
path = "tests/sources/kraken/public_trades/test_trade_responses.rs"
9492

9593
# ── type tests ──
9694

@@ -114,6 +112,16 @@ path = "tests/types/synchronizers/test_market_sync.rs"
114112
name = "test_market_aggregate"
115113
path = "tests/types/snapshots/test_market_aggregate.rs"
116114

115+
# ── parquet round-trip tests ──
116+
117+
[[test]]
118+
name = "test_orderbook_parquet_roundtrip"
119+
path = "tests/types/order_books/test_orderbook_parquet_roundtrip.rs"
120+
121+
[[test]]
122+
name = "test_trades_parquet_roundtrip"
123+
path = "tests/types/trades/test_trades_parquet_roundtrip.rs"
124+
117125
[dependencies]
118126
anyhow = { version = "1.0" }
119127
arrow = { version = "57.2", optional = true }
@@ -142,6 +150,9 @@ tracing-subscriber = { version = "0.3" }
142150
url = { version = "2.0" }
143151
uuid = { version = "1.0", features = ["v4"] }
144152

153+
[dev-dependencies]
154+
tempfile = "3"
155+
145156
[features]
146157
default = []
147158
parquet = ["dep:arrow", "dep:parquet"]

0 commit comments

Comments
 (0)