Peer-reviewed quantitative finance documentation, mathematical formulations, algorithmic trading architectures, and empirical research.
This section features cutting-edge research in quantitative investment, including the latest technological developments and research reports from major brokerages.
- Application of artificial intelligence and large language models in finance and trading
1. A brief history of the development of LLM
A deep dive into the multi-factor risk model that powers TheQuantHackers' automated position sizing and portfolio construction.
We tested whether reasoning-focused LLMs can implement Black-Scholes, calibrate local vol, and price exotic options from scratch.
Using inflation surprises, yield curve signals, and credit spreads to switch between risk-on and defensive portfolio tilts.
An explanation of how TheQuantHackers scores users across 9 skill dimensions using challenge performance, peer reviews, and research output.
TheQuantHackers announces strategic partnership with TransFICC to enhance fixed income electronic trading capabilities.
An analysis of how real-time risk management is transforming financial institutions.
TQH TERMINAL wins prestigious award for best quantitative analytics platform.
TQH TERMINAL now includes a comprehensive FRTB module for regulatory capital calculations.
TheQuantHackers expands its London presence with a new office.
This section features cutting-edge research in quantitative investment, including the latest technological developments and research reports from major brokerages.
- Application of artificial intelligence and large language models in finance and trading
1. A brief history of the development of LLM
The papers selected for this article span a variety of asset classes and research directions, including but not limited to the following key areas:
In the world of hedge funds, the key to making money is speed, accuracy, and stability. With the emergence of generative AI (genAI) and large language models (LLMs) dramatically accelerating the proce...
In this article we will focus on:
Hello everyone, today I want to talk to you about DeepSeek, which has recently attracted global attention. This Chinese AI research laboratory, founded in 2023 and founded by Liam Wenfeng, is launchin...
In today's increasingly complex financial markets, efficient sell-side securities research often requires the support of automated tools. However, many existing AI solutions only focus on technical in...
In addition, as application scenarios expand from a single target to multiple financial tasks, the influencing factors in financial decision-making will also become complex and diverse depending on th...
TradeMaster is an open source platform for quantitative trading (QT), which fully integrates reinforcement learning (RL) technology into the entire quantitative trading process. From data preparation,...
In recent years, multi-agent collaboration driven by large language models (LLM) has made significant progress in automated decision-making and problem solving. However, in the financial field, most r...
This article introduces a new quantitative investment framework, aiming to mine and optimize the Alpha factor in stock investment strategies through the collaboration of Large Language Models (LLMs) a...
\text{Signal}_{i,t} = \frac{\text{AccountingVar1}_{i,t}}{\text{AccountingVar2}_{i,t}}
To better understand the community's AI + quant projects, we explore here a novel AI-assisted workflow designed to leverage ChatGPT o1 to automatically generate code from quantitative finance papers a...
To help readers better understand quantitative trading in the age of AI and explore the community's AI + quant projects, we introduce here the various possible integrations of ChatGPT with quantitativ...
In stock investing, news sentiment often has a significant impact on stock prices. Real-time monitoring and analysis of news can help us gauge market sentiment and optimize investment decisions. This...
自2022年末ChatGPT亮相以来,其强大的功能和潜力让世界为之震撼,预示着大型语言模型将引领社会变革。尽管这一反应略显仓促,但它真实地反映了人工智能领域的飞速进步及其应用的广泛性。虽然有人担忧这项技术可能威胁到就业,但已有创新者利用GPT开发新产品,并将其融入现有服务中。这些产品迅速获得市场青睐,为全球带来了巨大的价值。
生成式人工智能(Generative AI)正在深刻改变量化交易的格局。本章节将系统性地介绍 生成式AI在量化交易中的应用,帮助读者了解这一前沿领域,比如AI Agent, RAG, 大语言模型等。
In the training stage, noise is added to the picture, and the noise-added picture is input to the network. What the network needs to predict is the added noise.
注意力机制是Transformer的灵魂所在。它不再依赖序列顺序,而是让模型在任意时刻参考上下文中所有位置的词语。
parser.add_argument("--batch_size", type=int, default=32)
In recent years, with the rapid development of deep learning and natural language processing, large language models (LLMs) have demonstrated unprecedented potential in multilingual text understanding,...
面向 Pro 用户和全球开发者开放使用
在快速变化的金融市场中,如何用人工智能来助力投资决策正成为越来越多投资人的关注重点。利用大模型进行股票分析和新闻洞察,不仅能让我们高效获取关键数据,还能生成更具参考价值的投资建议。本文将带你一步步搭建两个实用场景:
公司的盈利能力在很大程度上受到经济周期的影响。在经济扩张期,利润大幅上升,消费支出增加;而在经济衰退期,消费者支出减少,利润骤降甚至可能出现亏损。尽管周期性行业(如商品和金融)公司的利润波动显著高于防御性行业(如公用事业和制药),但在深度衰退面前,只有少数公司能够维持稳定的盈利能力。
<!-- @@@ -->
- [Primary Market](一级市场_Primary Market.md)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$2.65 Billion and Establish Saks Global, A Technology-Powered Luxury Retail Company](https://www.neimanmarcusgroup.com/HBC,-Parent-of-Saks-Fifth-Avenue,-to-Acquire-Neiman-Marcus-Group-for-2-65-Billion...
<!-- @@@ -->
<!-- @@@ -->
$$ \begin{aligned}&\text{GDP} = \text{C} + \text{G} + \text{I} + \text{NX} \\&\textbf{其中:} \\&\text{C} = \text{消费} \\&\text{G} = \text{政府支出} \\&\text{I} = \text{投资} \\&\text{NX} = \text{净出口} \\\end{al...
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$$ \text{市盈率} = \frac{\text{每股市场价值}}{\text{每股收益}} $$
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$$ \text{债务权益比率} = \frac{\text{总负债}}{\text{总股东权益}} $$
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$0.1625 per Common Share Producing a Forward Yield of 4.42% and Announces a Special Dividend Payment of $0.15 per Common Share](https://www.unitedbancorp.com/news-market-info/press-releases/press-rele...
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$80 - $62.2) x 1,000 = $17,780]。持有短仓(卖方)的交易者将损失 17,780 美元。
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$132 Million in 11 Disruptive Technology Startups](https://www.intc.com/news-events/press-releases/detail/1074/intel-capital-invests-132-million-in-11-disruptive)."
<!-- @@@ -->
This list is compiled by TheQuantHackers. This section covers 192 fundamental concepts required for quantitative finance. Contributions are welcome. The document is divided into the following main sec...
- [Conditional Probability](条件概率_Conditional Probability.md)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$80 - $62.2) x 1,000 = $17,780]。持有短仓(卖方)的交易者将损失 17,780 美元。
<!-- @@@ -->
<!-- @@@ -->
- [Trend Trading](趋势交易_Trend Trading.md)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
$$ \begin{aligned} &ER_i = R_f + \beta_i ( ER_m - R_f ) \\ &\textbf{其中:} \\ &ER_i = \text{投资的预期回报} \\ &R_f = \text{无风险利率} \\ &\beta_i = \text{投资的Beta值} \\ &(ER_m - R_f) = \text{市场风险溢价} \\ \end{aligned...
<!-- @@@ -->
<!-- @@@ -->
$8 Billion in 2020, Including $2.5 Billion Alone from Monday’s Pop](https://www.cnbc.com/2020/02/03/telsa-shorts-down-8-billion-in-2020-including-2point5-billion-on-monday.html).”
What is Long Term Capital Management (LTCM)?
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- [Expected Value](期望值_Expected Value.md)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
> 管理规模:74亿美元
This document, carefully curated by TheQuantHackers, covers detailed information on 50 proprietary trading firms, market makers, hedge funds, and asset management institutions, including their foundin...
Once, the gold standard in finance was Goldman Sachs. Later, it was the hedge funds founded by individually brilliant managers like Paul Marshall (the UK hedge fund manager now trying to become a medi...
本期推文带来对买方顶级大佬Giuseppe Paleologo和卖方大佬Nick Baltas的人物专访,围绕三个Multi展开, Multi-Asset, Multi-Strategy Portfolios, Multi-Manager Hedge Funds
<!-- @@@ -->
If I told you there is a hedge fund that has maintained an astonishing average annual return of 66% for decades, you might not believe it. That fund is Renaissance Technologies, founded by the legenda...
The Medallion Fund, an exclusive employee-only fund set up by Renaissance Technologies for its quantitative analysts, is renowned as the most mysterious black box in finance.
<!-- @@@ -->
- Hedge Funds
<!-- @@@ -->
In the global capital markets, large international investment banks ("foreign sell-side firms") command attention with their comprehensive financial services and cross-border presence. They are typica...
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
This article takes you inside the technical internship program at Jane Street through the firsthand experiences of three interns who successfully converted to full-time employees.
In an era of high-frequency trading, robo-advisors, and AI-driven hedge funds, quantitative analysts (Quants) have increasingly become the "unsung heroes" of finance. From interest rate models at trad...
When discussing career progression in hedge funds, the "fraternity-style hierarchy" commonly used elsewhere does not quite apply. Unlike investment banking or private equity, career paths in hedge fun...
The quantitative finance industry has seen vigorous development in recent years. From high-frequency trading to machine learning-driven predictive models, technological advancements have driven demand...
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
The following are advanced books recommended for readers with a certain foundation:
<!-- @@@ -->
<img src="../images/ml-trading.jpg" alt="Machine Learning and Quantitative Trading" width="200"/>
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
The following are recommended introductory books for beginners in quantitative finance:
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
The following are programming-related books recommended for quantitative finance practitioners:
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- Authors: Álvaro Cartea, Sebastian Jaimungal, José Penalva
<!-- @@@ -->
- Author: Robert L. Kissell
- Author: Cris Doloc
- Authors: Shihao Gu, Bryan Kelly, Dacheng Xiu
- Author: Niels Pedersen
<!-- @@@ -->
- Author: Marcos M. López de Prado
<!-- @@@ -->
- Author: Stefan Nagel
- Authors: Matthew F. Dixon, Igor Halperin, Paul Bilokon
- Author: Marcos López de Prado
- Author: Belal E. Baaquie
- Author: Robert Carver
- Author: Alexander Denev, Saeed Amen
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- Authors: Jack D. Schwager, Mark Etzkorn
<!-- @@@ -->
- Authors: Richard C. Grinold, Ronald N. Kahn
<!-- @@@ -->
- Author: Ernie Chan (陈佳平)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- Authors: Gérard Cornuéjols, Javier Peña, Reha Tütüncü
- Authors: Richard A. DeFusco, Dennis W. McLeavey, Jerald E. Pinto, David E. Runkle
<!-- @@@ -->
- Author: Richard Tortoriello
- Author: Ernest P. Chan
<!-- @@@ -->
<!-- @@@ -->
- Author: Euan Sinclair
- Author: John H. Cochrane
- Authors: Ishikawa, Liu Yangyi, Lian Xiangbin
<!-- @@@ -->
<!-- @@@ -->
- Author: Paul P. Wilmott
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- Author: Ali Hirsa
<!-- @@@ -->
- Author: Dan Stefanica
<!-- @@@ -->
- Author: Darrell Duffie
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- Author: Maureen O'Hara
<!-- @@@ -->
- Authors: Ioannis Karatzas, Steven E. Shreve
- Author: Paul Wilmott
<!-- @@@ -->
<!-- @@@ -->
- Authors: Alexander J. McNeil, Rüdiger Frey, Paul Embrechts
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
- [AI for Finance](book/AI for Finance/index.md) - 金融AI应用
<!-- @@@ -->
<!-- @@@ -->
This list is compiled by TheQuantHackers. We have collected a resource list on systematic trading (quantitative trading) strategies, including papers, software, books, and articles to help you find, d...
This list is compiled by TheQuantHackers. A meticulously curated collection of outstanding quantitative finance libraries, packages, and resources. For learning and communication purposes only. Copyri...
本列表由[TheQuantHackers社区](https://llmquant.com/)整理, 只供学习交流使用, 版权归原作者所有。
- Cointegration
- Trend definition
- Summary
In financial risk management, Extreme Value Theory (EVT) is an essential tool for analyzing and modeling the tail behavior of data distributions. Particularly in financial markets, extreme market move...
2. 发送订单请求
In the world of investing and wealth management, there is a frequently quoted adage "There is no such thing as a free lunch." In other words, every return conceals underlying risk, a fact all too cl...
<!-- @@@ -->
In the investment world, the "perfect portfolio" is almost a myth. Many beginners and veterans alike search tirelessly for that magical combination that "maximizes returns while minimizing risk." Unfo...
You may find it hard to believe that an equation rooted in physics and mathematics could spawn multiple financial industry chains with a combined scale of trillions of dollars. Yet this is precisely t...
<!-- @@@ -->
> 关键观点:
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
Welcome to this introductory article on the Sharpe Ratio. This piece will help you systematically and deeply understand the important role of the Sharpe Ratio in quantitative investing and portfolio m...
- [Summary](summary)
<!-- @@@ -->
<!-- @@@ -->
<!-- @@@ -->
To meet the learning needs of our readers and incorporate the latest industry insights, TheQuantHackers presents the Quantitative Trader's Guide series. This article will take you from zero to underst...
Implement and backtest a mean-reversion strategy using the Ornstein-Uhlenbeck process with OLS estimation, half-life calculation, and vectorized signal generation.
Build a sequence-gap-aware, fully asynchronous Level 2 order book consumer for Alpaca Markets. Covers microprice, order book imbalance, reconnection handling, and a realistic latency budget.
Compute defensible 95% confidence intervals for the annualised Sharpe ratio using a stationary block bootstrap. Covers skewness, kurtosis, block-size selection, and the deflated Sharpe ratio correction for multiple testing.
Build a volume-weighted Order Book Imbalance (OBI) signal from L2 market data with adaptive z-score thresholds, decay-weighted multi-level aggregation, microprice anchoring, and a realistic event-driven backtest framework with execution lag simulation.
Design a production-grade event-driven algorithmic trading engine with asyncio event loop, ZeroMQ process separation, heartbeat watchdog, and type-safe event hierarchy. Covers startup ordering, queue backpressure, and clock-sync edge cases.
Build a synchronous pre-trade risk gate in Go with position caps, order rate limiting, notional limits, drawdown circuit breakers, and square-root market impact estimation. Covers clock drift, flapping protection, and race-condition-safe validation.
Detect and eliminate lookahead bias in quantitative backtests with automated linting, purged walk-forward cross-validation, and realistic execution assumptions including slippage, fill probability, and timestamp jitter.
End-to-end latency benchmarks for the tick-to-order hot path across C++, Go (tuned GOGC), Rust, Java (ZGC), and Python (uvloop). Includes methodology, allocation profiles, and a decision framework for when to optimise.
A six-step production deployment path for algorithmic trading strategies: vectorised research, event-driven backtest, realistic execution, paper trading, kill switch deployment, and slow scaling. Includes monitoring, alerting, and edge case handling.
Connect to Interactive Brokers from Python for algorithmic trading. Covers ib_insync connection, Level 2 market data, order placement (LMT, MKT, PEG MID), account tracking, and production resilience with automatic reconnection.
Build a production-grade crypto trading bot in Python for Binance. Covers WebSocket order book streaming, REST authentication (HMAC-SHA256), spread mean-reversion strategy, order reconciliation, and rate-limit handling.
Build a pairs trading strategy with cointegration testing (Engle-Granger, ADF), hedge-ratio estimation, z-score signals, half-life exits, and a walk-forward backtest in Python.
Implement walk-forward optimization in Python: anchored vs rolling windows, re-fit cadence, embargo, stitched out-of-sample equity, and the per-window diagnostics that expose overfit strategies.
The CFTC Commitments of Traders report explained: commercials vs non-commercials, net positioning, extremes vs history, weekly change momentum, and the three mistakes retail traders make.
A five-gate anti-overfitting checklist: trial accounting, deflated Sharpe, purged CV, walk-forward, and point-in-time discipline — with Python code for each gate.