Questions tagged [limit-order-book]

The prioritized list of resting orders held by the exchange. Each limit order represents an obligation to buy or sell. The most common type of order book is prioritized first by price and them by time. Another variation is the price/size book, where larger size results in higher priority.

Filter by
Sorted by
Tagged with
1
vote
2answers
485 views

How important is the limit order book?

I'm trying to understand how important the limit order today for NYSE, NASDAQ, Euronext and LSE. For example, when we talk about the volume traded during the day, what share of that volume has been ...
7
votes
5answers
2k views

Estimate probability of limit order execution over a large time frame

I have a negligible amount of money (\$5000) that I would like to invest in a stock. I would like to buy the stock at some point in the next year, and get the lowest possible price. I would like to ...
1
vote
1answer
431 views

Order flow intensity

I am interested in how to calculate order flow intensity. I got access to high frequency data and can simulate a limit order book. What is the best approach if I want to calculate order flow intensity?...
0
votes
0answers
124 views

Are there good off-the-shelf coding implementation of trade classification algorithms?

Including Lee Ready and bulk classification methods, as well as any other method. To be clear, I'm asking for code, not just a description of the algorithm.
2
votes
0answers
125 views

Avellaneda/Cont model Order Book Model

The model given in the following paper by Avellaneda et al http://people.stern.nyu.edu/jreed/Papers/limitorder.pdf On page 7 he explains that the initial Bid and Ask size should be normalised by ...
23
votes
5answers
8k views

Implementing data-structures in a Limit order book

I'm working on implementing a 'LOB' and I'm being very careful about choosing my data-structures so as to maximize performance. Using F# as an example, I need to consider a List versus Array for ...
0
votes
1answer
276 views

What is the current state of microstructure/order book analysis?

I know it's a broad question, but I'm curious as to the current state of microstructure analysis, specifically whether there's anything 'actionable' that people have discovered. Would also be ...
1
vote
2answers
179 views

Order book size limit

I am trying to find out if exchanges impose limits on the total number of orders which can be in an order book at any one time. Does anyone know of examples of these order book size limit policies. ...
1
vote
1answer
193 views

how are gaps usually handled in market data received with multicast?

Most commonly due to latency reasons, market data is published using multicast protocol. However since multicast is built on top of UDP, it is possible that there could be packet drops. How can the ...
6
votes
2answers
2k views

Order Execution Algorithms

To execute large orders under minimum price impact or to hide a market view, trading systems sometimes utilize special order execution algorithms or order types. One example is an iceberg order, ...
2
votes
0answers
642 views

More cache friendly linked list or alternative with optimal append, delete, and ordered traversal for limit order book?

I am trying to implement a stock matching engine/order book in C++, and am searching for a more cache friendly architecture. Currently, my data structures are as follows: An intrusive rb-tree for the ...
7
votes
6answers
4k views

FIX- what exactly do repeating groups represent?

I am trying to find out what is the purpose of "repeating groups" in FIX and what exactly do they represent? Are they all related to the same order and if so, why do you need repeated tags? If they ...
3
votes
3answers
498 views

Latency and Delays across Exchanges

I have recently come across this paper by Battalio et al. "Can Brokers Have it all? On the Relation between Make Take Fees & Limit Order Execution Quality" and realized how little I know about the ...
0
votes
1answer
89 views

Order Book vs Wallet Updates

Good morning, i am in the middle of developing my own stock exchange system and have implemented limit orders (basics) matching. The system is just a DIY solution for my own purposes and for fun ...
2
votes
1answer
432 views

Order book Limit Order book

I am trying to make a Limit Order book from an ITCH file using r. what is the basic difference between orderbook and limit orderbook? R has a package for orderbook I think
2
votes
2answers
523 views

Locked or Crossed Markets

I don't understand why Rule 610 from Reg NMS was introduced: what was the problem with locked markets? I have read that one of the issues is that it forced a market maker (say, from Nasdaq) who ...
0
votes
2answers
448 views

Disclosure of the liquidity provider identity in ITCH

If you look into the description of Nasdaq ITCH data, you see two types of order entries in the book: Message of Type A and F. Under type F, you will see the identity of the market participant (MPID). ...
4
votes
3answers
534 views

What is the correct / expected behavior for a market order sent to an empty book?

Should it stick around until liquidity shows up? (GTC) Should it cancel any size for which there is no liquidity? (IOC) Is there such a thing as Market GTC or Market Orders must always be IOC?
2
votes
0answers
139 views

Adjusting for your own orders in future backtests

I was asked this question in an interview and despite thinking about it for a while, I haven't been able to come up with a good answer. Suppose you have a strategy you are running where at certain ...
3
votes
4answers
843 views

Trader's identity in a limit book

In a limit book like NASDAQ ITCH, can liquidity suppliers know the demand-side identity of a trader prior or after a trade? Knowing this will help me with my theoretical model that I am trying to ...
0
votes
1answer
319 views

Level II market data (equities)

I have been playing around with some equities historical market data and I understand that different exchanges have different definitions of what Level II (Limit Order Book) data means. What I'm ...
4
votes
0answers
531 views

Mid-Point calculation with execution probability

Referring Cao, Hansch, and Wang (2004) "The Informational Content of an Open Limit Order Book" $$ \mbox{WP}^{n_1 - n_2} = \frac{\sum_{j=n_1}^{n_2} (Q_j^d P_j^d + Q_j^s P_j^s)}{(Q_j^d + Q_j^s)} $$ ...
2
votes
3answers
600 views

What are the unfair order execution/routing advantages HFT firms apparently have?

