instruction stringlengths 15 26.1k |
|---|
How often do maker orders arrive together with matching taker orders on modern exchanges? |
Consider some Itô process $dS(t)=\mu(t)dt+\sigma(t)dW^{\mathbb P}_{t}$ under the measure $\mathbb P$, where $W^{\mathbb P}$ is a $\mathbb P$-Brownian motion
In plenty of interest rate examples, I have seen that we attempt attempt to find a measure under which $S(t)$ is driftless, i.e. $dS(t)= \sigma(t) dW_{t}^{\math... |
Table below shows messages that were recently collected from the *Full channel* of the websocket feed of the well-known cryptocurrency exchange:
> The full channel provides real-time updates on orders and trades.
These updates can be applied on to a level 3 order book snapshot to maintain an accurate and up-to-date... |
I have found a proof that an American put option without dividend will never be exercised early. However, I suspect that that is not true, so there should be a mistake in the proof. The proof is as follows:
Consider an American put option $P$ without dividend. Let the strike price be $E$ and let $S$ be the underlyin... |
Why does the diffusion term remain the same when we change pricing measure? |
I have found a proof that an American put option without dividend will never be exercised early. However, I suspect that that is not true, so there should be a mistake in the proof. The proof is as follows:
Consider an American put option $P$ without dividend. Let the strike price be $E$ and let $S$ be the underlyin... |
Assume we have some money. At every point in time $0\le t \le T$, we can take either action 1 that is to keep our money until $T$ say in a bank and have an expected return of $f(t)$ or take action 2 that is to buy a lottery ticket, have an expected return of $g(t)$ and the system disappears then!
The problem is that... |
To gamble or not to gamble! (solving a system of ODEs maybe?) |
Let's assume that there are two exchanges. One exchange is slow for various reasons.(for eg it is an open outcry versus electronic exchange) Even when there is no lag the prices will not match exactly but almost. From the data below I can see that exchange2 is around 2 minutes late compaired to exchange1, but how can I... |
Bob made a good point in finding a hole in your proof. But I'll add on some more points here.
If a stock is bankrupt and **S=0**, and the Put Price is **K-S**, both selling the Put in the market as well as exercising represent an instantaneous opportunity. You would much rather sell the Put rather than exercise, bec... |
Consider an Asian call option on some underlying with price process $S$ which follows a geometric Brownian motion, and accumulated price process $Y$, where
$Y_t = \int_{0}^{t}S_u du$. Let $v$ be the function so that the price of the Asian option at time $t$ is $v(t, S_t, Y_t)$.
In Shreve's *Stochastic Calculus fo... |
Why is the argument for the accumulated price process allowed to be negative in asian options? |
I may be completely off, but let me give it a try.
We assume some kind of risk-neutral agent who decides on expected returns, only. As you have specified in the comments, the function $f(t)$ represents the short rate process, i.e. the interest paid in the interval $(t,t+dt)$ is $f(t)dt$. At any point in time $t$, th... |
I may be completely off, but let me give it a try.
We assume some kind of risk-neutral agent who decides on expected returns, only. As you have specified in the comments, the function $f(t)$ represents the short rate process, i.e. the interest paid in the interval $(t,t+dt)$ is $f(t)dt$. At any point in time $t$, th... |
The other answers have given a good *qualitative* description of what the VIX measures. In this answer, I will try to give a comprehensive *quantitative* overview of how the VIX formula works.
# What is the VIX?
The CBOE Volatility Index (VIX) is an index which measures the stock market’s expectation of the futur... |
The other answers have given a good *qualitative* description of what the VIX measures. In this answer, I will try to give a comprehensive *quantitative* overview of how the VIX formula works.
# What is the VIX?
The CBOE Volatility Index (VIX) is an index which measures the stock market’s expectation of the futur... |
Are there closed form expressions for moments (first, second) for stock returns under Heston model? Most sources provide the moments for the variance process in Heston model, but not for the stock returns. Does this mean that first two moments of stock return distribution are not available in closed form for Heston mod... |
Are there closed form expressions for unconditional moments (first, second) for stock returns under Heston model? Most sources provide the moments for the variance process in Heston model, but not for the stock returns. Does this mean that first two moments of stock return distribution are not available in closed form ... |
I'm dealing with the calibration of the forward curve for energy products.
I found an approach proposed by [Benth et al.](https://jod.pm-research.com/content/15/1/52), in which the forward curve is parameterized as $f(t) = s(t) + \epsilon(t)$
where $s$ is the seasonality and $\epsilon$ is a smooth curve used to quan... |
I'm trying to understand the rationale behind using information drive bars over traditional time bars and specifically when it comes to practically feeding those in to a machine learning model to run a regression.
I was wondering, how could one feed alternative bars into a machine learning model?
If we use time ba... |
I'm using the following to compute the price and Greeks a vanilla European option:
maturity_date = ql.Date(15, 1, 2016)
spot_price = 127.62
strike_price = 130
volatility = 0.20
dividend_rate = 0.0163
option_type = ql.Option.Call
risk_free_rate = 0.001
day_count =... |
Easier way than using QuantLib to compute the price and Greeks of a vanilla European option? |
I'm using the following to compute the price and Greeks a vanilla European option:
import QuantLib as ql
maturity_date = ql.Date(15, 1, 2016)
spot_price = 127.62
strike_price = 130
volatility = 0.20
dividend_rate = 0.0163
option_type = ql.Option.Call
risk_free_... |
I'm confused on whether or not an IOC order will stay on the order book for any period of time.
For example, if I place an IOC buy limit order at \$1.00 and the ask price is $1.01, is this order immediately cancelled? If so, do IOC limit orders always have to be at or above the ask when buying, or at or below the bi... |
I'm brand new to QuantLib and have the following class that I'm using to price European options:
import QuantLib as ql
class European_Option:
def __init__(self, underlying_price, strike_price, maturity_date, risk_free_rate, implied_volatility, calculation_date):
self.underlying_p... |
Applicability of AAD(Adjoint automatic differentiation) to an indifferentiable function at some point.
I recently learned about Adjoint automatic differentiation(AAD) while studying Monte Carlo Simulation. Through the papers [1], [2], and [3], I reviewed the definition of AAD and examples of various financial engi... |
My question follows beneath the "lengthy" setting I describe:
Given a tenor discretization $0 = T_{0}< ... < T_{n} =T$,
and under the assumption that under $\mathbb P$, for all $i = 1,...,n-1$ the forward rates $L(T_{i},T_{i+1})$
(note : $L(T_{i},T_{i+1};t)$ denotes the forward rate over the period $[T... |
Finding the distribution of $I(T_{1},T_{n})$ under an appropriate measure if the forwards are lognormal? |
[![enter image description here][1]][1]
How can I show this? It looks relatively easy but am not sure if I am doing it right.
[1]: https://i.stack.imgur.com/9ie10.png |
How to show that the normalized portfolio given by the Markowitz portfolio optimization model is efficient? |
To answer your first question, an alternative approach is the **Gabillion** two-factor model (which was originally proposed for oil futures). At a high-level, Gabillon models the spot price as a single-factor Gaussian process that means reverts to a lognormal long-term rate. See [here][1] for additional details.
... |
Say a client submits an RFQ to buy/sell 100,000 Apple shares. The market maker will respond with their bid/ask prices.
My question is how are these bid/ask prices calculated by the market maker? Is the quoted price as simple as current price of 1 Apple share plus/minus some bid/ask spread %? |
How do market makers calculate bid/ask prices to quote for RFQs, specifically for stocks? |
I'm confused on whether or not an IOC (Immediate Or Cancel) order will stay on the order book for any period of time.
For example, if I place an IOC buy limit order at \$1.00 and the ask price is $1.01, is this order immediately cancelled? If so, do IOC limit orders always have to be at or above the ask when buying,... |
The treasury forward traded for those on-the-run or off-the-run makes sense. You simply trying to hedge the treasury bond already issued by calculating the forward price of the bond.
I was wondering if there is any trade on then-current on-the-run treasury? For example, a forward contract initiated today having unde... |
Is there anyone trading Then-Current Treasury Forward? |
I have data (trading volume) that is tracked on a rolling 24-hour basis approximately 1 minute or so. Here are some sample timestamps that highlight why I say approximately:
[![enter image description here][1]][1]
I am trying to use this data to infer the volume in a given minute. However, I am confused how to di... |
rolling 24-hr time series volume data - how to back out minute level volume? |
**This post is Quant Stack Exchange's master list of data sources.**
Please append your links to other data sources to the list below.
## Economic Data ##
See [What are the most useful sources of economics data?][1] on Cross Validated SE.
**World**
- <https://macrovar.com/macrovar-database/> includes free... |
How to find state prices? |
You seek the price of a hedging portfolio which replicates the payoff of an Arrow-Debreu asset.
## State 1
We seek $w_1,w_2,w_3$ such that
\begin{align}
\begin{pmatrix}
1.05 & 1.8 & 1\\
1.05 & 1 & 1\\
1.05 &1 &1.1
\end{pmatrix}\begin{pmatrix}
w_1\\
w_2\\
w_3
\end{pmatrix}=\begin{pmatrix}
1 \\ 0 \\ 0\... |
How price model approximations can be calculated? |
1. Various central banks publish their fitted ***nominal*** yield curve estimates: [the Fed][1], [BOE][2], [SNB][3], [BOC][4], [ECB][5] (cf: [Bundesbank][6]), [RBA][7], [Russia][8], [RBI][9].
- (I couldn't find for BOJ; Brazil; BOK; or PBOC. Links for these would be extremely welcome!)
2. Bloomberg has its own estim... |
Is Aumann-Serrano risk measure coherent? And why yes or no? |
Is Aumann-Serrano risk measure coherent? |
Is the Aumann-Serrano risk measure (Robert J. Aumann, and Roberto Serrano: *An Economic Index of Riskiness*, JPE, 116 No. 5, October 2008) [coherent][1]? And why yes or no?
[1]: https://en.wikipedia.org/wiki/Coherent_risk_measure |
First, a quick comment on Bloomberg symbols such as `USGG10YR`. These are actually yields on generic bonds, typically these are benchmark, on-the-run issues. So these are *not* zero coupon bond yields.
For fitted, constant maturity zero or par yields, you've already compiled some of the major ones. Here's a slightly... |
Given, a numéraire $(N(t))_{0\leq t \leq T}$ and an index $(X(t))_{0\leq t\leq T}$ that is a $\mathbb Q^{N}$-martingale, we consider the natural payoff $V_{N}(T)$, where it pays
$$V_{N}(T):=X(T)N(T) \; \; \text{in }T,$$
i.e. it pays the index $X(T)$ in units of $N(T)$.
Now let us consider the payoff $V_{M}(T... |
First, a quick comment on Bloomberg symbols such as `USGG10YR`. These are actually yields on "generic bonds"; typically these are benchmark, on-the-run issues. Long story short, these are *not* zero coupon bond yields.
For fitted, constant maturity zero coupon rates or par yields, you've already compiled some of the... |
I asked [here][1] about data on a data source for historical yield curves for many countries. Many central banks (linked there, in Helin's answer) publish estimates for their *nominal* yield curves.
But most do not do so for historical ***real*** yield curves, i.e. the yields on inflation-indexed bonds. The [US][2] ... |
Is the Aumann-Serrano risk measure (Robert J. Aumann, and Roberto Serrano: *An Economic Index of Riskiness*, JPE, Vol. 116 No. 5, October 2008. <[link][1]>) [coherent][2]? And why yes or no?
[1]: https://eml.berkeley.edu/~webfac/ahn/e208_s07/wp2006-20.pdf
[2]: https://en.wikipedia.org/wiki/Coherent_risk_measu... |
I was wondering whether the following handwaving line of thought can also be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\ri... |
I was wondering whether the following handwaving line of thought can also be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\ri... |
I was wondering whether the following handwaving line of thought can also be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\ri... |
I was wondering whether the following handwaving line of thought can be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\right)_... |
I was wondering whether the following handwaving line of thought can be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\right)_... |
I was wondering whether the following handwaving line of thought can be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. An Asian option price is
$$
E_0\left[ \left( \frac1T \int_0^T S_u\, du - K\right)_... |
I don't think you learn something useful by replicating VV. The model BBG uses has not been updated for about 20 years, and the latest white paper is from 2007 ("Variations on the Vanna-Volga Adjustment").
That said, when I tested it today, it is actually quite robust in the EAKO case. I think the reason is that th... |
what is unique about NDS transactions, how can I identify them using certain parameters or attributes specific to NDS?
|
I was wondering whether the following handwaving line of thought can be used to show that the IV of an Asian option is less than the IV of a vanilla option with the same strike and time to maturity:
For simplicity I'll take $r=q=0$. Furthermore I am going to assume (as pointed out in the comment by Kevin) that the a... |
I don't think you learn something useful by replicating VV. The model BBG uses has not been updated for about 20 years, and the latest white paper is from 2007 ("Variations on the Vanna-Volga Adjustment").
That said, when I tested it today, it is actually quite robust in the EAKO case. I think the reason is that th... |
I don't think you learn something useful by replicating VV. The model BBG uses has not been updated for about 20 years, and the latest white paper is from 2007 ("Variations on the Vanna-Volga Adjustment").
That said, when I tested it today, it is actually quite robust in the EAKO case. I think the reason is that th... |
Consider two measures $\mathbb Q^{M}$ and $\mathbb Q^{N}$, as well as the two numéraires $M$ and $N$, furthermore assume that $X\frac{N}{M}$ is a $\mathbb Q^{M}$-martingale. Furthermore, the covariation $X$ and $\frac{M}{N}$ satisfy the following:
$$dX(t)\cdot d\frac{M(t)}{N(t)} = \frac{M(t)}{N(t)}X(t)\gamma(t)dt$$... |
Where does the term $\gamma$ come from when moving from measure $\mathbb Q^{N}$ to $\mathbb Q^{M}$? |
> 1. The statement that all efficient portfolios are perfectly correlated seems wrong, as only holding the risk-free asset is an efficient portfolio. The risk-free asset is not correlated to the market-protfolio at all. So this statement cannot be correct? Is there really in error in the paper? Where is my misunderstan... |
Let's suppose that some trader knows something, that most of other market participants don't know.
That knowledge may be directly related to the stock market e.g. number of open long positions below/above current price or view on whole limit order book. Alternatively that trader may know that there will be an event... |
How do better informed traders apply their advantage over the others? |
I'm trying to understand how the authers of a paper calibrated their model.
We got data on European type options on the
S&P500-index period from early 2005 to mid-2009. We have daily data on option
prices; 182 implied volatilities for each day in our data-set with moneyness from -30%
to +30% (of current underlyin... |
Knowing that implied volatility represents an annualized +/-1 Standard Deviation range of the stock price, why does the price of an ATM straddle differ from this? Also for simplicity, no rates, no dividends, and the returns of the stock are normally distributed.
Under Black-Scholes:
```
Spot = 100
Strike = 100
D... |
Why is the price of an ATM straddle not the same as the "dollar move" from implied volatility? |
A quant interview problem:
We have $2n$ identical size balls containing $n$ colors. For each color there are two balls, one ball is heavy and the other is light. All heavy balls weigh the same. All light balls weigh the same. How many weighings on a beam balance are necessary to identify all of the heavy balls?
I k... |
I am a student in finance and have to work on a project for the semester.
I have to study the difference of resilience during financial crises between the 5 biggest US banks and the 5 biggest Canadian banks.
I know that Canadian banks are praised for their resilience and strong regulations.
That is why I chose... |
How to analyse the resilience of banks during financial crises using linear regression and other statistical methods? |
I am a student in finance and have to work on a project for the semester.
I have to study the difference of resilience during financial crises between the 5 biggest US banks and the 5 biggest Canadian banks.
I know that Canadian banks are praised for their resilience and strong regulations.
That is why I chose... |
I am a student in finance and have to work on a project for the semester.
I have to study the difference of resilience during financial crises between the 5 biggest US banks and the 5 biggest Canadian banks.
I know that Canadian banks are praised for their resilience and strong regulations.
That is why I chose... |
In Mark Joshi's "The concepts and practice of mathematical finance" section 1.2, it is given an intuitive motivation behind "high risk high returns" claim. It goes as follows:
*Given that all assets are correctly priced by the market, how can we distinguish
one from another? Part of the information the market has ... |
The value of a stock is the present value of all future dividends. This is sometimes called the Gordon Growth model. This model assumes that dividends increase at a constant rate. In the real world that may not be right. In addition, there is no way to know what the long term rate of the dividend growth will be.
On... |
The value of a stock is the present value of all future dividends. This is sometimes called the Gordon Growth model. This model assumes that dividends increase at a constant rate. In the real world that may not be right. In addition, there is no way to know what the long term rate of the dividend growth will be.
On... |
Your question borders on opinion-based, but I'll try.
Corporations' earnings and profits are volatile and unpresictable.
Publicly traded corporations' common share prices are even more volatile, friven by a l9t of factors other than expectations of dicidends and boards believe that investors prefer dividend rates... |
Your question borders on opinion-based, but I'll try.
Corporations' earnings and profits are volatile and unpresictable.
Publicly traded corporations' common share prices are even more volatile, friven by a lot of factors other than expectations of dicidends and boards believe that investors prefer dividend rates... |
Your question borders on opinion-based, but I'll try.
Corporations' earnings and profits are volatile and unpresictable.
Publicly traded corporations' common share prices are even more volatile, driven by a lot of factors other than expectations of dividends and boards believe that investors prefer dividend rates... |
I'm solving the following problem:
>Two dealers compete to sell you a new Hummer with a list price of \$45,000. Dealer C offers to sell it for \$40,000 cash. Dealer F offers “0-percent financing:” 48 monthly payments of \$937.50. (48x937.50=45,000) <br> <br> (a) You can finance purchase by withdrawals from a money m... |
I'm solving the following problem:
>Two dealers compete to sell you a new Hummer with a list price of \$45,000. Dealer C offers to sell it for \$40,000 cash. Dealer F offers “0-percent financing:” 48 monthly payments of \$937.50. (48x937.50=45,000) <br> <br> (a) You can finance purchase by withdrawals from a money m... |
This question is from Joshi's quant book.
Assume r = 0, σ = 0.1, T-t = 1, X = 100 = S(t).
Initially, the call is worth $3.99.
The first question asks what the value of the call is after a 98 percentile drop in S(t).
That was simple. Z = -2.05 is our critical value so plugging that into the distribution of S(... |
Lets say I have 100 million dollars. My active risk budget is 5%. I have an active fund that has active risk of 10%. What will be my mix in dollar terms of this active port and passive etf (assume passive ETF has 0 active risk)?
I have 2 answers, 1 says its "Allocation to active fund = Active risk budget / Active ri... |
How do I allocate between passive and active strategy using active risk budget? |
I'm trying to grasp what exactly the effects of higher *ongoing* interest rates are on holding calls/puts. I am **not** asking what the effect of a *change* in interest rates is on call/put prices.
I'm interested chiefly in equity and equity-index options (though I expect the answers are the same for bond futures, r... |
I'm trying to grasp what exactly the effects of higher *ongoing* interest rates are on holding calls/puts. I am **not** asking what the effect of a *change* in interest rates is on call/put prices.
I'm interested chiefly in equity and equity-index options (though I expect the answers are the same for bond futures, r... |
Your question borders on opinion-based, but I'll try.
Corporations' earnings and profits are volatile and unpredictable.
Publicly traded corporations' common share prices are even more volatile, driven by a lot of factors other than expectations of dividends and boards believe that investors prefer dividend rates... |
It is easy to download Bloomberg data in Python or R using their **blpapi** API. The only requirement is that one is logged on the local Bloomberg terminal.
We often find ourselves working on publishing platforms such as Posit Connect or Anaconda Enterprise. Do you know if it possible to download Bloomberg data ther... |
Can you run a local proxy that has access to Bloomberg and access that from Posit or Anaconda.
However, you need to check your contract with Bloomberg: Is what you’re trying to do even allowed? Maybe it’s best to get on the phone with them and figure out what is possible. I don’t think you’ll be the first to ask. |
Given a window, expected return divided by standard deviation is sharpe's ratio.
But I want to form another figure for mdd-adjusted return.
mdd divided by expected return can be suggested but it seems inappropriate.
How can I make such a formula? |
I am currently doing a thesis on a class of SDE parameter inference methods and using the SABR model as an example for inference. I want to extend the application to market data. My question is does it make sense to use a forward curve (e.g 3m LIBOR) as the input to my method and infer the SABR parameters (excluding be... |
Can you use a forward rate curve to infer the SABR model parameters? |
Under Black-Scholes, there exists a solution for the option price for a volatility. The volatility can then be backed out from the option price using numeric methods.
For the constant-elasticity of volatility model (CEV), there isn't a closed form solution for the price as a function of vol; it has to be calculated ... |
Is there anyway to compute the CEV-implied volatility from option prices? |
I'm trying to understand Least-Square Monte Carlo approach for pricing american options. I'm familiar with Tsitsilis van Roy approach where we are going backwards with:
- $V_T = h(S_T)$, where $h$ is a payoff from option if exercise
- for each next step (previous time step on the grid) we have $V_{t_{i-1}}=\max\{{(K-... |
Longstaff-Schwarz LS Monte Carlo - which approach is correct? |
I'm trying to understand Least-Square Monte Carlo approach for pricing american options. I'm familiar with Tsitsilis van Roy approach where we are going backwards with:
- $V_T = h(S_T)$, where $h$ is a payoff from option if exercise
- for each next step (previous time step on the grid) we have $V_{t_{i-1}}=\max\{{(K-... |
I'm trying to understand Least-Square Monte Carlo approach for pricing american options. I'm familiar with Tsitsiklis and van Roy (2001) approach where we are going backwards with:
- $V_T = h(S_T)$, where $h$ is a payoff from option if exercise
- for each next step (previous time step on the grid) we have $V_{t_{i-1}... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.