all publishers

howard-lynn-ye

@howard-lynn-ye source repo

234 published skills · page 1 of 3

  1. ▌
    Social And Influencer Feeds · howard-lynn-ye
    What social data you can legally and practically get in 2026, and what the part you can get does to a backtest. TRIGGER - Twitter or X API, tweet sentiment, cashtag, StockTwits, Reddit API, PRAW, r/wallstreetbets, Pushshift, scraping social media for a trading signal, "which accounts should I follow", influencer or finfluencer track records, "backtest a sentiment signal", social sentiment score, deleted tweets, "is scraping legal", hiQ v LinkedIn, robots.txt and terms of service for a data pipeline, "the free tier of the X API". Ships NO scraper and no credential path, on purpose. SKIP for congressional trades (congressional-trading-disclosures), for corporate insiders and Form 4 (insider-form-4), for fund holdings and 13F (institutional-13f), for LLM agents that read news (llm-finance-agents), and for the general survivorship and availability gates (research-integrity-guards).
    1 repo stars
  2. ▌
    Corporate Actions Processing · howard-lynn-ye
    TRIGGER - spin-off, spinoff, rights issue, TERP, merger, exchange ratio, reverse split, cash in lieu, ticker change, symbol recycling, special dividend, parent price dropped on ex-date, 分拆, 配股, 并购. Reconcile event cash and share entitlements with position returns. SKIP for ordinary split/dividend price-adjustment detection (market-data-sourcing), stale prices and OHLC validation (data-quality-validation), calendars (trading-calendars-and-sessions), and survivorship-free universes (research-integrity-guards).
    1 repo stars
  3. ▌
    Public Information Collection · howard-lynn-ye
    Collect public news, AAII/Michigan sentiment, CFTC positioning and disclosures with fin_skills.collect. TRIGGER - RSS or Atom ingestion, static-page crawler, persistent watchlist, polling, real information collection, investor survey, COT positioning, congressional trade tracker, SEC Form 4 XML, 13F holdings changes, public influencer posts, 爬虫, 实时采集, 名人交易跟踪. SKIP for interpreting disclosure lag (congressional-trading-disclosures, insider-form-4, institutional-13f), social backtest bias (social-and-influencer-feeds), finding company identifiers (finding-and-searching-data), and price-vendor selection (market-data-sourcing).
    1 repo stars
  4. ▌
    Security Master And Symbology · howard-lynn-ye
    Map ticker, CIK, ISIN, FIGI, SEDOL and CUSIP on (identifier, DATE) rather than on identifier, and detect when the entity behind one changed. TRIGGER - ticker to CIK, ISIN to CUSIP, FIGI, SEDOL, ISIN or CUSIP check digit, identifier validation; a reused ticker, a renamed company, a merger or ticker change breaking a join; security master, symbology, cross-reference table, PERMNO, entity resolution; "the fundamentals attached to the wrong company"; building a universe from company_tickers.json. Load before any join keyed on a symbol - an identifier is not an entity, neither is stable, and the SEC's own name windows both overlap and leave gaps. SKIP for FINDING an identifier you do not have yet (finding-and-searching-data), for split/dividend adjustment and delisted price history (market-data-sourcing), for the point-in-time vintage of the fundamentals (fundamental-and-macro-data), for auditing a finished result (research-integrity-guards), and for A-share code changes (china-ashare-data).
    1 repo stars
  5. ▌
    Trading Calendars And Sessions · howard-lynn-ye
    TRIGGER - trading calendar, market sessions, early close, lunch break, holidays.US, exchange_calendars, pandas_market_calendars, DateOutOfBounds, resample has empty bars, aligning Tokyo to New York, 交易日历, 休市. Pin session bounds, compare venue calendars, and aggregate against explicit sessions. SKIP for vendor choice and price adjustments (market-data-sourcing), stale closes and bad OHLC (data-quality-validation), corporate events (corporate-actions-processing), storage and as-of joins (market-data-engineering), and settlement or lot-size rules (asia-pacific-markets).
    1 repo stars
  6. ▌
    Congressional Trading Disclosures · howard-lynn-ye
    Build a congressional-trading signal on the disclosure date instead of the transaction date, and price what the amount brackets cost you. TRIGGER - congressional trading, congress stock trades, STOCK Act, Periodic Transaction Report, PTR, House Clerk financial disclosure, disclosures-clerk.house.gov, efdsearch.senate.gov, Senate eFD, senator trade trackers, "copy the trades Congress makes", "backtest congressional trades", "what did Congress buy", amount ranges, "$1,001 - $15,000", "how do I weight a trade disclosed as a bracket", the 45-day filing deadline, late PTR filings, scraping the House or Senate disclosure sites. SKIP for corporate insiders and Form 4 transaction codes (insider-form-4), for fund holdings and 13F staleness (institutional-13f), for social posts and influencer panels (social-and-influencer-feeds), for EDGAR endpoints and XBRL point-in-time fundamentals (fundamental-and-macro-data), and for the general availability rule and the five-gate audit (research-integrity-guards).
    1 repo stars
  7. ▌
    Insider Form 4 · howard-lynn-ye
    Filter Form 4 to open-market purchases by transaction code, then key the signal to the first session that can trade the acceptance timestamp. TRIGGER - Form 4, Forms 3/4/5, Section 16, insider buying, insider selling, corporate insider trades, "officer bought shares", transaction codes P S A M F G X C, code P vs code A, 10b5-1 plan, EDGAR ownership XML, ownershipDocument, transactionCode, two business days, "insider trading signal", "should I follow insider buys", openinsider-style screens, "why does my insider backtest look amazing", stripping option exercises and tax withholding out of insider data. SKIP for congressional trades and the STOCK Act (congressional-trading-disclosures), for fund holdings and 13F staleness (institutional-13f), for social posts and influencer panels (social-and-influencer-feeds), for EDGAR endpoints, edgartools and XBRL fundamentals (fundamental-and-macro-data), and for the general availability rule (research-integrity-guards).
    1 repo stars
  8. ▌
    Pre Trade Checks · howard-lynn-ye
    Check a proposed order before a human sends it - this skill checks orders and never sends one. Fat finger, participation, session and auction windows, duplicate and replay, exposure limits, and a kill switch that fails everything closed. TRIGGER - pre-trade risk checks, fat finger, sanity-check an order before sending, "did I type an extra zero", notional cap, max order size, size against ADV, participation cap, price through the market, limit far from the last trade, duplicate client order id, idempotency, retry loop resending orders, kill switch, is the venue open, opening or closing auction, half day early close, gross net per-name or sector exposure limit, reconciling a position with the broker, SEC Rule 15c3-5, erroneous order controls. SKIP for connecting to a broker and proving the session is paper (broker-execution-apis), for measuring fills you already have (execution-cost-analysis), for the schedule that works an order (execution-algorithms), and for A-share price limits (china-trading-stack).
    1 repo stars
  9. ▌
    Hong Kong Markets · howard-lynn-ye
    TRIGGER - HKEX, 港股, 每手 board lot, 碎股 odd lot, Stock Connect, 滬港通, 深港通, northbound quota, southbound quota, VCM, CAS, A/H premium, ADR ratio, typhoon trading. SKIP for Japan (japan-markets), India (india-markets), Korea or Taiwan (korea-taiwan-markets), ASEAN (asean-markets), regional selection (asia-pacific-markets), and the mainland leg (china-trading-stack).
    1 repo stars
  10. ▌
    Institutional 13f · howard-lynn-ye
    Clone or study 13F holdings without the quarter-end look-ahead, and report the full age distribution of the positions instead of the 45-day deadline. TRIGGER - 13F, Form 13F, 13F-HR, institutional holdings, "what does Berkshire own", hedge fund holdings, whale watching, cloning a manager's portfolio, guru portfolios, 13F information table XML, infoTable, $100 million threshold, 45 days after quarter end, confidential treatment request, "positions omitted from the 13F", "backtest a 13F clone", quarterly holdings turnover, WhaleWisdom-style data, reconstructing a fund's book from filings. SKIP for corporate insiders and Form 4 codes (insider-form-4), for congressional trades and the STOCK Act (congressional-trading-disclosures), for social posts and influencer panels (social-and-influencer-feeds), for EDGAR endpoints and XBRL fundamentals (fundamental-and-macro-data), and for the general availability rule (research-integrity-guards).
    1 repo stars
  11. ▌
    Signal Reconciler · howard-lynn-ye
    [fin-china] Inspect a heuristic conflict resolver for supplied policy, flow, valuation, news, and sentiment scores. Check market scope, evidence dates, and rule assumptions before using its proposed portfolio tilt.
    1 repo stars
  12. ▌
    Crypto Token Events · howard-lynn-ye
    TRIGGER - token swap, redenomination, migration, same ticker changed units, hard fork, airdropped fork coin, rebase, elastic supply, balance changed but price did not, wrapped or bridged token, delisted pair, reconstruct a historical top-N crypto universe, survivorship bias, a -90% day caused by a token conversion. SKIP for funding and liquidation (perpetuals-and-funding), AMM pools and LP losses (defi-and-amm-mechanics), 24/7 calendars, outages and stablecoin depegs (crypto-market-structure), and exchange clients and OHLCV fetching (crypto-data-and-execution).
    1 repo stars
  13. ▌
    Stock Jev Meta Gate · howard-lynn-ye
    Build financial JEV questions and validate returned answers against the original questions. TRIGGER - stock_jev_gate, financial JEV question templates, regime choice, noul disqualification, ordinal rating, malformed decision probabilities or timestamp cutoff. SKIP for fitting a predictive model (time-series-forecasting-models), portfolio optimization (portfolio-and-risk), or multi-agent orchestration (finance-agent-architectures).
    1 repo stars
  14. ▌
    Backtest Overfitting · howard-lynn-ye
    Decide whether an edge that passed every mechanical check is still just the best of N tries. TRIGGER - PBO, probability of backtest overfitting, CSCV, combinatorially symmetric cross validation, logit of the out-of-sample rank; minimum backtest length, MinBTL, "how much history do I need", "how many parameter sets can I try on N years of data"; a grid search, Optuna or AutoML picked a winner and it decayed; "in-sample Sharpe 2, live Sharpe 0", "the best parameter set stopped working", "is this peak on my parameter surface real"; pypbo, RiskLabAI CSCV. SKIP for the deflated and probabilistic Sharpe ratios, the trial ledger and SPA/StepM/MCS against a benchmark (backtest-validation); for family-wise error and false-discovery control over a whole research programme (multiple-testing-ledger); for the purged and combinatorial CV splitters themselves (lib-purgedcv); for the mechanical leakage gates that come first (research-integrity-guards); and for regime coverage of the test window (regime-detection).
    1 repo stars
  15. ▌
    Korea Taiwan Markets · howard-lynn-ye
    TRIGGER - KRX, KOSPI, KOSDAQ, 韓國 공매도, Korean short-selling ban, TWSE, TPEX, 台股, 漲跌停, limit-up queue, Korea foreign registration, Taiwan ticks, pykrx, FinanceDataReader, FinMind, shioaji. SKIP for Japan (japan-markets), Hong Kong (hong-kong-markets), India (india-markets), ASEAN (asean-markets), regional selection (asia-pacific-markets), and mainland China (china-trading-stack).
    1 repo stars
  16. ▌
    Choosing A Data Vendor · howard-lynn-ye
    Decide whether a data source may legally and factually serve a research question, before any fetch code is written. TRIGGER - need delisted, survivorship-free or point-in-time data and are choosing where to get it; may I store, cache, redistribute or publish what I fetched; is the free tier enough and what does a key cost; comparing vendor terms, licences, rate limits or paid tiers; "there are no delisted names on the free tier"; picking between yfinance, Tiingo, Alpha Vantage, stooq, EODHD, Norgate, CRSP or Polygon. Automated by `python -m fin_skills.data advise`. SKIP once the source is chosen and the question is how to CALL it - adjustment, timezone, calendar and off-by-one traps (market-data-sourcing); storing, partitioning or as-of joining data you already hold (market-data-engineering); EDGAR, XBRL and macro vintages (fundamental-and-macro-data); A-share sources and 退市 lists (china-ashare-data); exchange OHLCV and venue limits (crypto-data-and-execution).
    1 repo stars
  17. ▌
    Combining Data Sources · howard-lynn-ye
    Combine information of DIFFERENT kinds into one research view whose every number can be traced back to what was knowable when. TRIGGER - joining prices to fundamentals, earnings or a macro series; building a signal from a filing plus a price; merging two vendors into one series; "which vendor do I trust"; combine_first / fillna / bfill across sources; assembling a company dossier, profile or research view from several places; a field that must carry its provenance; "when did this number become knowable"; period_end vs filed vs available; a ticker that changed company mid-sample; filling a ResultCard's data block. SKIP for the mechanics of ONE as-of join (safe_asof, in market-data-engineering); for reconciling two price series from two vendors (reconcile_sources, in market-data-sourcing); for auditing a finished backtest (research-integrity-guards); and for resolving a ticker to a permanent id (security-master-and-symbology).
    1 repo stars
  18. ▌
    Defi And Amm Mechanics · howard-lynn-ye
    TRIGGER - AMM, constant-product pool, x*y=k, Uniswap v2 or v3, concentrated liquidity, LP position, impermanent loss, divergence loss, fee income versus IL, pool price impact, out-of-range liquidity, DEX quote versus fill, sandwich, MEV or gas. SKIP for funding, mark price and liquidation (perpetuals-and-funding), rebases and token swaps (crypto-token-events), calendars, venue outages and stablecoin depegs (crypto-market-structure), centralised exchange clients (crypto-data-and-execution), and quoting on an order book (market-making-models).
    1 repo stars
  19. ▌
    Perpetuals And Funding · howard-lynn-ye
    TRIGGER - perpetual swap, perp funding, funding interval, funding history, mark versus index versus last price, liquidation threshold, maintenance margin, inverse contract, cash-and-carry, basis to dated futures, open interest versus volume, why a perp backtest disagrees with cash P&L. SKIP for token swaps and delistings (crypto-token-events), AMM impact and LP fees (defi-and-amm-mechanics), calendars, outages and stablecoin depegs (crypto-market-structure), exchange clients and data fetching (crypto-data-and-execution), and rolling dated contracts (futures-continuous-contracts).
    1 repo stars
  20. ▌
    Crypto Market Structure · howard-lynn-ye
    TRIGGER - crypto annualisation, 365 versus 252, weekend returns, 24/7 market, calendar-day rolling windows, exchange daily close timezone, cross-venue price dispersion, no consolidated tape, venue outage, auto-deleveraging, ADL, socialised losses, stablecoin depeg or quote-currency conversion. SKIP for token events and delisting universes (crypto-token-events), perpetual funding and mark-price liquidation (perpetuals-and-funding), AMM pools and LP fees (defi-and-amm-mechanics), and choosing exchange clients or fetching data (crypto-data-and-execution).
    1 repo stars
  21. ▌
    Data Quality Validation · howard-lynn-ye
    TRIGGER - stale closes, zero volume, missing trading sessions, duplicate timestamps, negative prices, invalid OHLC, outlier returns, validate downloaded bars, 数据质量, 缺失行情. Validate a daily OHLCV panel and report defects without filling, clipping or deleting data. SKIP for selecting a vendor or detecting price-adjustment convention (market-data-sourcing), session schedules (trading-calendars-and-sessions), corporate event accounting (corporate-actions-processing), and storage/as-of joins (market-data-engineering).
    1 repo stars
  22. ▌
    Multiple Testing Ledger · howard-lynn-ye
    Apply family-wise error and false-discovery control to a whole research programme, using the trial ledger's own registered count as m. TRIGGER - Bonferroni, Holm, Benjamini-Hochberg, Benjamini-Yekutieli, BHY, FDR, FWER, "adjust my p-values", statsmodels multipletests, "which of my factors survive the correction"; haircut Sharpe ratio, Harvey-Liu-Zhu, "t-stat of 3", factor zoo, "is a t of 2.1 enough"; "I screened 500 signals and 30 came back significant", "which correction should I use", "my strategies are all correlated so Bonferroni is too strict". SKIP for the deflated and probabilistic Sharpe ratios and the ledger file format itself (backtest-validation); for PBO, CSCV and the minimum backtest length (backtest-overfitting); for SPA / StepM / MCS, which correct for the search using the bootstrap instead of p-values (backtest-validation); and for the leakage and cost gates that must pass before a p-value means anything (research-integrity-guards).
    1 repo stars
  23. ▌
    Kol Credibility Registry · howard-lynn-ye
    [fin-china] Score and calibrate financial KOL credibility across Xueqiu and StockTwits using Bayesian win-rate updating, Brier scores, and contrarian inversion.
    1 repo stars
  24. ▌
    Finding And Searching Data · howard-lynn-ye
    Find the identifier before you fetch it, and know which free sources can actually search. TRIGGER - "what is the FRED series id for X", "which ticker is this company", "find the CIK for", searching for a series, ticker, symbol, contract, crypto pair or filing by name or phrase; fred/series/search, company_tickers.json, EDGAR full-text search, efts.sec.gov; a guessed identifier returning an empty frame; retrieving filings by form and date range; when a document became PUBLIC versus when it was filed; earnings-call transcript timestamps. Load BEFORE guessing an identifier - three of the four free searches are current snapshots and cannot answer as of a past date. SKIP for resolving or dating an identifier you already hold (security-master-and-symbology), for choosing a price vendor (market-data-sourcing), for the point-in-time join once the data is yours (fundamental-and-macro-data), for auditing a finished result (research-integrity-guards), and for crypto venue mechanics (crypto-data-and-execution).
    1 repo stars
  25. ▌
    Lob Liquidity Shock Shield · howard-lynn-ye
    Calculate a daily cross-sectional liquidity instability proxy from observed volatility, returns, volume, Amihud illiquidity and margin data. TRIGGER - compute_lob_liquidity_shock_shield, audit_lob_liquidity_causality, check_lob_liquidity_gate, rolling liquidity dispersion, liquidity proxy warmup or temporal invariance. SKIP for passive order fill probabilities (limit-order-book-models), measured execution costs (execution-cost-analysis), or parent-order scheduling (execution-algorithms).
    1 repo stars
  26. ▌
    Asean Markets · howard-lynn-ye
    TRIGGER - ASEAN, SGX, Singapore, Bursa Malaysia, SET Thailand, Thai foreign board or NVDR, IDX Indonesia, PSE Philippines, HOSE HNX UPCoM Vietnam, foreign ownership room, Southeast Asian sessions and settlement. SKIP for Japan (japan-markets), Hong Kong (hong-kong-markets), India (india-markets), Korea or Taiwan (korea-taiwan-markets), mainland China (china-trading-stack), and regional stack selection (asia-pacific-markets).
    1 repo stars
  27. ▌
    India Markets · howard-lynn-ye
    TRIGGER - NSE, BSE, Nifty, Sensex, upper circuit, lower circuit, price bands, Indian STT, index derivatives contract size, T+1 rollout, T+0, Muhurat, bhavcopy, kiteconnect, Zerodha. SKIP for Japan (japan-markets), Hong Kong (hong-kong-markets), Korea or Taiwan (korea-taiwan-markets), ASEAN (asean-markets), regional selection (asia-pacific-markets), and mainland China (china-trading-stack).
    1 repo stars
  28. ▌
    Japan Markets · howard-lynn-ye
    TRIGGER - Japanese equities, TSE, JPX, 東証, 前場, 後場, lunch-break bars, TOPIX500 ticks, Nikkei divisor, 空売り規制, J-Quants, e-Stat, yen quotes. SKIP for Hong Kong (hong-kong-markets), India (india-markets), Korea or Taiwan (korea-taiwan-markets), ASEAN (asean-markets), regional selection (asia-pacific-markets), and mainland China (china-trading-stack).
    1 repo stars
  29. ▌
    Trend Following Models 2 · howard-lynn-ye bundle
    Build a trend-following or time-series-momentum strategy the way the paper defines it, and measure the two look-aheads that flatter its backtest. TRIGGER - time series momentum, TSMOM, Moskowitz Ooi Pedersen, 12-month momentum, trend following, managed futures, CTA replication; Donchian channel, turtle rules, breakout system, 20-day high, moving average crossover, golden cross, 50/200 MA; volatility targeting, vol scaling, ex-ante volatility, 40% vol target, risk parity across futures, inverse-vol sizing, ATR sizing; "my trend backtest has a Sharpe of 3", "should I skip the most recent month", "do I trade the close or the next open". SKIP for computing the indicator itself and whether it repaints (signal-construction), for cross-sectional ranking of many names (factor-and-timeseries-research), for combining several alphas into one (alpha-combination-and-neutralization), for how much to bet given an edge (position-sizing-kelly), and for the engine that runs the loop (backtesting-engines).
    1 repo stars
  30. ▌
    Monte Carlo Methods 2 · howard-lynn-ye bundle
    Make a Monte Carlo converge to the RIGHT number - variance reduction with measured factors, Longstaff-Schwartz for American options, scrambled-Sobol QMC, and the discretisation bias a standard error cannot see. TRIGGER - variance reduction, antithetic variates, control variate, stratified sampling, importance sampling, "how many paths do I need", standard error of a Monte Carlo price; Longstaff-Schwartz, LSM, least-squares Monte Carlo, American option by simulation, regression on in-the-money paths, continuation value; quasi-Monte Carlo, QMC, Sobol, scipy.stats.qmc, scrambling, low discrepancy, "power of 2" warning; discretely monitored barrier, continuity correction, "my error bar is tiny but the price is wrong", "more paths did not help". SKIP for the model itself - Heston, SABR, trees, Euler bias on a GBM (option-pricing-models), for VaR and expected shortfall from simulated portfolios (risk-measures-var-cvar), and for the dependence structure you simulate from (copulas-and-dependence).
    1 repo stars
  31. ▌
    Factor And Timeseries Research 2 · howard-lynn-ye bundle
    Judge whether a cross-sectional factor predicts returns, and forecast financial series. TRIGGER - information coefficient, IC, quantile returns, factor decay, turnover, alphalens; Fama-French, Fama-MacBeth, PanelOLS, linearmodels, cross-sectional asset pricing; event study, abnormal returns, CAR, BHAR; Alpha101, Alpha158, symbolic alpha mining, gplearn; or forecasting with ARIMA, GARCH, volatility models, arch, Nixtla, statsforecast, mlforecast, sktime, darts, Prophet or a time-series foundation model. SKIP for computing the indicator itself (signal-construction) and for portfolio weights or Sharpe (portfolio-and-risk).
    1 repo stars
  32. ▌
    Gdp Nowcasting Dynamic Factor 2 · howard-lynn-ye bundle
    Nowcast the quarter you are in from monthly data with a ragged edge, using statsmodels' DynamicFactorMQ - and score it against the benchmarks it has to beat. TRIGGER - nowcast, nowcasting, GDPNow, Atlanta Fed GDP tracker, New York Fed Staff Nowcast, DynamicFactorMQ, endog_quarterly, k_endog_monthly, fit_em, dynamic factor model, mixed frequency, monthly and quarterly in one model, ragged edge, jagged edge, unbalanced panel, Mariano-Murasawa, Banbura Modugno, bridge equation, MIDAS, "how do I combine monthly indicators into a GDP forecast", news decomposition of a data release. SKIP for the Kalman filter and smoother themselves (state-space-and-kalman), for univariate forecasting and its baselines (time-series-forecasting-models), for release timestamps (macro-release-calendar-and-embargo), and for vintages of the inputs (real-time-macro-backtesting).
    1 repo stars
  33. ▌
    Corporate Bond Data And Trace 2 · howard-lynn-ye bundle
    Use FINRA TRACE corporate bond data without inheriting the two things it does not tell you - the 15-minute reporting window and the size caps that censor volume. TRIGGER - TRACE, FINRA trade reporting, corporate bond tape, bond transaction data, "how fast are bond trades reported", one-minute TRACE reporting, Rule 6730, 15-minute reporting, dissemination cap, "5MM+", "1MM+", capped trade size, bond volume, TRACE academic or historic files, bond turnover, Amihud illiquidity on bonds, bond VWAP, "why is my bond volume so low", corporate bond liquidity screen, WRDS bond data, PyBondLab. SKIP for turning a bond price into a spread (credit-spread-measures), for CDS quotes and upfronts (cds-mechanics-and-upfront), for the rating that put the bond in an index (ratings-transitions-and-migration), for equity tick data and TAQ (intraday-microstructure), and for choosing a market data vendor or API in general (market-data-sourcing).
    1 repo stars
  34. ▌
    After Tax Backtesting 2 · howard-lynn-ye bundle
    Attach lot matching, wash sales and section 1256 to an existing backtest and report after-tax Sharpe beside pre-tax - and refuse to report one that does not state its rate, jurisdiction and lot method. TRIGGER - after-tax return, after tax Sharpe, tax drag, tax-aware backtest, tax alpha, tax-managed strategy, turnover penalty, "what does this strategy return after tax", tax cost of rebalancing, taxable account backtest, tax-efficient turnover, pre-tax vs post-tax performance, capital gains netting, loss carryforward, "should I hold this in an IRA". Modelling assumptions for backtests, not tax advice. SKIP for the lot rules themselves (tax-lot-matching-and-cost-basis), for the wash-sale mechanics (wash-sale-rules), for futures and index options (section-1256-and-derivatives-tax), for A-share taxes (china-ashare-trading-taxes), and for transaction costs, which are a different drag entirely (execution-cost-analysis).
    1 repo stars
  35. ▌
    Sofr And Rfr Compounding 2 · howard-lynn-ye bundle
    Compute a compounded-in-arrears overnight rate correctly - SOFR, SONIA, ESTR, TONA, SARON - including the lookback, lockout and observation-shift conventions. TRIGGER - SOFR compounded in arrears, SOFR Index, SOFR Averages, 30-day 90-day 180-day SOFR average, compounded RFR, daily compounding of an overnight rate, lookback, rate shift, observation shift, lockout, payment delay, "my SOFR coupon is a few basis points off", "compounded vs simple average SOFR", ACT/360 vs ACT/365 on SONIA, SONIA Compounded Index, ESTR, TONA, SARON, OvernightIndexedCoupon, RateAveraging.Compound, applyObservationShift, SOFRINDEX, SOFR30DAYAVG. SKIP for what a LIBOR contract falls back TO and the statutory spreads (libor-transition-and-fallbacks), for building an OIS discount curve (ois-discounting-and-multi-curve), for a floater's duration (duration-convexity-and-dv01), and for bond accrued interest and day counts (bond-conventions-and-accrued).
    1 repo stars
  36. ▌
    Copulas And Dependence 2 · howard-lynn-ye bundle
    Separate the marginals from the dependence - Gaussian, Student t, Clayton and Gumbel copulas, Kendall's tau, tail dependence coefficients, and what fitting the wrong family costs in the joint tail. TRIGGER - copula, Gaussian copula, t copula, Student t copula, Clayton copula, Gumbel copula, Archimedean copula, Sklar's theorem; tail dependence, lower tail dependence, upper tail dependence, lambda_U, "correlation is not dependence", "correlations go to one in a crisis", joint tail probability, joint exceedance; Kendall's tau, Spearman rho, rank correlation, pseudo-observations, inversion of Kendall's tau, copula MLE, copulas python, copulae, statsmodels copula; diversification benefit, "my VaR says the portfolio is safe". SKIP for estimating a covariance matrix and shrinkage (covariance-and-risk-models), for VaR/CVaR methods and their backtests (risk-measures-var-cvar), and for GARCH marginals (volatility-models).
    1 repo stars
  37. ▌
    Time Series Forecasting Models 2 · howard-lynn-ye bundle
    Score a forecast against the baseline it has to beat - naive, seasonal-naive, drift, mean - with MASE, rolling-origin evaluation and a Diebold-Mariano test, instead of an R^2 on a price level. TRIGGER - forecasting, ARIMA, SARIMA, SARIMAX, auto_arima, ETS, Holt-Winters, exponential smoothing, statsmodels ARIMA trend, walk-forward, rolling origin, expanding window; naive forecast, seasonal naive, drift method, MASE, sMAPE, MAPE, OWA, Diebold-Mariano, DM test; LSTM stock price prediction, N-BEATS, TFT, "my model predicts prices with 99% R^2", "is my forecast better than the naive one", M4 competition, M5 competition. SKIP for volatility forecasting and HAR-RV (volatility-models), for choosing a forecasting library (factor-and-timeseries-research), for cointegration and unit roots (stat-arb-cointegration), for correcting across many models (backtest-validation), and for turning a forecast into positions (signal-construction).
    1 repo stars
  38. ▌
    Limit Order Book Models 2 · howard-lynn-ye bundle
    Model the order book as a queueing system - Cont-Stoikov-Talreja birth-death queues, the probability the mid moves up before down given the two queue sizes, and the fill probability and adverse selection of a passive order at a given queue position. TRIGGER - Cont Stoikov Talreja, stochastic model for order book dynamics, birth-death queue model, limit order book model, probability of an up move given queue sizes, queue imbalance, order book imbalance; queue position, "will my limit order get filled", passive fill model, queue-position backtest, hftbacktest queue model, "the level traded 3x my size so I was filled", order arrival rate lambda mu theta. SKIP for measuring spreads, Kyle lambda, Amihud or OFI on your own tape and for reconstructing a book from MBO data (intraday-microstructure), for how wide to quote and inventory risk (market-making-models), for working a parent order by taking liquidity (execution-algorithms), and for what fills cost after the fact (execution-cost-analysis).
    1 repo stars
  39. ▌
    Futures Continuous Contracts 2 · howard-lynn-ye bundle
    Build and use a futures price series correctly — a continuous contract does not exist in the market, it is stitched, and the stitching method changes your answer. TRIGGER - futures, continuous contract, back-adjusted, Panama adjustment, ratio adjustment, roll, roll yield, contango, backwardation, front month, expiry, first notice day, open interest roll, CME, Globex, ES, CL, NG, VX, GC, ZN; joining futures bars to an equity calendar; "my futures backtest returns look wrong"; negative prices in a price series; norgatedata, databento continuous symbols, yfinance CL=F or ES=F. SKIP for Chinese futures and 夜盘 (china-trading-stack) and for crypto perpetuals, which have funding rather than rolls, and for dated crypto futures and basis trades (crypto-data-and-execution).
    1 repo stars
  40. ▌
    Ratings Transitions And Migration 2 · howard-lynn-ye bundle
    Estimate and use a credit rating transition matrix without producing negative probabilities or a five-year default rate that is five times the wrong number. TRIGGER - rating transition matrix, migration matrix, credit migration, cohort estimator, duration estimator, Aalen-Johansen, Nelson-Aalen generator, matrix power P^5, matrix root, square root of a transition matrix, six-month transition matrix, scipy.linalg.logm, expm, embedding problem, generator of a Markov chain, "negative probability in my transition matrix", "logm gave me a negative off-diagonal", structural zero, AAA never defaults, withdrawn rating, NR, rating withdrawal, notching, cumulative default rate, "5 times the one-year PD", transitionMatrix, pyratings. SKIP for pricing a default probability or a hazard rate (credit-risk-models), for CDS quotes and upfronts (cds-mechanics-and-upfront), for bond spreads (credit-spread-measures), and for regulatory PD floors and Basel calibration (banking-regulatory).
    1 repo stars
  41. ▌
    Duration Convexity And Dv01 2 · howard-lynn-ye bundle
    Get the right duration number and the right DV01, for a bond, a floater or a hedge ratio. TRIGGER - Macaulay vs modified duration, effective duration, spread duration, key rate duration, DV01, PV01, BPV, dollar duration, basis point value, convexity, "my hedge ratio is off by a few percent", "duration says the price should be X but it is Y", duration times spread, floating rate note duration, FRN duration, "why is my floater duration almost zero", BondFunctions.duration, Duration.Macaulay vs Duration.Modified vs Duration.Simple, basisPointValue sign. SKIP for turning a price into a yield in the first place (yield-measures-and-bill-quotes), for accrued interest and day counts (bond-conventions-and-accrued), for the swap annuity and PV01 under OIS discounting (ois-discounting-and-multi-curve), and for portfolio VaR and risk aggregation (../../../fin-core/skills/portfolio-and-risk).
    1 repo stars
  42. ▌
    Macro Release Calendar And Embargo 2 · howard-lynn-ye bundle
    Build the timestamp at which a macro number becomes tradeable - release date, clock time, timezone - and know where the release mechanics changed under your sample. TRIGGER - release calendar, economic calendar, release date vs reference date, available_at, as-of join on a macro series, "when was this number published", 8:30 ET, embargo, press lock-up, media lockup, pre-release access, WASDE noon, EIA Wednesday 10:30, natural gas storage Thursday, holiday release schedule, "why is my macro feature one day early", forward-fill a monthly series onto daily bars, DST offset on a release timestamp, event-study window around a print. SKIP for vintages and revisions to the value itself (real-time-macro-backtesting), for where the series live (fundamental-and-macro-data), for exchange sessions and holidays (us-market-rules), and for measuring fills you already have (execution-cost-analysis).
    1 repo stars
  43. ▌
    Bond Conventions And Accrued 2 · howard-lynn-ye bundle
    Compute accrued interest, clean and dirty prices and day-count year fractions on a bond without silently picking the wrong convention. TRIGGER - accrued interest, day count, daycount, ACT/ACT ICMA vs ISMA vs ISDA, ACT/365F, ACT/360, 30/360, 30E/360, 30E/360 ISDA, Thirty360 BondBasis vs USA vs European vs NASD, year fraction, yearFraction, ActualActual(ISMA), "my accrued interest is off by a few hundred dollars", "which 30/360 is this", clean price vs dirty price vs invoice price, settlement amount, T+1 settlement, quasi-coupon date, first and last stub period. SKIP for negative accrued inside a gilt ex-dividend window (ex-dividend-and-rebate-interest), for turning a price into a yield (yield-measures-and-bill-quotes), for duration and DV01 (duration-convexity-and-dv01), for discount-curve conventions and compounding (../../../fin-models/skills/term-structure-models), and for QuantLib's evaluationDate global (../../../fin-libraries/skills/lib-quantlib).
    1 repo stars
  44. ▌
    China Ashare Trading Taxes 2 · howard-lynn-ye bundle
    A-share stamp duty is charged to the seller only and halved on 2023-08-28, and dividend tax is a step function of holding period - a turnover penalty written into the tax code that a flat symmetric cost model cannot express. TRIGGER - A股印花税, 证券交易印花税, stamp duty, stamp tax, seller side only, 单边征收, 印花税减半, 0.05%, 2023-08-28, A股股息红利税, 股息红利差别化, dividend tax by holding period, 持股期限, 一个月, 一年, 财税〔2015〕101号, dividend capture China, A-share transaction cost model, "what does an A-share round trip actually cost", backtesting Chinese equities net of tax. Modelling assumptions for backtests, not tax advice, and for an individual resident investor only. SKIP for US wash sales and lot matching (wash-sale-rules, tax-lot-matching-and-cost-basis), for reporting an after-tax Sharpe (after-tax-backtesting), and for A-share data, T+1 and price limits (china-trading-stack).
    1 repo stars
  45. ▌
    Libor Transition And Fallbacks 2 · howard-lynn-ye bundle
    Work out what a US dollar LIBOR contract actually falls back to under the LIBOR Act, and why the spread everyone quotes is the easy half. TRIGGER - LIBOR fallback, LIBOR transition, Regulation ZZ, 12 CFR 253, LIBOR Act, Board-selected benchmark replacement, tenor spread adjustment, 26.161 bp, 0.26161, 11.448 bp, 71.513 bp, ISDA 2020 IBOR Fallbacks Protocol, Fallback Rate (SOFR), CME Term SOFR, 30-day Average SOFR, 90-day Average SOFR, FFELP ABS fallback, FHFA-regulated-entity contract, consumer loan LIBOR fallback, "what does 3-month LIBOR become", "SOFR plus 26 bp", legacy LIBOR swap repapering, synthetic LIBOR. SKIP for computing a compounded SOFR coupon and its lookback conventions (sofr-and-rfr-compounding), for building an OIS curve (ois-discounting-and-multi-curve), and for US settlement and calendar rules (../../../fin-core/skills/us-market-rules).
    1 repo stars
  46. ▌
    Yield Measures And Bill Quotes 2 · howard-lynn-ye bundle
    Turn a bond or bill price into the right yield, and stop treating a discount rate as one. TRIGGER - yield to maturity, YTM, current yield, yield to call, yield to worst, YTW, running yield, redemption yield; Treasury bill discount rate vs bond-equivalent yield, BEY, coupon-equivalent yield, investment rate, "why is the 4-week bill rate different from the yield", DTB3 vs DGS3MO, 360 vs 365 on a bill, money-market yield, add-on rate, CD equivalent; "my yield does not match Bloomberg", BondFunctions.bondYield, brentq on a bond price, callable bond yield. SKIP for accrued interest and day-count choice (bond-conventions-and-accrued), for negative accrued in a gilt ex-dividend window (ex-dividend-and-rebate-interest), for duration DV01 and convexity (duration-convexity-and-dv01), for zero rates and bootstrapping (../../../fin-models/skills/term-structure-models), and for compounded RFR averages (sofr-and-rfr-compounding).
    1 repo stars
  47. ▌
    Macro Regime And Recession Indicators 2 · howard-lynn-ye bundle
    Recession probabilities, the Sahm rule and yield-curve inversion - and the fact that the NBER label they are all scored against was assigned years after the fact. TRIGGER - USREC, NBER recession dates, recession indicator, recession probability, recession dummy, "recession-aware" strategy, regime flag from FRED, RECPROUSM156N, Sahm rule, SAHMREALTIME, SAHMCURRENT, "unemployment rose 0.5 points", yield curve inversion, T10Y3M, T10Y2Y, 2s10s, inverted curve recession signal, "how long after inversion", business cycle dating, "when did NBER announce", labelling recessions for a classifier. SKIP for fitting HMMs and the smoothed-versus-filtered timing of estimated regimes (regime-detection), for the vintage A/B on a macro strategy (real-time-macro-backtesting), for nowcasting GDP itself (gdp-nowcasting-dynamic-factor), and for where the underlying series live (fundamental-and-macro-data).
    1 repo stars
  48. ▌
    Ex Dividend And Rebate Interest 2 · howard-lynn-ye bundle
    Handle bonds that trade ex-dividend, where accrued interest goes negative and the buyer is paid rebate interest instead of paying it. TRIGGER - gilt, UK gilt, ex-dividend, ex-div, ex-coupon, exCouponPeriod, rebate interest, negative accrued interest, "my accrued interest is negative", "accrued should be negative but isn't", seven business days before the coupon, quasi-coupon date, DMO formulae, "Formulae for Calculating Gilt Prices from Yields", ql.FixedRateBond exCouponPeriod, ql.Period(-7, ql.Days), record date vs ex-date on a bond, 3.5% War Loan, JGB and gilt settlement. SKIP for ordinary positive accrued and day-count choice (bond-conventions-and-accrued), for price-to-yield solving in general (yield-measures-and-bill-quotes), for index-linked gilt indexation lags (../../../fin-models/skills/term-structure-models), and for QuantLib's evaluationDate global (../../../fin-libraries/skills/lib-quantlib).
    1 repo stars
  49. ▌
    Ois Discounting And Multi Curve 2 · howard-lynn-ye bundle
    Price a swap with separate projection and discount curves, and catch the single-curve bug that the standard par-reprice check cannot see. TRIGGER - OIS discounting, CSA discounting, collateral discounting, multi-curve, dual curve, projection curve vs discount curve, tenor basis, "my swap reprices at par but the PV01 is wrong", swap annuity, fixedLegBPS, DiscountingSwapEngine, RelinkableYieldTermStructureHandle, linkTo, "QuantLib NPV is exactly 0.0", exogenous discounting rate helpers, bootstrapping a SOFR curve against an OIS discount curve, swaption numeraire, forward premium. SKIP for computing the compounded SOFR fixing itself (sofr-and-rfr-compounding), for what a legacy LIBOR trade falls back to (libor-transition-and-fallbacks), for bond duration and DV01 (duration-convexity-and-dv01), and for curve bootstrapping and interpolation in general (../../../fin-models/skills/term-structure-models).
    1 repo stars
  50. ▌
    Tax Lot Matching And Cost Basis 2 · howard-lynn-ye bundle
    The same trades produce four different reported P&Ls depending on which lot you sold, and only one of the four methods is a statutory default. TRIGGER - tax lot, tax lots, lot matching, cost basis, cost basis method, which shares did I sell, FIFO, LIFO, HIFO, LOFO, tax lot optimizer, specific identification, specific share identification, adequate identification, average cost basis, average basis, short-term vs long-term capital gain split, holding period more than one year, Publication 550, Form 8949, 1099-B basis mismatch, "my broker says HIFO", "which lot method should the backtest use", after-tax P&L of a blotter. Modelling assumptions for backtests, not tax advice. SKIP for the loss you are not allowed to book at all (wash-sale-rules), for futures and index options that never use lots at all (section-1256-and-derivatives-tax), for wiring all of it onto a backtest and reporting an after-tax Sharpe (after-tax-backtesting), and for A-share stamp duty and dividend tax (china-ashare-trading-taxes).
    1 repo stars
  51. ▌
    Alpha Combination And Neutralization 2 · howard-lynn-ye bundle
    Score several alphas, combine them, and strip the exposures you did not mean to take. TRIGGER - information coefficient, IC, rank IC, ICIR, IC decay, "is my IC good", IC t-stat, Newey-West on IC, overlapping forward returns; combining alphas, blending signals, alpha weighting, z-score or rank combination, multi-factor signal; sector neutral, beta neutral, market neutral signal, industry neutralization, residualize the alpha, cross-sectional regression residuals, orthogonalize signals; winsorize, clip outliers, cross-sectional standardization; turnover-aware combination, signal smoothing, "my alpha dies after costs". SKIP for one time-series trend signal (trend-following-models), for the factor library and the alphalens forward-return convention (factor-and-timeseries-research, lib-alphalens), for weights under constraints (portfolio-and-risk), and for whether the survivor is real (backtest-validation).
    1 repo stars
  52. ▌
    Section 1256 And Derivatives Tax 2 · howard-lynn-ye bundle
    Futures and broad-based index options are marked to market on the last business day of the year and split 60/40 long/short regardless of holding period, so two options with the same payoff can have different after-tax P&L. TRIGGER - section 1256, 1256 contract, 60/40, sixty forty, mark to market at year end, marked to market December 31, regulated futures contract, nonequity option, broad-based index option, narrow-based security index, SPX vs SPY tax, XSP, VIX options, futures tax treatment, Form 6781, blended rate on futures, "do I owe tax on an open position", net section 1256 loss carryback, qualified board or exchange. Modelling assumptions for backtests, not tax advice. SKIP for stock lots and cost basis (tax-lot-matching-and-cost-basis), for the wash-sale rule that does not reach these contracts (wash-sale-rules), for reporting an after-tax Sharpe (after-tax-backtesting), and for option pricing and lifecycle mechanics (options-backtesting).
    1 repo stars
  53. ▌
    Bet Sizing 2 · howard-lynn-ye bundle
    Turn a predicted probability into a position - the 2*Phi(z)-1 size curve, averaging concurrent bets instead of adding them, discretising to buy turnover, and the concurrency budget whose divisor is usually a look-ahead. TRIGGER - bet sizing, getSignal, get_signal, getBetSize, bet size from probability, avgActiveSignals, average active bets, discreteSignal, discrete signal, step size, position from predict_proba, "how big should this trade be", "my positions flip every bar", turnover from a probability, concurrent bets leverage, budgeting bets, Lopez de Prado chapter 10, AFML bet sizing. SKIP for the Kelly fraction and how large the book should be overall (position-sizing-kelly - it owns Kelly, do not repeat it), for the secondary model that produces the probability (meta-labeling), for volatility targeting and risk budgets (portfolio-and-risk), and for the execution schedule once the size is chosen (execution-algorithms).
    1 repo stars
  54. ▌
    Meta Labeling 2 · howard-lynn-ye bundle
    A primary model picks the side, a secondary model trained on "was the primary right" decides whether to act - raising precision, lowering recall, and paying for itself in costs. The trap is training the secondary on rows the primary was fitted on. TRIGGER - meta-labeling, metalabeling, meta labels, secondary model, primary model side, get_events side_prediction, bin in {0,1}, "should I take this signal", precision vs recall trade-off in trading, F1 of a trading model, filter model, trade filter, "my model has high recall but loses money", "how do I improve a strategy without changing its signal", Lopez de Prado chapter 3 section 3.6, AFML meta-labeling. SKIP for producing the triple-barrier labels and the `side` argument itself (triple-barrier-labeling), for turning the secondary's probability into a position size (bet-sizing), for the Kelly fraction (position-sizing-kelly), for purged cross-validation of either model (lib-purgedcv), and for which features matter (feature-importance-financial).
    1 repo stars
  55. ▌
    Etf Mechanics 2 · howard-lynn-ye bundle
    Why an ETF's price series does not behave like the index it tracks - daily-reset leverage, NAV vs price, distributions, holdings files and fees. TRIGGER - "why is my 3x ETF down when the index is flat", TQQQ decay, SQQQ, leveraged ETF long term, inverse ETF, volatility drag, daily reset; premium to NAV, discount to NAV, iNAV, creation/redemption, "bond ETF trading below NAV"; ETF distribution, capital gains distribution, return of capital, "ETF dropped on the ex-date", phantom drop; ETF holdings file, constituents CSV, index reconstitution, Russell rebalance, "I used today's holdings for the backtest"; expense ratio drag, tracking difference vs tracking error, "ETF returned less than the index". SKIP for downloading price series and vendor adjustment defaults (market-data-sourcing) - holdings files stay here, for UNG, USO or VIXY roll yield and contango (futures-continuous-contracts), for auditing a finished backtest (research-integrity-guards), and for weights, Sharpe or drawdown (portfolio-and-risk).
    1 repo stars
  56. ▌
    Lib Arch 2 · howard-lynn-ye bundle
    The reference GARCH implementation in Python, and the home of SPA/StepM/MCS - which all take LOSSES, so passing returns silently inverts the test and names your worst strategy as the best. TRIGGER - arch, arch_model, arch.bootstrap, arch.univariate, SPA, RealityCheck, StepM, MCS, optimal_block_length, StationaryBootstrap, superior_models, spa.pvalues, mcs.included, arch.unitroot, GARCH, EGARCH, GJR-GARCH, TARCH, APARCH, FIGARCH, HARCH, HAR-RV, skewt, conditional_volatility, or a GARCH fit emitting convergence warnings. Memory is stale on licence and version - it is 8.0.0 (2025-10-21) under NCSA, not one of the three usual permissive licences. SKIP for PSR and DSR (backtest-validation), for PBO and CPCV (lib-purgedcv) and for reporting Sharpe (lib-quantstats). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
    1 repo stars
  57. ▌
    Lib Ccxt 2 · howard-lynn-ye
    The unified MIT client for 100+ crypto venues - and not a backtester, with an OHLCV endpoint that silently truncates and returns an unclosed final bar. TRIGGER - import ccxt, import ccxt.pro, import ccxt.async_support, pip install ccxt, fetch_ohlcv, fetchOHLCV, load_markets, fetch_markets, create_order, watchOrderBook, watchTicker, watchMyTrades, set_sandbox_mode, enableRateLimit, amount_to_precision, price_to_precision, exchange.has, options defaultType, parse8601, implicit methods like fapiPrivateGetPositionRisk, CCXT Pro subscription expiry, funding rate history; an order rejected on precision or min-notional, fewer candles returned than requested. Memory is stale here: CCXT Pro was merged into the free MIT package at v1.95, prediction markets landed at 4.5.66, and 4.5.77 shipped 2026-09-01. SKIP for equity and futures brokers (broker-execution-apis). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  58. ▌
    Lib Qlib 2 · howard-lynn-ye
    Microsoft Qlib (pip name pyqlib, imported as qlib) ships Alpha158/Alpha360 and a default normalizer that leaks your test set into training, silently. TRIGGER - qlib, pyqlib, "pip install pyqlib", qlib.init, provider_uri, REG_CN, Alpha158, Alpha360, DataHandlerLP, ZScoreNorm, CSZScoreNorm, fit_start_time, fit_end_time, qrun, workflow_config yaml, "qlib_data --region cn", LABEL0, "Ref($close, -2)", qlib expression engine, qlib .bin dataset, investment_data qlib_bin. Wheels are cp38-cp312 with no sdist so it fails outright on Python 3.13+, packaging lags the repo by about a year, and the official China dataset was switched off. SKIP for lib-alphalens, which is the skill for scoring a factor you already have. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  59. ▌
    Lib Talib 2 · howard-lynn-ye
    The C reference implementation of technical indicators, where every pure-Python port disagrees during warm-up and none of them say so. TRIGGER - import talib, pip install TA-Lib, ta-lib-python, talib.RSI, talib.MACD, talib.ATR, talib.ADX, talib.BBANDS, talib.OBV, from talib import abstract, talib.get_functions, unstable period, indicator warm-up, an indicator differing between two libraries or between backtest and live; "Exception: input array type is not double", a failed ta-lib C build or missing ta_libc.h. Memory is stale here: the install pain is solved - 0.7.1 (2026-07-16) ships 54 prebuilt wheels bundling the C library, including cp311-win_amd64 - while pandas-ta's repo, homepage and release history are all gone. SKIP for whether a signal actually predicts returns (factor-and-timeseries-research) and for leak-free signal construction generally (signal-construction). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
    1 repo stars
  60. ▌
    Us Market Rules 2 · howard-lynn-ye
    US trading rules that decide whether a strategy is executable at all - short-sale restrictions, margin, settlement, day-trading limits, and what a data licence lets you keep. TRIGGER - can I short this, locate, hard to borrow, borrow fee, short interest, Reg SHO, uptick rule, SSR, short sale restricted; PDT, pattern day trader, day trade limit; Reg T, initial or maintenance margin, margin call, buying power, leverage limit; T+1, settlement, cash account; "can I redistribute this data"; may_cache, may_redistribute, market data licence; presenting or publishing backtested performance, Marketing Rule. Two of the most-cited rules moved in 2024-2026, so a training-prior answer is usually stale. US ONLY - SKIP for short-selling bans or calendars in Asia (asia-pacific-markets), for A-share T+1 and price limits (china-trading-stack) for the order-safety mechanics of sending an order (broker-execution-apis), and for tax arithmetic - wash sales, lot matching, after-tax returns - which the fin-tax-accounting skills own.
    1 repo stars
  61. ▌
    Lib Polars 2 · howard-lynn-ye bundle
    The polars wheel is now an empty 865 KB py3-none-any shim hard-pinned to polars-runtime-32, so a lockfile listing only polars does not pin the engine. TRIGGER - polars, "import polars as pl", LazyFrame, scan_parquet, collect(), pl.col, join_asof, group_by, with_columns, polars-runtime-32, polars-runtime-64, polars-lts-cpu, polars 2.0.0rc1, "pip download polars", vendored or air-gapped polars install, polars wheel has no compiled code, porting pandas merge_asof to polars.join_asof, polars sortedness. The runtime split landed at 1.34.0b2 on 2025-09-26, so install matrices, wheel audits and lockfiles written from memory are wrong. SKIP for market-data-engineering, the skill for storage formats and time-series stores. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  62. ▌
    Lib Vollib 2 · howard-lynn-ye bundle
    Machine-precision implied volatility with no bracketing, behind a package name restructured in 2026 - py_vollib is now a DEAD SHIM with four files and zero library code, and every pre-2026 tutorial installs it. TRIGGER - vollib, py_vollib, py_vollib_vectorized, lets_be_rational, "Let's Be Rational", Jaeckel, black_scholes, black_scholes_merton, implied_volatility, greeks.analytical, BelowIntrinsicException, AboveMaximumException, "py_vollib is deprecated", or implied volatility returning 0.0. Memory is stale on the package name, on the C++ dependency (it is now pure Python) and on the Greek scaling. SKIP for American exercise, exotics, curves or conventions (lib-quantlib). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  63. ▌
    Structural Breaks 2 · howard-lynn-ye bundle
    Sample events with the symmetric CUSUM filter instead of on a clock, and test for explosive behaviour with SADF instead of one full-sample ADF that has no power against a bubble in part of the sample. TRIGGER - CUSUM filter, cusum_filter, symmetric CUSUM, event-based sampling, t_events, event sampling for labels, SADF, supremum ADF, sup ADF, get_sadf, BSADF, backward SADF, Phillips-Shi-Yu, explosiveness test, bubble detection, structural break test, Chow test, "how do I pick the bars to label", "my ADF says nothing but the chart is obviously a bubble", "when did the regime change", Lopez de Prado chapter 17, AFML structural breaks. SKIP for labelling the events once they are sampled (triple-barrier-labeling), for making a feature stationary (fractional-differentiation), for the cointegration ADF table (stat-arb-cointegration), for hidden-state / volatility regime labels (regime-detection), and for unit-root and ARIMA selection generally (time-series-forecasting-models).
    1 repo stars
  64. ▌
    Factor Models 2 · howard-lynn-ye bundle
    Build long-short factor portfolios from a characteristic panel and test the alpha with standard errors that survive serial correlation. TRIGGER - factor model, Fama-French, Fama-MacBeth, cross-sectional regression, decile or quintile long-short sort, 2x3 sort, SMB and HML, value- weight vs equal-weight portfolio, characteristic panel, alpha t-stat, Newey-West, HAC standard errors, cov_type="HAC" maxlags, Ken French Data Library, F-F_Research_Data_Factors, book-to- market, 11-1 momentum; "my factor has a t-stat of 15", "should I lag the signal", "my HML does not match Ken French", "joining monthly factors to daily returns". SKIP for scoring one alpha signal with alphalens, IC decay or GARCH (factor-and-timeseries-research), for the covariance matrix a factor model implies (covariance-and-risk-models), for turning expected returns into weights (portfolio-optimizers), and for counting the specifications you tried (backtest-validation).
    1 repo stars
  65. ▌
    Regime Detection 2 · howard-lynn-ye bundle
    Detect and label market regimes without letting the labels see the future, and state regime coverage in the form the result gate demands. TRIGGER - detect market regimes, regime detection, bull bear regime labels, volatility regime, high-vol low-vol state, risk-on risk-off; hidden markov model on returns, HMM, hmmlearn, markov switching, MarkovRegression, smoothed vs filtered probabilities; change point detection, ruptures, structural break; turbulence index, Mahalanobis distance; "my strategy only works in one regime", "does it survive 2008 or 2020"; "result_manifest says no regime coverage", regimes_covered. SKIP for forecasting volatility itself with GARCH or arch (volatility-models), for whether a regime-conditional result survives the trials behind it (backtest-validation), for the full pre-report audit (research-integrity-guards), and for RL or deep-learning state models (rl-and-ml-trading).
    1 repo stars
  66. ▌
    Fx Markets 2 · howard-lynn-ye bundle
    Trade and backtest FX correctly — quote conventions, pip sizing, and the carry that a spot-only backtest silently omits. TRIGGER - forex, FX, currency pair, EURUSD, USDJPY, GBPUSD, AUDUSD, USDCHF, USDCAD, NZDUSD; pip, pipette, lot sizing on a currency pair; carry trade, swap points, rollover, interest rate parity, covered or uncovered parity; NDF, forward points, T+2 value date; "there is no official FX close"; DukasCopy or free tick FX; forex-python or a similar package. SKIP for crypto pairs, which have funding rather than swap (crypto-data-and-execution), and for FX options and vol surfaces (derivatives-pricing).
    1 repo stars
  67. ▌
    Lib Akshare 2 · howard-lynn-ye
    akshare is the widest free Chinese-market scraper (1,103 public interfaces) and it purges its own PyPI history, so you cannot pin it. TRIGGER - akshare, "import akshare as ak", pip install akshare, stock_zh_a_hist, stock_zh_a_daily, index_stock_cons_csindex, stock_zt_pool_em, stock_zh_a_stop_em, adjust="qfq"/"hfq", 复权, 前复权, 后复权, 涨跌停, 东方财富, 新浪财经, A股数据, 沪深300成分股, "No matching distribution found for akshare==", akshare 报错, akshare 封 IP. akshare ships roughly 2.3 releases a week and deletes the old ones, so any signature, column name or version pin you remember is probably already gone. SKIP for lib-tushare, which is the skill for point-in-time fundamentals and dated index membership. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  68. ▌
    Lib Fredapi 2 · howard-lynn-ye
    fredapi wraps FRED/ALFRED and is the primary anti-look-ahead tool in macro - and three of its four vintage methods are buggy in source. TRIGGER - fredapi, "from fredapi import Fred", Fred(api_key=), FRED_API_KEY, get_series, get_series_all_releases, get_series_as_of_date, get_series_first_release, get_series_vintage_dates, realtime_start, realtime_end, ALFRED, vintage, data revision, revised GDP, CPI or payrolls, Philadelphia Fed Real-Time Data Set, full-fred, DBnomics, "Bad Request. The value for variable api_key is not registered". Frozen at 0.5.2 since 2024-05, so these bugs are current behaviour, not history you remember from an old version. SKIP for lib-edgartools, which is the skill for company filings and fundamentals. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  69. ▌
    Lib Skfolio 2 · howard-lynn-ye
    The sklearn-compatible portfolio estimator library whose CombinatorialPurgedCV breaks sklearn's own split() contract - it yields (train, [test_0, ...]), and normal two-variable unpacking mis-partitions your data without raising. TRIGGER - skfolio, skfolio.optimization, MeanRisk, RiskBudgeting, HierarchicalRiskParity, HierarchicalEqualRiskContribution, NestedClustersOptimization, skfolio.moments, DenoiseCovariance, GerberCovariance, ImpliedCovariance, EmpiricalPrior, EntropyPooling, VineCopula, CombinatorialPurgedCV, WalkForward, purged_size, embargo_size, RiskMeasure. Memory is stale and will break code - 1.0.0 landed 2026-08-23, so every recalled snippet predates the API stability commitment. SKIP for the widest risk-measure menu (lib-riskfolio) and for a strictly sklearn-compliant purged splitter (lib-purgedcv). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
    1 repo stars
  70. ▌
    Lib Tushare 2 · howard-lynn-ye
    tushare is the cheapest source of genuinely point-in-time A-share fundamentals, and it sends your token over plaintext HTTP. TRIGGER - tushare, tushare pro, "import tushare as ts", ts.pro_api, pro_bar, adj="qfq", stock_basic, list_status, daily_basic, adj_factor, income, balancesheet, f_ann_date, ann_date, update_flag, 报告期, 公告日, tushare token, 积分, waditu, api.waditu.com, "抱歉,您没有接口访问权限", tushare 权限不够. The public GitHub repo has been idle since 2024-03 while PyPI kept shipping through 2026, so recalled behaviour does not match the installed wheel. SKIP for lib-akshare, which is the skill for breadth of free Chinese coverage rather than PIT. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  71. ▌
    Rl And Ml Trading 2 · howard-lynn-ye
    Reinforcement learning and deep learning for trading: what installs, and what the evidence says. TRIGGER - reinforcement learning, RL agent, trading gym, custom trading environment, reward function, PPO or DQN for trading; FinRL, FinRL-Meta, ElegantRL, stable-baselines3, gymnasium, gym, gym-anytrading, TensorTrade; LSTM, GRU, TCN or Transformer for return prediction; "does deep learning beat a linear model"; FinRL or gym failing to import with ModuleNotFoundError. FinRL's published wheel declares no dependencies and cannot import, and linear models beat deep ones in the published return-prediction comparisons. SKIP for LLM agents specifically (llm-finance-agents).
    1 repo stars
  72. ▌
    Lib Ib Async 2 · howard-lynn-ye
    The maintained Interactive Brokers Python client - successor to the archived ib_insync - where one digit of the port number is all that separates paper from live. TRIGGER - import ib_async, from ib_async import IB, pip install ib_async, ib.connect, clientId, ports 7496 7497 4001 4002, TWS, IB Gateway, reqHistoricalData, reqMktData, reqTickersAsync, placeOrder, managedAccounts, reqPositions, reqOpenOrders, reqExecutions, Master Client ID, Read-Only API, orderRef, ibflex, ibapi, ib_insync; "Enable ActiveX and Socket Clients", pacing violations, error 1102, a DU or U account prefix. Memory is stale here: ib_insync was archived 2024-03-14 after its author died, ib_async 2.1.0 (2025-12-08) is the successor and does not wrap ibapi, its main branch has been static about nine months, and ib_fut does not exist. SKIP for non-IB brokers and for the general order-safety patterns (broker-execution-apis). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
    1 repo stars
  73. ▌
    Lib Purgedcv 2 · howard-lynn-ye bundle
    The only genuinely sklearn-protocol-compliant purged and embargoed splitter, and the one that refuses to run until you state when each label resolved - understate evaluation_times and it silently reintroduces the leak while reporting clean folds. TRIGGER - purgedcv, PurgedKFold, PBO, CPCV, probability of backtest overfitting, CombinatorialPurgedCV, PurgedGroupKFold, WalkForwardSplit, prediction_times, evaluation_times, purge_horizon, embargo, audit_splitter, reconstruct_paths, path_metrics, overlapping labels, triple-barrier touch time, mlfinlab.cross_validation. Memory is stale or absent - this package first shipped 2026-05-16 and is at 0.1.6. SKIP for CPCV over portfolio models (lib-skfolio) and for SPA/StepM/MCS (lib-arch). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  74. ▌
    Lib Quantlib 2 · howard-lynn-ye bundle
    The only broadly-permissive, mature, full-coverage derivatives library in Python, whose global evaluationDate returns an NPV of exactly 0.0 with no warning once it is past expiry. TRIGGER - QuantLib, "import QuantLib as ql", QuantLib-SWIG, QuantLib-Python, Settings.instance(), evaluationDate, ql.Date, YieldTermStructureHandle, VanillaOption, AmericanExercise, QdFpAmericanEngine, FdBlackScholesVanillaEngine, BinomialVanillaEngine, BaroneAdesiWhaleyApproximationEngine, SABRInterpolation, SviSmileSection, thetaPerDay, "NPV is zero". Memory is stale on packaging and engine names - it is at 1.43 and ships 26 wheels but no sdist. SKIP for vanilla European IV and Greeks in pure Python (lib-vollib). SKIP for bond accrued and the 30/360 family (bond-conventions-and-accrued), for OIS versus projection discounting (ois-discounting-and-multi-curve), and for choosing between libraries or when no library is named - the domain skill's job.
    1 repo stars
  75. ▌
    Lib Vectorbt 2 · howard-lynn-ye
    Vectorized Numba/Rust backtester built for parameter sweeps, whose from_signals fills at the signal's own bar close by default. TRIGGER - import vectorbt as vbt, pip install vectorbt, vbt.Portfolio.from_signals, from_orders, from_holding, ma_crossed_above, vbt.MA.run, vbt.IndicatorFactory, .vbt.signals.fshift, price=np.inf, reject_prob, allow_partial, stop_conflict_mode, cash_sharing, FlexArray, vectorbt[rust], VectorBT PRO, "this PRO example does not work"; a 10,000-combination grid, "my backtest looks too good", an equity curve that dies live. Memory is stale here: v1.0 (2026-04-22) was a breaking rewrite with an optional Rust engine, 1.1.0 shipped 2026-07-05, and the licence is Apache-2.0 plus Commons Clause - not OSI open source. SKIP for choosing among engines (backtesting-engines) and for judging a finished result (backtest-validation). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  76. ▌
    Lib Yfinance 2 · howard-lynn-ye
    The default free Yahoo Finance downloader, whose yf.download() now returns pre-adjusted OHLC with no Adj Close column at all. TRIGGER - import yfinance as yf, pip install yfinance, yf.download, yf.Ticker, Ticker.history, auto_adjust, multi_level_index, ignore_tz, repair=True, get_shares_full, yf.Search, yf.Lookup, yf.WebSocket, yfinance-cache; errors "KeyError: 'Adj Close'", YFRateLimitError, "Too Many Requests. Rate limited", YFTickerMissingError, "possibly delisted", curl_cffi pin conflicts, one ticker returning MultiIndex columns. Memory is stale here: auto_adjust flipped at 0.2.51 and hardened at 1.0, intraday timezones changed at 1.4.0, the proxy= constructor kwarg is gone, and 1.7.0 shipped 2026-08-26. SKIP for choosing between data vendors (market-data-sourcing) and for A-share data (china-ashare-data). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  77. ▌
    LLM Finance Agents 2 · howard-lynn-ye bundle
    What the published evidence says about LLM trading agents, and the real status of the frameworks. TRIGGER - TradingAgents, FinGPT, FinRobot, FinMem, FinCON, FinAgent, AlphaAgent, RD-Agent, AI4Finance; evaluating an LLM-driven trading system, a multi-agent trader, or a news-sentiment-to-signal pipeline; "does AI trading work"; FinBERT and financial sentiment models; reproducing a Sharpe from an LLM-trading paper; whether a backtest window overlaps a model's training cutoff. No credible evidence exists that any of it produces alpha net of costs. SKIP for how the systems are built and how to stage the pipeline (finance-agent-architectures), for reinforcement learning and deep learning specifically (rl-and-ml-trading), and for MCP servers (finance-mcp-servers).
    1 repo stars
  78. ▌
    China Ashare Data 2 · howard-lynn-ye bundle
    Get China A-share and Greater China market data without the ecosystem's silent traps. TRIGGER - A股, 沪深, 北交所, 科创板, 创业板; akshare, tushare, baostock, efinance, adata, qstock, mootdx, easyquotation, jqdatasdk, 聚宽, rqdatac, 米筐, Wind, 万得, Choice, 东方财富; 复权, qfq, hfq, 前复权, 后复权; ST, 退市, delisted A-share tickers, 退市股票列表; 停牌 suspension; 公告日 versus 报告期; CSI300, HS300, 中证 index membership. Three popular libraries default to forward-adjusted prices, which are rewritten retroactively and are therefore look-ahead contaminated. SKIP for backtesting or trading A-shares (china-trading-stack) and for Hong Kong, Taiwan, Japan or Korea (asia-pacific-markets).
    1 repo stars
  79. ▌
    Portfolio And Risk 2 · howard-lynn-ye bundle
    Turn signals into weights, and compute performance metrics that are actually correct. TRIGGER - portfolio weights, allocation, rebalancing, mean-variance, Black-Litterman, risk parity, HRP, HERC, NCO, efficient frontier, covariance shrinkage or denoising, PyPortfolioOpt, riskfolio, skfolio, cvxportfolio; or computing Sharpe, Sortino, Calmar, CAGR, annualized volatility, max drawdown, VaR, CVaR, beta, alpha, a tearsheet, quantstats, pyfolio, empyrical, ffn, or performance attribution. Load before quoting any performance number: popular libraries disagree on identical input, one silently discards the risk-free rate you pass it, and an absurdly negative Sharpe has one known cause. SKIP for the optimizer's own mathematics and what it does to estimation error (portfolio-optimizers), and for whether the result survives multiple testing (backtest-validation).
    1 repo stars
  80. ▌
    Quant Stack Router 2 · howard-lynn-ye
    Entry router for Python quantitative finance: names the right library and flags where the model's training prior is stale. TRIGGER - read this FIRST when a quant task names no specific sub-domain, when asked "which library should I use" for anything financial, or when a plan spans several of data, backtest, risk and execution. Also read it before importing any finance package whose status you are assuming from memory - several widely used ones are dead, relicensed, or have flipped a default since training. SKIP when the task already names its own domain - go straight to market-data-sourcing, backtesting-engines, broker-execution-apis, portfolio-and-risk, factor-and-timeseries-research, china-ashare-data or crypto-data-and-execution rather than routing through here.
    1 repo stars
  81. ▌
    Lib Alpaca Py 2 · howard-lynn-ye
    Alpaca's current Python SDK, which defaults to the paper host but lets url_override silently send live orders from a client that believes it is in the sandbox. TRIGGER - import alpaca, pip install alpaca-py, TradingClient, StockHistoricalDataClient, CryptoHistoricalDataClient, submit_order, LimitOrderRequest, MarketOrderRequest, OrderSide, TimeInForce, client_order_id, url_override, paper=True, BaseURL.TRADING_PAPER, paper-api.alpaca.markets, bracket OCO OTO orders, trail_percent, IEX vs SIP feed, Algo Trader Plus, alpaca-trade-api, APCA_API_BASE_URL; an order rejected asynchronously for time-in-force or price precision. Memory is stale here: alpaca-trade-api was deprecated in 2024 and defaulted to LIVE, whereas alpaca-py 0.44.0 (2026-08-11) declares paper=True - the widely repeated warning is inverted. SKIP for Interactive Brokers and for the general order-safety patterns (broker-execution-apis). SKIP for choosing between libraries, or when no library is named - the domain skill's job.
    1 repo stars
  82. ▌
    Lib Alphalens 2 · howard-lynn-ye
    alphalens-reloaded scores cross-sectional factors, and its forward return starts at date t's OWN price - it never lags your factor. TRIGGER - alphalens, alphalens-reloaded, "import alphalens as al", get_clean_factor_and_forward_returns, compute_forward_returns, factor_information_coefficient, mean_return_by_quantile, factor_returns, quantile_turnover, factor_rank_autocorrelation, create_full_tear_sheet, MaxLossExceededError, max_loss=0.35, cumulative_returns, information coefficient, IC decay, quantile spread, "pip install alphalens". The original quantopian package is dead at 0.4.0 (2020-04-27) and most snippets you recall target it or its removed pandas internals. SKIP for lib-qlib, which is the skill for the feature pipeline and model. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  83. ▌
    Lib Freqtrade 2 · howard-lynn-ye
    freqtrade is a live-first crypto bot with the best bias detectors in the field and a backtester that assumes zero slippage always. TRIGGER - freqtrade, "freqtrade backtesting", freqtrade trade/hyperopt/download-data, lookahead-analysis, recursive-analysis, startup_candle_count, IStrategy, populate_indicators, populate_entry_trend, populate_exit_trend, custom_stoploss, stoploss_on_exchange, minimal_roi, trailing_stop, VolumePairList, StaticPairList, dry_run, dry_run_wallet, config.json, user_data/strategies, FreqAI, freqtrade GPL. Monthly YYYY.M releases have renamed the strategy callbacks repeatedly, so remembered method names are usually the old ones. SKIP for backtesting-engines, the skill for equity and futures bar engines. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  84. ▌
    Lib Riskfolio 2 · howard-lynn-ye
    The 26-risk-measure portfolio optimizer whose stateful API optimizes against stale or missing mu and Sigma - with no error - if you forget assets_stats(). TRIGGER - riskfolio, Riskfolio-Lib, "import riskfolio as rp", rp.Portfolio, rp.HCPortfolio, assets_stats, port.optimization, hcp.optimization, model="HRP"/"HERC"/"NCO", rm="CVaR"/"CDaR"/"EVaR"/"RLVaR"/"EDaR"/"RLDaR", denoiseCov, riskfolio.src.AuxFunctions, ParamsEstimation, entropy_pooling, OWA, MVSK, "solver did not converge". Memory is stale - it is at 7.3.0 (2026-05-31) with an unusual 18 open issues against 4,480 stars. SKIP for GridSearchCV over portfolio models (lib-skfolio) and for whole-share allocation (lib-pyportfolioopt). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  85. ▌
    Fin Skills As Tools 2 · howard-lynn-ye
    How to hand this library to an agent as TOOLS rather than as reading - the MCP server, the exported Anthropic and OpenAI tool definitions, the JSON payload conventions, and the four guards that cannot cross a JSON boundary. TRIGGER - expose fin-skills to an LLM agent; run the fin-skills MCP server; "python -m fin_skills.mcp"; fin-skills-mcp; import the guards as function-calling tools; generate tool schemas for the Messages API or the OpenAI Responses API; send a pandas Series or DataFrame through a tool call; check_backtest, bundle_coverage, describe_guard, read_skill; why assert_causal or warmup_probe is missing from the tool list; payload size limits for a tool call; 把 guard 挂成 agent 工具. SKIP for how to design the agent pipeline itself (finance-agent-architectures), which third-party finance MCP servers exist and which can move money (finance-mcp-servers), and whether an LLM strategy makes money at all (llm-finance-agents).
    1 repo stars
  86. ▌
    Finance MCP Servers 2 · howard-lynn-ye
    Pick a finance MCP server, and know its licence and blast radius before connecting it. TRIGGER - an MCP server for market data, filings, macro data, brokerage or trading; adding, choosing, comparing or debugging a finance MCP; Alpaca MCP, Alpha Vantage MCP, Polygon or Massive MCP, OpenBB MCP, SEC EDGAR MCP, FRED MCP, yfinance MCP, QuantConnect MCP; "which finance MCP should I install"; granting an MCP server the ability to place orders. Several are AGPL-3.0, one places real trades, and the most-starred one is over a year stale. SKIP for the Python libraries behind them (market-data-sourcing).
    1 repo stars
  87. ▌
    Backtest Validation 2 · howard-lynn-ye bundle
    Decide whether a result survives the number of things you tried. TRIGGER - "I tried N strategies or parameters and the best one..."; overfitting, p-hacking, data snooping, multiple testing, "is this result real", "is this statistically significant"; deflated Sharpe, DSR, PSR, probability of backtest overfitting, PBO; purged or combinatorial cross-validation, embargo, walk-forward, "cross validation on time series without leaking"; a grid search, hyperopt or AutoML picked a winner; triple-barrier labeling, meta-labeling, fractional differentiation, mlfinlab. Load whenever a Sharpe ratio is about to be offered as evidence for trading. SKIP only for plain performance metrics - Sharpe, Sortino, CAGR, drawdown (portfolio-and-risk); the deflated and probabilistic Sharpe ratios are computed HERE.
    1 repo stars
  88. ▌
    Backtesting Engines 2 · howard-lynn-ye bundle
    Choose a backtesting engine and know what it silently models wrong. TRIGGER - "backtest this", backtest a crossover or a moving-average strategy, simulate a strategy, walk-forward, parameter sweep, "test this trading idea"; comparing or choosing backtest frameworks; vectorbt, backtesting.py, backtrader, zipline, PyBroker, bt, nautilus_trader, LEAN, freqtrade, jesse; how an engine models fills, slippage, commissions; what slippage to assume, partial fills, margin, shorting or delistings; taking a strategy from backtest to live; "my backtest looks too good"; "works in backtest but loses money live". Several popular engines fill at the signal's own bar close by default. SKIP for judging whether a finished result is real (backtest-validation) for A-share rules (china-trading-stack), for crypto funding and perpetuals (crypto-data-and-execution), for options, which need assignment and settlement no engine here models (options-backtesting), and for measuring fills you already have (execution-cost-analysis).
    1 repo stars
  89. ▌
    Derivatives Pricing 2 · howard-lynn-ye bundle
    Choose a derivatives pricing library and get its Greek units and conventions right. TRIGGER - option pricing, implied volatility, IV, Greeks, delta, gamma, vega, theta, rho; which pricing library, exotics coverage; QuantLib, vollib, py_vollib, financepy, rateslib, optionlab; option chains. Greek scaling differs by 100x and 365x between the three common libraries, and one popular fixed-income package is not open source. SKIP for option lifecycle events - assignment, pin risk, expiry - live or backtested, and for historical option chains and vendors (options-backtesting). SKIP for the models themselves - implementing one (option-pricing-models), fitting a smile (implied-vol-surface), building a curve (term-structure-models), bond accrued and the 30/360 family (bond-conventions-and-accrued), duration and DV01 (duration-convexity-and-dv01), and projection-versus-discount choice on a swap (ois-discounting-and-multi-curve).
    1 repo stars
  90. ▌
    Options Backtesting 2 · howard-lynn-ye bundle
    Options positions end in ways you do not control - live or in a backtest: assignment, expiry settlement, pin risk, multi-leg lifecycle, historical chain assembly, and the margin that decides whether the position fits. TRIGGER - backtest a covered call, cash-secured put, wheel, credit spread, iron condor, butterfly, calendar, diagonal, straddle, strangle, PMCC; short option assigned, early exercise, exercise by exception, expires in the money, pin risk, pinned at the strike; historical option chain, options history, chain panel, OSI symbol, adjusted option, non-standard deliverable; 0DTE, weeklies, third Friday, AM vs PM settlement, cash settled index options; option margin, naked margin requirement, portfolio margin, SPAN, buying power reduction; "my options backtest returns look too good"; optopsy, optionlab, an options backtesting library. SKIP for pricing a single option or fitting a vol surface (derivatives-pricing) and for futures rolls (futures-continuous-contracts).
    1 repo stars
  91. ▌
    Signal Construction 2 · howard-lynn-ye bundle
    Compute technical indicators and engineered features without leaking the future. TRIGGER - RSI, MACD, moving average, Bollinger, ATR, ADX, Ichimoku, PSAR, stochastic or any named technical indicator; TA-Lib, pandas-ta, pandas-ta-classic, ta, talipp, finta; choosing an indicator library or reconciling two that disagree; "does this indicator repaint"; warm-up, unstable period, or an indicator differing between backtest and live; zigzag, fractals, swing highs. SKIP for judging whether a finished signal predicts returns (factor-and-timeseries-research) and for the backtest that consumes it (backtesting-engines).
    1 repo stars
  92. ▌
    Lib Edgartools 2 · howard-lynn-ye
    edgartools is the default free SEC EDGAR client - typed objects for 20+ form types, XBRL statements, no API key - and it 403s on every request until you call set_identity(). TRIGGER - edgartools, "from edgar import Company, set_identity", set_identity, Company("AAPL"), get_filings, filing.xbrl(), get_facts, get_financials, accession number, CIK, ticker-to-CIK, 10-K, 10-Q, 8-K, 13F, Forms 3/4/5, EDGAR full-text search, "HTTP 403" from sec.gov, SEC User-Agent required, SEC 10 requests per second, edgartools MCP server, edgartools[ai]. 442 releases have moved the API repeatedly and the classifier is still Beta, so any snippet recalled from memory is probably wrong for the installed version. SKIP for lib-fredapi, which is the skill for macro series and revisions. SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  93. ▌
    Lib Quantstats 2 · howard-lynn-ye bundle
    The tearsheet library whose cagr(rf=...) accepts your risk-free rate and silently discards it - "cagr" sits on an exclusion list inside _prepare_returns, which dispatches on the caller's function name. TRIGGER - quantstats, "import quantstats as qs", qs.reports.html, qs.stats.sharpe, qs.stats.cagr, qs.stats.value_at_risk, expected_shortfall, gain_to_pain_ratio, rolling_volatility, qs.extend_pandas, tearsheet, quantstats-lumi; or a wildly negative Sharpe. Memory is stale on status and correctness - 0.0.81 shipped in a single-day hotfix burst on 2026-01-13 with no default-branch commits since, and the cagr bug survived it. SKIP for optimizing against these measures (lib-riskfolio, lib-skfolio) and for PSR/DSR, which it does not have (backtest-validation). SKIP when the question is WHICH library to choose, or names no library at all - both belong to the domain skill.
    1 repo stars
  94. ▌
    Volatility Models 2 · howard-lynn-ye bundle
    Fit and forecast volatility - GARCH, range-based realized variance, HAR-RV - without the two errors that silently move the answer: the units `arch` expects, and a range estimator used on bars that gap. TRIGGER - GARCH, GARCH(1,1), EGARCH, GJR-GARCH, arch_model, conditional_volatility, DataScaleWarning, "y is poorly scaled", rescale=True, res.scale, alpha + beta near 1, IGARCH, persistence; realized volatility, realized variance, Parkinson, Garman-Klass, Rogers-Satchell, Yang-Zhang, close-to-close, high-low volatility estimator; HAR-RV, Corsi; "my GARCH forecast says 1200% annualised vol", "which volatility estimator should I use", vol targeting input. SKIP for the arch package's API and its SPA/StepM/MCS bootstrap (lib-arch), for choosing a forecasting library (factor-and-timeseries-research), for discrete high-vol/low-vol state labels (regime-detection), for implied volatility (derivatives-pricing), and for turning a vol forecast into position size (portfolio-and-risk).
    1 repo stars
  95. ▌
    Asia Pacific Markets 2 · howard-lynn-ye
    Data and trading for Asia-Pacific outside mainland China. TRIGGER - Hong Kong, HKEX, 港股, Stock Connect, VCM, per-stock lot sizes; Taiwan, TWSE, 台股, shioaji, FinMind, twstock; Japan, TSE, JPX, J-Quants, jquants-api-client, the 2022 TSE restructuring; Korea, KRX, KOSPI, KOSDAQ, pykrx, FinanceDataReader, CSAT, Korean short-selling ban dates, Korean delisted-stock lists; India, NSE, BSE, kiteconnect, Zerodha, Upstox, STT, Muhurat; Singapore SGX, Australia ASX; futu-api, tigeropen. Also documents four verified exchange_calendars defects that affect US work too. SKIP for mainland A-shares (china-ashare-data, china-trading-stack).
    1 repo stars
  96. ▌
    China Trading Stack 2 · howard-lynn-ye bundle
    Backtest and execute Chinese-market strategies under the rules a Western engine gets wrong. TRIGGER - T+1 settlement, 涨跌停 price limits, 印花税 stamp duty, 夜盘 night session, 集合竞价, the lunch break, 240 minute bars; vnpy, CTP, QMT, miniQMT, easytrader, tqsdk, 天勤, RQAlpha, wondertrader, 掘金; Microsoft Qlib's China dataset; backtesting or live-trading A-shares, Chinese futures, options or convertible bonds; porting a US strategy to China. SKIP for sourcing the data itself (china-ashare-data).
    1 repo stars
  97. ▌
    External Skill Index 2 · howard-lynn-ye
    A verified index of every public finance Agent Skill repository — 139 repos, 4,851 SKILL.md files — so you can find what already exists instead of rebuilding it, and avoid the third that is legally unusable. TRIGGER - looking for an existing skill, plugin or marketplace for anything financial; "is there already a skill for X"; choosing between competing finance skill packs; before writing a new finance skill; checking whether a skill repo's licence permits use; or asked what the Claude/agent finance skill ecosystem contains. Also load before recommending any third-party finance skill repository, because 44 of the 139 declare no usable licence and 12 advertise skills while shipping none.
    1 repo stars
  98. ▌
    Market Data Sourcing 2 · howard-lynn-ye bundle
    Choose a market price or reference data vendor and use it without silently corrupting the numbers. TRIGGER - download, fetch, pull or load OHLCV, prices, quotes, bars or a ticker universe; compare vendors on cost, coverage or free-tier limits; need delisted US or global tickers, or a survivorship-free universe; two sources disagree; hitting 429 or rate limits; "KeyError: Adj Close"; split and dividend adjustment; trading calendars and holidays. Covers yfinance, yahooquery, defeatbeta, EODHD, Tiingo, Twelve Data, Finnhub, Alpha Vantage, Polygon/Massive, Databento, openbb, findatapy, financetoolkit, exchange_calendars, and alternative data. Also covers 美股 and global 行情数据 requests. SKIP for historical option chains (options-backtesting), Asian calendars and lot sizes (asia-pacific-markets), storing, partitioning or as-of joining data you already hold (market-data-engineering); for EDGAR filings, XBRL, CIK and macro vintages (fundamental-and-macro-data); and for A-share, 沪深 or 退市 queries (china-ashare-data).
    1 repo stars
  99. ▌
    Credit Risk Models 2 · howard-lynn-ye bundle
    Estimate a default probability and price credit, and keep the two probabilities apart - the risk-neutral one that prices and the physical one that forecasts. TRIGGER - Merton model, structural credit model, KMV, distance to default, asset value and asset volatility from equity, N(-d2), solve the two Merton equations; hazard rate, intensity, reduced form, survival probability, constant hazard, credit curve bootstrapping; CDS par spread, premium leg, protection leg, risky PV01, RPV01, accrual on default, "spread = lambda times one minus recovery", implied hazard from a CDS spread, recovery assumption, 40% recovery; risk-neutral vs physical default probability, rating agency default table, "my CDS spread is too low", credit spread from a bond price, expected loss, CVA default probability. SKIP for option pricing and Greeks (option-pricing-models, derivatives-pricing), for interest-rate curves and short-rate models (term-structure-models), and for portfolio risk and VaR (portfolio-and-risk).
    1 repo stars
  100. ▌
    Broker Execution Apis 2 · howard-lynn-ye bundle
    Connect to a broker and place orders without accidentally trading live money. TRIGGER - connect to Interactive Brokers, TWS, IB Gateway, ib_async, ib_insync, ibapi, Alpaca, Schwab, schwab-py, Tastytrade, Tradier or Robinhood; place, modify or cancel an order; read positions or balances; set up paper trading; order types, time-in-force, bracket or OCO orders, client order ID; FIX, quickfix, simplefix; "make sure I don't send a live order"; a broker connection being refused. Load before any code that can transmit an order. SKIP for crypto exchanges and ccxt (crypto-data-and-execution), and for vnpy, CTP, QMT or any Chinese broker gateway (china-trading-stack). This skill answers TWS/Gateway port and connection failures on its own - the fin-libraries deep dive is optional and most installs will not have it.
    1 repo stars