I originally thought that you have an orderbook per stock and orders would be filled on the time at which they arrive. Arrive first and you get the best price and the qty in the orderbook is reduced ...
5
votes
4answers
1k views

Deep bid ask orders

Why do I often see some very deep limit buys and limit sells in a limit book? For instance the bid-ask may be \$39.00-39.01 but I see some bids at \$20 or even \$10 and some ask at \$60 or even \$500. ...
8
votes
1answer
1k views

How do you calibrate a poisson arrival rate process?

Many papers in the microstructure literature assume an order arrival rate of the form $\lambda^a(\delta) = \lambda^b(\delta) = Ae^{-k\delta}$ That is, an order that's placed $\delta$ away from the ...
1
vote
1answer
149 views

Change of order size

For example I am put a limit order of size 10 at top bid. moments later, my algorithm detects we should have size of 50 here. So we request a update on this order. My question is, will we lose the ...
1
vote
2answers
238 views

Quotes and Transactions Streams from Exchange

I have possibility of taking 2 types of real time streams from some exchange: bid-ask quotes (fresh quotes from order book) transaction log (transactions matched by exchange) I'm curious what ...
6
votes
1answer
6k views

open-source implementation of orderbook from FAST?

I'm looking for c/c++ implementation of OrderBook. I need implementation to reconstruct market data from FAST. I don't need to do "matching" because it already did by exchange, I only need to "...
2
votes
2answers
3k views

Calculating true value of a stock given the order-book and recent trades

I'm trying to calculate the 'true value' of a stock listed on an exchange. I have access to the limit order-book (containing all bid/ask quotes) and also all trades which have taken place (which ...
1
vote
1answer
5k views

Question about weighted midpoint formula

The answers from these two replies seem to contradict each other. The first numerator is bidSizebidPrice + askSizeaskPrice but the second is bidSizeaskPrice + askSizebidPrice. Price functions based ...
0
votes
1answer
2k views

What is a resting limit order? [closed]

What exactly is a resting limit order? I could not find a definition on Wikipedia or Google.
-1
votes
1answer
754 views

Order book depth views preferences: order-by-order vs. total aggregated volume by price levels

Which is best? Or is it irrelevant? Hi! Considering Level 2 Data (Market Depth), I want to understand the advantages to have all the order book on an order-by-order basis (or tick-by-tick basis) ...
8
votes
2answers
2k views

Non-SQL methods for high-frequency accounting?

Does anyone know of any prior art for non-SQL data structures for high-frequency accounting, whether client, broker, or exchange-side? I'm thinking specifically of the problem of booking individual ...
3
votes
1answer
789 views

Does DOM trading using broker data make any sense?

Can I use DOM information from Interactive Brokers? Does it make sense? I assume that it makes sense to apply some volume based algorithms only then when you know this order book, that you can get ...
1
vote
1answer
364 views

PIQ estimation for FIFO limit order book

Assuming that one doesn't have any kind of priveleged data feed (i.e. info is depth of book and volume executed at bid and ask), is it inherently easier to more accurately estimate position in queue ...
2
votes
1answer
118 views

Limits analysis

I have a few time series of models to analyse in terms of how far/close they are to their underlying limit. The limit is a simple value on the y-axis (always positive), and the series can act ...
8
votes
1answer
1k views

Why would a trader quickly flicker an order immediately preceding a tick away?

The Setup Assume the inside market is $15.15 \times 15.16$ and there is a very large bid order imbalance. For example, 30,000 shares bid across 100+ orders, 200 shares offered across 1 order; however,...
9
votes
3answers
2k views

Limit order book size

I am trying to write a highly optimised limit order book and I wondered what sort of size I can expect for: Range of limit prices Number of orders at each limit price I am developing custom hardware ...
7
votes
1answer
3k views

how do we estimate position of our order in order book?

how would you estimate your order in the exchange order book? The order of order events and acks is not deterministic or guaranteed. How could you write an algo to estimate accurately your position in ...
4
votes
2answers
435 views

What does ABBO (Away best bid and offer) refer to?

I know what the NBBO is but I've seen mention of ABBO and I'm not sure what it means?
4
votes
1answer
422 views

What is a good source to learn the different nuances of electronic orders and their nature?

Today I was speaking with someone involved in high frequency trading. They were mentioning hidden orders, queue positions (which can be lost in the orderbook based on certain order modifications), ...
17
votes
3answers
4k views

Order submission strategies of a rational market maker?

Consider a market maker that has decided to try to make a round-trip trade in stock A in order to capture the bid-ask spread. Assume furthermore that he has no current inventory in the stock A. To ...
25
votes
3answers
8k views

How are limit orders selected from the order book?

I'm sure there is a simple answer to this but I haven't had any luck with searches. I'm just wondering when someone places a market order which order(s) from the limit order book are selected to fill ...
18
votes
1answer
1k views

What techniques are used for testing order book implementations?

I am finishing the implementation of a limit order book for modeling NASDAQ. The order book works off of the ITCH feed. My question is what techniques are typically used for testing order books. I am ...
14
votes
3answers
795 views

What is the most effective way of determining & measuring the level of HFT activity in a stock in (close to) real time?

On a security by security basis, I want to be able to quantify the level of HFT activity (and later institutional & retail activity). Is it higher than it normally is? How much so? What would you ...
11
votes
1answer
1k views

A generic limit order book: What are the most important queries it should be able to answer?

Assume a class LimitOrderBook which represents a limit order book in a trading system. To be able to represent the limit order book a data handler reads a feed ...

1
2