Coder Social home page Coder Social logo

ytm-estimator's Introduction

Yield to Maturity (YTM) Estimator

Yield to Maturity (YTM) is a fundamental concept in bond investing. It's the internal rate of return earned by an investor who buys the bond today at the market price, assuming that the bond is held until maturity.

However, calculating YTM can be a bit tricky as it involves solving a complex equation. This YTM Estimator aims to simplify this process through an easy-to-use web application.

Features

  • User-friendly interface: Just input your bond parameters like price, coupon rate, face value, years to maturity and get the estimated YTM instantly.
  • Accurate estimation: We use numerical approximation methods to estimate the YTM, which provides a high level of accuracy.
  • Real-time calculation: As soon as you input the bond parameters, the YTM is calculated in real time. No need to hit 'calculate' or wait.

Usage

Just visit the running web app demo hosted here.

Project Structure

The codebase is structured as follows:

  • main.py: This is the main script where we have defined our FastAPI application and the endpoint to calculate the YTM.
  • templates/index.html: This single-page includes sections for the input parameters, the result output and a self-documenting explanation of bond parameters.

Contributing

Contributions to the YTM Estimator are welcomed. If you have a feature request, bug report, or proposal for improvement, please open an issue on our GitHub repo.

ytm-estimator's People

Contributors

fabian-rudolf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.