Estimating Market-Making Fill Intensity from Trade and Quote Data
Summary
The document asks how to estimate volatility and trading intensity for a market-making model using order-book and market-order data. Its answer focuses on the intensity parameter: measure the distance between transaction prices and the mid price, denoted as a quote-distance variable, then fit an exponential intensity curve of the form A exp(−kδ). The fitted slope parameter k describes how estimated transaction intensity changes as quote distance increases.
The proposed procedure bins quote distances, estimates transaction counts or intensity at each distance, and minimizes squared differences between those estimates and the exponential curve to obtain A and k. The discussion does not provide a complete data-cleaning or sampling protocol, confidence intervals, or out-of-sample validation. It also does not resolve the question’s separate estimate for volatility, and its cumulative transaction-count description may require careful alignment with the model’s definition of intensity before implementation.
Key ideas
- Estimate market-making intensity as a function of the distance between the transaction price and mid price.
- Fit an exponential curve with scale A and decay parameter k to the empirical intensity observations.
- Construct observations across quote-distance buckets from historical transaction data.
- Use least squares to estimate the curve parameters.
- The response does not explain volatility estimation or validate the fitted model out of sample.
Tags
Full text
# Finding parameters of a function for optimal market making with real data
# Finding parameters of a function for optimal market making with real data
I am reading this paper and trying to apply it with real data to do some simulations.
I will use realtime order book & market order data that I will receive from the exchange. This is a sample of the market order data(You can say execution data or tick data too).
```
side price size execution_date
BUY 100 1.5 2018-08-06T03:24:29.023
```
Using these data, I can't figure out how to find some parameters for the function below.
> γ = Risk parameter, σ = Volatility, T = Terminal time, t = Current time, k = Trading intensity
I do not know how to compute parameter σ & k. I assume that σ would be the standard deviation by the previous few seconds of tick data.
And for k, using the total volume of previous few seconds of market orders and the current limit order book, we can know the temporary market impact. But I am not sure how to fit these information into parameter k.
I hope someone could give some help and advice how to find these parameters.
Thank you.
## Answer by ltrd (score 1)
https://quant.stackexchange.com/a/41550
Parameter $k$ (I assume) is related to the model connected with control theory. You have to find the difference between transaction price and mid price - it can be called $\delta$. Then you have to fit your results to the intensity function: $\Lambda(\delta) = A \exp( - \delta k)$. These are your parameters. Spread does not depend on the parameter A but it is related to nonsymmetrical deltas.
I am going to answer you questions here:
- Close to this. I would say that we would like to find the general pattern for the probability that your quotes will be filled using historical data from finite period of time.
- Probably you can do it with several approaches. You should collect as many deltas as you can. If you have, let's say 10000 deltas, then we can start our estimation.
Let's define $\widehat{\Lambda} (\delta_n)$ as the number of transactions where difference between mid price and transaction price was less that $\delta_n$, where sequence $(\delta_n)_n$ can be define (in R language) as:
```
seq(0.1,5,0.1)
```
Then we have $\widehat{\Lambda} (\delta_n)$ and $\delta_n$ for every $n$ in your bucket. Then you can minimize the function:
$\sum_{n = 1}^{|D|} \left( \widehat{\Lambda} (\delta_n) - A e^{- k \delta_n} \right)^2$
where $|D|$ is the number of items in sequence $(\delta_n)_n$. Obviously we minimize with respect to $A$ and $k$.Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.