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.0.tar.gz (3.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: nse_fno_expiry_calculator-1.0.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.10

File hashes

Hashes for nse_fno_expiry_calculator-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7e5df3833af2bbb98712c2f2443bced841d6d09f54960b6420d70940844efd2d
MD5 5f85682b4a7f9fa1a78b4176ec959ca1
BLAKE2b-256 ff59ccf28d8f971ed5d155d1bfc39ca7e0d3d1bb81d2147b2756bab1a9512aac

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