wilsonfreitas / brasa

Extract Brazilian financial data from a wide range of Internet sources: B3, ANBIMA, CVM
MIT License
16 stars 2 forks source link

Fix property verify_ssl on some templates #14

Open leonlbc opened 1 month ago

leonlbc commented 1 month ago

The downloaders functions use a verify_ssl parameter that could be loaded from the templates. Instead, in some templates .yaml files, there is a misspeling that was causing a bug to me due to the SSL of some B3 endpoints being flagged as invalid.

class B3FilesURLDownloader(DatetimeDownloader):
    def __init__(self, url, verify_ssl, **kwargs):
        super().__init__(url, verify_ssl, **kwargs)

Following are the affected files:

templates/TaxasReferenciais.yaml

templates/td-historical-prices.yaml

templates/b3-cotahist-daily.yaml

templates/b3-cotahist-yearly.yaml

templates/b3-cotahist-monthly.yaml

templates/b3-futures-settlement-prices.yaml

Changing verifyssl to verify_ssl worked

wilsonfreitas commented 1 month ago

Hi @leonlbc,

I'm very sorry for not getting back to you sooner. The code is outdated, I'm working on my computer and this issue has already been solved. Many thanks for your suggestions and for being an early adopter.