All Projects → lmammino → Financial

lmammino / Financial

Licence: mit
A Zero-dependency TypeScript/JavaScript financial library (based on numpy-financial) for Node.js, Deno and the browser

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Financial

Ta
Technical Analysis Library using Pandas and Numpy
Stars: ✭ 2,649 (+336.41%)
Mutual labels:  financial, numpy
Cupy
NumPy & SciPy for GPU
Stars: ✭ 5,625 (+826.69%)
Mutual labels:  numpy
Matrex
A blazing fast matrix library for Elixir/Erlang with C implementation using CBLAS.
Stars: ✭ 429 (-29.32%)
Mutual labels:  numpy
Pynamical
Pynamical is a Python package for modeling and visualizing discrete nonlinear dynamical systems, chaos, and fractals.
Stars: ✭ 458 (-24.55%)
Mutual labels:  numpy
Salib
Sensitivity Analysis Library in Python (Numpy). Contains Sobol, Morris, Fractional Factorial and FAST methods.
Stars: ✭ 436 (-28.17%)
Mutual labels:  numpy
Pandapy
PandaPy has the speed of NumPy and the usability of Pandas 10x to 50x faster (by @firmai)
Stars: ✭ 474 (-21.91%)
Mutual labels:  numpy
Pytablewriter
pytablewriter is a Python library to write a table in various formats: CSV / Elasticsearch / HTML / JavaScript / JSON / LaTeX / LDJSON / LTSV / Markdown / MediaWiki / NumPy / Excel / Pandas / Python / reStructuredText / SQLite / TOML / TSV.
Stars: ✭ 422 (-30.48%)
Mutual labels:  numpy
Pyment
Format and convert Python docstrings and generates patches
Stars: ✭ 577 (-4.94%)
Mutual labels:  numpy
Tensor Sensor
The goal of this library is to generate more helpful exception messages for numpy/pytorch matrix algebra expressions.
Stars: ✭ 532 (-12.36%)
Mutual labels:  numpy
Turbodbc
Turbodbc is a Python module to access relational databases via the Open Database Connectivity (ODBC) interface. The module complies with the Python Database API Specification 2.0.
Stars: ✭ 449 (-26.03%)
Mutual labels:  numpy
Data Science Ipython Notebooks
Data science Python notebooks: Deep learning (TensorFlow, Theano, Caffe, Keras), scikit-learn, Kaggle, big data (Spark, Hadoop MapReduce, HDFS), matplotlib, pandas, NumPy, SciPy, Python essentials, AWS, and various command lines.
Stars: ✭ 22,048 (+3532.29%)
Mutual labels:  numpy
Numpycnn
Building Convolutional Neural Networks From Scratch using NumPy
Stars: ✭ 436 (-28.17%)
Mutual labels:  numpy
Eagerpy
PyTorch, TensorFlow, JAX and NumPy — all of them natively using the same code
Stars: ✭ 520 (-14.33%)
Mutual labels:  numpy
Plotly
Plotly for Rust
Stars: ✭ 433 (-28.67%)
Mutual labels:  financial
Pytorch For Numpy Users
PyTorch for Numpy users. https://pytorch-for-numpy-users.wkentaro.com
Stars: ✭ 554 (-8.73%)
Mutual labels:  numpy
Rust Numpy
PyO3-based Rust binding of NumPy C-API
Stars: ✭ 426 (-29.82%)
Mutual labels:  numpy
Geneticalgorithmpython
Source code of PyGAD, a Python 3 library for building the genetic algorithm and training machine learning algorithms (Keras & PyTorch).
Stars: ✭ 435 (-28.34%)
Mutual labels:  numpy
Mexican Government Report
Text Mining on the 2019 Mexican Government Report, covering from extracting text from a PDF file to plotting the results.
Stars: ✭ 473 (-22.08%)
Mutual labels:  numpy
Bottleneck
Fast NumPy array functions written in C
Stars: ✭ 583 (-3.95%)
Mutual labels:  numpy
Baby Names Analysis
Data ETL & Analysis on the dataset 'Baby Names from Social Security Card Applications - National Data'.
Stars: ✭ 557 (-8.24%)
Mutual labels:  numpy

Financial

npm version CI codecov Documentation

A Zero-Dependency TypeScript / JavaScript financial utility library inspired by numpy-financial that can be used on Node.js, Deno and the browser.

It does support the same functionality offered by numpy-financial but it only supports scalar JavaScript number values (NO numpy-like array values) and it does NOT support arbitrary-precision signed decimal numbers (such as decimal.js, big.js or bignumber.js).

📖 API DOCS 📖 : financialjs.netlify.app

Example usage in a picture

Install

With npm:

npm install --save-dev financial

Or, with yarn:

yarn add financial

Example usage

import { fv } from 'financial'

fv(0.05 / 12, 10 * 12, -100, -100) // 15692.928894335748

Module formats

This library exports its functionality using different module formats.

Commonjs

const financial = require('financial') // ./index.js

// use `financial.fv`, `financial.pmt`, etc.

or, leveraging destructuring

const { fv, pmt } = require('financial') // ./index.js

// use `fv`, `pmt`, etc.

An optimized Commonjs for browsers can be imported directly from the web:

<script src="https://www.npmcdn.com/[email protected]/dist/financial.cjs.production.min.js"></script>

Note: make sure you replace the x.y.z with the correct version you want to use.

ESM (EcmaScript Modules)

Also working with Typescript

import { fv, pmt } from 'financial'

// use `fv`, `pmt`, etc.

There's no default export in the ESM implementation, so you have to explicitely import the functionality you need, one by one.

Use with Deno

Make sure you specify the version you prefer in the import URL:

import { assertEquals } from 'https://deno.land/std/testing/asserts.ts'
import * as f from 'https://deno.land/x/npm:[email protected]/src/financial.ts'

assertEquals(f.fv(0.05 / 12, 10 * 12, -100, -100), 15692.928894335755)

Implemented functions and Documentation

Click on the function name to get the full documentation for every function, or check out the full programmatic documentation at financialjs.netlify.app.

Local Development

Below is a list of commands you will probably find useful.

  • npm start or yarn start: Runs the project in development/watch mode. Your project will be rebuilt upon changes.
  • npm run build or yarn build: Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple format (CommonJS, UMD, and ES Module).
  • npm run build:docs or yarn build:docs: Builds the API documentation in the docs folder using typedoc.
  • npm test or yarn test: Runs the test watcher (Jest) in an interactive mode. it runs tests related to files changed since the last commit.
  • npm run test:watch or yarn test:watch: runs the tests in watch mode

Test with Deno

To test with Deno, run:

deno test test/deno.ts

Contributing

Everyone is very welcome to contribute to this project. You can contribute just by submitting bugs or suggesting improvements by opening an issue on GitHub.

You can also submit PRs as long as you adhere with the code standards and write tests for the proposed changes.

License

Licensed under MIT License. © Luciano Mammino.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].