Hello, I’m geo

Designs, talks, and writes about web, ethics, privacy, and dev. I share dev tutorials, free resources and inspiration. Loves music & riding his bicycle.

Latest Posts

python网络爬虫实战-playwright 项目实战 wiki

from playwright.sync_api import sync_playwright import time with sync_playwright() as p: # 启动 Firefox browser = p.firefox.launch(headless=True) # headless=True 表示无头模式 p...

金融工程学 quantlib 二叉树定价

import QuantLib as ql # 日期和日历 today = ql.Date().todaysDate() ql.Settings.instance().evaluationDate = today # 欧式期权参数 expiry = today + ql.Period(6, ql.Months) strike = 100 option_typ...

python网络爬虫实战-项目实战 wiki

https://en.wikipedia.org/wiki/Python_(programming_language) import requests respone = requests.get('https://en.wikipedia.org/wiki/Python_(programming_language)') print(respone.tex...

金融工程学 quantlib black scholes model

import QuantLib as ql # 日期和日历 today = ql.Date().todaysDate() ql.Settings.instance().evaluationDate = today # 欧式期权参数 expiry = today + ql.Period(6, ql.Months) strike = 100 option_typ...

python网络爬虫实战-selenium 反爬虫技术

header options = Options() options.add_argument("user-agent=Mozilla/5.0 ... Chrome/120.0 Safari/537.36") 代理IP options.add_argument("--proxy-server=http://你的代理IP:端口") 例如 : # 代理...

金融工程学 quantlib 利率曲线插值

利率曲线核心在于 插值(interpolation)。 QuantLib 支持很多插值方式: 插值类型 类别 特点 Linear 线性 简单、快速、常用 LogLinear 对 discount...

金融工程学 quantlib 利率曲线基础

利率曲线(Yield Curve) 贴现率曲线是一条给定到期时间 T,告诉你当下市场对于未来现金流的折现因子的曲线。 QuantLib 中常用三类利率曲线: FlatForward(平坦利率曲线) ZeroCurve(零息利率曲线) PiecewiseYieldCurve(逐段曲线,真实金融机构使用) FlatForward(平坦利率...