Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6806879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:45:51+00:00 2026-05-26T19:45:51+00:00

The OrderBook is filled with buy and sell orders. Updates, new orders may execute

  • 0

The OrderBook is filled with buy and sell orders. Updates, new orders may execute trades.

I can’t seem to find any examples of implementation.

We could give each order an id, and checkExecute orders one by one. But we want something that will scale to thousands of active orders.

We can sort the prices to get the orders that will be executed (because they overlap). But we have to be careful and execute only in the order in which the orders were received 🙂

Thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:45:52+00:00Added an answer on May 26, 2026 at 7:45 pm
    • we have to be careful and execute only in the order in which the orders were received

    Market data is usually modeled in a time series fashion, hence it is naturally ordered by a timestamp which goes up to as far as a picosecond precision at the moment.

    Depending on what tech you rely on, if you don’t mind to pay for it, I would go with OneTick, that is a time series DB that already has a built in order book with a book depth / price levels, CEP and much more.

    In case you’d like to build it yourself ( or rely on free products ), take a look at OpenTSDB which is an open source, time series DB with a LGPLv3+ license. It’d be slower than OneTick of course, but since you just need thousands (OneTick handles billions) depending on your speed requirements it may work.

    As to the OrderBook data model it would depend on how exactly are you going to use the book: e.g. do you care about multiple price levels? Top of the book? Do you need to match bids/asks to the actual orders, etc..

    But you can start with designing a schema that would record OrderBook events such as:

    enter image description here

    The example is from LMAX Protocol Reference Guide

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a class which holds a dictionary class OrderBook: orders = {'Restaurant1': None,
I am very new to parsing XML, and I started learning about linq which
I've got collection of objects I want use in my custom tag.But I can
I have 3 db tables: books(id, title, author,...) and orders(id, book_id, user_id,...) and users(id,
I am attempting to parse a string in Perl with the format: Messages pushed
I am trying to read data from a very large binary file and process
I'm attempting to create a database application for a bookstore. In the spec: After
I am in the process of trying to assemble a tick dataset. What I
struct Message { char type; double idNum; char *Time; char *asset; bool BS; float
My aim is to read this xml file stream: <?xml version=1.0 encoding=utf-16?> <events> <header>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.