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
0
votes
0answers
22 views

do prior day orders carry over to next day pre market order in Nasdaq?

I am looking at Stefan Jansen's machine learning for trading, specifically, rebuilding Nasdaq order book from Nasdaq itch data. In his jupyter-notebook, he says Throughout the day, new orders are ...
0
votes
1answer
79 views

How should Aggressive Limit Orders be Processed in a Limit Order Book

I am a little confused about how orders get processed in a limit order book, hope to get a better understanding with this post. If we start off with an order book ...
1
vote
0answers
64 views

Market making algo using bid ask order volume ladder

I am looking for references for market-making strategies using bid-ask order ladder. Algo should suggest entry prices, and do inventory management. I am more interested in practical simple algo used ...
5
votes
1answer
295 views

Modelling queue position

Is there any viable way for me to know the dynamics of my LOB position? Lets suppose the LOB is order based LOB, and i send a order to this level, can i know if the qty in front of me cancelled vs ...
0
votes
0answers
49 views

Stop-limit and Limit order at the same time on Binance

Imagine I set a stop-limit order whose trigger and sell conditions are if the price drops to 10$ (stop) sell my asset at 9$ (...
1
vote
2answers
161 views

How is forex market Quote-Driven?

I am new to the field, and trying to understand structure of spot currency market. As it is stated here, Quote-Driven Market ... only displays the bid and asks offers for a security from designated ...
0
votes
2answers
262 views

Predicting price direction from order flow at high frequency

I have access to high frequency data for a few instruments using which I can simulate a limit order book.I would like to predict direction of price(best bid/ask) in the short term(1 sec, 5 sec and 10 ...
2
votes
1answer
179 views

What does a electronic dealer track in a RFQ market?

If you have mid price for rfq market in fixed income. What is the internal order book tracking at a bank? Customers dont place limit orders or do they? There arent any other market makers on your ...
3
votes
2answers
1k views

Red Black Trees for Limit Order Book

Why do people suggest using red black trees/balanced binary trees for the levels in a limit order book? Why are they algorithmically ideal?
2
votes
2answers
450 views

What are the proper ways to do order book downsampling?

I have an access to the order book dataset, which was sampled with resolution that is too high for my sandbox experiments with it. Because of that, I was wondering, what would be the correct way to ...
1
vote
0answers
120 views

How to visualize limit order book in gui? What Library or widgets to use?

I have implemented a very simple limit order book in c++ . I would like to visualize it in a GUI application. I don't any experience in GUI. What library and widget may be used? Any suggestion in this ...
0
votes
0answers
18 views

Bid-ask spread using transactions data [duplicate]

In the absence of quotes data, I'm looking to calculate the realized bid-ask spread using (high-frequency) transactions data. Is there a standard method of doing this? Many thanks.
1
vote
0answers
28 views

OrderId data type is double in tick by tick datafeed

I am going through multicast protocol for tick by tick data of national stock exchange(NSE, India) and the orders are uniquely identified by orderID and they have defined it to be a double datatype. ...
0
votes
0answers
41 views

Optimal execution of limit and market orders [duplicate]

I have built a alpha to get signals buy/sell. Because I trade with a large number of future, I need a good strategy to execute. I want to split my target 2 parts: limit and market order book. But I ...
3
votes
1answer
185 views

Order Replacement Trade-off for a Market Maker

Whenever we replace an order, we lost priority since we are added to the end of the queue. If we dont replace an order, there is an obvious chance that we might get picked. There are other situations ...
1
vote
2answers
141 views

Recreating Bid-Ask from Transactions data

A database only has transactions/trades for a given instrument. In order to recreate bid-ask of the instrument to estimate the average bid-ask spread, what process does one need to follow? what are ...
1
vote
0answers
24 views

How to find the equilibrium price in a CDA with limit orders?

I'm trying to understand how a continuous double auction works, by working through the below setup: I'm trying to figure out what the final results would look like how to determine the equilibrium ...
1
vote
1answer
98 views

How do limit order prices meet?

I understand how limit orders work but I don't know how do they meet. Suppose the book of a ticker ABC is empty. Trader 1 sends a buy limit order for 1 share of ABC at 2\$, and at the same time (...
1
vote
2answers
292 views

Limit order book modeling based on computational statistics

Is someone aware of publications that try to model limit order book (and market mircostructure) in general using CS tools (such as online machine learning, game theory ecc...) and not stochastic ...
1
vote
2answers
119 views

Pegged Orders Positioning

I have a strategy that involves being first in the order queue in a tight market where the tick can change from bid to ask or ask to bid by one tick. I am looking at pegged orders so when the bid ...
0
votes
1answer
115 views

How Crypto Exchanges handle overlapping orders when self trading is disabled?

I am unsure how a typical "matching engine" handles overlapping orders (in my case, Deribit). I would be just as interested in how any crypto exchange handles the situation. The user has ...
2
votes
1answer
115 views

How do locked markets get resolved in a low-volume market?

Consider a low-volume exchange-traded security that sometimes sees no trading volume for days on end. Examples of such securities are some bonds, preferred shares, SPACs, and ETFs listed on the NYSE ...
0
votes
0answers
64 views

Which features based on orderbook information could be relevant for price prediction?

I have some orderbook data, including 5 ask prices, 5 bid prices, amount of asks and bids for every price, and midprice which is equal to (best bid + best ask)/ 2. I would like to predict absolute ...
4
votes
1answer
301 views

Complexity of using balanced-tree to model order book

I have bene researching on the best data structure to implement a limit order book. Some of the most common implementations include arrays and balanced trees. This link has a good set of references. ...
3
votes
0answers
240 views

Market Making Formulation

I'm developing a deep reinforcement learning based approach to market-making. In order to implement this, I need to define the appropriate actions and define environmental steps. While doing some ...
1
vote
1answer
324 views

Building Limit OrderBooks methods (order-based) or (level-based)

I'm trying to implement a code to build limit order books. While doing some research I have seen two methods mainly, order-based for equities and level-based for futures. I could not understand why ...
0
votes
2answers
103 views

How does a Stock Exchange Provider implement a Stop-Loss Order?

If I place a stop loss order at my provider. Is this order directly forwarded to the stock exchange? Or does my provider implement this logic. If so, do they have to declare any delays that arise by ...
2
votes
2answers
134 views

Order anticipation

Is there a way to anticipate order flow on a security. For simplicity's sake i'm referring to a security that is traded on one exchange and has a single order book, by anticipating order flow i mean ...
2
votes
0answers
127 views

Competitive levels in Limit Order Books

I've been doing some research on electronic Limit Order Books (mainly equities) and I was wondering if anyone has seen a paper on how to compute competitive limit order prices. By competitive, I mean ...
1
vote
0answers
33 views

Limit order book - Behaviour of GTC orders in the Orderbook

If I made a GTC (good till cancelled) to a Stock Exchange how will it stay within the Orderbook of the Stock Exchange if not executed during the day? Will it be removed after the trading day is over ...
1
vote
0answers
53 views

What is the price when the buy limit is above sell limit [closed]

Consider a marketplace where the sell order book has one order for 10 units at 1\$, then 10 units at 1.1\$ and then 100 units at 2\$. Say that I want to buy 20 units, and that I place a limit order ...
1
vote
2answers
2k views

How to understand micro-price (aka, weighted mid-price)?

The definition of micro-price is S = Pa * Vb / (Va + Vb) + Pb * Va / (Va + Vb) where Pa is the ask price, ...
3
votes
3answers
718 views

How is market buy order executed when meeting both market sell order and limit sell order?

Currently, we all know how market buy order is executed when meeting only limit sell order for time-priority rule.
0
votes
1answer
80 views

Translating Order books accounting for fees

I am trying to understand how fee structure plays into how I should best execute a trade. Say there are two exchanges with the following order book: Exchange A: Bid Qty | Bid Price | Ask Price | ...
2
votes
0answers
82 views

Probability of getting a fill of a given size

Question is quite simple, what is the probability of getting a fill for: (i) a limit order of size - $s$ (ii) that is $\Delta$ away from the mid-price (iii) in the next $t$ minutes given ...
5
votes
2answers
297 views

How can one effectively approximate the fill portion of a limit order in a FIFO order book given it's recent state?

What methods could one use to find the step wise probability of a partial or full fill of an order in the best ask/bid level of a limit order book given the historic best ask and best bid quantities ...
1
vote
0answers
96 views

Does EFP (Exchange Futures for Physical) Involves Cash Exchange?

I am new to the concept of Exchange Futures for Physical (EFP). According to some sources (link), An Exchange for Physical (EFP) is a transaction involving the simultaneous exchange between two ...
0
votes
1answer
85 views

Does adverse-selection have a time-frame associated with it?

When my limit order gets filled, the price almost always moves against me due to adverse-selection. However, given 'enough' time the price may yet move back in my favour. Has there been any study ...
2
votes
0answers
114 views

Standard ways of simulating order books

What are some standard simple ways of simulating an order book? I have found this paper, but it is missing the implementation details. And more importantly, it appears that it ignores the size of the ...
1
vote
1answer
50 views

Function price output hops around sometimes due to rounding

Say we have a function for estimating the fair price of a security. The function gives outputs rounded to the nearest 0.5 (that is, the raw output is not a rounded float, but can have a decimal part ...
1
vote
1answer
110 views

How do you interpret Level 1 data to a list of transactions/trades?

If you have L1 data of a given security, what is the best practice to interpret it to a list of transaction/trades? Or, can we actually do so? Just FYI, it's not a project for school but a problem I ...
0
votes
1answer
60 views

continuous stock price

I wonder what would happen if the stock price becomes continuous? I am thinking that if that happens, everyone just places a limit bid order just above the original best bid order or limit sell order ...
0
votes
1answer
299 views

Algo trading execution simulation

Disclaimer: Brand new to high frequency algo trading. Background:I have tick-by-tick trade data for stock A and I have joined the price and volume data for each trade with the previous snapshot of ...
4
votes
4answers
554 views

Modelling HFT data

In the context of Market making, how important is recent trades? In general, would i be able to get away with just modelling the Limit Order Book (LOB) and the evolution of the LOB in order to ...
3
votes
1answer
487 views

Crossing the spread as a ML signal

In the optic of high-frequency trading, most of the standard trading algorithms work on the principle of mid-price prediction or mid-price movement prediction. However a big drawback of this technique ...
2
votes
0answers
339 views

How to identify buy walls and sell walls from a limit orderbook?

I am trying to get notified of buy walls and sell walls from a limit orderbook and I had a couple of ideas and would appreciate some insight into these Take the mean quantity and anything above the ...
5
votes
1answer
384 views

Limit order book cancellations

Is there any practical and academic interest in predicting which orders in a limit order book will be canceled? From a policy point of view are people interested in detecting potential spoofing ...
5
votes
1answer
497 views

Limit and Market Order for training a ML model

Goal : Using deep learning to build a ML model which would predict the right places where a stock price will increase, decrease or stay stable. For the current question, assume the labels are well ...
9
votes
0answers
400 views

Market Maker portfolio management

I am interested in articles/strategies related to portfolio and inventory management for market makers and to management of order cancellation, updates of order, etc. Most of the strategies from ...
2
votes
1answer
150 views

How do orders outside of the market clearing level affect price?

Let's say a trader is trading in a LOB and he places an order deep in the book. How close can he be to the touch until he has temporary or even permanent price impact? This assumes he cancels after T ...