Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Instrument ID = 121212121
- Book Definition ID = NORMAL
- Trader ID = TRQ01
- Order Type = 2
- Source ID = <Unset>
- Instrument Index = <Unset>
- Value = <Unset>
- Side = 2
- Qualifier = <Unset>
- Order Qty = <Unset>
- Visible Size = <Unset>
- TIF = 0
- ~|A|SMsg:Sequenced Message{
- ~|A|{
- ~|A| Routing Seq = 28545
- ~|A| Origin = 1
- ~|A| Transaction ID = 28483
- ~|A| Sequenced Message = ~|A| SMsgLite:NEW NEW ORDER
- ~|A| {
- ~|A| Instrument ID = 121212121
- ~|A| Book Definition ID = NORMAL
- ~|A| Trader ID = TRQ01
- ~|A| Order Type = 2
- ~|A| Source ID = <Unset>
- ~|A| Instrument Index = <Unset>
- ~|A| Value = <Unset>
- ~|A| Side = 2
- ~|A| Qualifier = <Unset>
- ~|A| Order Qty = <Unset>
- ~|A| Visible Size = <Unset>
- ~|A| TIF = 0
- ~|A| Order Sub Type = 3
- ~|A| Inactive Time = <Unset>
- ~|A| Expiration Date = <Unset>
- ~|A| Contingent Value = <Unset>
- ~|A| Owner ID = TRQ01
- ~|A| Client Order ID = 380-6XAC3Vw6W
- ~|A| Transact Time = <Unset>
- ~|A| Symbol = <Unset>
- ~|A| IsSurveillance = 1
- ~|A| Reason = sd
- ~|A| Gateway Rejection = <Unset>
- ~|A| Order Reject Code = <Unset>
- def BooleanLookup(self,infile,regex,start,end):
- self.infile = infile
- self.regex = regex
- self.start = start
- self.end = end
- for line in itertools.islice(infile,start,end):
- line = line.rstrip()
- if re.match(regex, line):
- return True
- break
- else:
- return False
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement