Skip to main content
Version: Upcoming

AccountExchGroupRteTable

V8 Message Definiton

METADATA

AttributeValue
Topic5120-srse-gateway
MLink TokenConfigGateway
ProductSRConfigGateway
accessTypeSELECT,UPDATE,INSERT,DELETE
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
templateNameVARCHAR(32)PRI''
clientFirmVARCHAR(16)PRI''
AccntRouteTableListJSON'JSON_ARRAY()'

PRIMARY KEY DEFINITION (Unique)

FieldSequence
templateName1
clientFirm2

JSON Block (AccntRouteTableList)

FieldTypeComment
enabledenum - YesNo
execBrkrCodeenum - execBrkrCode
routeAllocMetricenum - routeAllocMetric
brkrExDestenum - brkrExDestorder routing string if any used to force orders use a specific ExDest regardless of the actual exchange destination

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRConfigGateway`.`MsgAccountExchGroupRteTable` (
`templateName` VARCHAR(32) NOT NULL DEFAULT '',
`clientFirm` VARCHAR(16) NOT NULL DEFAULT '',
`AccntRouteTableList` JSON NOT NULL DEFAULT JSON_ARRAY() CHECK(JSON_VALID(AccntRouteTableList)),
PRIMARY KEY USING HASH (`templateName`,`clientFirm`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='';

SELECT TABLE EXAMPLE QUERY

SELECT
`templateName`,
`clientFirm`,
`AccntRouteTableList`
FROM `SRConfigGateway`.`MsgAccountExchGroupRteTable`
WHERE
/* Replace with a VARCHAR(32) */
`templateName` = 'Example_templateName'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

UPDATE TABLE EXAMPLE QUERY

UPDATE `SRConfigGateway`.`MsgAccountExchGroupRteTable` 
SET
/* Replace with a JSON */
`AccntRouteTableList` = '{"key": "value"}'
WHERE
/* Replace with a VARCHAR(32) */
`templateName` = 'Example_templateName'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

INSERT TABLE EXAMPLE QUERY

INSERT INTO `SRConfigGateway`.`MsgAccountExchGroupRteTable`(
/* Replace with a VARCHAR(32) */
`templateName`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a JSON */
`AccntRouteTableList`
)
VALUES(
'Example_templateName',
'Example_clientFirm',
'{"key": "value"}'
);

DELETE TABLE EXAMPLE QUERY

DELETE FROM `SRConfigGateway`.`MsgAccountExchGroupRteTable` 
WHERE
/* Replace with a VARCHAR(32) */
`templateName` = 'Example_templateName'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRConfigGateway.doccolumns WHERE TABLE_NAME='AccountExchGroupRteTable' ORDER BY ordinal_position ASC;