Rollover date of future contracts from the B3 exchange
Project description
b3futurecontracts
B3 is a stock exchange in Sao Paulo, Brazil. This module evaluates the rollover date of some of its future contracts.
Classes
Currently this module provides two classes, B3FutureIndex
and B3FutureDollar
. The classes have two main methods, rollover_date
and current_name
; both take a date as argument and return the rollover date and the current name of the future contract as of the given date, respectively.
Sample code
import datetime as dt
from b3futurecontracts import *
today = dt.date.today()
print(today)
futureindex = B3FutureIndex(today)
print(futureindex.rollover_date(), futureindex.current_name()[0])
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
Built Distribution
Close
Hashes for b3futurecontracts-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae9b544f309d6d54898bd78894abd4a286ad31adf739473ed08280ac351babf4 |
|
MD5 | 1dfd60f468c610d02aeb7e6e516a8a3c |
|
BLAKE2b-256 | c2184bdca8c39f6bd16e4f39011e59dfd4ee80804a2e0e9c33e6031f15812130 |