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?

Installation
------------

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

pip install tesouro-direto (not yet)

Configuration
-------------

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.
smtp:
server: "mail.mydomain.com"
port: 587
username: "user"
password: "secret"

from: "me@mydomain.com"
to: "you@yourdomain.com"

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

.. code-block:: javascript

{
"alerts":[{
"bound_name":"NTNB Princ",
"expiration":"2035", ##not used yet
"yield":"7.5"
},
{
"bound_name":"LTN",
"expiration":"2018", ##not used yet
"yield":"16.6"
}]
}


* Create DB

Usage
-------------

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 cron.sh 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.

Source Distribution

tesouro-investor-0.1.0a3.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file tesouro-investor-0.1.0a3.tar.gz.

File metadata

File hashes

Hashes for tesouro-investor-0.1.0a3.tar.gz
Algorithm Hash digest
SHA256 3ded0c9fb311d3896a77ca7f7f237a0bada3217741f4f01a07303ea1e3fe183f
MD5 297911cce8b9ec37ca35f19458a7436b
BLAKE2b-256 e5e5781eef21ebaf976c0d2e4a43ce5d9634c0dbf7b0f48773bf018abe0834d5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page