{"componentChunkName":"component---src-templates-post-template-js","path":"/posts/crypto/options","result":{"data":{"markdownRemark":{"id":"ce651a42-e78e-55c3-b29e-081cfb75f499","html":"<h2 id=\"options\" style=\"position:relative;\"><a href=\"#options\" aria-label=\"options permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Options</h2>\n<p>Why do we need a characteristic function and how does it relate to Options?\nOptions + probability are deeply related. If you know characteristic function of the option, you can compute the option price.</p>\n<p>Benefit of characteristic functions: Allows for more flexibility in pricing risk, volatility. Increases flexibility with regards to pricing.\n“Correlation structure is easier to work with in characteristic function” - Prof Resnick</p>\n<h2 id=\"characteristic-function\" style=\"position:relative;\"><a href=\"#characteristic-function\" aria-label=\"characteristic function permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Characteristic function</h2>\n<p>Motivation: This stuff can be calculated on chain using Fast Fourier Transform if we have a characteristic function\nCharacteristic function: Alternative way to express info about random variable</p>\n<p>Recall cumulative density function (Probability that random variable is less than a given value)\nE[e^(itX)] - corresponds to the fourier transform, which is a good way to model things</p>\n<p>Can express characteristic function as sum of the moments? E[X^n] term ~ price of a power future with power n.\nThe price of a power perpetual implies something? &#x3C;- not sure what it implies</p>\n<p>Sum of two random variables => product of characteristic functions\n^ What’s the use case here?</p>\n<p>Delta is useful for market makers - If we can compute delta easily, we can check things on chain?\n^Spoiler alert, we can using fast fourier transform</p>\n<p>Two sides: uninformed flow + market makers on options(PhD physicist/math/stats)</p>\n<ul>\n<li>If you are little boi and make options flow and sell via black scholes, jump is gonna rek you with diffusive, lattice, monte carlo bullshit.</li>\n<li>When you price something wrong, they can arb you immediately and this is hard to fix since you wrote this in a smart contract</li>\n<li>This makes on chain options difficulty</li>\n</ul>\n<h2 id=\"questions\" style=\"position:relative;\"><a href=\"#questions\" aria-label=\"questions permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Questions?</h2>\n<ul>\n<li>What will be computed on chain and what will be computed offchain?\nWe should implement characteristic function as simpler function on chain using fft(divide and conquer algo- O(nlog(n))</li>\n<li>What is N in O(N log(N))?\nCan be tuned, higher it is better the approximation, similar to resolution.</li>\n<li>What is an FFT?\n<a href=\"https://www.youtube.com/watch?v=spUNpyF58BY\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://www.youtube.com/watch?v=spUNpyF58BY</a>\nThanks matt :D</li>\n<li>What other protocols have power futures?\nSqueeth, Tracer, <a href=\"https://zeta.markets/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">https://zeta.markets/</a>. The later two aren’t really power futures though, they are just multipliers right?</li>\n<li>Are these markets priced by spot? Do they reflect alpha in spot?\nSqueeth is underfunded, so people buy squeeth to hedge volatility future. Selling squeeth gives you positive EV, not enough liquidity in market for other side. No one wants to sell volatility. If there was a liquid options market, then you can hedge squeeth. In theory you can buy options and sell squeeth, and volatility, skewness hedged and set as options market maker.</li>\n</ul>\n<h2 id=\"quanto-derivatives\" style=\"position:relative;\"><a href=\"#quanto-derivatives\" aria-label=\"quanto derivatives permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Quanto Derivatives</h2>\n<p>Derivative that is settled in a different reference currency.</p>\n<ul>\n<li>Anchor protection settled in usdc vs anchor protection settled in ust\nWhy do the premiums cost a different amount.</li>\n</ul>\n<p>Why isn’t there another instrument that could close the gap in premiums between these products?\nYou are paying for more protection</p>\n<p>When the euro collapsed, greece, italy, spain defaulted. Two types of cds, one denominated in euros and one denominated in usd. The usd premiums are much more expensive than the cds premiums denominated in euros because if greece defaulted on their loans, the euro is more likely to collapse as well</p>\n<p>Effect of lower price of euros</p>","fields":{"slug":"/posts/crypto/options","tagSlugs":["/tag/notes/","/tag/de-fi/","/tag/options/"]},"frontmatter":{"date":"2021-12-30T23:46:37.121Z","description":"A quick primer on options","tags":["Notes","DeFi","options"],"title":"Options"}}},"pageContext":{"slug":"/posts/crypto/options"}},"staticQueryHashes":["251939775","401334301","825871152"]}