Best Vcr_ruby code snippet using Header.initialize
quickfix42.rb
Source:quickfix42.rb
1require 'quickfix'2module Quickfix42Sp03class Message < Quickfix::Message4 def initialize5 super6 getHeader().setField( Quickfix::BeginString.new("FIX.4.2") )7 end8end9class Heartbeat < Message10 def initialize11 super12 getHeader().setField( Quickfix::MsgType.new("0") )13 end14end15class TestRequest < Message16 def initialize17 super18 getHeader().setField( Quickfix::MsgType.new("1") )19 end20end21class ResendRequest < Message22 def initialize23 super24 getHeader().setField( Quickfix::MsgType.new("2") )25 end26end27class Reject < Message28 def initialize29 super30 getHeader().setField( Quickfix::MsgType.new("3") )31 end32end33class SequenceReset < Message34 def initialize35 super36 getHeader().setField( Quickfix::MsgType.new("4") )37 end38end39class Logout < Message40 def initialize41 super42 getHeader().setField( Quickfix::MsgType.new("5") )43 end44end45class IndicationofInterest < Message46 def initialize47 super48 getHeader().setField( Quickfix::MsgType.new("6") )49 end50 class NoIOIQualifiers < Quickfix::Group51 def initialize52 order = Quickfix::IntArray.new(2)53 order[0] = 10454 order[1] = 055 super(199, 104, order)56 end57 end58 class NoRoutingIDs < Quickfix::Group59 def initialize60 order = Quickfix::IntArray.new(3)61 order[0] = 21662 order[1] = 21763 order[2] = 064 super(215, 216, order)65 end66 end67end68class Advertisement < Message69 def initialize70 super71 getHeader().setField( Quickfix::MsgType.new("7") )72 end73end74class ExecutionReport < Message75 def initialize76 super77 getHeader().setField( Quickfix::MsgType.new("8") )78 end79 class NoContraBrokers < Quickfix::Group80 def initialize81 order = Quickfix::IntArray.new(5)82 order[0] = 37583 order[1] = 33784 order[2] = 43785 order[3] = 43886 order[4] = 087 super(382, 375, order)88 end89 end90end91class OrderCancelReject < Message92 def initialize93 super94 getHeader().setField( Quickfix::MsgType.new("9") )95 end96end97class Logon < Message98 def initialize99 super100 getHeader().setField( Quickfix::MsgType.new("A") )101 end102 class NoMsgTypes < Quickfix::Group103 def initialize104 order = Quickfix::IntArray.new(3)105 order[0] = 372106 order[1] = 385107 order[2] = 0108 super(384, 372, order)109 end110 end111end112class News < Message113 def initialize114 super115 getHeader().setField( Quickfix::MsgType.new("B") )116 end117 class NoRoutingIDs < Quickfix::Group118 def initialize119 order = Quickfix::IntArray.new(3)120 order[0] = 216121 order[1] = 217122 order[2] = 0123 super(215, 216, order)124 end125 end126 class NoRelatedSym < Quickfix::Group127 def initialize128 order = Quickfix::IntArray.new(20)129 order[0] = 46130 order[1] = 65131 order[2] = 48132 order[3] = 22133 order[4] = 167134 order[5] = 200135 order[6] = 205136 order[7] = 201137 order[8] = 202138 order[9] = 206139 order[10] = 231140 order[11] = 223141 order[12] = 207142 order[13] = 106143 order[14] = 348144 order[15] = 349145 order[16] = 107146 order[17] = 350147 order[18] = 351148 order[19] = 0149 super(146, 46, order)150 end151 end152 class LinesOfText < Quickfix::Group153 def initialize154 order = Quickfix::IntArray.new(4)155 order[0] = 58156 order[1] = 354157 order[2] = 355158 order[3] = 0159 super(33, 58, order)160 end161 end162end163class Email < Message164 def initialize165 super166 getHeader().setField( Quickfix::MsgType.new("C") )167 end168 class NoRoutingIDs < Quickfix::Group169 def initialize170 order = Quickfix::IntArray.new(3)171 order[0] = 216172 order[1] = 217173 order[2] = 0174 super(215, 216, order)175 end176 end177 class NoRelatedSym < Quickfix::Group178 def initialize179 order = Quickfix::IntArray.new(20)180 order[0] = 46181 order[1] = 65182 order[2] = 48183 order[3] = 22184 order[4] = 167185 order[5] = 200186 order[6] = 205187 order[7] = 201188 order[8] = 202189 order[9] = 206190 order[10] = 231191 order[11] = 223192 order[12] = 207193 order[13] = 106194 order[14] = 348195 order[15] = 349196 order[16] = 107197 order[17] = 350198 order[18] = 351199 order[19] = 0200 super(146, 46, order)201 end202 end203 class LinesOfText < Quickfix::Group204 def initialize205 order = Quickfix::IntArray.new(4)206 order[0] = 58207 order[1] = 354208 order[2] = 355209 order[3] = 0210 super(33, 58, order)211 end212 end213end214class NewOrderSingle < Message215 def initialize216 super217 getHeader().setField( Quickfix::MsgType.new("D") )218 end219 class NoAllocs < Quickfix::Group220 def initialize221 order = Quickfix::IntArray.new(3)222 order[0] = 79223 order[1] = 80224 order[2] = 0225 super(78, 79, order)226 end227 end228 class NoTradingSessions < Quickfix::Group229 def initialize230 order = Quickfix::IntArray.new(2)231 order[0] = 336232 order[1] = 0233 super(386, 336, order)234 end235 end236end237class NewOrderList < Message238 def initialize239 super240 getHeader().setField( Quickfix::MsgType.new("E") )241 end242 class NoOrders < Quickfix::Group243 def initialize244 order = Quickfix::IntArray.new(75)245 order[0] = 11246 order[1] = 67247 order[2] = 160248 order[3] = 109249 order[4] = 76250 order[5] = 1251 order[6] = 78252 order[7] = 63253 order[8] = 64254 order[9] = 21255 order[10] = 18256 order[11] = 110257 order[12] = 111258 order[13] = 100259 order[14] = 386260 order[15] = 81261 order[16] = 55262 order[17] = 65263 order[18] = 48264 order[19] = 22265 order[20] = 167266 order[21] = 200267 order[22] = 205268 order[23] = 201269 order[24] = 202270 order[25] = 206271 order[26] = 231272 order[27] = 223273 order[28] = 207274 order[29] = 106275 order[30] = 348276 order[31] = 349277 order[32] = 107278 order[33] = 350279 order[34] = 351280 order[35] = 140281 order[36] = 54282 order[37] = 401283 order[38] = 114284 order[39] = 60285 order[40] = 38286 order[41] = 152287 order[42] = 40288 order[43] = 44289 order[44] = 99290 order[45] = 15291 order[46] = 376292 order[47] = 377293 order[48] = 23294 order[49] = 117295 order[50] = 59296 order[51] = 168297 order[52] = 432298 order[53] = 126299 order[54] = 427300 order[55] = 12301 order[56] = 13302 order[57] = 47303 order[58] = 121304 order[59] = 120305 order[60] = 58306 order[61] = 354307 order[62] = 355308 order[63] = 193309 order[64] = 192310 order[65] = 77311 order[66] = 203312 order[67] = 204313 order[68] = 210314 order[69] = 211315 order[70] = 388316 order[71] = 389317 order[72] = 439318 order[73] = 440319 order[74] = 0320 super(73, 11, order)321 end322 class NoAllocs < Quickfix::Group323 def initialize324 order = Quickfix::IntArray.new(3)325 order[0] = 79326 order[1] = 80327 order[2] = 0328 super(78, 79, order)329 end330 end331 class NoTradingSessions < Quickfix::Group332 def initialize333 order = Quickfix::IntArray.new(2)334 order[0] = 336335 order[1] = 0336 super(386, 336, order)337 end338 end339 end340end341class OrderCancelRequest < Message342 def initialize343 super344 getHeader().setField( Quickfix::MsgType.new("F") )345 end346end347class OrderCancelReplaceRequest < Message348 def initialize349 super350 getHeader().setField( Quickfix::MsgType.new("G") )351 end352 class NoAllocs < Quickfix::Group353 def initialize354 order = Quickfix::IntArray.new(3)355 order[0] = 79356 order[1] = 80357 order[2] = 0358 super(78, 79, order)359 end360 end361 class NoTradingSessions < Quickfix::Group362 def initialize363 order = Quickfix::IntArray.new(2)364 order[0] = 336365 order[1] = 0366 super(386, 336, order)367 end368 end369end370class OrderStatusRequest < Message371 def initialize372 super373 getHeader().setField( Quickfix::MsgType.new("H") )374 end375end376class Allocation < Message377 def initialize378 super379 getHeader().setField( Quickfix::MsgType.new("J") )380 end381 class NoOrders < Quickfix::Group382 def initialize383 order = Quickfix::IntArray.new(6)384 order[0] = 11385 order[1] = 37386 order[2] = 198387 order[3] = 66388 order[4] = 105389 order[5] = 0390 super(73, 11, order)391 end392 end393 class NoExecs < Quickfix::Group394 def initialize395 order = Quickfix::IntArray.new(5)396 order[0] = 32397 order[1] = 17398 order[2] = 31399 order[3] = 29400 order[4] = 0401 super(124, 32, order)402 end403 end404 class NoAllocs < Quickfix::Group405 def initialize406 order = Quickfix::IntArray.new(24)407 order[0] = 79408 order[1] = 366409 order[2] = 80410 order[3] = 81411 order[4] = 92412 order[5] = 208413 order[6] = 209414 order[7] = 161415 order[8] = 360416 order[9] = 361417 order[10] = 76418 order[11] = 109419 order[12] = 12420 order[13] = 13421 order[14] = 153422 order[15] = 154423 order[16] = 119424 order[17] = 120425 order[18] = 155426 order[19] = 156427 order[20] = 159428 order[21] = 160429 order[22] = 136430 order[23] = 0431 super(78, 79, order)432 end433 class NoMiscFees < Quickfix::Group434 def initialize435 order = Quickfix::IntArray.new(4)436 order[0] = 137437 order[1] = 138438 order[2] = 139439 order[3] = 0440 super(136, 137, order)441 end442 end443 end444end445class ListCancelRequest < Message446 def initialize447 super448 getHeader().setField( Quickfix::MsgType.new("K") )449 end450end451class ListExecute < Message452 def initialize453 super454 getHeader().setField( Quickfix::MsgType.new("L") )455 end456end457class ListStatusRequest < Message458 def initialize459 super460 getHeader().setField( Quickfix::MsgType.new("M") )461 end462end463class ListStatus < Message464 def initialize465 super466 getHeader().setField( Quickfix::MsgType.new("N") )467 end468 class NoOrders < Quickfix::Group469 def initialize470 order = Quickfix::IntArray.new(11)471 order[0] = 11472 order[1] = 14473 order[2] = 39474 order[3] = 151475 order[4] = 84476 order[5] = 6477 order[6] = 103478 order[7] = 58479 order[8] = 354480 order[9] = 355481 order[10] = 0482 super(73, 11, order)483 end484 end485end486class AllocationACK < Message487 def initialize488 super489 getHeader().setField( Quickfix::MsgType.new("P") )490 end491end492class DontKnowTrade < Message493 def initialize494 super495 getHeader().setField( Quickfix::MsgType.new("Q") )496 end497end498class QuoteRequest < Message499 def initialize500 super501 getHeader().setField( Quickfix::MsgType.new("R") )502 end503 class NoRelatedSym < Quickfix::Group504 def initialize505 order = Quickfix::IntArray.new(32)506 order[0] = 55507 order[1] = 65508 order[2] = 48509 order[3] = 22510 order[4] = 167511 order[5] = 200512 order[6] = 205513 order[7] = 201514 order[8] = 202515 order[9] = 206516 order[10] = 231517 order[11] = 223518 order[12] = 207519 order[13] = 106520 order[14] = 348521 order[15] = 349522 order[16] = 107523 order[17] = 350524 order[18] = 351525 order[19] = 140526 order[20] = 303527 order[21] = 336528 order[22] = 54529 order[23] = 38530 order[24] = 64531 order[25] = 40532 order[26] = 193533 order[27] = 192534 order[28] = 126535 order[29] = 60536 order[30] = 15537 order[31] = 0538 super(146, 55, order)539 end540 end541end542class Quote < Message543 def initialize544 super545 getHeader().setField( Quickfix::MsgType.new("S") )546 end547end548class SettlementInstructions < Message549 def initialize550 super551 getHeader().setField( Quickfix::MsgType.new("T") )552 end553end554class MarketDataRequest < Message555 def initialize556 super557 getHeader().setField( Quickfix::MsgType.new("V") )558 end559 class NoMDEntryTypes < Quickfix::Group560 def initialize561 order = Quickfix::IntArray.new(2)562 order[0] = 269563 order[1] = 0564 super(267, 269, order)565 end566 end567 class NoRelatedSym < Quickfix::Group568 def initialize569 order = Quickfix::IntArray.new(21)570 order[0] = 55571 order[1] = 65572 order[2] = 48573 order[3] = 22574 order[4] = 167575 order[5] = 200576 order[6] = 205577 order[7] = 201578 order[8] = 202579 order[9] = 206580 order[10] = 231581 order[11] = 223582 order[12] = 207583 order[13] = 106584 order[14] = 348585 order[15] = 349586 order[16] = 107587 order[17] = 350588 order[18] = 351589 order[19] = 336590 order[20] = 0591 super(146, 55, order)592 end593 end594end595class MarketDataSnapshotFullRefresh < Message596 def initialize597 super598 getHeader().setField( Quickfix::MsgType.new("W") )599 end600 class NoMDEntries < Quickfix::Group601 def initialize602 order = Quickfix::IntArray.new(31)603 order[0] = 269604 order[1] = 270605 order[2] = 15606 order[3] = 271607 order[4] = 272608 order[5] = 273609 order[6] = 274610 order[7] = 275611 order[8] = 336612 order[9] = 276613 order[10] = 277614 order[11] = 282615 order[12] = 283616 order[13] = 284617 order[14] = 286618 order[15] = 59619 order[16] = 432620 order[17] = 126621 order[18] = 110622 order[19] = 18623 order[20] = 287624 order[21] = 37625 order[22] = 299626 order[23] = 288627 order[24] = 289628 order[25] = 346629 order[26] = 290630 order[27] = 58631 order[28] = 354632 order[29] = 355633 order[30] = 0634 super(268, 269, order)635 end636 end637end638class MarketDataIncrementalRefresh < Message639 def initialize640 super641 getHeader().setField( Quickfix::MsgType.new("X") )642 end643 class NoMDEntries < Quickfix::Group644 def initialize645 order = Quickfix::IntArray.new(57)646 order[0] = 279647 order[1] = 285648 order[2] = 269649 order[3] = 278650 order[4] = 280651 order[5] = 55652 order[6] = 65653 order[7] = 48654 order[8] = 22655 order[9] = 167656 order[10] = 200657 order[11] = 205658 order[12] = 201659 order[13] = 202660 order[14] = 206661 order[15] = 231662 order[16] = 223663 order[17] = 207664 order[18] = 106665 order[19] = 348666 order[20] = 349667 order[21] = 107668 order[22] = 350669 order[23] = 351670 order[24] = 291671 order[25] = 292672 order[26] = 270673 order[27] = 15674 order[28] = 271675 order[29] = 272676 order[30] = 273677 order[31] = 274678 order[32] = 275679 order[33] = 336680 order[34] = 276681 order[35] = 277682 order[36] = 282683 order[37] = 283684 order[38] = 284685 order[39] = 286686 order[40] = 59687 order[41] = 432688 order[42] = 126689 order[43] = 110690 order[44] = 18691 order[45] = 287692 order[46] = 37693 order[47] = 299694 order[48] = 288695 order[49] = 289696 order[50] = 346697 order[51] = 290698 order[52] = 387699 order[53] = 58700 order[54] = 354701 order[55] = 355702 order[56] = 0703 super(268, 279, order)704 end705 end706end707class MarketDataRequestReject < Message708 def initialize709 super710 getHeader().setField( Quickfix::MsgType.new("Y") )711 end712end713class QuoteCancel < Message714 def initialize715 super716 getHeader().setField( Quickfix::MsgType.new("Z") )717 end718 class NoQuoteEntries < Quickfix::Group719 def initialize720 order = Quickfix::IntArray.new(21)721 order[0] = 55722 order[1] = 65723 order[2] = 48724 order[3] = 22725 order[4] = 167726 order[5] = 200727 order[6] = 205728 order[7] = 201729 order[8] = 202730 order[9] = 206731 order[10] = 231732 order[11] = 223733 order[12] = 207734 order[13] = 106735 order[14] = 348736 order[15] = 349737 order[16] = 107738 order[17] = 350739 order[18] = 351740 order[19] = 311741 order[20] = 0742 super(295, 55, order)743 end744 end745end746class QuoteStatusRequest < Message747 def initialize748 super749 getHeader().setField( Quickfix::MsgType.new("a") )750 end751end752class QuoteAcknowledgement < Message753 def initialize754 super755 getHeader().setField( Quickfix::MsgType.new("b") )756 end757 class NoQuoteSets < Quickfix::Group758 def initialize759 order = Quickfix::IntArray.new(23)760 order[0] = 302761 order[1] = 311762 order[2] = 312763 order[3] = 309764 order[4] = 305765 order[5] = 310766 order[6] = 313767 order[7] = 314768 order[8] = 315769 order[9] = 316770 order[10] = 317771 order[11] = 436772 order[12] = 435773 order[13] = 308774 order[14] = 306775 order[15] = 362776 order[16] = 363777 order[17] = 307778 order[18] = 364779 order[19] = 365780 order[20] = 304781 order[21] = 295782 order[22] = 0783 super(296, 302, order)784 end785 class NoQuoteEntries < Quickfix::Group786 def initialize787 order = Quickfix::IntArray.new(22)788 order[0] = 299789 order[1] = 55790 order[2] = 65791 order[3] = 48792 order[4] = 22793 order[5] = 167794 order[6] = 200795 order[7] = 205796 order[8] = 201797 order[9] = 202798 order[10] = 206799 order[11] = 231800 order[12] = 223801 order[13] = 207802 order[14] = 106803 order[15] = 348804 order[16] = 349805 order[17] = 107806 order[18] = 350807 order[19] = 351808 order[20] = 368809 order[21] = 0810 super(295, 299, order)811 end812 end813 end814end815class SecurityDefinitionRequest < Message816 def initialize817 super818 getHeader().setField( Quickfix::MsgType.new("c") )819 end820 class NoRelatedSym < Quickfix::Group821 def initialize822 order = Quickfix::IntArray.new(23)823 order[0] = 311824 order[1] = 312825 order[2] = 309826 order[3] = 305827 order[4] = 310828 order[5] = 313829 order[6] = 314830 order[7] = 315831 order[8] = 316832 order[9] = 317833 order[10] = 436834 order[11] = 435835 order[12] = 308836 order[13] = 306837 order[14] = 362838 order[15] = 363839 order[16] = 307840 order[17] = 364841 order[18] = 365842 order[19] = 319843 order[20] = 54844 order[21] = 318845 order[22] = 0846 super(146, 311, order)847 end848 end849end850class SecurityDefinition < Message851 def initialize852 super853 getHeader().setField( Quickfix::MsgType.new("d") )854 end855 class NoRelatedSym < Quickfix::Group856 def initialize857 order = Quickfix::IntArray.new(23)858 order[0] = 311859 order[1] = 312860 order[2] = 309861 order[3] = 305862 order[4] = 310863 order[5] = 313864 order[6] = 314865 order[7] = 315866 order[8] = 316867 order[9] = 317868 order[10] = 436869 order[11] = 435870 order[12] = 308871 order[13] = 306872 order[14] = 362873 order[15] = 363874 order[16] = 307875 order[17] = 364876 order[18] = 365877 order[19] = 319878 order[20] = 54879 order[21] = 318880 order[22] = 0881 super(146, 311, order)882 end883 end884end885class SecurityStatusRequest < Message886 def initialize887 super888 getHeader().setField( Quickfix::MsgType.new("e") )889 end890end891class SecurityStatus < Message892 def initialize893 super894 getHeader().setField( Quickfix::MsgType.new("f") )895 end896end897class TradingSessionStatusRequest < Message898 def initialize899 super900 getHeader().setField( Quickfix::MsgType.new("g") )901 end902end903class TradingSessionStatus < Message904 def initialize905 super906 getHeader().setField( Quickfix::MsgType.new("h") )907 end908end909class MassQuote < Message910 def initialize911 super912 getHeader().setField( Quickfix::MsgType.new("i") )913 end914 class NoQuoteSets < Quickfix::Group915 def initialize916 order = Quickfix::IntArray.new(24)917 order[0] = 302918 order[1] = 311919 order[2] = 312920 order[3] = 309921 order[4] = 305922 order[5] = 310923 order[6] = 313924 order[7] = 314925 order[8] = 315926 order[9] = 316927 order[10] = 317928 order[11] = 436929 order[12] = 435930 order[13] = 308931 order[14] = 306932 order[15] = 362933 order[16] = 363934 order[17] = 307935 order[18] = 364936 order[19] = 365937 order[20] = 367938 order[21] = 304939 order[22] = 295940 order[23] = 0941 super(296, 302, order)942 end943 class NoQuoteEntries < Quickfix::Group944 def initialize945 order = Quickfix::IntArray.new(37)946 order[0] = 299947 order[1] = 55948 order[2] = 65949 order[3] = 48950 order[4] = 22951 order[5] = 167952 order[6] = 200953 order[7] = 205954 order[8] = 201955 order[9] = 202956 order[10] = 206957 order[11] = 231958 order[12] = 223959 order[13] = 207960 order[14] = 106961 order[15] = 348962 order[16] = 349963 order[17] = 107964 order[18] = 350965 order[19] = 351966 order[20] = 132967 order[21] = 133968 order[22] = 134969 order[23] = 135970 order[24] = 62971 order[25] = 188972 order[26] = 190973 order[27] = 189974 order[28] = 191975 order[29] = 60976 order[30] = 336977 order[31] = 64978 order[32] = 40979 order[33] = 193980 order[34] = 192981 order[35] = 15982 order[36] = 0983 super(295, 299, order)984 end985 end986 end987end988class BusinessMessageReject < Message989 def initialize990 super991 getHeader().setField( Quickfix::MsgType.new("j") )992 end993end994class BidRequest < Message995 def initialize996 super997 getHeader().setField( Quickfix::MsgType.new("k") )998 end999 class NoBidDescriptors < Quickfix::Group1000 def initialize1001 order = Quickfix::IntArray.new(12)1002 order[0] = 3991003 order[1] = 4001004 order[2] = 4011005 order[3] = 4041006 order[4] = 4411007 order[5] = 4021008 order[6] = 4031009 order[7] = 4051010 order[8] = 4061011 order[9] = 4071012 order[10] = 4081013 order[11] = 01014 super(398, 399, order)1015 end1016 end1017 class NoBidComponents < Quickfix::Group1018 def initialize1019 order = Quickfix::IntArray.new(8)1020 order[0] = 661021 order[1] = 541022 order[2] = 3361023 order[3] = 4301024 order[4] = 631025 order[5] = 641026 order[6] = 11027 order[7] = 01028 super(420, 66, order)1029 end1030 end1031end1032class BidResponse < Message1033 def initialize1034 super1035 getHeader().setField( Quickfix::MsgType.new("l") )1036 end1037 class NoBidComponents < Quickfix::Group1038 def initialize1039 order = Quickfix::IntArray.new(16)1040 order[0] = 121041 order[1] = 131042 order[2] = 661043 order[3] = 4211044 order[4] = 541045 order[5] = 441046 order[6] = 4231047 order[7] = 4061048 order[8] = 4301049 order[9] = 631050 order[10] = 641051 order[11] = 3361052 order[12] = 581053 order[13] = 3541054 order[14] = 3551055 order[15] = 01056 super(420, 12, order)1057 end1058 end1059end1060class ListStrikePrice < Message1061 def initialize1062 super1063 getHeader().setField( Quickfix::MsgType.new("m") )1064 end1065 class NoStrikes < Quickfix::Group1066 def initialize1067 order = Quickfix::IntArray.new(28)1068 order[0] = 551069 order[1] = 651070 order[2] = 481071 order[3] = 221072 order[4] = 1671073 order[5] = 2001074 order[6] = 2051075 order[7] = 2011076 order[8] = 2021077 order[9] = 2061078 order[10] = 2311079 order[11] = 2231080 order[12] = 207...
quickfix41.rb
Source:quickfix41.rb
1require 'quickfix'2module Quickfix41Sp03class Message < Quickfix::Message4 def initialize5 super6 getHeader().setField( Quickfix::BeginString.new("FIX.4.1") )7 end8end9class Heartbeat < Message10 def initialize11 super12 getHeader().setField( Quickfix::MsgType.new("0") )13 end14end15class TestRequest < Message16 def initialize17 super18 getHeader().setField( Quickfix::MsgType.new("1") )19 end20end21class ResendRequest < Message22 def initialize23 super24 getHeader().setField( Quickfix::MsgType.new("2") )25 end26end27class Reject < Message28 def initialize29 super30 getHeader().setField( Quickfix::MsgType.new("3") )31 end32end33class SequenceReset < Message34 def initialize35 super36 getHeader().setField( Quickfix::MsgType.new("4") )37 end38end39class Logout < Message40 def initialize41 super42 getHeader().setField( Quickfix::MsgType.new("5") )43 end44end45class IndicationofInterest < Message46 def initialize47 super48 getHeader().setField( Quickfix::MsgType.new("6") )49 end50 class NoIOIQualifiers < Quickfix::Group51 def initialize52 order = Quickfix::IntArray.new(2)53 order[0] = 10454 order[1] = 055 super(199, 104, order)56 end57 end58end59class Advertisement < Message60 def initialize61 super62 getHeader().setField( Quickfix::MsgType.new("7") )63 end64end65class ExecutionReport < Message66 def initialize67 super68 getHeader().setField( Quickfix::MsgType.new("8") )69 end70end71class OrderCancelReject < Message72 def initialize73 super74 getHeader().setField( Quickfix::MsgType.new("9") )75 end76end77class Logon < Message78 def initialize79 super80 getHeader().setField( Quickfix::MsgType.new("A") )81 end82end83class News < Message84 def initialize85 super86 getHeader().setField( Quickfix::MsgType.new("B") )87 end88 class NoRelatedSym < Quickfix::Group89 def initialize90 order = Quickfix::IntArray.new(14)91 order[0] = 4692 order[1] = 6593 order[2] = 4894 order[3] = 2295 order[4] = 16796 order[5] = 20097 order[6] = 20598 order[7] = 20199 order[8] = 202100 order[9] = 206101 order[10] = 207102 order[11] = 106103 order[12] = 107104 order[13] = 0105 super(146, 46, order)106 end107 end108 class LinesOfText < Quickfix::Group109 def initialize110 order = Quickfix::IntArray.new(2)111 order[0] = 58112 order[1] = 0113 super(33, 58, order)114 end115 end116end117class Email < Message118 def initialize119 super120 getHeader().setField( Quickfix::MsgType.new("C") )121 end122 class NoRelatedSym < Quickfix::Group123 def initialize124 order = Quickfix::IntArray.new(14)125 order[0] = 46126 order[1] = 65127 order[2] = 48128 order[3] = 22129 order[4] = 167130 order[5] = 200131 order[6] = 205132 order[7] = 201133 order[8] = 202134 order[9] = 206135 order[10] = 207136 order[11] = 106137 order[12] = 107138 order[13] = 0139 super(146, 46, order)140 end141 end142 class LinesOfText < Quickfix::Group143 def initialize144 order = Quickfix::IntArray.new(2)145 order[0] = 58146 order[1] = 0147 super(33, 58, order)148 end149 end150end151class NewOrderSingle < Message152 def initialize153 super154 getHeader().setField( Quickfix::MsgType.new("D") )155 end156end157class NewOrderList < Message158 def initialize159 super160 getHeader().setField( Quickfix::MsgType.new("E") )161 end162end163class OrderCancelRequest < Message164 def initialize165 super166 getHeader().setField( Quickfix::MsgType.new("F") )167 end168end169class OrderCancelReplaceRequest < Message170 def initialize171 super172 getHeader().setField( Quickfix::MsgType.new("G") )173 end174end175class OrderStatusRequest < Message176 def initialize177 super178 getHeader().setField( Quickfix::MsgType.new("H") )179 end180end181class Allocation < Message182 def initialize183 super184 getHeader().setField( Quickfix::MsgType.new("J") )185 end186 class NoOrders < Quickfix::Group187 def initialize188 order = Quickfix::IntArray.new(6)189 order[0] = 11190 order[1] = 37191 order[2] = 198192 order[3] = 66193 order[4] = 105194 order[5] = 0195 super(73, 11, order)196 end197 end198 class NoExecs < Quickfix::Group199 def initialize200 order = Quickfix::IntArray.new(5)201 order[0] = 32202 order[1] = 17203 order[2] = 31204 order[3] = 29205 order[4] = 0206 super(124, 32, order)207 end208 end209 class NoAllocs < Quickfix::Group210 def initialize211 order = Quickfix::IntArray.new(21)212 order[0] = 79213 order[1] = 80214 order[2] = 81215 order[3] = 92216 order[4] = 208217 order[5] = 209218 order[6] = 161219 order[7] = 76220 order[8] = 109221 order[9] = 12222 order[10] = 13223 order[11] = 153224 order[12] = 154225 order[13] = 119226 order[14] = 120227 order[15] = 155228 order[16] = 156229 order[17] = 159230 order[18] = 160231 order[19] = 136232 order[20] = 0233 super(78, 79, order)234 end235 class NoMiscFees < Quickfix::Group236 def initialize237 order = Quickfix::IntArray.new(4)238 order[0] = 137239 order[1] = 138240 order[2] = 139241 order[3] = 0242 super(136, 137, order)243 end244 end245 end246end247class ListCancelRequest < Message248 def initialize249 super250 getHeader().setField( Quickfix::MsgType.new("K") )251 end252end253class ListExecute < Message254 def initialize255 super256 getHeader().setField( Quickfix::MsgType.new("L") )257 end258end259class ListStatusRequest < Message260 def initialize261 super262 getHeader().setField( Quickfix::MsgType.new("M") )263 end264end265class ListStatus < Message266 def initialize267 super268 getHeader().setField( Quickfix::MsgType.new("N") )269 end270 class NoOrders < Quickfix::Group271 def initialize272 order = Quickfix::IntArray.new(6)273 order[0] = 11274 order[1] = 14275 order[2] = 151276 order[3] = 84277 order[4] = 6278 order[5] = 0279 super(73, 11, order)280 end281 end282end283class AllocationACK < Message284 def initialize285 super286 getHeader().setField( Quickfix::MsgType.new("P") )287 end288end289class DontKnowTrade < Message290 def initialize291 super292 getHeader().setField( Quickfix::MsgType.new("Q") )293 end294end295class QuoteRequest < Message296 def initialize297 super298 getHeader().setField( Quickfix::MsgType.new("R") )299 end300end301class Quote < Message302 def initialize303 super304 getHeader().setField( Quickfix::MsgType.new("S") )305 end306end307class SettlementInstructions < Message308 def initialize309 super310 getHeader().setField( Quickfix::MsgType.new("T") )311 end312end313end...
quickfix40.rb
Source:quickfix40.rb
1require 'quickfix'2module Quickfix40Sp03class Message < Quickfix::Message4 def initialize5 super6 getHeader().setField( Quickfix::BeginString.new("FIX.4.0") )7 end8end9class Heartbeat < Message10 def initialize11 super12 getHeader().setField( Quickfix::MsgType.new("0") )13 end14end15class TestRequest < Message16 def initialize17 super18 getHeader().setField( Quickfix::MsgType.new("1") )19 end20end21class ResendRequest < Message22 def initialize23 super24 getHeader().setField( Quickfix::MsgType.new("2") )25 end26end27class Reject < Message28 def initialize29 super30 getHeader().setField( Quickfix::MsgType.new("3") )31 end32end33class SequenceReset < Message34 def initialize35 super36 getHeader().setField( Quickfix::MsgType.new("4") )37 end38end39class Logout < Message40 def initialize41 super42 getHeader().setField( Quickfix::MsgType.new("5") )43 end44end45class IndicationofInterest < Message46 def initialize47 super48 getHeader().setField( Quickfix::MsgType.new("6") )49 end50end51class Advertisement < Message52 def initialize53 super54 getHeader().setField( Quickfix::MsgType.new("7") )55 end56end57class ExecutionReport < Message58 def initialize59 super60 getHeader().setField( Quickfix::MsgType.new("8") )61 end62 class NoMiscFees < Quickfix::Group63 def initialize64 order = Quickfix::IntArray.new(4)65 order[0] = 13766 order[1] = 13867 order[2] = 13968 order[3] = 069 super(136, 137, order)70 end71 end72end73class OrderCancelReject < Message74 def initialize75 super76 getHeader().setField( Quickfix::MsgType.new("9") )77 end78end79class Logon < Message80 def initialize81 super82 getHeader().setField( Quickfix::MsgType.new("A") )83 end84end85class News < Message86 def initialize87 super88 getHeader().setField( Quickfix::MsgType.new("B") )89 end90end91class Email < Message92 def initialize93 super94 getHeader().setField( Quickfix::MsgType.new("C") )95 end96end97class NewOrderSingle < Message98 def initialize99 super100 getHeader().setField( Quickfix::MsgType.new("D") )101 end102end103class NewOrderList < Message104 def initialize105 super106 getHeader().setField( Quickfix::MsgType.new("E") )107 end108end109class OrderCancelRequest < Message110 def initialize111 super112 getHeader().setField( Quickfix::MsgType.new("F") )113 end114end115class OrderCancelReplaceRequest < Message116 def initialize117 super118 getHeader().setField( Quickfix::MsgType.new("G") )119 end120end121class OrderStatusRequest < Message122 def initialize123 super124 getHeader().setField( Quickfix::MsgType.new("H") )125 end126end127class Allocation < Message128 def initialize129 super130 getHeader().setField( Quickfix::MsgType.new("J") )131 end132 class NoOrders < Quickfix::Group133 def initialize134 order = Quickfix::IntArray.new(5)135 order[0] = 11136 order[1] = 37137 order[2] = 66138 order[3] = 105139 order[4] = 0140 super(73, 11, order)141 end142 end143 class NoExecs < Quickfix::Group144 def initialize145 order = Quickfix::IntArray.new(5)146 order[0] = 17147 order[1] = 32148 order[2] = 31149 order[3] = 30150 order[4] = 0151 super(124, 17, order)152 end153 end154 class NoMiscFees < Quickfix::Group155 def initialize156 order = Quickfix::IntArray.new(4)157 order[0] = 137158 order[1] = 138159 order[2] = 139160 order[3] = 0161 super(136, 137, order)162 end163 end164 class NoAllocs < Quickfix::Group165 def initialize166 order = Quickfix::IntArray.new(11)167 order[0] = 79168 order[1] = 80169 order[2] = 81170 order[3] = 76171 order[4] = 109172 order[5] = 12173 order[6] = 13174 order[7] = 85175 order[8] = 92176 order[9] = 86177 order[10] = 0178 super(78, 79, order)179 end180 end181end182class ListCancelRequest < Message183 def initialize184 super185 getHeader().setField( Quickfix::MsgType.new("K") )186 end187end188class ListExecute < Message189 def initialize190 super191 getHeader().setField( Quickfix::MsgType.new("L") )192 end193end194class ListStatusRequest < Message195 def initialize196 super197 getHeader().setField( Quickfix::MsgType.new("M") )198 end199end200class ListStatus < Message201 def initialize202 super203 getHeader().setField( Quickfix::MsgType.new("N") )204 end205 class NoOrders < Quickfix::Group206 def initialize207 order = Quickfix::IntArray.new(5)208 order[0] = 11209 order[1] = 14210 order[2] = 84211 order[3] = 6212 order[4] = 0213 super(73, 11, order)214 end215 end216end217class AllocationACK < Message218 def initialize219 super220 getHeader().setField( Quickfix::MsgType.new("P") )221 end222end223class DontKnowTrade < Message224 def initialize225 super226 getHeader().setField( Quickfix::MsgType.new("Q") )227 end228end229class QuoteRequest < Message230 def initialize231 super232 getHeader().setField( Quickfix::MsgType.new("R") )233 end234end235class Quote < Message236 def initialize237 super238 getHeader().setField( Quickfix::MsgType.new("S") )239 end240end241end...
initialize
Using AI Code Generation
1header = Header.new("Ruby", "Programming", "Ruby Programming")2header = Header.new("Ruby", "Programming", "Ruby Programming")3header = Header.new("Ruby", "Programming", "Ruby Programming")4header = Header.new("Ruby", "Programming", "Ruby Programming")5header = Header.new("Ruby", "Programming", "Ruby Programming")6header = Header.new("Ruby", "Programming", "Ruby Programming")7header = Header.new("Ruby", "Programming", "Ruby Programming")8header = Header.new("Ruby", "Programming", "Ruby Programming")9header = Header.new("Ruby", "Programming", "Ruby Programming")10header = Header.new("Ruby", "Programming", "Ruby Programming")11header = Header.new("Ruby", "Programming", "Ruby Programming")12header = Header.new("Ruby", "Programming", "Ruby Programming")13header = Header.new("Ruby", "Programming", "Ruby Programming")14header = Header.new("Ruby", "Programming", "Ruby Programming")15header = Header.new("Ruby", "Programming", "Ruby Programming")
initialize
Using AI Code Generation
1obj.header("Header")2obj.header("Header", "text")3obj.header("Header", "text", "text")4obj.header("Header", "text", "text", "text")5obj.header("Header", "text", "text", "text")6obj.header("Header", "text", "text")7obj.header("Header", "text")8obj.header("Header")9obj.header("Header", "text", "text")10obj.header("Header", "text")11obj.header("Header")12obj.header("Header", "text")13obj.header("Header", "text")14obj.header("Header")15obj.header("Header", "text")16obj.header("Header")17obj.header("Header")18obj.header("Header", "text")19obj.header("Header")20obj.header("Header", "text")21obj.header("Header", "text")22obj.header("Header")23obj.header("Header", "text")24obj.header("Header")25obj.header("Header", "text", "text", "text")26obj.header("Header", "text", "text")27obj.header("Header", "text")28obj.header("Header")29obj.header("Header", "text", "text")30obj.header("Header", "text")31obj.header("Header")32obj.header("Header", "text")33obj.header("Header", "text")34obj.header("Header")35obj.header("Header", "text")36obj.header("Header")37obj.header("Header")38obj.header("Header", "text")
initialize
Using AI Code Generation
1 def initialize(name)2header = Header.new("John")3 def initialize(name, age)4person = Person.new("John", 25)
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!