Giter Club home page Giter Club logo

tick-logger's Introduction

Tick Logger

Tick Logger captures and stores financial ticks (quotes).

This application is very plug-in oriented. You can simply use or implement an adapter for either receiving quotes (feeder plug-in) or storing them (store plug-in).

The web interface supplies 3 major features:

  • Historical ticks graph - query an instrument for its past ticks.
  • Live ticks graph - TBD.
  • Statistics - TBD.

Installation

  1. Install NodeJS latest version from http://nodejs.org/
  2. Download the application to a new 'tick-logger' directory
  3. Open a terminal (command prompt) in the above directory
  4. Run: npm install
  5. Run: node app.js
  6. Open Google Chrome and browse to http://locahost:8080/

Configuration

You can find Tick Logger's configuration at the 'config.js' file.

Web interface

  • httpPort - web interface port.
  • sessionSecret - web session secret (default value must be changed).

Scalability

This application is scalable via multiple instances and or servers. Each worker (node instance) receives a unique ID, which allows it to process a different set of instruments, thus insuring collision free parallel processing.

  • localWorkerStartIndex - The starting ID number for this server node instances.
  • localNumberOfWorkers - The number of node instances on this server.
  • totalNumberOfWorkers - The sum of configured node instances across the servers.

Please note, the recommended amount of workers is the same as the number of the server's CPUs.

For example, when running the application on 3 servers, each with 8 workers, will create the following configurations:

Server No. localWorkerStartIndex localNumberOfWorkers totalNumberOfWorkers
1 0 8 24
2 8 8 24
3 16 8 24

Ticks feeder / store

  • queryStoreName - the name of the store to receive ticks data from.
  • feeders - determines the sources for the ticks data.
  • stores - determines where the ticks data will be stored.

Live demo

The demo server is generating ticks for instrument names called Test_0 to Test_9 - please use these when inquiring for ticks.

URL: http://tick-logger.herokuapp.com/

Credits

Future features

  • Statistics
  • Live tick graph
  • TCP/Text feeder
  • FIX feeder
  • Redis store
  • Clustering
  • Server scalability
  • Performance tests
  • Performance tuning
  • Authentication
  • Support Firefox and maybe IE :)

Requests, feedbacks and Suggestions are very welcome :)

Enjoy!

Bitdeli Badge

tick-logger's People

Contributors

eranbetzalel avatar

Stargazers

 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.