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 hashes)

Uploaded Source

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