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

get started
open https://quantlib.js.org with morden web browser, like chrome, firefox, etc...
select a
spec
orexample
from menu.spec
source will be displayed on left panel,spec
will be run with jasmine by your web browser, and test result will be displayed on right panel
docs
- https://quantlib.js.org/docs
- official c++ quantlib doc: https://www.quantlib.org/reference/
install
CDN
jsdelivr
- latest version: https://cdn.jsdelivr.net/npm/@quantlib/ql@latest/ql.mjs
- version
x.y.z
: https://cdn.jsdelivr.net/npm/@quantlib/ql@x.y.z/ql.mjs
unpkg
- latest version: https://unpkg.com/@quantlib/ql@latest/ql.mjs
- version
x.y.z
: https://unpkg.com/@quantlib/ql@x.y.z/ql.mjs
npm
npm install @quantlib/ql
usage
this library is still at early stage, many test cases fails, it's for enthusiast only.
A static report is updated manually monthly, so you could see the overall test pass rate.
assumption
this project assumes user
is already familiar with the c++
QuantLib
web browser
ql.mjs
is ESM format, when using in html script tag, make sure to have script type set to "module"
<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
also works in node.js
env, after installing with npm
, pass --experimental-modules
to node
to use ESM javascript file
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
import {someclass} from '@quantlib/ql'
const obj:someclass = new someclass();
obj.dosomething();
test-suite & example
repo:
converted to javascript
from the c++
quantlib test-suite & Examples
credit
- C++ QuantLib project: https://quantlib.org
- C++ QuantLib-noboost: https://github.com/haozhangphd/QuantLib-noBoost
- mathjs: https://mathjs.org
- js.org: https://github.com/js-org/js.org
Support
- Follow us on Twitter: @quantlibjs
- Facebook page: https://www.facebook.com/quantlibjs/
- Google group: https://groups.google.com/d/forum/quantlibjs/
- Group email: quantlibjs@googlegroup.com
- reddit: https://reddit/com/r/quantlibjs