SlideShare a Scribd company logo
Курс Лекций:

Обеспечение Качества Программного Обеспечения

Лаб. 1: Stocks / FIX / FAST
Максим Рудовский, Инновационные Трейдинговые Системы
Иосиф Иткин, Exactpro Systems
Александр Орлов, Инновационные Трейдинговые Системы
Plan:

1. Введение
    a. Реальная стоимость vs. Биржевая стоимость
    b. Биржа и для чего она нужна?
2. Order: Direction, Type, Qty, Price, TimeInForce, Instr
3. Reject GW&ME validation
4. Схема функционирования биржи
    a. Reject GW & Reject ME
    b. Order Accepted & Market Data
5. Order Book
6. FIX Protocol
7. Работа с терминалом
Order parameters:


                     MARKET
                     LIMIT
                     STOPMARKET
                     STOPLIMIT
                     ICEBERG
       BUY
       SELL
                                  DAY
                                  GTT - Good Till Time
                                  GTD - Good Till Day
                  ORDER
                                  GTC - Good Till Cancel
    PRICE                         IOK - Immediatly Or Cancel
                                  FOK - Fill Or Kill
                                  OPG - for Opening Auction
                                  ATC - for Closing Auction
                                  GFA - for any Auction
       QUANTITY     INSTRUMENT
Reject GW & Reject ME


     Clients
        &                                           Vendors (MD receivers)
     Brokers


                      Executeion Report
 Reject               Status = Rejected               UDP MULTICAST
 Message
                      2
       1

       FIX Gateways                                   FAST / Market Data




                                             2

                                  MATCHING       Distribution
            Sequencer
                                   ENGINE           Server
Order Accepted & Market Data


   Clients
      &                                        Vendors (MD receivers)
   Brokers


                    Executeion Report
                    Status = Accept              UDP MULTICAST




     FIX Gateways                                FAST / Market Data




                                           1
                                                          2

                                MATCHING   Distribution
          Sequencer
                                 ENGINE       Server
КГТУ Лаб 1: Stocks / FIX / FAST
FIX message (simple example)


           Symbol = AAPL,
           Side = Sell,
           OrderQty = 1000,       [35=D;55=AAPL;54=2;38=1000;40=1]
           OrdType = Market




                                                                               EXCHANGE
CLIENT




             FIX Order

                                         FIX Order Accept (Execution Report)



            Symbol = AAPL
            Side = Sell
                                      [35=8;55=AAPL;54=2;38=1000;40=1;39=0]
            OrderQty = 1000, OrdType = Market
            OrdStatus = New
FIX message (real example)


                                             <Header>
                                               … omitted …
                                             </Header>
                                             <ApplicationMessage>
                                              <Order>
                                               <ClOrdID>ORD_1</ClOrdID>
^                                              <HandInst Value="2" />
                                               <MinQty>1000</MinQty>
11=ORD_1^21=2^110=1000^55=EK^22=               <Instrument>
   1^48=277461109^54=1^60=20000907               <Symbol>EK</Symbol>
                                                 <IDSource>1</IDSource>
   -                                             <SecurityID>277461109</SecurityID>
   09:25:56^38=5000^40=2^44=62.5^15            </Instrument>
                                               <Side Value="1" />
   =USD^47=A                                   <TransactTime>20000907-09:25:56</TransactTime>
                                               <OrderQuantity>
^                                                <OrderQty>5000</OrderQty>
                                               </OrderQuantity>
10=165                                         <OrderType>
                                                 <LimitOrder Value="2">
                                                   <Price>62.5</Price>
                                                 </LimitOrder>
8=FIX.4.2^9=199^35=D^34=10^49=VENDOR^115=C     </OrderType>
    USTOMER^144=BOSTONEQ^56=BROKER^57          <Currency Value="USD" />
    =DOT^143=NY^52=20000907-09:25:58           <Rule80A Value="A" />
                                              <Order>
                                             </ApplicationMessage>
                                             </FIXMLMessage></FIXML

                                             <FIXML><FIXMLMessage>
