HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
quantopian
pyfolio
Jupyter Notebook2015–2024
quantopian / pyfolio

pyfolio

Portfolio and risk analytics in Python

2Distinct people
4Mentions
0Explicit recommenders
6.4KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Portfolio and risk analytics in Python

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 12:54:37 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year4 dated mentions

Observed mentions: 2015-08-24 15:52:05 UTC to 2024-01-08 05:11:09 UTC.

012015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments20152016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20192020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC110
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC000
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC101
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC000
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC000
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC101

What Hacker News says

4 sources
The S&P500 is a backtesting reference benchmark. You can compare portfolio performance through drawdown periods with backtesting tools. Macroeconomic drawdowns are good times to have cash for acquisitions; instead of free government cheese. "Tear Sheets: Definition and Examples in Finance, Vs. Prospectus" https://www.investopedia.com/terms/t/tearsheets.asp : > While tear sheets date back to the old days when stockbrokers would rip individual pages out of the S&P summary book and send them to current or potential clients, most information is extracted online today. Therefore, any concise representation of a company's business fundamentals could be considered a tear sheet. From https://news.ycombinator.com/item?id=24428206#24429801 : > pyfolio.tears.create_interesting_times_tear_sheet measures algorithmic trading algorithm performance duri
Read the rest
ng "stress events" https://github.com/quantopian/pyfolio/blob/4b901f6d73aa02ceb... : >> Generate a number of returns plots around interesting points in time, like [...] From https://news.ycombinator.com/item?id=19111911 : > pyfolio/examples/zipline_algo_example.ipynb: https://nbviewer.org/github/quantopian/pyfolio/blob/master/p... > "Worst Drawdown Periods" Drawdown > Trading definitions: https://en.wikipedia.org/wiki/Drawdown_(economics)#Trading_d... awesome-quant > Python > Trading & Backtesting: https://github.com/wilsonfreitas/awesome-quant#trading--back... S&P500: https://en.wikipedia.org/wiki/S%26P_500
In Buffett once bet $1M that he could beat a group of hedge funds over 10 years
Catalyst, like Quantopian, is also built on top of Zipline; but for cryptocurrencies. https://enigmampc.github.io/catalyst/example-algos.html Zipline (backtesting and live trading of algorithms with initialize(context) and handle_data(context, data) functions; with the SPY S&P 500 ETF as a benchmark) https://github.com/quantopian/zipline Pyfolio (for objectively comparing the performance of trading strategies over time) https://github.com/quantopian/pyfolio ... "Community Algorithms Migrated to Quantopian 2" https://www.quantopian.com/posts/community-algorithms-migrat... - "Reply to minimum variance w/ contrast" seems to far outperform the S&P 500.
In Ask HN: Why would anyone share trading algorithms and compare by performance?

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.