Git Product home page Git Product logo

bond-calculator's Introduction

bond-calculator

Computes bond YTM, price, duration, or convexity. Run from a Command Line Interface (CLI).

Installation

Installation is simply downloading the code from GitHub. Enter the following at a terminal prompt to install in your home directory:

$ cd
$ git clone https://github.com/shreysrins/bond-calculator.git

Dependencies

This code was developed and tested in Python 3.7. You can check your version of Python with the following terminal command:

$ python3 --version

Install all dependencies by opening a terminal and running:

$ pip3 install -r requirements.txt
  • pyfiglet >= 0.8.post1 (pip3 install pyfiglet)
  • NumPy ~= v1.19.4 (pip3 install numpy)
  • SciPy ~= v1.6.2 (pip3 install scipy)

Usage

Open a terminal and navigate to the directory in which this repository is stored. If you installed in your home directory, this is done with:

$ cd ~/bond-calculator/

The command to run the calculator is:

$ python3 bond_calc.py

All instructions and prompts are given in the terminal itself.

Updating

To check for and install updates: open a terminal, navigate to the directory in which this repository is stored, and run the git pull command. If you installed in your home directory, this is done with:

$ cd ~/bond-calculator/
$ git status
$ git pull

bond-calculator's People

Contributors

shreysrins 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.