Skip to content

Andorta/LiquidityForecasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Liquidity Forecasting & Fund Allocation Platform

CI

A production-style Python project for forecasting 30-day multi-currency liquidity and generating optimal fund allocation across currencies using SARIMAX time-series models.

Built with:

  • Python
  • Pandas / NumPy
  • SARIMAX (statsmodels)
  • Streamlit (Dashboard)
  • ExcelWriter for reporting
  • PyTest (Unit Tests)
  • GitHub Actions (CI)
  • Docker (optional)

πŸš€ Project Overview

This project simulates and forecasts daily cashflows for multiple currencies (EUR, USD, JPY, BRL, INR, AUD), then optimizes capital allocation based on predicted liquidity needs.

It includes:

βœ” Forecasting

SARIMAX models generate 30-day forecasts for each currency.

βœ” Fund Allocation

Allocations computed using forecast magnitudes (probability-like weights).

βœ” Dashboard

A Streamlit interface allowing users to:

  • view historical data
  • plot future liquidity forecasts
  • export reports
  • view allocation results

βœ” Automation Outputs

Exports:

  • Historical data
  • Forecast data
  • Allocation summary

to Excel using xlsxwriter.


πŸ— Project Structure

liquidity-forecasting/ β”œβ”€β”€ liquidity_forecasting/ β”‚ β”œβ”€β”€ data.py β”‚ β”œβ”€β”€ model.py β”‚ β”œβ”€β”€ allocation.py β”‚ β”œβ”€β”€ export.py β”‚ β”œβ”€β”€ plotting.py β”‚ └── init.py β”œβ”€β”€ tests/ β”‚ β”œβ”€β”€ test_data.py β”‚ β”œβ”€β”€ test_model_and_allocation.py β”œβ”€β”€ app.py β”œβ”€β”€ main.py β”œβ”€β”€ requirements.txt └── README.md


βš™οΈ Installation

1. Clone the repository

(bash) git clone https://github.com/Andorta/LiquidityForecasting.git cd LiquidityForecasting

2. Install dependencies

(bash) python3 -m pip install -r requirements.txt


πŸ”„ Continuous Integration

GitHub Actions automatically runs:

dependency installation

test suite (pytest)

Python version matrix (3.9 & 3.11)

Workflow file: .github/workflows/ci.yml

πŸ“Œ Future Improvements

Add SQL database ingestion

Add Docker image with production-ready Streamlit app

Hyperparameter tuning for SARIMAX

Stress-testing and scenario modelling

πŸ‘€ Author

Andorta

Feel free to open issues or contribute!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages