Lecture 1: Introduction to Research — [📝Lecture Notebooks] [
Lecture 2: Introduction to Python — [📝Lecture Notebooks] [
Lecture 3: Introduction to NumPy — [📝Lecture Notebooks] [
Lecture 4: Introduction to pandas — [📝Lecture Notebooks] [
Lecture 5: Plotting Data — [📝Lecture Notebooks] [[
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
argvs = sys.argv | |
from datetime import datetime, timedelta, timezone | |
import json | |
import pytz | |
import pandas as pd | |
import ciso8601 | |
# For FtxClient ---------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Computes option price via Black-76 formula. | |
#' | |
#' Black-76 formula implementation, pricing european options. | |
#' | |
#' @param type 'call' for call option, any other value for put. | |
#' @param future current future price. | |
#' @param strike the strike price. | |
#' @param time time to option expiration in years. | |
#' @param rate the risk-free interest rate. | |
#' @param sigma volatility of the future price. |