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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e5df3833af2bbb98712c2f2443bced841d6d09f54960b6420d70940844efd2d |
|
MD5 | 5f85682b4a7f9fa1a78b4176ec959ca1 |
|
BLAKE2b-256 | ff59ccf28d8f971ed5d155d1bfc39ca7e0d3d1bb81d2147b2756bab1a9512aac |