Skip to content

Instantly share code, notes, and snippets.

View bhalla98's full-sized avatar

Siddharth Bhalla bhalla98

View GitHub Profile
@ih2502mk
ih2502mk / list.md
Last active October 20, 2025 07:13
Quantopian Lectures Saved
@moondancecrypto
moondancecrypto / fetch_BTCMOVE.py
Last active May 1, 2022 06:36
A script to fetch OHLCV data for FTX MOVE daily contracts (e.g. BTC-MOVE-0815)
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 ----------------------------------------
#' 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.