Skip to content
المشاريع

حول

تسعير الخيارات وتحليلات المشتقات باستخدام Python: Black-Scholes، ونموذج ذي الحدين، ومحاكاة Monte Carlo، ومقاييس Greeks، والاستراتيجيات.

الأعمال والمالية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
+١
خلال 15 يومًا
+١
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

PyPI version PyPi Status Github Stars

Quantsbin

Open source library for finance.

Revival in progress (2026). Quantsbin is being modernised: a 1.1 release with bug fixes and modern packaging comes first, followed by Quantsbin 2.0 (typed, differentiable pricing with Monte Carlo, volatility and fixed income modules). Follow progress in issues and pull requests.

Quantsbin 1.0.3, which started as a weekend project is currently in its initial phase and incorporates tools for pricing and plotting of vanilla option prices, greeks and various other analysis around them. We are working on optimising calculations and expanding the scope of library in multiple directions for future releases.

Quantsbin 1.0.3 includes

  1. Option payoff, premium and greeks calculation for vanilla options on Equity, FX, Commodity and Futures.
  2. Capability to calculate greeks numerically for all models and also analytically for Black Scholes Model.
  3. Price vanilla options with European expiry using BSM, Binomial tree and MonteCarlo with option to incorporate continuous compounded dividend yield for Equity options, cost and convenience yield for Commodity options and local and foreign risk-free rate in case of FX options. It also allows option to give discrete dividends in cased of Equity options.
  4. Price vanilla options with American expiry using Binomial tree and MonteCarlo(Longstaff Schwartz) method. There is option to provide discrete dividends for Equity options for both the models.
  5. Implied volatility calculation under BSM framework model.
  6. Option to create user defined or standard strategies using multiple single underlying options and directly generate and plot valuation and greeks for these strategies.

License

MIT License

Installation

Requires Python 3.12 or newer.

pip install quantsbin

Dependencies (installed automatically): numpy >= 1.26, scipy >= 1.11.2, pandas >= 2.1.1, matplotlib >= 3.8.

Install from source with uv:

git clone https://github.com/JasGujral/Quantsbin.git
cd Quantsbin
uv sync

Examples

See examples/quickstart.py for pricing, greeks, strategies and plotting.

Contributing

See CONTRIBUTING.md. Changes are tracked in CHANGELOG.md.

Note

Full documentation is being rebuilt as part of the 2.0 work.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…