StkOrderGateway
Records inserted, updated, or replaced into the StockOrderGateway table are validated and then converted to SpdrParentOrder records and forwarded to the appropriate execution engine for futher processing. Parent orders can be inserted as either active/ready or in a wait start mode that requires subsequent release. See the SpiderRock Execution Engine concept guide for more details.
METADATA
| Attribute | Value |
|---|---|
| Topic | 5120-srse-gateway |
| MLink Token | Internal |
| Product | SRTrade |
| accessType | SELECT,UPDATE(spdrActionType),INSERT,DELETE |
| 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 | '' | |
| accnt | VARCHAR(16) | PRI | '' | SR Account default primary account associated with SRSE login |
| orderSide | enum - BuySell | PRI | 'None' | Order side Values BuySell |
| groupingCode | CHAR(19) | PRI | '0000-0000-0000-0000' | Client supplied order |
| clientFirm | VARCHAR(16) | PRI | '' | |
| spdrActionType | enum - SpdrActionType | 'AddReplace' | Add new order AddReplace add or replace order Cancel cxl existing Replace update existing only Release modify order active size | |
| altOrderId | VARCHAR(24) | '' | Alternate client order ID This order ID will be copied to all execution reports | |
| altAccnt | VARCHAR(32) | '' | alternate client assigned long account string optional used to map between client and SR account strings | |
| altUserName | VARCHAR(24) | '' | alternate client assigned user name optional used to map between client and SR account strings | |
| execBrkrCode | VARCHAR(16) | '' | optional override the default execBrkrCode for this order | |
| externExDest | VARCHAR(16) | '' | routing code for orders directed to an external order router default null should match FixRoutingTabledestination in SR accnt config | |
| externParams | TINYTEXT | '' | external algo namesparameters usually just an algo name | |
| strategy | VARCHAR(36) | '' | Client strategy string This value will appear on the SR Trade Monitor and in execution reports | |
| strategyAccnt | VARCHAR(16) | '' | SR strategy account option if exists will be validated | |
| visibleInSV | enum - YesNo | 'None' | allow order to be visible in SV do not use for high volume of orders | |
| orderDttm | DATETIME(6) | '1900-01-01 00:00:00.000000' | order entry time from clientif any | |
| orderSize | INT | -1 | parent order size contracts 1 no changeused when spdrActionTypeRelease | |
| orderActiveSize | INT | -1 | total activated size total size released for execution 1 all available size | |
| addCumFillQuantity | enum - YesNo | 'No' | If Yes then OrderSize is calculated order arrival as requested OrderSize existing CumFillQuantity | |
| exchMask | BIGINT | 0 | eligible exchanges 0 all | |
| maxExposureSize | INT | -1 | maximum simultaneous cumulative child order public size exposure 1 orderActiveSize order can overfill if orderActiveSize and numMakeExchanges 1 | |
| numMakeExchanges | TINYINT UNSIGNED | 1 | number of exchanges 1 4 on which to publish public making orders Effective number might be less than requested number if sufficient exchanges are not available | |
| publicSize | enum - PublicSizeHandling | 'None' | public order size handling Noneuse default size handling usually limits public size to typical market size Randomizerandomize public size MktSizeexpose only typical market size FullSizeexpose entire order size where possible | |
| randomizeSize | enum - YesNo | 'Yes' | randomize public order size | |
| canOverlapCxlRepl | enum - YesNo | 'No' | can execution engines overlap cancelreplace operations order can overfill if YES at most one active overlapping cxlreplace operation for each parent order | |
| progressRule | enum - ProgressRule | 'None' | None all size immediately availableTWAP size released in time intervalsVWAP size released in volume intervals | |
| twapSliceCnt | TINYINT UNSIGNED | 0 | ProgressSliceCnt number of progress slices to use if none given will compute based on active size and duration max 20 | |
| progressExposeTime | INT | 0 | minimum time secs to expose order 0 no minimum used to guarantee that the order is exposed at midmarket for some time before actively taking | |
| vwapParticipation | FLOAT | 0.10 | target vwap participation rate target of trade activity | |
| minMktOnClosePct | TINYINT UNSIGNED | 0 | Minimum pct 0 100 of order reserved for the onclose auction | |
| auctionResponder | enum - AuctionResponder | 'None' | if set parent order can be an auction responder | |
| maxMakeExchFee | FLOAT | 0 | maximum making exchange fee in point value zero no limit use nonzero number for limit to apply | |
| maxTakeExchFee | FLOAT | 0 | maximum taking exchange fee in point value zero no limit use nonzero number for limit to apply | |
| triggerType | enum - TriggerType | 'None' | type of trigger PrintVolSurfVol only for options print print or actionable quote | |
| triggerLevel | FLOAT | 0 | stoptrigger price for parent order to go active | |
| cxlUPrcRange | enum - UPrcCxl | 'None' | cancel parent order ifwhen outside minmax uPrc range Halt also cancel if the securityunderlier has been halted | |
| minUBid | FLOAT | 0 | optional | |
| maxUAsk | FLOAT | 0 | optional 001 none | |
| minMaxType | enum - MinMaxType | 'Prc' | if Prc minUBidmaxUAsk are expressed as prices if Pct then they are expresses as pct change since parent order arrival | |
| maxChildOrders | INT | 1000 | maximum number of child orders that can be generated by this parent order order will terminate ifwhen this cap is reachedzero or neg unlimited | |
| spdrStageType | enum - SpdrStageType | 'None' | SizeLock stage pending modification can reduce size SizeModify stage pending modification can increasereduce size | |
| marketSession | enum - MarketSession | 'RegMkt' | ||
| startDttm | DATETIME(6) | '2000-01-01' | optional parent order start time | |
| orderDuration | INT | -1 | optional number of seconds | |
| activeDuration | INT | -1 | optional number of seconds | |
| goodTillDttm | DATETIME(6) | '2000-01-01' | optional default 20000101 | |
| startType | enum - StartType | 'None' | None WaitTrigger | |
| parentOrderHandling | enum - ParentOrderHandling | 'ActiveTaker' | ||
| parentBalanceHandling | enum - ParentBalanceHandling | 'PostLimit' | ||
| orderLimitType | enum - SpdrLimitType | 'Market' | Various Market Prc etc establishes the primary LimitPrice for a parent order | |
| takeLimitClass | enum - SpdrLimitClass | 'Simple' | Simple LimitPrice Probability BESTLimitPrice ProbLimit | |
| makeLimitClass | enum - SpdrLimitClass | 'Simple' | Simple LimitPrice Probability BESTLimitPrice ProbLimit | |
| takeReachRule | enum - ReachRule | 'None' | None reach room immediately available Delayed available after 13 seconds Passive available if contra side aggresses WeakOnly only take if available size avgMarketSize ISOSweep Intermarket Sweep requires WaitTrigger | |
| orderPrcLimit | DOUBLE | 0 | Applies if LimitType Prc | |
| orderPrcOffset | DOUBLE | 0 | default0 | |
| takeAlphaType | enum - AlphaType | 'None' | Applies if takeLimitClass Probability | |
| makeAlphaType | enum - AlphaType | 'None' | Applies if makeLimitClass Probability | |
| takeAlphaFactor | FLOAT | 0 | 22 takeProbLimit MAXtakeProbability takeProbAvg takeAlphaFactor takeProbStd if takeAlphaType Relative | |
| makeAlphaFactor | FLOAT | 0 | 22 makeProbLimit MAXmakeProbability makeProbAvg makeAlphaFactor makeProbStd if makeAlphaType Relative | |
| takeProbability | FLOAT | 0 | takeProbLimit takeProbability if takeAlphaType Static | |
| makeProbability | FLOAT | 0 | makeProbLimit makeProbability if makeAlphaType Static | |
| autoHedge | enum - AutoHedge | 'None' | ||
| hedgeSecKey_at | enum - AssetType | 'EQT' | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecKey_ts | enum - TickerSrc | 'NMS' | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecKey_tk | VARCHAR(12) | '' | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecKey_yr | SMALLINT UNSIGNED | 1900 | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecKey_mn | TINYINT UNSIGNED | 1 | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecKey_dy | TINYINT UNSIGNED | 1 | autohedge instrument either TickerKey or ExpiryKey hedgeSecKeyTickerKey cannot equal orderticker | |
| hedgeSecType | enum - SpdrKeyType | 'None' | None Stock or Future | |
| hedgeBetaRatio | FLOAT | 1.0 | Portion of executed money to autohedge can be 10 Beta for beta hedging 40 to 40 | |
| hedgeScope | enum - HedgeScope | 'RiskGroup' | Autohedge at the RiskGroup or Accnt level | |
| hedgeSession | enum - MarketSession | 'RegMkt' | ||
| useSwapProvider | enum - SwapProvider | 'None' | ||
| ssaleFlag | enum - ShortSaleFlag | 'Auto' | Used to determine stock autohedge flags | |
| locateFirm | VARCHAR(6) | '' | firm granting the locate if using an away locate source for this order | |
| locatePool | VARCHAR(16) | '' | locate pool firm granting the locate | |
| maxExchFee | FLOAT | 99 | maximum exchange fee allowed when generating orders | |
| riskGroupId | CHAR(19) | '0000-0000-0000-0000' | All group grp risk limits below are relative to this riskGroupId Default 0 none Required to be nonzero if autoHedge is something other than None | |
| reqAuxRiskGroupCtrl | enum - YesNo | 'None' | ||
| symDayDDeltaOffset | FLOAT | 0 | max acctsymbol day delta offset target | |
| maxSymDayDDeltaLn | FLOAT | -1 | max acctsymbol day delta long positive number1no limitrisk limit max limit current net counter offset | |
| maxSymDayDDeltaSh | FLOAT | -1 | max acctsymbol day delta short positive number1no limitrisk limit max limit current net counter offset | |
| maxAccDayDDeltaLn | FLOAT | -1 | max accnt day delta long positive number1no limitrisk limit max limit current net counter offset | |
| maxAccDayDDeltaSh | FLOAT | -1 | max accnt day delta short positive number1no limitrisk limit max limit current net counter offset | |
| accDayDDeltaOffset | FLOAT | 0 | accnt day delta offset target position | |
| maxGrpDayDDeltaLn | FLOAT | -1 | max acctriskGroup day delta long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayDDeltaSh | FLOAT | -1 | max acctriskGroup day delta short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric1Ln | FLOAT | -1 | max acctriskGroup day rMetric1 long positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric1Sh | FLOAT | -1 | max acctriskGroup day rMetric1 short positive number1no limitrisk limit max limit current net counter | |
| maxGrpDayRMetric1Abs | FLOAT | -1 | max acctriskGroup day rMetric1 abs positive number1no limitrisk limit max limit abscurrent net counter | |
| grpDayRMetric1Ratio | FLOAT | 1.0 | target bot sld ratio eg ratio05 means that neutral is bot rMetric1 05x sld rMetric1 | |
| traderName | VARCHAR(32) | '' | Name of the trader associated with the order | |
| userData1 | TINYTEXT | '' | client supplied data field passes through to parent and child executions and reports as well as FIX child orders and drops | |
| userData2 | TINYTEXT | '' | client supplied data field passes through to parent and child executions and reports as well as FIX child orders and drops | |
| childData | TINYTEXT | '' | client supplied data field passes through to down stream child orders | |
| checksum | TINYINT UNSIGNED | 0 | Must be set to 13 This helps detect some columnvalue misalignments |
PRIMARY KEY DEFINITION (Unique)
| Field | Sequence |
|---|---|
| ticker_tk | 1 |
| ticker_at | 2 |
| ticker_ts | 3 |
| accnt | 4 |
| orderSide | 5 |
| groupingCode | 6 |
| clientFirm | 7 |
SELECT TABLE EXAMPLE QUERY
SELECT *
FROM `SRTrade`.`MsgStkOrderGateway`
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) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide` = 'None'
AND
/* Replace with a CHAR(19) */
`groupingCode` = 'Example_groupingCode'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
INSERT TABLE EXAMPLE QUERY
INSERT INTO `SRTrade`.`MsgStkOrderGateway`(
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`ticker_at`,
/* 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`,
/* Replace with a VARCHAR(12) */
`ticker_tk`,
/* Replace with a VARCHAR(16) */
`accnt`,
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide`,
/* Replace with a CHAR(19) */
`groupingCode`,
/* Replace with a VARCHAR(16) */
`clientFirm`,
/* Replace with a ENUM('Add','AddReplace','Replace','Cancel','Modify') */
`spdrActionType`,
/* Replace with a VARCHAR(24) */
`altOrderId`,
/* Replace with a VARCHAR(32) */
`altAccnt`,
/* Replace with a VARCHAR(24) */
`altUserName`,
/* Replace with a VARCHAR(16) */
`execBrkrCode`,
/* Replace with a VARCHAR(16) */
`externExDest`,
/* Replace with a TINYTEXT */
`externParams`,
/* Replace with a VARCHAR(36) */
`strategy`,
/* Replace with a VARCHAR(16) */
`strategyAccnt`,
/* Replace with a ENUM('None','Yes','No') */
`visibleInSV`,
/* Replace with a DATETIME(6) */
`orderDttm`,
/* Replace with a INT */
`orderSize`,
/* Replace with a INT */
`orderActiveSize`,
/* Replace with a ENUM('Yes','No') */
`addCumFillQuantity`,
/* Replace with a BIGINT */
`exchMask`,
/* Replace with a INT */
`maxExposureSize`,
/* Replace with a TINYINT UNSIGNED */
`numMakeExchanges`,
/* Replace with a ENUM('None','Randomize','MktSize','FullSize','MktSizeA','MktSizeB','MktSizeC','FullSizeR') */
`publicSize`,
/* Replace with a ENUM('Yes','No') */
`randomizeSize`,
/* Replace with a ENUM('Yes','No') */
`canOverlapCxlRepl`,
/* Replace with a ENUM('None','Twap','Vwap','TwapReset','VwapReset','FastReset','SlowReset','TwapAlpha','VwapAlpha','TwapAlphaC','VwapAlphaC','AutoComplete','AllowImmediate','Manual','SpdrPulse','IOC','FlashMakeTake') */
`progressRule`,
/* Replace with a TINYINT UNSIGNED */
`twapSliceCnt`,
/* Replace with a INT */
`progressExposeTime`,
/* Replace with a FLOAT */
`vwapParticipation`,
/* Replace with a TINYINT UNSIGNED */
`minMktOnClosePct`,
/* Replace with a ENUM('None','Any','Disable') */
`auctionResponder`,
/* Replace with a FLOAT */
`maxMakeExchFee`,
/* Replace with a FLOAT */
`maxTakeExchFee`,
/* Replace with a ENUM('None','PrintPrc','PrintVol','SurfVol','PrtSurfVol') */
`triggerType`,
/* Replace with a FLOAT */
`triggerLevel`,
/* Replace with a ENUM('None','Yes','No','YesHalt','NoHalt') */
`cxlUPrcRange`,
/* Replace with a FLOAT */
`minUBid`,
/* Replace with a FLOAT */
`maxUAsk`,
/* Replace with a ENUM('None','Prc','Pct') */
`minMaxType`,
/* Replace with a INT */
`maxChildOrders`,
/* Replace with a ENUM('None','ModifyAny','ModifyAlgo') */
`spdrStageType`,
/* Replace with a ENUM('None','PreMkt','RegMkt','PostMkt','PreRegMkt','RegPostMkt','AllDay') */
`marketSession`,
/* Replace with a DATETIME(6) */
`startDttm`,
/* Replace with a INT */
`orderDuration`,
/* Replace with a INT */
`activeDuration`,
/* Replace with a DATETIME(6) */
`goodTillDttm`,
/* Replace with a ENUM('None','WaitTrigger') */
`startType`,
/* Replace with a ENUM('None','ActiveTaker','PostOnly','DMA','MktOnOpn','MktOnCls','AwayAlgo','ExchPing','SweepTake','TestParent') */
`parentOrderHandling`,
/* Replace with a ENUM('None','PostWith','PostTurn','PostImprove','PostLimit','MaxIntern','PostWthF','PostImprvR','PostFlash','PostFlashW','PostPeg','PostFlashI') */
`parentBalanceHandling`,
/* Replace with a ENUM('Market','MarketArrival','Prc','RelMid','RelJoin','RelCross','RelTurn','SmrtFast','SmrtNorm','Aux') */
`orderLimitType`,
/* Replace with a ENUM('Simple','Probability') */
`takeLimitClass`,
/* Replace with a ENUM('Simple','Probability') */
`makeLimitClass`,
/* Replace with a ENUM('None','Delayed','Passive','WeakOnly','RespondOnly','FullSize','ISOSweep','AllOrNone','QtyOrMore','UpToQty','AtMost25','AtMost50','MinTakeFee','BalanceOrNone','Pct2p5','Pct10','Pct25') */
`takeReachRule`,
/* Replace with a DOUBLE */
`orderPrcLimit`,
/* Replace with a DOUBLE */
`orderPrcOffset`,
/* Replace with a ENUM('None','Static','Eagle','Hawk','Falcon','Relative') */
`takeAlphaType`,
/* Replace with a ENUM('None','Static','Eagle','Hawk','Falcon','Relative') */
`makeAlphaType`,
/* Replace with a FLOAT */
`takeAlphaFactor`,
/* Replace with a FLOAT */
`makeAlphaFactor`,
/* Replace with a FLOAT */
`takeProbability`,
/* Replace with a FLOAT */
`makeProbability`,
/* Replace with a ENUM('None','Static','AutoMid','AutoCrx','AutoTrn','SpdrAuto','Spdr10S','Spdr30S','Spdr90S','Spdr5M','Spdr30M','SpdrDay','SmartFast','SmartNorm','FastCrx','FastDark','SlowDark','AlphaVwap1pct','AlphaVwap2pct','AlphaVwap5pct','AlphaVwap25pct','Custom','AwayAlgo','EuMsAlgo','Policy') */
`autoHedge`,
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY','RATE') */
`hedgeSecKey_at`,
/* 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') */
`hedgeSecKey_ts`,
/* Replace with a VARCHAR(12) */
`hedgeSecKey_tk`,
/* Replace with a SMALLINT UNSIGNED */
`hedgeSecKey_yr`,
/* Replace with a TINYINT UNSIGNED */
`hedgeSecKey_mn`,
/* Replace with a TINYINT UNSIGNED */
`hedgeSecKey_dy`,
/* Replace with a ENUM('None','Stock','Future') */
`hedgeSecType`,
/* Replace with a FLOAT */
`hedgeBetaRatio`,
/* Replace with a ENUM('None','Accnt','RiskGroup') */
`hedgeScope`,
/* Replace with a ENUM('None','PreMkt','RegMkt','PostMkt','PreRegMkt','RegPostMkt','AllDay') */
`hedgeSession`,
/* Replace with a ENUM('None','MSx') */
`useSwapProvider`,
/* Replace with a ENUM('None','Long','Short','Exempt','Cover','Auto','NA') */
`ssaleFlag`,
/* Replace with a VARCHAR(6) */
`locateFirm`,
/* Replace with a VARCHAR(16) */
`locatePool`,
/* Replace with a FLOAT */
`maxExchFee`,
/* Replace with a CHAR(19) */
`riskGroupId`,
/* Replace with a ENUM('None','Yes','No') */
`reqAuxRiskGroupCtrl`,
/* Replace with a FLOAT */
`symDayDDeltaOffset`,
/* Replace with a FLOAT */
`maxSymDayDDeltaLn`,
/* Replace with a FLOAT */
`maxSymDayDDeltaSh`,
/* Replace with a FLOAT */
`maxAccDayDDeltaLn`,
/* Replace with a FLOAT */
`maxAccDayDDeltaSh`,
/* Replace with a FLOAT */
`accDayDDeltaOffset`,
/* Replace with a FLOAT */
`maxGrpDayDDeltaLn`,
/* Replace with a FLOAT */
`maxGrpDayDDeltaSh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Ln`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Sh`,
/* Replace with a FLOAT */
`maxGrpDayRMetric1Abs`,
/* Replace with a FLOAT */
`grpDayRMetric1Ratio`,
/* Replace with a VARCHAR(32) */
`traderName`,
/* Replace with a TINYTEXT */
`userData1`,
/* Replace with a TINYTEXT */
`userData2`,
/* Replace with a TINYTEXT */
`childData`,
/* Replace with a TINYINT UNSIGNED */
`checksum`
)
VALUES(
'None',
'None',
'Example_ticker_tk',
'Example_accnt',
'None',
'Example_groupingCode',
'Example_clientFirm',
'AddReplace',
'Example_altOrderId',
'Example_altAccnt',
'Example_altUserName',
'Example_execBrkrCode',
'Example_externExDest',
'dummy tiny text',
'Example_strategy',
'Example_strategyAccnt',
'None',
'2022-01-01 12:34:56.000000',
5,
5,
'No',
1234567890,
5,
1,
'None',
'Yes',
'No',
'None',
1,
5,
1.23,
1,
'None',
1.23,
1.23,
'None',
1.23,
'None',
1.23,
1.23,
'Prc',
5,
'None',
'RegMkt',
'2022-01-01 12:34:56.000000',
5,
5,
'2022-01-01 12:34:56.000000',
'None',
'ActiveTaker',
'PostLimit',
'Market',
'Simple',
'Simple',
'None',
4.56,
4.56,
'None',
'None',
1.23,
1.23,
1.23,
1.23,
'None',
'EQT',
'NMS',
'Example_hedgeSecKey_tk',
123,
1,
1,
'None',
1.23,
'RiskGroup',
'RegMkt',
'None',
'Auto',
'Example_locateFirm',
'Example_locatePool',
1.23,
'Example_riskGroupId',
'None',
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
1.23,
'Example_traderName',
'dummy tiny text',
'dummy tiny text',
'dummy tiny text',
1
);
DELETE TABLE EXAMPLE QUERY
DELETE FROM `SRTrade`.`MsgStkOrderGateway`
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) */
`accnt` = 'Example_accnt'
AND
/* Replace with a ENUM('None','Buy','Sell') */
`orderSide` = 'None'
AND
/* Replace with a CHAR(19) */
`groupingCode` = 'Example_groupingCode'
AND
/* Replace with a VARCHAR(16) */
`clientFirm` = 'Example_clientFirm';
Doc Columns Query
SELECT * FROM SRTrade.doccolumns WHERE TABLE_NAME='StkOrderGateway' ORDER BY ordinal_position ASC;