OpenD small test 03
No-GUI continuous CSV PASS

OpenD完全無安裝/無執行。FTNN native CSV仍只會喺GUI SaveStrToCSVFile 路徑被叫先輸出;無verified backend export command。解法係probe JSONL後面加append-only CSV sidecar,唔依賴GUI。

流程

FTNN 0x1844 / 0x1811
  → strict probe JSONL
  → a88_stream_csv_exporter.py --follow
  → tick.csv / orderbook.csv / kline.csv
  → durable checkpoint(device,inode,offset)

離線小試

Input係已驗證unified live log 65,109 B。第一次:tick 16、orderbook 142、Kline 26;同checkpoint再跑第二次三類全部0,證exactly-once resume。全程無碰remote r5。

CSVBytesSHA-256Rows
kline.csv3300e10ffe11e3c4fdb599c0a3dad94f4e69ca4b5843312db2039abf98e1333bf01e26
orderbook.csv18697c99b02c3f32216fa3510408fc61439ead24fe3bb8257e12a0685235f24bb7f1f142
tick.csv20731b32f4afb4602cc3c5a41b6e8931ab820331060de8a84f8347e156562499e84d16

背景運行

tmux new -d -s csv-stream   python3 a88_stream_csv_exporter.py PROBE.jsonl   --out-dir CSV_DIR --checkpoint CHECKPOINT.json --follow

CSV filename係檔案身份,唔係market timestamp;每row時間欄先係data time。Native FTNN CSV如果將來有verified backend trigger,可另做adapter,但而家唔冒稱有。

Pins

Exporter 5706 B · a9e69e64e99e07d1a59cbb896e30255b5ae0356f0062a33b16b9658bbe512f1b
Run1 277 B · e5e676408971d97091c438744ccd81f905172a24b03ff54cd3edee3a23349cfe
Run2 273 B · b19720fbdf3aad7b726a7505da151fe484149028f5a5052aaaf451e3313af7ed
Checkpoint 53 B · a1812fd7e9329727ad7e01f6aafb0edff148d4f5761ac45fe5eedb182693fd1e

kline.csv

source_event,wall_ms,mono_ms,sec_id,mkt,bar_ts,open,high,low,close,volume,turnover,source
rsp_kline_0x1811,1795893246557,3481620185,88537463839746,37,1795892940,148.24,148.24,148.2,148.23,24099,3571858,history_pull
rsp_kline_0x1811,1795893246557,3481620185,88537463839746,37,1795893000,148.23,148.26,148.17,148.17,48115,7132630,history_pull
rsp_kline_0x1811,1795893246557,3481620185,88537463839746,37,1795893060,148.17,148.17,148.12,148.16,3847,569856,history_pull

orderbook.csv

source_event,wall_ms,mono_ms,sec_id,mkt,exchange_ms,bid1_price,bid1_volume,bid1_count,ask1_price,ask1_volume,ask1_count,bid_sum,ask_sum,imbalance
push_orderbook_bit3,1795893246523,3481620152,88537463839746,37,1795893242855,148.21,13.802,0,148.22,13.37,0,13.802,13.37,0.015899
push_orderbook_bit3,1795893246523,3481620152,88537463839746,37,1795893242855,148.21,13.802,0,148.22,13.37,0,13.802,13.37,0.015899
push_orderbook_bit3,1795893251811,3481625439,88537463839746,37,1795893244965,148.21,6.53,0,148.22,13.37,0,6.53,13.37,-0.343719

tick.csv

source_event,wall_ms,mono_ms,sec_id,mkt,tick_key,tick_type,exchange_ms,server_ms,price,volume_raw
push_tick_bit35,1795893253995,3481627623,88537463839746,37,7713302780152119296,2,1795893251403,1795893251618.0,148.2,906
push_tick_bit35,1795893260033,3481633661,88537463839746,37,7713302793037021184,1,1795893254557,1795893254784.0,148.22,127
push_tick_bit35,1795893266711,3481640339,88537463839746,37,7713302835986694144,2,1795893264627,1795893264879.0,148.21,752

限制:sidecar只轉換已收到數據,唔會繞過行情entitlement;upstream duplicate row仍需按flow key去重。