Skip to main content
Version: Upcoming

ClientAccountConfig

V8 Message Definiton

METADATA

AttributeValue
Topic1800-client-config
MLink TokenClientControl
ProductSRControl
accessTypeSELECT,UPDATE,INSERT,DELETE
MLink EndpointMLink-Live

Table Definition

FieldTypeKeyDefault ValueComment
accntVARCHAR(16)PRI''
clientFirmVARCHAR(16)PRI''SR assigned client firm acronym
clientTagsTEXT''optional user defined account tags eg tagtagtagtag max of 10000 total chars including seps
proxyFirm1VARCHAR(16)''proxy firm 1
proxyFirm2VARCHAR(16)''proxy firm 2
proxyFirm3VARCHAR(16)''proxy firm 3
theoModelVARCHAR(16)''theo model empty use default from SR account config
theoModel2VARCHAR(16)''theo model2 empty use default from SR account config
hedgeDeltaRuleenum - HedgeDeltaRule'None'HedgeDelta Source IVol use SR implied surface sticky strike IvS use SR surface dynamic TVol use user supplied theo surface sticky strike TvS use user supplied theo surface dynamic AccountConfighedgeDelta
binaryDaysFLOAT-1used to force delta calcs binary prior to expiration 1 use SR account config value can be overridden by SymbolControlbinaryDays
accntColorVARCHAR(16)''color used to display this account
modifiedByVARCHAR(24)''user who last modified this record
modifiedInenum - SysEnvironment'None'
timestampDATETIME(6)'1900-01-01 00:00:00.000000'timestamp of last modification

PRIMARY KEY DEFINITION (Unique)

FieldSequence
accnt1
clientFirm2

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRControl`.`MsgClientAccountConfig`
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

UPDATE TABLE EXAMPLE QUERY

UPDATE `SRControl`.`MsgClientAccountConfig` 
SET
/* Replace with a TEXT */
`clientTags` = 'dummy text',
/* Replace with a VARCHAR(16) */
`proxyFirm1` = 'Example_proxyFirm1',
/* Replace with a VARCHAR(16) */
`proxyFirm2` = 'Example_proxyFirm2',
/* Replace with a VARCHAR(16) */
`proxyFirm3` = 'Example_proxyFirm3',
/* Replace with a VARCHAR(16) */
`theoModel` = 'Example_theoModel',
/* Replace with a VARCHAR(16) */
`theoModel2` = 'Example_theoModel2',
/* Replace with a ENUM('None','IVol','IvS','TVol','TvS','Binary','IvS_25','IvS_50','IvS_75','TvAll','TvAllS') */
`hedgeDeltaRule` = 'None',
/* Replace with a FLOAT */
`binaryDays` = 1.23,
/* Replace with a VARCHAR(16) */
`accntColor` = 'Example_accntColor',
/* Replace with a DATETIME(6) */
`timestamp` = '2022-01-01 12:34:56.000000'
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

INSERT TABLE EXAMPLE QUERY

INSERT INTO `SRControl`.`MsgClientAccountConfig`(
/* Replace with a VARCHAR(16) */
`accnt`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a TEXT */
`clientTags`,
/* Replace with a VARCHAR(16) */
`proxyFirm1`,
/* Replace with a VARCHAR(16) */
`proxyFirm2`,
/* Replace with a VARCHAR(16) */
`proxyFirm3`,
/* Replace with a VARCHAR(16) */
`theoModel`,
/* Replace with a VARCHAR(16) */
`theoModel2`,
/* Replace with a ENUM('None','IVol','IvS','TVol','TvS','Binary','IvS_25','IvS_50','IvS_75','TvAll','TvAllS') */
`hedgeDeltaRule`,
/* Replace with a FLOAT */
`binaryDays`,
/* Replace with a VARCHAR(16) */
`accntColor`,
/* Replace with a DATETIME(6) */
`timestamp`
)
VALUES(
'Example_accnt',
'Example_clientFirm',
'dummy text',
'Example_proxyFirm1',
'Example_proxyFirm2',
'Example_proxyFirm3',
'Example_theoModel',
'Example_theoModel2',
'None',
1.23,
'Example_accntColor',
'2022-01-01 12:34:56.000000'
);

DELETE TABLE EXAMPLE QUERY

DELETE FROM `SRControl`.`MsgClientAccountConfig` 
WHERE
/* Replace with a VARCHAR(16) */
`accnt` = 'Example_accnt'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';

Doc Columns Query

SELECT * FROM SRControl.doccolumns WHERE TABLE_NAME='ClientAccountConfig' ORDER BY ordinal_position ASC;