Skip to content

Myzh/fix

This branch is 47 commits behind maxlapshin/fix:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f603ff8 · Apr 1, 2013

History

47 Commits
Mar 13, 2013
Mar 13, 2013
May 1, 2012
Apr 1, 2013
Mar 13, 2013
May 4, 2012
May 2, 2012
Mar 13, 2013
Jul 12, 2012
Jul 12, 2012
Mar 13, 2013
Mar 13, 2013
Jul 12, 2012
Mar 13, 2013
Mar 13, 2013
May 4, 2012

Repository files navigation

FIX protocol

This code is implementation of http://fixprotocol.org/ It is a trading protocol that allows to make orders, receive quotes and do many other things, described in protocol.

This repo includes specification of different FIX versions taken from http://quickfix.org/ project.

fix_template is a parser generator that takes XML description of protocol and generates fix_parser.erl from it.

Also include/admin.hrl and include/business.hrl headers are generated from XML.

Mention that FIX names such as RefSeqNum are translated to more convenient ref_seq_num

Usage

Edit fix.conf.sample and put it into root of your project. Mention that fix_read should be your broker and fix_proxy is for proxying your market requests via your server. But let us start from easy usage.

Don't forget to application:start(fix).

Now let's subscribe to market data:

fix_reader:subscribe(fix_read, 'NASDAQ.AAPL')

What is going now? Launch appmon:start() and see that there are new spawned processes in supervisor tree of fix application. You have connected to broker and now your process will receive market data.

Include header:

-include_lib("fix/include/business.hrl").

and use structure

#market_data_snapshot_full_refresh{}

from it.

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 79.8%
  • Objective-C 18.1%
  • C 2.0%
  • Makefile 0.1%