What are the meaning of the fields "SALTIM_MS", "QUOTIM_MS"

I saw the below link.
https://raw.githubusercontent.com/Refinitiv/Real-Time-SDK/master/Java/etc/RDMFieldDictionary
But I can't understand the difference between "SALTIM_MS" and "QUOTIM_MS".
I find out that the "SALTIM_MS", "QUOTIM_MS" seems to be appeared together at each trade data.
Can you explain these fields clearly??
I wrote a test code
import java.time.Instant;
import java.time.OffsetDateTime;
import java.time.ZoneId;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
public class JustTestTest {
private final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS.ZZZ");
@Test
@DisplayName("SALTIM_MS, QUOTIM_MS COMPARISON ... ")
public void test1(){
// test case 1)
// "SALTIM_MS":"74190165" "QUOTIM_MS":"59062944"
OffsetDateTime saltim_ms1 = processMilliSecondField("74190165");
OffsetDateTime quotim_ms1 = processMilliSecondField("59062944");
String string1 = formatString(saltim_ms1.format(formatter), quotim_ms1.format(formatter));
System.out.println(string1);
System.out.println();
// test case 2)
// "SALTIM_MS":"75014899" "QUOTIM_MS":"75017913"
OffsetDateTime saltim_ms2 = processMilliSecondField("75014899");
OffsetDateTime quotim_ms2 = processMilliSecondField("75017913");
String string2 = formatString(saltim_ms2.format(formatter), quotim_ms2.format(formatter));
System.out.println(string2);
System.out.println();
// test case 3)
// "SALTIM_MS":"74828357" "QUOTIM_MS":"75000573"
OffsetDateTime saltim_ms3 = processMilliSecondField("74828357");
OffsetDateTime quotim_ms3 = processMilliSecondField("75000573");
String string3 = formatString(saltim_ms3.format(formatter), quotim_ms3.format(formatter));
System.out.println(string3);
System.out.println();
}
public OffsetDateTime processMilliSecondField(String timeStr){
OffsetDateTime serverTodayUTCMilli = ZonedDateTime.now(ZoneId.of("Etc/UTC"))
.withZoneSameLocal(ZoneId.of("Etc/UTC"))
.truncatedTo(ChronoUnit.DAYS)
.toOffsetDateTime();
long timeMilli = Long.parseLong(timeStr);
Long tradeMilli = serverTodayUTCMilli.toInstant().toEpochMilli() + timeMilli;
OffsetDateTime offsetDateTime = OffsetDateTime.ofInstant(Instant.ofEpochMilli(tradeMilli), ZoneOffset.UTC);
return offsetDateTime;
}
public String formatString (String saltim_ms, String quotim_ms){
StringBuilder builder = new StringBuilder();
builder.append("SALTIM_MS = ").append(saltim_ms).append(", ")
.append("QUOTIM_MS = ").append(quotim_ms).append(".");
return builder.toString();
}
}
And. I ran it, the result is like below text.
SALTIM_MS = 2022-03-01T20:36:30.165.+0000, QUOTIM_MS = 2022-03-01T16:24:22.944.+0000.
SALTIM_MS = 2022-03-01T20:50:14.899.+0000, QUOTIM_MS = 2022-03-01T20:50:17.913.+0000.
SALTIM_MS = 2022-03-01T20:47:08.357.+0000, QUOTIM_MS = 2022-03-01T20:50:00.573.+0000.
Best Answer
-
The followings are the definitions of SALTIM_MS and QUOTIM_MS in the data dictionary file (RDMFieldDictionary)
SALTIM_MS "SALTIM MS" 3854 NULL INTEGER 15 UINT64 4
!
! Time of the last trade with precision in milliseconds - the time of the last update
! to the field TRDPRC_1 (FID 6).
!
QUOTIM_MS "QUOTIM MS" 3855 NULL INTEGER 15 UINT64 4
!
! Time of best bid/ask quote update in milliseconds
!However, the usages may be different among exchanges. You can contact the content support team directly via MyRefinitiv to verify the definitions in each exchange.
0
Answers
-
Hello @goodsgjung
There is a Data Model Discovery tool (or you can access it via this https://developers.refinitiv.com/en/tools-catalog link) that lets you search the fields and fids detail of each market. However, you can contact the content support team directly as mentioned by my colleague to get more detail too.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 249 ETA
- 554 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