Skip to main content

Util to calculate expiry date for FNO instruments which also considers NSE holiday calendar.

Project description

Introduction to NSE-FNO-expiry-calculator

This package gives you an easy methods to calculate near and far weekly and monthly expiry dates which also considers NSE holiday calendar.

Installation

pip install nse_fno_expiry_calculator
// if you are using pipenv, then execute below
pipenv install nse_fno_expiry_calculator

Usage

There are 4 methods which reurns near and far weekly and monthly expiry dates

# print('today is '+str(pendulum.now().date()))
# print('nearest weekly exp is '+str(getNearestWeeklyExpiryDate()))
# print('next weekly exp is '+str(getNextWeeklyExpiryDate()))
# print('nearest monthly exp is '+str(getNearestMonthlyExpiryDate()))
# print('next month exp is '+str(getNextMonthlyExpiryDate()))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nse_fno_expiry_calculator-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

File details

Details for the file nse_fno_expiry_calculator-1.0.1.tar.gz.

File metadata

  • Download URL: nse_fno_expiry_calculator-1.0.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for nse_fno_expiry_calculator-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c08c544c9a8d704b54b63ed0eba29f37c69e25779dc492a75be5f520ebd27db8
MD5 f6b17968b135ef019714e6d21d2e3304
BLAKE2b-256 a7e9d4eb6091ec5edc5f01a6c7b77d4f41a83c1f3ca8bc9ecc33baacca3671d8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page