How to calculate the actual volume of the first tick of a new day
We let the RDP example code run overnight. It looks like the volume(CF_VOLUME) of the first tick (please see an example tick below) received on the second day includes the pre-market volume. I'd like to subtract the pre-market volume to get the actual volume of the first tick.
I saw there is a "BLKVOLUM" field in the message for total volume for all block trades for the day. But I don't think it represents the pre-market volume? There is another field called "ELG_ACVOL". But I couldn't find the definition of that field. What does this field represent? Can it be used in this case? If not, how should the actual volume be calculated?
[
{
"ID": 2,
"Type": "Update",
"UpdateType": "Multiple",
"Key": {
"Service": "R1",
"Name": "/IBM.N"
},
"SeqNumber": 57678,
"Fields": {
"TRDPRC_1": 142.58,
"TRDVOL_1": 100,
"ACVOL_1": 101340,
"REPORT_VOL": 101340,
"ACVOL_UNS": 101340,
"LSTSALCOND": " ",
"LS_SUBIND": " ",
"GV2_FLAG": " ",
"NUM_MOVES": 5,
"PRCTCK_1": "\u21e9",
"RETRAN_IND": "1",
"SEQNUM": 42439,
"THRESH_IND": "1",
"TRD_THRU_X": " ",
"GV2_TEXT": " ",
"TRNOVR_UNS": 14469263,
"VWAP": 142.779384,
"VOL_X_PRC1": 142.7794,
"VWAP_VOL": 101340,
"CTS_QUAL": " ",
"NETCHNG_1": -0.75,
"PCTCHNG": -0.5233,
"PCT_ABNVOL": 0.0596,
"PRNTYP": " ",
"SALTIM_MS": 48601100,
"SALTIM": "13:30:01",
"EXCHTIM": "13:30:01",
"TRDTIM_MS": 48601100,
"TRDTIM_1": "13:30:00",
"TRADE_DATE": "2023-08-02",
"BID": 142.52,
"ASK": 142.78,
"BIDSIZE": 3,
"ASKSIZE": 4,
"UPLIMIT": 149.92,
"LOLIMIT": 135.64,
"PRC_QL_CD": "R ",
"IRGPRC": 142.59,
"IRGVOL": 1,
"IRGCOND": "ODS",
"GEN_VAL3": 149.92,
"GEN_VAL4": 135.64,
"GV1_TEXT": " ",
"GV3_TEXT": "X",
"GV4_TEXT": " F I",
"QUOTIM": "13:30:01",
"GV1_FLAG": " ",
"GV3_FLAG": " ",
"STOCK_TYPE": " ",
"IRGVAL": 16,
"PRC_QL3": "R ",
"QUOTE_DATE": "2023-08-02",
"QUOTIM_MS": 48601994,
"SEQNUM_QT": 582150,
"IRG_SUBIND": " ",
"TRADE_ID": "52983525028674",
"IRG_TDTH_X": "X",
"IRGSALCOND": " F I",
"IRG_SEQNO": 42375,
"SETL_TYPE": "NRM",
"BOOK_STATE": "N",
"BID_COND_N": "R",
"ASK_COND_N": "R",
"QTE_ORIGIN": " ",
"RETAIL_INT": " ",
"LIMIT_IND2": "LPB",
"LIMIT_INDQ": " ",
"LULD_TM_MS": 48601017,
"IRGTIM_MS": 48601038,
"NBBO_IND": "1 ",
"HIGH_1": 142.78,
"LOW_1": 142.58,
"OPEN_PRC": 142.78,
"BLKCOUNT": 1,
"BLKVOLUM": 101023,
"ODD_VOLUME": 1,
"BC_100K": 1,
"OPN_NETCH": -0.55,
"BLK_PRC1": 142.78,
"FIN_STATUS": "N",
"ODD_PRC": 142.59,
"IRGDATE": "2023-08-02",
"TURN_BLOCK": 14424064,
"IRG_TRDID": "52983525028660",
"PRC_TICK": 0.01,
"OPEN_T_MS": 48601017,
"BLKTRDVOL": 101023,
"ODD_TRDVOL": 1,
"ELG_NUMMOV": 4,
"BLK_SEQNO": 42298,
"ODD_SEQNO": 42375,
"BLK_TRDID": "52983525028438",
"ODD_TRDID": "52983525028660",
"BLK_DATE": "2023-08-02",
"ODD_DATE": "2023-08-02",
"ODDSALCOND": " F I",
"BLKSALCOND": " O ",
"SECUR_ST": "F",
"HELD_T_IND": " ",
"LMT_TYPE": null,
"BLKTIM_MS": "13:30:01.017",
"ORDRECV_MS": "13:30:01.994",
"TRDRECV_MS": "13:30:01.1",
"ODDTIM_MS": "13:30:01.038",
"ELG_ACVOL": 101339,
"ELG_TNOV": 14469120.22,
"ODDTRN_UNS": 142.59,
"CF_LAST": 142.58,
"CF_HIGH": 142.78,
"CF_LOW": 142.58,
"CF_BID": 142.52,
"CF_ASK": 142.78,
"CF_DATE": "2023-08-02",
"CF_TIME": "13:30:00",
"CF_TICK": " \u21e9",
"CF_NETCHNG": -0.75,
"CF_VOLUME": 101340
}
}
]
Best Answer
Answers
-
Hello @Jili
If you need more detail about the Refinitiv Real-Time field definition, I highly recommend you contact the content support team directly (You may need to give them your RIC, service name detail). You can submit a ticket to the content team via https://my.refinitiv.com/content/mytr/en/productsupport.html website.
0 -
Hello @Jili
The only description I found about the "ELG_ACVOL" field is from the Refinitiv Real-Time Data Model discovery (https://refinitiv.fixspec.com/stack/specs/elektron) is "Accumulated Eligible Trade Volume"
You may check this field definition for each exchange in the https://refinitiv.fixspec.com/stack/specs/elektron website (https://developers.refinitiv.com/ --> Developer Tools --> Data Model Discovery menus).
If you need more detail about the Refinitiv Real-Time field definition, I highly recommend you contact the content support team directly. You can submit a ticket to the content team via https://my.refinitiv.com/content/mytr/en/productsupport.html website (You may need to give them your RIC, service name detail).
0 -
Hi @Jili ,
You can check the field description with Data Model Discovery. (Check How to Get Started with Data Model Discovery)
Here's the description of ELG_ACVOL
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