Skip to main content
Version: Upcoming

GlobalRates

V8 Message Definiton

METADATA

AttributeValue
Topic3585-option-pricing
MLink TokenGlobalDefinition
ProductSRAnalytics
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
rateSourceenum - RateSourcePRI'Default'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'
CurveListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
rateSource1

JSON Block (CurveList)

FieldTypeComment
daysenum - dayscalendar days to expiration actual365 days per year
rateenum - rate

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRAnalytics`.`MsgGlobalRates` (
`rateSource` ENUM('Default','OIS','SOFR','SpxBox','StoxxBox','Test1','Test2','ESTR') NOT NULL DEFAULT 'Default',
`timestamp` DATETIME(6) NOT NULL DEFAULT '1900-01-01 00:00:00.000000',
`CurveList` JSON NOT NULL DEFAULT JSON_ARRAY() CHECK(JSON_VALID(CurveList)),
PRIMARY KEY USING HASH (`rateSource`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`rateSource`,
`timestamp`,
`CurveList`
FROM `SRAnalytics`.`MsgGlobalRates`
WHERE
/* Replace with a ENUM('Default','OIS','SOFR','SpxBox','StoxxBox','Test1','Test2','ESTR') */
`rateSource` = 'Default';

Doc Columns Query

SELECT * FROM SRAnalytics.doccolumns WHERE TABLE_NAME='GlobalRates' ORDER BY ordinal_position ASC;