Code Monkey home page Code Monkey logo

fix's Introduction

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.

fix's People

Contributors

maxlapshin avatar stolen avatar

Watchers

Zvi avatar  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.