vizflow 0.5.13__py3-none-any.whl → 0.5.15__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
vizflow/__init__.py
CHANGED
vizflow/schema_evolution.py
CHANGED
|
@@ -324,7 +324,7 @@ YLIN_V20251204 = SchemaEvolution(
|
|
|
324
324
|
),
|
|
325
325
|
},
|
|
326
326
|
null_values=["", "NA", "null", "NULL"],
|
|
327
|
-
drop=["#HFTORD"],
|
|
327
|
+
drop=["#HFTORD", "#ORD"], # #HFTORD for .meords, #ORD for .ords (grep output)
|
|
328
328
|
)
|
|
329
329
|
|
|
330
330
|
|
|
@@ -440,7 +440,6 @@ SIM_STANDARD = SchemaEvolution(
|
|
|
440
440
|
"qty_behind": ColumnSpec(parse_dtype=pl.Float64, cast_dtype=pl.Int64),
|
|
441
441
|
"order_curr_state": ColumnSpec(parse_dtype=pl.String),
|
|
442
442
|
"order_tpos_type": ColumnSpec(parse_dtype=pl.String),
|
|
443
|
-
"event_type": ColumnSpec(parse_dtype=pl.String),
|
|
444
443
|
# === Timestamps ===
|
|
445
444
|
"create_exchange_ts": ColumnSpec(parse_dtype=pl.Int64),
|
|
446
445
|
"create_local_ts": ColumnSpec(parse_dtype=pl.Int64),
|
|
@@ -465,6 +464,51 @@ SIM_STANDARD = SchemaEvolution(
|
|
|
465
464
|
)
|
|
466
465
|
|
|
467
466
|
|
|
467
|
+
# =============================================================================
|
|
468
|
+
# ERIC Trade Format (v2026-02-05)
|
|
469
|
+
# Feather format, snake_case columns
|
|
470
|
+
# fill_qty is per-fill incremental (NOT cumulative order_filled_qty)
|
|
471
|
+
# =============================================================================
|
|
472
|
+
|
|
473
|
+
ERIC_V20260205 = SchemaEvolution(
|
|
474
|
+
columns={
|
|
475
|
+
# === Timestamps (int32 in feather → cast Int64) ===
|
|
476
|
+
"last_exchange_ts": ColumnSpec(rename_to="update_exchange_ts", cast_dtype=pl.Int64),
|
|
477
|
+
"local_ts": ColumnSpec(rename_to="update_local_ts", cast_dtype=pl.Int64),
|
|
478
|
+
"created_ts": ColumnSpec(rename_to="create_exchange_ts", cast_dtype=pl.Int64),
|
|
479
|
+
# === Identity ===
|
|
480
|
+
"ukey": ColumnSpec(cast_dtype=pl.Int64), # int32 → Int64 for consistency
|
|
481
|
+
"order_id": ColumnSpec(), # Already Int64
|
|
482
|
+
"ecn": ColumnSpec(),
|
|
483
|
+
# === Event ===
|
|
484
|
+
"event": ColumnSpec(rename_to="event_type"),
|
|
485
|
+
"reason": ColumnSpec(),
|
|
486
|
+
# === Order ===
|
|
487
|
+
"order_side": ColumnSpec(),
|
|
488
|
+
"order_qty": ColumnSpec(cast_dtype=pl.Int64),
|
|
489
|
+
"order_price": ColumnSpec(),
|
|
490
|
+
"price_type": ColumnSpec(rename_to="order_price_type"),
|
|
491
|
+
# === Fill (per-fill incremental, NOT cumulative) ===
|
|
492
|
+
"fill_qty": ColumnSpec(cast_dtype=pl.Int64),
|
|
493
|
+
"fill_price": ColumnSpec(),
|
|
494
|
+
# === Quote ===
|
|
495
|
+
"bid": ColumnSpec(rename_to="bid_px0"),
|
|
496
|
+
"ask": ColumnSpec(rename_to="ask_px0"),
|
|
497
|
+
"bsize": ColumnSpec(rename_to="bid_size0", cast_dtype=pl.Int64),
|
|
498
|
+
"asize": ColumnSpec(rename_to="ask_size0", cast_dtype=pl.Int64),
|
|
499
|
+
# === Position ===
|
|
500
|
+
"pos": ColumnSpec(rename_to="current_realized_net_pos", cast_dtype=pl.Int64),
|
|
501
|
+
"live_pos": ColumnSpec(rename_to="current_net_pos", cast_dtype=pl.Int64),
|
|
502
|
+
"tpos": ColumnSpec(rename_to="target_pos", cast_dtype=pl.Int64),
|
|
503
|
+
# === Spread (keep Float64) ===
|
|
504
|
+
"hs": ColumnSpec(rename_to="half_spread_bps"),
|
|
505
|
+
"hhs": ColumnSpec(rename_to="hist_half_spread_bps"),
|
|
506
|
+
"tod_spread": ColumnSpec(rename_to="tod_spread_bps"),
|
|
507
|
+
},
|
|
508
|
+
null_values=["", "NA", "null", "None", "NaN"],
|
|
509
|
+
)
|
|
510
|
+
|
|
511
|
+
|
|
468
512
|
# =============================================================================
|
|
469
513
|
# Schema Registry
|
|
470
514
|
# =============================================================================
|
|
@@ -474,6 +518,7 @@ SCHEMAS: dict[str, SchemaEvolution] = {
|
|
|
474
518
|
"jyao_v20251114": JYAO_V20251114,
|
|
475
519
|
"jyao_univ_v20251230": JYAO_UNIV_V20251230,
|
|
476
520
|
"sim_standard": SIM_STANDARD,
|
|
521
|
+
"eric_v20260205": ERIC_V20260205,
|
|
477
522
|
}
|
|
478
523
|
|
|
479
524
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
vizflow/__init__.py,sha256=
|
|
1
|
+
vizflow/__init__.py,sha256=6rvfNSHj6FPHSYMurMs2tRKjdBcNMqU5kSJOQL9GMgg,615
|
|
2
2
|
vizflow/config.py,sha256=nPZPXlqQbaY8u_FAdtPShvb0mdx3e2TRaQ2CILzliAU,7192
|
|
3
3
|
vizflow/io.py,sha256=bodtL01fxF_fIeuxQ9V74utZD3_yFWjCxPqV3jX4bjs,11821
|
|
4
4
|
vizflow/market.py,sha256=MtNz_nnZxC66Aq-i2PXEwaFCTknijFWYZUUv6798k2s,2493
|
|
5
5
|
vizflow/ops.py,sha256=cUFeDdWfMk2hG8hpevTz_Dfnzk3fnhTI79UwMGzUkHw,10534
|
|
6
6
|
vizflow/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
vizflow/schema_evolution.py,sha256=
|
|
7
|
+
vizflow/schema_evolution.py,sha256=1aIQo1hy93yGx19zwU7JdnwNIG_OzBb3TXp8yvtBnz4,21313
|
|
8
8
|
vizflow/viz.py,sha256=dzcY72hWMVbxWIyjwfUW3Ot3CunaP7O4GLVUzzOjkbY,1212
|
|
9
|
-
vizflow-0.5.
|
|
10
|
-
vizflow-0.5.
|
|
11
|
-
vizflow-0.5.
|
|
9
|
+
vizflow-0.5.15.dist-info/METADATA,sha256=UZX3YXUK-V9r2WSY10d-9QJVga__mEor2qg_SBWLQVk,389
|
|
10
|
+
vizflow-0.5.15.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
11
|
+
vizflow-0.5.15.dist-info/RECORD,,
|
|
File without changes
|