|
From: Tom <eg...@gm...> - 2019-10-03 10:04:34
|
Hi, Please help me with this. Is it possible to validate different values for the same field for the different messages using dictionary xml file. For example i have two message NewOrderSingle and ExecutionReport and field OrdStatus. For NewOrderSingle the valid values are : Accepted, PartiallyFilled, Filled, DoneForDay For ExecutionReport : Accepted, PartiallyFilled. I tried different variants but I can set OrdStatus values only for all messages globally. Thanks for help! -- Sent from: http://quickfix-j.364392.n2.nabble.com/ |
|
From: Егор М. <eg...@gm...> - 2019-10-03 10:09:05
|
Hi, Please help me with this. Is it possible to validate different values for the same field for the different messages using dictionary xml file. For example i have two message NewOrderSingle and ExecutionReport and field OrdStatus. For NewOrderSingle the valid values are : Accepted, PartiallyFilled, Filled, DoneForDay For ExecutionReport : Accepted, PartiallyFilled. I tried different variants but I can set OrdStatus values only for all messages globally. Thanks for help! |
|
From: Christoph J. <chr...@ma...> - 2019-10-03 10:15:17
|
Hi, no that is not possible to be specified in the dictionary. You will need to do such validations in your application code. But do you have a real-life example for this? Because the OrdStatus is a bad example since it does not occur on a NewOrderSingle. And besides, quite often fields from the order are echoed back on the ExecutionReport so I cannot think of a use-case for this right now. But maybe there is. Please elaborate. Cheers, Chris. On 03.10.19 12:08, Егор Мороз wrote: > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi, > > Please help me with this. > > Is it possible to validate different values for the same field for the different messages using > dictionary xml file. > > For example i have two message NewOrderSingle and ExecutionReport and field OrdStatus. > > For NewOrderSingle the valid values are : Accepted, PartiallyFilled, Filled, DoneForDay > > For ExecutionReport : Accepted, PartiallyFilled. > > I tried different variants but I can set OrdStatus values only for all messages globally. > > Thanks for help! > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |
|
From: Егор М. <eg...@gm...> - 2019-10-03 10:40:59
|
John, Oh, You are right about NewOrderSingle. Sorry for this. Mistake in specification from client side. We are not going use real client-server communication flow. Just receive several messages. And we have some different validation rules for the different messages. Thanks a lot for help! чт, 3 окт. 2019 г. в 13:14, Christoph John <chr...@ma...>: > > Hi, > > no that is not possible to be specified in the dictionary. You will need to do such validations in your application code. > But do you have a real-life example for this? Because the OrdStatus is a bad example since it does not occur on a NewOrderSingle. And besides, quite often fields from the order are echoed back on the ExecutionReport so I cannot think of a use-case for this right now. But maybe there is. Please elaborate. > > Cheers, > Chris. > > > On 03.10.19 12:08, Егор Мороз wrote: > > QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ > QuickFIX/J Support: http://www.quickfixj.org/support/ > > > > Hi, > > Please help me with this. > > Is it possible to validate different values for the same field for the different messages using dictionary xml file. > > For example i have two message NewOrderSingle and ExecutionReport and field OrdStatus. > > For NewOrderSingle the valid values are : Accepted, PartiallyFilled, Filled, DoneForDay > > For ExecutionReport : Accepted, PartiallyFilled. > > I tried different variants but I can set OrdStatus values only for all messages globally. > > Thanks for help! > > > _______________________________________________ > Quickfixj-users mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfixj-users > > > -- > Christoph John > Software Engineering > T +49 241 557080-28 > chr...@ma... > > MACD GmbH > Oppenhoffallee 103 > 52066 Aachen, Germany > www.macd.com > > Amtsgericht Aachen: HRB 8151 > Ust.-Id: DE 813021663 > Geschäftsführer: George Macdonald |
|
From: Christoph J. <chr...@ma...> - 2019-10-03 10:43:29
|
Hmm, ok. If you do not have a real communication (i.e. FIX session) then nobody would keep you from using different dictionaries to validate different use cases for example. Cheers, Chris. On 03.10.19 12:40, Егор Мороз wrote: > John, > > Oh, You are right about NewOrderSingle. Sorry for this. Mistake in > specification from client side. > > We are not going use real client-server communication flow. > Just receive several messages. > And we have some different validation rules for the different messages. > > Thanks a lot for help! > > > чт, 3 окт. 2019 г. в 13:14, Christoph John <chr...@ma...>: >> Hi, >> >> no that is not possible to be specified in the dictionary. You will need to do such validations in your application code. >> But do you have a real-life example for this? Because the OrdStatus is a bad example since it does not occur on a NewOrderSingle. And besides, quite often fields from the order are echoed back on the ExecutionReport so I cannot think of a use-case for this right now. But maybe there is. Please elaborate. >> >> Cheers, >> Chris. >> >> >> On 03.10.19 12:08, Егор Мороз wrote: >> >> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/ >> QuickFIX/J Support: http://www.quickfixj.org/support/ >> >> >> >> Hi, >> >> Please help me with this. >> >> Is it possible to validate different values for the same field for the different messages using dictionary xml file. >> >> For example i have two message NewOrderSingle and ExecutionReport and field OrdStatus. >> >> For NewOrderSingle the valid values are : Accepted, PartiallyFilled, Filled, DoneForDay >> >> For ExecutionReport : Accepted, PartiallyFilled. >> >> I tried different variants but I can set OrdStatus values only for all messages globally. >> >> Thanks for help! >> >> >> _______________________________________________ >> Quickfixj-users mailing list >> Qui...@li... >> https://lists.sourceforge.net/lists/listinfo/quickfixj-users >> >> >> -- >> Christoph John >> Software Engineering >> T +49 241 557080-28 >> chr...@ma... >> >> MACD GmbH >> Oppenhoffallee 103 >> 52066 Aachen, Germany >> www.macd.com >> >> Amtsgericht Aachen: HRB 8151 >> Ust.-Id: DE 813021663 >> Geschäftsführer: George Macdonald -- Christoph John Software Engineering T +49 241 557080-28 chr...@ma... MACD GmbH Oppenhoffallee 103 52066 Aachen, Germany www.macd.com Amtsgericht Aachen: HRB 8151 Ust.-Id: DE 813021663 Geschäftsführer: George Macdonald |