GhosalQuant
Ghosal Fund | Quantitative Trading Team Repository
A modular Python framework for developing, backtesting, and executing quantitative trading strategies.
Documentation
- System Overview - architecture + data flow
- User Guide - getting started + quick reference
Installation
pip install ghosalquant
Optional extras: ghosalquant[alpaca] (Alpaca market data), ghosalquant[plotting] (matplotlib and plotly charts),
ghosalquant[ui] (the prototype backtest GUI, launched with ghosalquant-ui).
To work on the framework itself, install from source in editable mode:
git clone https://github.com/Ghosal-Quants/GhosalQuant.git
cd GhosalQuant
pip install -e .
Quick Start
- Write a strategy — subclass
Strategy, implementon_market_data(bar) -> Signal | None - Create a config — see
examples/config.yaml - Run a backtest:
from ghosalquant.backtester.backtester_base import Backtester
from my_strategy import MyStrategy
kpms = Backtester.from_config(strategy=MyStrategy(), config_path="config.yaml").run()
print(kpms)
See examples/ for more examples for: DataFrame backtesting, strategy comparison, IBKR paper trading, and live data.
Project Structure
src/ghosalquant/
core/ # Bar, Signal, Order, Fill, Trade types
execution/ # Strategy base, ExecutionSystem, signal sinks, benchmarks
data_layer/ # DataSource implementations (yfinance, Polygon, DataFrame, list)
backtester/ # Backtester, DataFrameBacktester
risk/ # RiskManager, rules (MaxOpenPositions, ConfidenceSizer)
portfolio/ # Portfolio protocol, BasicPortfolio
brokerage/ # Broker base, SimBroker, IBKRBroker
util/ # Config, visualisation, helpers
backtest_ui/ # Prototype GUI (the [ui] extra)
examples/ # Ready-to-run scripts and sample config
Tom's Notes
What are we actually trying to do?
- Find ideas for interesting strategies for a given asset class
- Implement the mathematical theory algorithmically
- Provide quantitative evidence that they work, over a period of time
- Execute the orders
Some existing open source frameworks
Metadata
Release files for ghosalquant 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ghosalquant-0.1.0.tar.gz | 211.6 kB | With provenance | Details for ghosalquant-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghosalquant-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for ghosalquant-0.1.0-py3-none-any.whl |
Total release size: 388.3 kB
Release files / ghosalquant-0.1.0.tar.gz
| Download URL | ghosalquant-0.1.0.tar.gz |
|---|---|
| Size | 211.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fa638ab8ba205b5eb490d26f282f486a93329292f4dd3f3ea074d239ee2c13a
|
|
BLAKE2b-256 checksum How to use checksums |
63c454e7566dd3da6cb5da43711bb5b51cd010e9ead457cfcfaa37721d327af2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logRelease files / ghosalquant-0.1.0-py3-none-any.whl
| Download URL | ghosalquant-0.1.0-py3-none-any.whl |
|---|---|
| Size | 176.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2e9f5e329ee95c880d3bb93b386f23cdd8c5baff00c1d8ed1866d64bb9ee938
|
|
BLAKE2b-256 checksum How to use checksums |
f1ec0048fb923fb9a8844896ca12b8dcf8734f4e933a36bb2a4b61433dea3516
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logSecurity for ghosalquant 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ghosalquant-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.