Skip to main content
Version: 8.6.10.4

AwayStockLocate

V8 Message Definiton

AwayStockLocate records state locate quantities a client has sourced away from SpiderRock (directly from a locate desk or clearing firm). They are commands, not accounting truth: execution engines fold them into LocateFragment/AvailableStockLocates records and enforce the consumed floor there. noticeID 0 is the rolling statement row, updated in place with the CUMULATIVE stated quantity for the pool; non-zero noticeIDs carry per-line statements. Replaces the ClientStockLocate write path.

METADATA​

AttributeValue
Topic1725-client-borrow
MLink TokenClientControl
ProductSRControl
accessTypeSELECT
MLink EndpointMLink-Order

Table Definition​

FieldTypeKeyDefault ValueComment
ticker_atenum - AssetTypePRI'None'
ticker_tsenum - TickerSrcPRI'None'
ticker_tkVARCHAR(12)PRI''
coreClientFirmVARCHAR(16)PRI''
locateFirmVARCHAR(6)PRI''typically a clearing firm or 3rd party locate desk
locatePoolVARCHAR(16)PRI''locate pool firm granting the locate
laneenum - ProdTestPRI'None'stamped at origin propagated never recomputed
tradeDateDATEPRI'1900-01-01'
noticeIDCHAR(19)PRI'0000-0000-0000-0000'0 rolling cumulative statement for the pool nonzero perline statement
locateQuanINT0cumulative stated quantity noticeID 0 or line quantity
isLocateExemptenum - YesNo'None'Yes ticker is locate exempt only allowed for market makers
locateSourceenum - LocateSource'None'channel that wrote the statement
altSecurityIdVARCHAR(20)''An alternative securityID can be cusip or other
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
ticker_tk1
ticker_at2
ticker_ts3
coreClientFirm4
locateFirm5
locatePool6
lane7
tradeDate8
noticeID9

SELECT TABLE EXAMPLE QUERY​

SELECT *
FROM `SRControl`.`MsgAwayStockLocate`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE','CRDT','GCR','SWAP','ENT','MBS','SET','LOAN') */
`ticker_at` = 'NONE'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','SCE','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFEC','ICEFEF','CEQT','TSX','TMX','CRCY','CMDY','DTI','SOVN','SR_US','SR_EU','SR_AP','SR_UK','USD','EUR','GBP','CHF','JPY','CAD','AUD','HKD','KRW','INR','SGD','TWD','CNY','CNH','BRL','MXN','ZAR','SEK','NOK','DKK','PLN','ILS','TRY','NZD','THB','MYR','IDR','PHP','CZK','HUF','SAR','AED','CLP','COP') */
`ticker_ts` = 'NONE'
AND
/* Replace with a VARCHAR(12) */
`ticker_tk` = 'Example_ticker_tk'
AND
/* Replace with a VARCHAR(16) */
`coreClientFirm` = 'Example_coreClientFirm'
AND
/* Replace with a VARCHAR(6) */
`locateFirm` = 'Example_locateFirm'
AND
/* Replace with a VARCHAR(16) */
`locatePool` = 'Example_locatePool'
AND
/* Replace with a ENUM('None','Prod','Test') */
`lane` = 'NONE'
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a CHAR(19) */
`noticeID` = 'Example_noticeID';

Doc Columns Query​

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