GithubHelp home page GithubHelp logo

jdawgtech / fix_gateway_cpp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmcilroy/fix_gateway_cpp

0.0 0.0 0.0 224 KB

Prototype of stateless FIX message routing application

C++ 91.11% Lua 7.19% CMake 1.70%

fix_gateway_cpp's Introduction

fix_gateway_cpp

Prototype of a stateless application designed to route FIX messages between client and venue FIX sessions. The basic idea is to embed data inside the ClOrdID of the message being routed to the venue that can extracted from responses to work out how to route the message back to the client.

Example

Direction FIX
From client 35=D 11=12345 55=VOD.L
To venue 35=D 11=**1#**12345 55=VOD.L
From venue 35=8 11=**1#**12345 55=VOD.L
To client 35=8 11=12345 55=VOD.L

Here you can see the text 1# being prepended and stripped from the message being routed. This number identifies the FIX session from which we received the message.

This approach breaks down when no ClOrdID is available - for example business rejects.

The application is designed as an event driven application.

  • Event sources are responsible for generating the events to process (in our case an event is FIX message)
  • Event sinks publish output events to interested parties (clients and venues)
  • Business logic is handled by a single thread. We are using lua to implement the business logic (building and routing of FIX messages), but any language could easily be used
  • With this design it should be possible to build a stateful application in the future. All input events can be persisted to disk and recovered on startup to rebuild the applications internal state

Check out scripts/gateway.lua for a simple example

fix_gateway_cpp's People

Contributors

mmcilroy avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.