Coder Social home page Coder Social logo

fix_parser's Introduction

Fix Parser

Parses raw fix-messages and returns tag-names and known values in a json format example:

{
 "10000": "OBVK67",
 "527": "DBL0F1-7",
 "775": "AAA",
 "AvgPx": "0.000000",
 "BeginString": "FIX.4.2",
 "BodyLength": "230",
 "CheckSum": "252",
 "ClOrdID": "DV_15157",
 "CumQty": "0",
 "Currency": "SEK",
 "ExecID": "DBL0F1-7",
 "ExecTransType": "NEW",
 "ExecType": "REPLACE",
 "LastPx": "0",
 "LastShares": "0",
 "LeavesQty": "30",
 "MsgType": "EXECUTION_REPORT",
 "OrdStatus": "REPLACED",
 "OrdType": "LIMIT",
 "OrderID": "456",
 "OrderQty": "30",
 "OrigClOrdID": "DV_15156",
 "Price": "166.0",
 "SecurityExchange": "ST",
 "SenderCompID": "LLVE_1",
 "Side": "SELL_SHORT",
 "Symbol": "VOLVb.ST",
 "TargetCompID": "FIX2",
 "TimeInForce": "DAY",
 "TransactTime": "20171017-07:16:01.269"
}

Usage

Can read quickfix message logs:

$ ./fixparser.py --dictionary=fixspecs/FIX50SP2.xml test.log

Can read from pipe:

$ cat test.messages | ./fixparser.py --dictionary=fixspecs/FIX42.xml --delimiter="|" -

Can read Raw Messages

$ ./fixparser.py --dictionary=fixspecs/FIX42.xml --delimiter="|" "8=FIX.4.2|9=155|35=D|49=FIX2|56=LLVE_1|52=20171017-07:15:51.645|34=32|40=2|54=5|55=VOLVb.ST|11=DV_15156|21=3|60=20171017-07:15:51|38=20|44=166.0|59=0|15=SEK|100=ST|207=ST|10=129|"

fix_parser's People

Contributors

josh-mccullough avatar philberty avatar

Stargazers

i-aztec avatar Dmitry Marienko avatar  avatar

Watchers

 avatar

Forkers

philberty

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.