StockLocateRequest
StockLocateRequest records represent a client locate requests. These originate either from the SRSE AwayStockLocateGateway or from other SR Tools or APIs. VLanBridge:FieldRename:coreClientFirm:clientFirm BridgeFromV7
METADATA
| Attribute | Value |
|---|---|
| Topic | 1725-client-borrow |
| MLink Token | ClientControl |
| Product | SRControl |
| accessType | SELECT |
| MLink Endpoint | MLink-Live |
Table Definition
| Field | Type | Key | Default Value | Comment |
|---|---|---|---|---|
| ticker_at | enum - AssetType | PRI | 'None' | |
| ticker_ts | enum - TickerSrc | PRI | 'None' | |
| ticker_tk | VARCHAR(12) | PRI | '' | |
| coreClientFirm | VARCHAR(16) | PRI | '' | coreClientFirm |
| locateFirm | VARCHAR(6) | PRI | '' | |
| locatePool | VARCHAR(16) | PRI | '' | locate pool firm granting the locate |
| tradeDate | DATE | PRI | '1900-01-01' | |
| requestID | CHAR(19) | PRI | '0000-0000-0000-0000' | ID used to make locate requests SR generated request ID |
| requestQuan | INT | 0 | should be the request quantity for this request | |
| requestOrigin | enum - RequestOrigin | 'None' | ||
| requestMachine | VARCHAR(24) | '' | ||
| modifiedBy | VARCHAR(24) | '' | user who last modified this record | |
| modifiedIn | enum - SysEnvironment | 'None' | ||
| timestamp | DATETIME(6) | '1900-01-01 00:00:00.000000' | timestamp of last modification |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| ticker_tk | 1 |
| ticker_at | 2 |
| ticker_ts | 3 |
| coreClientFirm | 4 |
| locateFirm | 5 |
| locatePool | 6 |
| tradeDate | 7 |
| requestID | 8 |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRControl`.`MsgStockLocateRequest`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`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') */
`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 DATE */
`tradeDate` = '2022-01-01'
AND
/* Replace with a CHAR(19) */
`requestID` = 'Example_requestID';
Doc Columns Query
SELECT * FROM SRControl.doccolumns WHERE TABLE_NAME='StockLocateRequest' ORDER BY ordinal_position ASC;