Git Product home page Git Product logo

emacs-fix-message-parser's Introduction

Emacs FIX Decoder

Introduction

C++ wrapper around QuickFix to allow parsing of FIX messages through an Emacs interactive command. It uses Emacs module support feature to load in a C++ API which is used for decoding.

Preview

Example of decoding a CME Option

./emacs-fix-option.png

Installing Necessary Tools

QuickFIX Library

  • Install dependencies: sudo apt-get install libxml2-dev libssl-dev
  • Download the latest QuickFIX source: http://www.quickfixengine.org/
  • Compile and install QuickFIX:
    tar -zxvf quickfix-x.y.z.tar.gz
    cd quickfix-x.y.z
    ./bootstrap
    ./configure
    make
    sudo make install
        

Emacs

  • Install Emacs (or build latest from source): sudo apt-get install emacs
  • Optional Install org-pretty-table

G++

  • Install G++: sudo apt-get install g++

Building Source

  • As easy as typing ./build.sh
  • This will produce an so library you will reference below

Grab Some Example Messages

Decode Them!

  • Note you may need to set LD_LIBRARY_PATH to the directory of the so output above
  • Open fix-parsel.el in Emacs
  • Change the module-load to match the build of your local clone - the so file above
  • M-x eval-buffer
  • M-x setup-fix-message-parsing-buffer
  • Paste your FIX message - making sure to use geuine SOH (ASCII 001) characters as delimiters
  • C-c C-c to decode

Know Issues

  • Sometimes message length and checksum need modifying to work (header truncation?). You can swap out the values for the expected ones in the Emacs exception.

emacs-fix-message-parser's People

Contributors

falloutphil avatar

Stargazers

 avatar

Watchers

 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.