Code Monkey home page Code Monkey logo

bookbuilder's Introduction

Bookbuilder

Basic Nasdaq TotalView ITCH 5.0 bookbuilder for a given instrument.

Example

Produce a 10-layer book for the Apple instrument (aapl) at sequence number 483985 from the network capture nasdaq_capture.pcap.

> cargo run -- --symbol aapl -f nasdaq_capture.pcap -d 10 -n 483985

Book (depth: 10) : AAPL    
----- Sell -----
[0] 900 @ 94.6400
[1] 3 @ 96.0000
[2] 1000 @ 96.1700
[3] 2 @ 97.1100
[4] 1100 @ 97.4500
[5] 31 @ 98.0000
[6] 2 @ 98.2500
[7] 20 @ 98.5000
[8] 2 @ 99.4100
[9] 100 @ 100.0000
----- Buy -----
[0] 130 @ 94.2600
[1] 250 @ 94.1200
[2] 300 @ 92.1800
[3] 2 @ 91.9700
[4] 2 @ 90.9500
[5] 2 @ 89.9400
[6] 100 @ 89.0100
[7] 2 @ 88.9500
[8] 2 @ 87.9700
[9] 4 @ 86.3800

Improvements

  • Could use a more modular parser such as nom crate
  • Add unit and integration tests

bookbuilder's People

Contributors

anibalrgc avatar wit00 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.