Skip to main content

Package to compute and price swap

Project description

IRS Toolkit

Poetry Linting - Ruff Code style - Black

Installation

This library is published in the PyPI directory. To install, users can run pip install 'IRS_toolkit' command.

The IRS Toolkit is a Python-based project designed to provide a comprehensive solution for valuing interest rate swaps and bonds. This toolkit aims to assist Risk team in the monitoring of the Qonto's investements.

Features

  • Interest Rate Swap Valuation: The toolkit facilitates the valuation of interest rate swaps, allowing users to input various parameters and swap terms. The toolkit then calculates the present value of future cash flows and estimates the fair value of the swap. IR SWAP.

  • Basket Swap Valuation: The toolkit facilitates the valuation of Basket swaps, allowing the user to give the informations required. The toolkit then calculates Mark to Market of the Basket swap.

  • Bond Valuation: With the bond valuation module, users can evaluate the current value of bonds based on different inputs . The toolkit employs interpolation techniques to generate yield curves from provided data or market rates, enabling accurate valuation.BONDS

Getting started

You will need poetry. Here's the easiest way to install it:

  1. Install pipx
  2. Install poetry with pipx

Then you can do the following command to install the dependencies:

poetry install

Once everything is installed, you will have to spawn a shell inside the virtual environment of your project with:

poetry shell

After that, you will be able to launch the streamlit using the command:

streamlit run Swap_Pricing_interface.py

or for QLF Reco interface

streamlit run QLF_Reconciliation_interface.py
streamlit run QTF_Rec.py

Best practices

Before each push, run the following command, in order to fix formatting and linting issues:

make -i lint-fix

Dependencies management

Based on Poetry.

Basic GitHub Commands

To clone the IRS toolkit project:

git clone git@gitlab.qonto.co:risk/financial-toolkit.git

To change branch:

git checkout <Branch-Name>

To create your branch:

git checkout -b <New-Branch-Name>

To get latest branch data:

git pull

To add all your file to the git:

git add .

To commit your change to the git:

git commit -m "commit description"

To push your change to the git:

git push

Quick Overview

  • 📁 notebook_analysis

      Contains all the jupyter notebook for ad-hoc analysis, including the data_for_dashboard.ipynb notebook allowing to populate the snowflake table
    
  • 📁 connector

      Contains the python file to communicate with Snowflake SQL, Refinitiv API (still requires Refinitiv to be open) and AWS SFTP S3 to get the inventory files.
      Also contains python script that get data from refinitiv, it uses the Refinitiv_connection.py file from 📁 connector, note that refinit workspace needs to be open to get the data.
    
  • 📁 script

      Folder that contains all the backend with all the functions being called by the GUI and the notebook
    
  • 📁 streamlit

      Folder containing the streamkit GUI, use "streamlit run filename.py" to run the streamlit app
    
  • 📁 output

      Folder containing all the output generated, some output are used as input by some python file, notably the hard_inout folder which contains the IRS characteristics of each split and schedule and the Composition of each basket swap. Please note that .xlsx file are exluding in the .gitignore so the file wont be uploaded to gitlab.
    
  • 📁 airflow_dags

      Basic structure for maybe upcoming automation of data insertion with airflow
    
  • 📁 documentation

      folder containing .mdj which contains uml graph of the databse and of the project can be opened with the free software StarUML
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irs_toolkit-0.1.3.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

irs_toolkit-0.1.3-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file irs_toolkit-0.1.3.tar.gz.

File metadata

  • Download URL: irs_toolkit-0.1.3.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0

File hashes

Hashes for irs_toolkit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4181b4c7b8603fe9a36b1702a24bf55e2d390ea0384781eeb0d024d103f26130
MD5 286619097b5b55244a5c1e311ee78180
BLAKE2b-256 cb99373862ed2534d309909e6e7be4c31df26a73f6888710ad09ad7e2a1e1d2a

See more details on using hashes here.

File details

Details for the file irs_toolkit-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: irs_toolkit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Darwin/24.1.0

File hashes

Hashes for irs_toolkit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 261c93b33063766184cebb197a8f59411d92e9c95e08c5c1df8b2e4d91b412a5
MD5 6e650087202f2f633888a965359b6ab0
BLAKE2b-256 5e13ee9ee56d1293ab06078eaf7e8f3915cd85d2a5b5c2b0e4b17ebbfb5bd26c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page