An open API service indexing awesome lists of open source software.

https://github.com/pfund-software-ltd/pfund-plot

A plug-and-play plotting library designed for traders. No Learning curve. Supports real-time plots. Display in Jupyter/Marimo notebook, browser or desktop
https://github.com/pfund-software-ltd/pfund-plot

data-visualization financial-charts financial-dashboard plotting real-time-graph

Last synced: 5 months ago
JSON representation

A plug-and-play plotting library designed for traders. No Learning curve. Supports real-time plots. Display in Jupyter/Marimo notebook, browser or desktop

Awesome Lists containing this project

README

          

# PFund-Plot: Financial Charts in One Line of Code

[![Twitter Follow](https://img.shields.io/twitter/follow/pfund_ai?style=social)](https://x.com/pfund_ai)
![GitHub stars](https://img.shields.io/github/stars/PFund-Software-Ltd/pfund-plot?style=social)
[![Jupyter Notebook](https://img.shields.io/badge/jupyter-notebook-orange?logo=jupyter)](https://jupyter.org)
[![Marimo](https://marimo.io/shield.svg)](https://marimo.io)
![PyPI downloads](https://img.shields.io/pypi/dm/pfund-plot?label=downloads)
[![PyPI](https://img.shields.io/pypi/v/pfund-plot.svg)](https://pypi.org/project/pfund-plot)
![PyPI - Support Python Versions](https://img.shields.io/pypi/pyversions/pfund-plot)

> **This library is NOT ready for use, please wait for 0.1.0 release.**

## TL;DR: pfund-plot handles the plotting libraries, so traders just get charts that work

## Problem
Traders often need to quickly visualize their data without investing time in learning new tools.
For example, plotting an orderbook should be as simple as writing a single line of code.

## Solution
We created a high-level plotting library that combines the best features from existing plotting and dashboarding libraries into an easy-to-use interface.

---
pfund-plot candlestick streaming example

---

`pfund-plot` is a super high-level, out-of-the-box, domain-specific plotting library designed for traders, supporting **financial data visualization**, **dashboard creation**, and **template sharing**.

## Core Features
- [x] Multi-Display Mode: support displaying plots in a *Jupyter notebook*, *Marimo notebook*, *browser* and *desktop window*
- [x] Streaming Data: support streaming data in real-time by just setting `streaming=True`
- [x] DataFrame Agnostic: support pandas, polars, and dask
- [x] Big Data Plotting: support plotting large datasets
- [x] Financial Plots: plot financial data by just one function call, e.g. candlestick, orderbook, trades etc.
- [x] Combine multiple plots into a dashboard quickly for visualization

## Installation
```bash
pip install pfund-plot
```

## Usage
```python
import pfeed as pe
import pfund_plot as plt

feed = pe.YahooFinanceFeed()
df = feed.get_historical_data(product='AAPL_USD_STK', resolution='1d', rollback_period='1y')

fig = plt.ohlc(df, mode='browser', streaming=False)
```