Skip to main content

Support tool for Tesouro Direto investors

Project description

Tesouro Investor

This project starts as simple buy alerts but intents to evolve as a general support tool for Tesouro Direto investors.

Package 1 - Alerts: Create alerts to help you to monitor Tesouro Direto yield rates and to invest your money at the right time!

Package 2 - Market Expectations (working): What to yield curves can tell us about market expectations regarding SELIC rates?

Package 3 - Manage your Portfolio (working): How much money are you making? What are the best bonds for you to sell?


To install the tool the easiest way is to use pip::

pip install tesouro-direto (not yet)


config.yml sample with e-mail credentials:

.. code-block:: YAML

# SMTP settings for email sending. If port is not specified, the default
# value is 25. Provide the username and password if necessary.
server: ""
port: 587
username: "user"
password: "secret"

from: ""
to: ""

Set up your alerts in a alerts.json file in the following format:

.. code-block:: javascript

"bound_name":"NTNB Princ",
"expiration":"2035", ##not used yet
"expiration":"2018", ##not used yet

* Create DB


Use cli interface to trigger aler command passing as arguments the `config.yml` and `alerts.json`

tinvest alert config.yml alerts.json

Configuring Crontab (Linux)

You can configure crontab to call the program above. This way you can have a automated email at the time and periodicity that you like.

Add to crontab with bash script
* Run to include default cron

Add manually using:
* **Set up crontab:** crontab -e
* **Show crontab:** crontab -l

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tesouro-investor, version 0.1.0a3
Filename, size File type Python version Upload date Hashes
Filename, size tesouro-investor-0.1.0a3.tar.gz (7.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page