Skip to main content

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

b3futurecontracts-0.0.2.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

b3futurecontracts-0.0.2-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

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