Code Monkey home page Code Monkey logo

vim-fixprotocol's Introduction

README

This plugin intends to break a Fix Message into xml

Format

The fix message should consist in keys and values separated by equals and those pairs separated by a null character

#!text
8=FIX.4.1�9=61�35=A�49=INVMGR�56=BRKR�34=1�52=20000426-12:05:06�98=0�108=30�10=157�

the output will be something like this

#!xml
<FIX>
<BeginString>FIX.4.1</BeginString><BodyLength>61</BodyLength><MsgType>A</MsgType><SenderCompID>INVMGR</SenderCompID><TargetCompID>BRKR</TargetCompID><MsgSeqNum>1</MsgSeqNum><SendingTime>20000426-12:05:06</SendingTime><EncryptMethod>0</EncryptMethod><HeartBtInt>30</HeartBtInt><CheckSum>157</CheckSum>
</FIX>

Protocol

When converting from message to xml the plugin tries to translate FieldNumbers to FieldName using some dictionary files, which are located in autoload folder. Those dictionary files were generated using the xml file found at Quickfix Engine

Usage

Go to a line where existis a Fix Message and type

:FixToXml

Configuration

Protocol version

The protocol version can be configured by the variable g:fixprotocol_fixversion with two possible values

let g:fixprotocol_fixversion = '42'

or

let g:fixprotocol_fixversion = '44'

XML root tag

You can define the xml root tag setting the variable g:fixprotocol_root_tag to any valid string

let g:fixprotocol_root_tag = 'FIX'

How do I get set up?

If you don't have a preferred installation method, one option is to install pathogen.vim, and then copy and paste:

cd ~/.vim/bundle
git clone https://[email protected]/vappolinario/vim-fixprotocol.git

Otherwise you can always download and copy the files to plugin, autoload and doc whitin your vim directory

TODO

  • Suport for more fix versions
  • XML indentation

vim-fixprotocol's People

Contributors

vappolinario avatar

Watchers

 avatar  avatar  avatar

Forkers

otweay benjwarner

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.