FAST (field encoding)

            <template name="ExampleOrder">
               <messageRef name="NewOrderSingle"/>
               <string name="BeginStr"> <constant value="FIX.4.4"/> </string>
               <u32 name="SeqNum"> <increment/> </u32>
               <string name="SenderID"> <copy/> </string>
               <string name="SendingTime"> <delta/> </string>
               <decimal name="Price"> <delta/> </decimal>
               <string name="Symbol"> <copy/> </string>
            </template>

BeginStr SeqNum SenderID       SendingTime                Price    Symbol
8=FIX.4.4|34=10000|49=CLIENT1|52=20060126-13:06:58.100|44=1200|55=FOO1|
8=FIX.4.4|34=10001|49=CLIENT1|52=20060126-13:06:58.200|44=1210|55=FOO1|
8=FIX.4.4|34=10002|49=CLIENT1|52=20060126-13:06:58.300|44=1190|55=BAR2|
Original size 71 bytes

        |     10000|       CLIENT1|       20060126-13:06:58.100|    1200|     FOO1|
        |              |              |                        200|       10|         |
        |              |              |                        300|      -20|    BAR2|
Simple Stock System Architecture



   Clients
      &                              Vendors (MD receivers)
   Brokers



                                        UDP MULTICAST




     FIX Gateways                       FAST / Market Data




                      MATCHING     Distribution
          Sequencer
                       ENGINE        Server

More Related Content

DOC
PPT
Sascon 20/05 Room 1 Introduction
PDF
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
PPTX
Order book dynamics in high frequency trading
PPTX
Pairs trading using R
PPTX
Hacking The Trading Floor
PDF
Backtesting Trading Strategies with R
PPTX
Algorithmic & quantitative trading webinar
Sascon 20/05 Room 1 Introduction
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
Order book dynamics in high frequency trading
Pairs trading using R
Hacking The Trading Floor
Backtesting Trading Strategies with R
Algorithmic & quantitative trading webinar

Similar to КГТУ Лаб 1: Stocks / FIX / FAST (20)

PDF
web performance explained to network and infrastructure experts
PDF
How to monitor your micro-service with Prometheus?
PPT
Intro To The FIX Protocol presented at BarCampNYC3
PPT
Si pp introduction_2
PDF
5 must have patterns for your microservice
PDF
Voxxed Days Thesaloniki 2016 - 5 must have patterns for your web-scale micros...
PPT
VOIP Switch Monitoring and Traffic Management-Final.ppt
PPTX
Sessão Especial: PowerPivot com Alberto Ferrari
PPT
Fix
PDF
nter-pod Revolutions: Connected Enterprise Solution in Oracle EPM Cloud
PPTX
Business Intelligence Portfolio
PPTX
Greenfield Development with CQRS and Windows Azure
PDF
XL Messaging Manager P2P - TOK
PDF
MQTT and CoAP
PDF
5 must have patterns for your microservice - techorama
PDF
Work in TDW
PDF
Globility XMPPUK Meetup Presentation on our XMPP technology stack
PDF
Sap edi idoc
PDF
Hong Kong HTD Distribu product portfolio
PPTX
Epcis project
web performance explained to network and infrastructure experts
How to monitor your micro-service with Prometheus?
Intro To The FIX Protocol presented at BarCampNYC3
Si pp introduction_2
5 must have patterns for your microservice
Voxxed Days Thesaloniki 2016 - 5 must have patterns for your web-scale micros...
VOIP Switch Monitoring and Traffic Management-Final.ppt
Sessão Especial: PowerPivot com Alberto Ferrari
Fix
nter-pod Revolutions: Connected Enterprise Solution in Oracle EPM Cloud
Business Intelligence Portfolio
Greenfield Development with CQRS and Windows Azure
XL Messaging Manager P2P - TOK
MQTT and CoAP
5 must have patterns for your microservice - techorama
Work in TDW
Globility XMPPUK Meetup Presentation on our XMPP technology stack
Sap edi idoc
Hong Kong HTD Distribu product portfolio
Epcis project
Ad

More from Iosif Itkin (20)

