YES=現有probe live驗證;PARTIAL=有stream但欄位未全輸出;EXTENDABLE=協定有路徑但未live驗;NO=現有probe/授權路徑攞唔到。Result=0唔等於每bit entitlement。
1. subscribe() 參數
| OpenD參數 | FTNN對應 | 狀態 | 驗證步驟 |
|---|---|---|---|
| code_list | code→SID;SecuritySubscribe.security_id+2-byte NN_CSMktType ext。 | YES | IStockUtil::GetCSMktType;0x1843 log核SID/mkt;response result0。 |
| subtype_list | 翻譯成BitInfo list;見下一表。 | PARTIAL | 逐bit獨立訂閱;raw 0x1844按bit計frame。 |
| is_first_push | OpenD→script cache行為;0x1843無同名wire field。 | NO(FTNN層不適用) | 只可由外部已運行OpenD測;現底線禁止。 |
| subscribe_push | OpenD callback registration;FTNN層係server subscription+in-process hook。 | NO(不同層) | FTNN以0x1843/0x1844驗,唔冒充OpenD flag。 |
| is_detailed_orderbook | bit3 orders/detail子訊息;現parser驗證但唔完整輸出。 | PARTIAL | 需要HK SF/US LV2 entitlement;比對detailList count。 |
| extended_time / session | 應映射Kline/TimeShare/Ticker session prob;現USDC probe無實作。 | EXTENDABLE | 授權美股symbol+maintenance window;盤前/regular/after矩陣。 |
2. 全部 SubType
| OpenD SubType (enum) | FTNN候選 | 現狀 | 可攞數據/缺口 |
|---|---|---|---|
| QUOTE (1) | bit0 Price+bit1 StockState;其他basic quote coverage bits。 | EXTENDABLE | 現request會帶0/1,但unified probe未decode BasicQot全部欄。 |
| ORDER_BOOK (2) | bit3 | YES | top bid/ask、volume、order_count、sum、imbalance、exchange ms;完整levels/detailList目前PARTIAL。 |
| TICKER (4) | bit35 | YES | sequence、direction/type raw、match ms、price、raw volume、server ms;turnover/typeSign/pushDataType未全映射。 |
| RT_DATA (5) | TimeShare/OnPushTimeShare;候選bit20 KLine_TimeShare。 | EXTENDABLE/未live驗 | time、minute、price、last_close、avg_price、volume、turnover、timestamp。 |
| K_DAY (6) | bit10001 Custom_KLine+不同KlineSubProb/KlineTypeV2 | PARTIAL | 現probe live只驗K_1M;3m/5m/10m/15m/30m/60m/120m/180m/240m/day/week/month/quarter/year可改prob2,但逐週期未live驗。 |
| K_5M (7) | |||
| K_15M (8) | |||
| K_30M (9) | |||
| K_60M (10) | |||
| K_1M (11) | |||
| K_WEEK (12) | |||
| K_MON (13) | |||
| K_QUARTER (15) / K_YEAR (16) | |||
| K_3M (17) / K_10M (18) | |||
| K_120M (19) / K_180M (20) | |||
| K_240M (21) | |||
| BROKER (14) | Broker queue coverage path;現無verified bit/cmd。 | NO current probe | id/name/pos/orderID/volume;要先做binary symbol+entitlement研究。 |
| ORDER_BOOK_ODD (22) | Odd-lot orderbook candidate path。 | NO current probe | 未有live bit mapping/entitlement證據,唔猜數字。 |
3. BasicQot 全欄位
| 欄位組 | OpenD欄位 | FTNN現狀 | 驗證 |
|---|---|---|---|
| Identity/status | security, name, isSuspended, listTime/listTimestamp, darkStatus, secStatus | SID/market有;其餘NO current decoder | 擴展bit0/1/stock static decoder;同stock manifest比對。 |
| Price | priceSpread, updateTime/updateTimestamp, highPrice, openPrice, lowPrice, curPrice, lastClosePrice | bit0 Price可擴展 | raw 0x1844 bit0 capture+live descriptor wire lock。 |
| Volume/value | volume, turnover, turnoverRate, amplitude | bit0/bit5可擴展 | precision fields+high-precision strings;同Kline/tick聚合交叉核。 |
| Pre/after | preMarket/afterMarket: price,high,low,volume,turnover,changeVal,changeRate,amplitude | NO current USDC path | 需US entitlement+extended session。 |
| OptionEx | strikePrice, contractSize/int/float, openInterest, IV, premium, delta,gamma,vega,theta,rho, netOI, expiryDistance, nominal, lotMultiplier, areaType, multiplier,indexOptionType | NO current probe | 需option symbol/entitlement及對應coverage decoder。 |
| FutureEx | lastSettlePrice, position, positionChange, expiryDateDistance | NO current decoder | 候選StockTypeSpecific/DealStatistics;需futures fixture。 |
4. TimeShare / Static / Broker
| 結構 | 全部核心欄位 | 現狀 |
|---|---|---|
| TimeShare | time, minute, isBlank, price, lastClosePrice, avgPrice, volume, turnover, timestamp | 未實作;可由OnPushTimeShare/bit20研究。 |
| SecurityStaticBasic | security,id,lotSize,secType,name,listTime,delisting,listTimestamp,exchType | SID/code/name manifest有;其餘唔經現live probe。 |
| WarrantStaticEx | type, owner | 未實作。 |
| OptionStaticEx | type,owner,strikeTime,strikePrice,suspend,market,strikeTimestamp,indexOptionType,expirationCycle,standardType,settlementMode | 未實作。 |
| FutureStaticEx | lastTradeTime,lastTradeTimestamp,isMainContract | 未實作。 |
| Broker | id,name,pos,orderID,volume | 未有verified cmd/bit。 |
5. Ticker 全欄位
| 欄位 | FTNN mapping | 現狀/步驟 |
|---|---|---|
| time / timestamp | TickItem exchange match ms | YES;轉格式時保留raw ms。 |
| sequence | tick_key/seq_id | YES;unique key,batch內可descending。 |
| dir | raw tick_type 1/2/3 | YES;用manual enum映BUY/SELL/NEUTRAL。 |
| price | item #4 fixed-point 1e9 | YES。 |
| volume | raw volume+precision/#22 exact qty string | raw有;final unified log未完整輸出qty_str。 |
| turnover | 無verified raw同名item field | NO raw;price×qty只可標derived。 |
| recvTime | local wall/mono receive time | YES。 |
| type / typeSign / pushDataType | 其他TickItem varint/string fields | raw validation有,語義未逐欄live釘實。 |
6. OrderBook 全欄位
| price | YES,fixed-point÷1e9。 |
|---|---|
| volume | YES,按field10 precision縮放。 |
| orderCount | YES;當市場不提供可為0。 |
| detailList.orderID / volume | submessage strict validation有;現log無逐單輸出;需detail entitlement。 |
| 完整Bid/Ask arrays | wire有repeated items;現log只top1+sum/imbalance,需改輸出struct。 |
| server/exchange receive times | exchange ms有;bid/ask分開server receive time未完整映射。 |
7. KLine / 3103 history 全欄位
| 欄位 | FTNN現狀 |
|---|---|
| time / timestamp / isBlank | bar_ts有;metadata-only placeholder對應isBlank語義,分開count。 |
| open/high/low/close | YES。 |
| lastClosePrice | wire可見field11;現clean log未輸出。 |
| volume / turnover | YES;crypto high-precision string需擴展保留。 |
| turnoverRate / pe / changeRate | 現parser驗/略過,未輸出語義欄。 |
| code / name | SID→code manifest有;name需static mapping。 |
| page_req_key | OpenD facade opaque token;raw用has_more/next_time或end_time boundary。 |
request_history_kline參數
| code | SID+market ext · YES |
|---|---|
| start/end | begin_time/end_time+data_range_type · YES |
| ktype | kline_type+KlineTypeV2 · 1m YES,其餘待live驗 |
| autype | exright · YES schema;市場適用性另驗 |
| fields | 現raw probe無field selection · NO |
| max_count | item_count 1..1000 · YES;live process大批量禁止 |
| page_req_key | 無直接bytes mapping · NO |
| extended_time/session | 現probe未實作 · EXTENDABLE |
8. 點驗證「攞到」
- 每SubType獨立0x1843 sent/rsp;result0只係第一gate。
- raw OnRecvPush計對應bit frame;0 frame先查靜市/entitlement/request shape。
- 有frame但malformed:capture一個public payload,鎖wire type/precision。
- 欄位逐一同manual type、live descriptor、known fixture比對。
- 至少兩個symbol/兩個市場驗證,避免把symbol-specific當通用。
- 結果列YES/PARTIAL/NO;未知唔命名。
9. 結論
現有FTNN層已穩定攞到:bit3核心orderbook、bit35核心ticker、bit10001 1m Kline、0x1811核心history。可擴展但未完成:BasicQot bit0/1、TimeShare/RT_DATA、其他Kline週期、完整levels/detail、Ticker type flags、Kline PE/turnoverRate/changeRate/lastClose。現時攞唔到:Broker queue、odd-lot orderbook、option/futures/static完整結構、OpenD cache flags/page token。
Pinned sources
| sub.html | 379,214 B · 74442587bc6ddf34708d167a65c123cd7b080262898b2a97dfc104f9c9f8117d |
|---|---|
| quote.html | 611,464 B · 727fd9749fb58c42228f519223da09734f40be4e1c8c0b3717c262a82d060029 |
| request-history-kline.html | 347,478 B · ea608de89fac5d2f163d342f6977a7724928e44f5c34a648b59ab9da53175178 |
| FTNN proto extract | 7,561 B · d17d014f594df5b8917fb14729d928ef7ec3808ad03b1147a63413f61b782209 |
| Unified probe source | 112,604 B · f51f299d327e00d78d043726d7ee3197c2477a0a2fddd32c01ca00e52cb2f47b |
| Live restoration evidence | 28,453 B · 30a75dc8084b8b9874ed40a3b3127851e3312a3908328c89f8b7706adfea5b2e |