JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 74
  • Score
    100M100P100Q73652F
  • License Apache-2.0

quantitative finance in javascript

Package Exports

  • @quantlib/ql

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@quantlib/ql) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

quantlib.js npm version Twitter Follow

get started

  1. open https://quantlib.js.org with morden web browser, like chrome, firefox, etc...

  2. select a test spec or example from top menu. spec source will be displayed on left panel, spec will be run by jasmine and test result will be displayed on right panel

install

CDN

jsdelivr

unpkg

npm

npm install @quantlib/ql

usage

this library is still at early stage, many test cases fails, it's for enthusiast only.

assumption

this project assumes user is already familiar with the c++ QuantLib

web browser

<script type="module">
    import {someclass} from 'https://cdn.jsdelivr.net/npm/@quantlib/ql@latest/ql.mjs'
    const obj=new someclass();
    obj.dosomething();
</script>

notebook

checkout https://observablehq.com/@quantlib

node.js

quantlib.js can also be run using node.js, after downloading the code to your local drive:

node --experimental-modules test.mjs

in test.mjs

import {someclass} from '@quantlib/ql'
const obj=new someclass();
obj.dosomething();

typescript

ql.d.ts can be found in the same location as ql.mjs

docs

test-suite & example

repo:

converted to javascript from the c++ quantlib test-suite & Examples

Support