PDF
Foundations of Software Testing Lecture 4
PPTX
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
PDF
Exactpro FinTech Webinar - Global Exchanges Test Oracles
PDF
Exactpro FinTech Webinar - Global Exchanges FIX Protocol
PDF
Operational Resilience in Financial Market Infrastructures
PDF
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
PDF
Testing the Intelligence of your AI
PDF
EXTENT 2019: Exactpro Quality Assurance for Financial Market Infrastructures
PDF
ClearTH Test Automation Framework: Case Study in IRS & CDS Swaps Lifecycle Mo...
PPTX
EXTENT Talks 2019 Tbilisi: Failover and Recovery Test Automation - Ivan Shamrai
PDF
EXTENT Talks QA Community Tbilisi 20 April 2019 - Conference Open
PDF
User-Assisted Log Analysis for Quality Control of Distributed Fintech Applica...
PPTX
QAFF Chicago 2019 - Complex Post-Trade Systems, Requirements Traceability and...
PDF
QA Community Saratov: Past, Present, Future (2019-02-08)
PDF
Machine Learning and RoboCop Testing
PDF
Behaviour Driven Development: Oltre i limiti del possibile
PDF
2018 - Exactpro Year in Review
PPTX
Exactpro Discussion about Joy and Strategy
PPTX
FIX EMEA Conference 2018 - Post Trade Software Testing Challenges
PDF
BDD. The Outer Limits. Iosif Itkin at Youcon (in Russian)
Foundations of Software Testing Lecture 4
QA Financial Forum London 2021 - Automation in Software Testing. Humans and C...
Exactpro FinTech Webinar - Global Exchanges Test Oracles
Exactpro FinTech Webinar - Global Exchanges FIX Protocol
Operational Resilience in Financial Market Infrastructures
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
Testing the Intelligence of your AI
EXTENT 2019: Exactpro Quality Assurance for Financial Market Infrastructures
ClearTH Test Automation Framework: Case Study in IRS & CDS Swaps Lifecycle Mo...
EXTENT Talks 2019 Tbilisi: Failover and Recovery Test Automation - Ivan Shamrai
EXTENT Talks QA Community Tbilisi 20 April 2019 - Conference Open
User-Assisted Log Analysis for Quality Control of Distributed Fintech Applica...
QAFF Chicago 2019 - Complex Post-Trade Systems, Requirements Traceability and...
QA Community Saratov: Past, Present, Future (2019-02-08)
Machine Learning and RoboCop Testing
Behaviour Driven Development: Oltre i limiti del possibile
2018 - Exactpro Year in Review
Exactpro Discussion about Joy and Strategy
FIX EMEA Conference 2018 - Post Trade Software Testing Challenges
BDD. The Outer Limits. Iosif Itkin at Youcon (in Russian)
Ad

Recently uploaded (20)

PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
Cell Types and Its function , kingdom of life
PDF
RMMM.pdf make it easy to upload and study
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Institutional Correction lecture only . . .
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
master seminar digital applications in india
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Insiders guide to clinical Medicine.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Cell Types and Its function , kingdom of life
RMMM.pdf make it easy to upload and study
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Institutional Correction lecture only . . .
Supply Chain Operations Speaking Notes -ICLT Program
Microbial diseases, their pathogenesis and prophylaxis
Renaissance Architecture: A Journey from Faith to Humanism
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Basic Mud Logging Guide for educational purpose
Sports Quiz easy sports quiz sports quiz
master seminar digital applications in india
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
O5-L3 Freight Transport Ops (International) V1.pdf
Pre independence Education in Inndia.pdf
O7-L3 Supply Chain Operations - ICLT Program

