{"id":33148197,"url":"https://github.com/attack68/book_irds3","last_synced_at":"2026-01-18T09:52:50.045Z","repository":{"id":37747202,"uuid":"484135964","full_name":"attack68/book_irds3","owner":"attack68","description":"Code repository for Pricing and Trading Interest Rate Derivatives","archived":false,"fork":false,"pushed_at":"2022-10-29T12:07:56.000Z","size":38694,"stargazers_count":104,"open_issues_count":5,"forks_count":33,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-03T23:55:41.713Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/attack68.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-21T17:00:22.000Z","updated_at":"2025-12-27T08:03:11.000Z","dependencies_parsed_at":"2023-01-19T14:17:50.891Z","dependency_job_id":null,"html_url":"https://github.com/attack68/book_irds3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/attack68/book_irds3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack68%2Fbook_irds3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack68%2Fbook_irds3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack68%2Fbook_irds3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack68%2Fbook_irds3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/attack68","download_url":"https://codeload.github.com/attack68/book_irds3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/attack68%2Fbook_irds3/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534175,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-11-15T16:00:38.347Z","updated_at":"2026-01-18T09:52:50.035Z","avatar_url":"https://github.com/attack68.png","language":"Jupyter Notebook","funding_links":[],"categories":["Reproducing Works, Training \u0026 Books"],"sub_categories":["Data Visualization"],"readme":"![Screenshot 2022-06-23 at 17 46 54](https://user-images.githubusercontent.com/24256554/175342928-f1d2af23-a5e5-436c-a8ad-a56835e99091.png)\n\nThis is the code repository for **Pricing and Trading Interest Rate Derivatives (3rd Edition)**. This repository \nis minimalist for pedagogical purposes. It does not contain documentation or code comments since all explanation \nand every step of the construction process is discussed in relevant sections of the text material. This code \nis released under a GNU Public License v3. Please review this with particular regard to sections 15 and 16 on \nwarranty and liability, of which the author offers none and assumes none respectively.\n\n### Structure of this repository\n\n1) **modules**: this folder contains the code files that are discussed and created within the text.\n2) **notebooks**: this folder contains Jupyter Notebooks that can be executed to recreate many of the examples documented in the text, often with additional aids.\n3) **files**: this folder contains files that are cited in the bibliography of the text.\n4) **previous_edition_material**: this folder contains legacy files from previous editions of the book, mostly Excel workbooks with former examples.\n5) **tests**: this folder contains test scripts to ensure the functions continue to operate correctly as development occurred. Tests should not be considered exhaustive.\n6) **requirement.txt**: this file contains the Python packages and their versions that were used in the creation of this repository.\n\n### How to use this repository\n\nThere are three ways I envisage any user will want to use this repository:\n\n1) As a **Casual Reader** who is interested in using the book's material and examples but not necessarily in the codebase itself. \n2) As a **New Learner** following along with the code creation and examples in the text.\n3) As a **Developer** taking the codebase in the repository and repurposing it entirely.\n\n### The Casual Reader\n\nThe casual reader who does not want to download or clone this repo can install the \ncode package here from PyPI into their own Python environment using `pip`:\n\n```commandline\n~$ pip install bookirds3 \n```\n\nThis is enough to execute the code examples in the book. For example the\nfirst instance, of chapter 11 can be replicated as follows\n\n```python\nfrom bookirds.curves import Curve\nfrom datetime import datetime\n\ncurve = Curve(interpolation=\"log_linear\", nodes={\n    datetime(2022, 1, 1): 1.00,\n    datetime(2022, 4, 1): 0.9975,\n    datetime(2022, 7, 1): 0.9945,\n})\nprint(curve)\n```\n\nAdditionally, the casual reader can download any of the Jupyter Notebooks\nand the `module_loader.py` file in the same directory and execute them,\nprovided the installed dependencies are installed,\n\n```commandline\n(yourpythonenv) ~$ pip install pandas matplotlib jupyterlab\n```\n\n\n\n### Developers and New Learners\n\nDevelopers and new learners should either **download** or **clone** this repo\n\n```commandline\n~$ git clone https://github.com/attack68/book_irds3.git\n```\n\n\nIt is advisable to create and activate a virtual python environment, and to install of the \nnecessary (and optional) dependencies.\n\n```commandline\nbook_irds3$ python3 -m venv venv\nbook_irds3$ . venv/bin/activate\n(venv) book_irds3$ pip install -r requirements.txt\n```\n\nAll of the example notebooks should then be executable without errors, having started\nJupyter Lab,\n\n```commandline\n(venv) book_irds3$ jupyter lab\n```\n\nFor a developer to run the test suite simply execute\n\n```commandline\n(venv) book_irds3$ pytest tests\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattack68%2Fbook_irds3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fattack68%2Fbook_irds3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fattack68%2Fbook_irds3/lists"}