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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for nse_fno_expiry_calculator-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c08c544c9a8d704b54b63ed0eba29f37c69e25779dc492a75be5f520ebd27db8 |
|
MD5 | f6b17968b135ef019714e6d21d2e3304 |
|
BLAKE2b-256 | a7e9d4eb6091ec5edc5f01a6c7b77d4f41a83c1f3ca8bc9ecc33baacca3671d8 |