КГТУ Лаб 1: Stocks / FIX / FAST

  • 1. Курс Лекций: Обеспечение Качества Программного Обеспечения Лаб. 1: Stocks / FIX / FAST Максим Рудовский, Инновационные Трейдинговые Системы Иосиф Иткин, Exactpro Systems Александр Орлов, Инновационные Трейдинговые Системы
  • 2. Plan: 1. Введение a. Реальная стоимость vs. Биржевая стоимость b. Биржа и для чего она нужна? 2. Order: Direction, Type, Qty, Price, TimeInForce, Instr 3. Reject GW&ME validation 4. Схема функционирования биржи a. Reject GW & Reject ME b. Order Accepted & Market Data 5. Order Book 6. FIX Protocol 7. Работа с терминалом
  • 3. Order parameters: MARKET LIMIT STOPMARKET STOPLIMIT ICEBERG BUY SELL DAY GTT - Good Till Time GTD - Good Till Day ORDER GTC - Good Till Cancel PRICE IOK - Immediatly Or Cancel FOK - Fill Or Kill OPG - for Opening Auction ATC - for Closing Auction GFA - for any Auction QUANTITY INSTRUMENT
  • 4. Reject GW & Reject ME Clients & Vendors (MD receivers) Brokers Executeion Report Reject Status = Rejected UDP MULTICAST Message 2 1 FIX Gateways FAST / Market Data 2 MATCHING Distribution Sequencer ENGINE Server
  • 5. Order Accepted & Market Data Clients & Vendors (MD receivers) Brokers Executeion Report Status = Accept UDP MULTICAST FIX Gateways FAST / Market Data 1 2 MATCHING Distribution Sequencer ENGINE Server
  • 7. FIX message (simple example) Symbol = AAPL, Side = Sell, OrderQty = 1000, [35=D;55=AAPL;54=2;38=1000;40=1] OrdType = Market EXCHANGE CLIENT FIX Order FIX Order Accept (Execution Report) Symbol = AAPL Side = Sell [35=8;55=AAPL;54=2;38=1000;40=1;39=0] OrderQty = 1000, OrdType = Market OrdStatus = New
  • 8. FIX message (real example) <Header> … omitted … </Header> <ApplicationMessage> <Order> <ClOrdID>ORD_1</ClOrdID> ^ <HandInst Value="2" /> <MinQty>1000</MinQty> 11=ORD_1^21=2^110=1000^55=EK^22= <Instrument> 1^48=277461109^54=1^60=20000907 <Symbol>EK</Symbol> <IDSource>1</IDSource> - <SecurityID>277461109</SecurityID> 09:25:56^38=5000^40=2^44=62.5^15 </Instrument> <Side Value="1" /> =USD^47=A <TransactTime>20000907-09:25:56</TransactTime> <OrderQuantity> ^ <OrderQty>5000</OrderQty> </OrderQuantity> 10=165 <OrderType> <LimitOrder Value="2"> <Price>62.5</Price> </LimitOrder> 8=FIX.4.2^9=199^35=D^34=10^49=VENDOR^115=C </OrderType> USTOMER^144=BOSTONEQ^56=BROKER^57 <Currency Value="USD" /> =DOT^143=NY^52=20000907-09:25:58 <Rule80A Value="A" /> <Order> </ApplicationMessage> </FIXMLMessage></FIXML <FIXML><FIXMLMessage>
  • 9. FAST (field encoding) <template name="ExampleOrder"> <messageRef name="NewOrderSingle"/> <string name="BeginStr"> <constant value="FIX.4.4"/> </string> <u32 name="SeqNum"> <increment/> </u32> <string name="SenderID"> <copy/> </string> <string name="SendingTime"> <delta/> </string> <decimal name="Price"> <delta/> </decimal> <string name="Symbol"> <copy/> </string> </template> BeginStr SeqNum SenderID SendingTime Price Symbol 8=FIX.4.4|34=10000|49=CLIENT1|52=20060126-13:06:58.100|44=1200|55=FOO1| 8=FIX.4.4|34=10001|49=CLIENT1|52=20060126-13:06:58.200|44=1210|55=FOO1| 8=FIX.4.4|34=10002|49=CLIENT1|52=20060126-13:06:58.300|44=1190|55=BAR2| Original size 71 bytes | 10000| CLIENT1| 20060126-13:06:58.100| 1200| FOO1| | | | 200| 10| | | | | 300| -20| BAR2|
  • 10. Simple Stock System Architecture Clients & Vendors (MD receivers) Brokers UDP MULTICAST FIX Gateways FAST / Market Data MATCHING Distribution Sequencer ENGINE Server