PYield 0.35.4__tar.gz → 0.35.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyield-0.35.4 → pyield-0.35.6}/PKG-INFO +1 -1
- pyield-0.35.6/pyield/__about__.py +1 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/auction.py +3 -1
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/trades_intraday.py +2 -2
- pyield-0.35.4/pyield/__about__.py +0 -1
- {pyield-0.35.4 → pyield-0.35.6}/.gitignore +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/LICENSE +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/README.md +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/ettj.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/ima.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/imaq.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/ipca.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/anbima/tpf.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/di1.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/di_over.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/futures/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/futures/common.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/futures/historical.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/futures/intraday.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/b3/futures/xml.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/bcdata.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/ptax.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/repo.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/trades_monthly.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bc/vna.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/bday.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/conftest.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/data_cache.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/date_converter.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/fwd.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/holidays/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/holidays/br_holidays_new.txt +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/holidays/br_holidays_old.txt +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/holidays/brholidays.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/ibge/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/ibge/ipca.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/interpolator.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/py.typed +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/retry.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/__init__.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/auction.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/lft.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/ltn.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/ntnb.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/ntnc.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/ntnf.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyield/tn/tools.py +0 -0
- {pyield-0.35.4 → pyield-0.35.6}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.35.6"
|
|
@@ -348,7 +348,9 @@ def auctions(
|
|
|
348
348
|
|
|
349
349
|
# Mapeamento do auction_type para o valor esperado pela API
|
|
350
350
|
auction_type_mapping = {"sell": "Venda", "buy": "Compra"}
|
|
351
|
-
|
|
351
|
+
if auction_type:
|
|
352
|
+
auction_type = auction_type.lower()
|
|
353
|
+
auction_type_api_value = auction_type_mapping.get(auction_type)
|
|
352
354
|
# Adiciona o parâmetro tipoOferta à URL se auction_type for fornecido
|
|
353
355
|
if auction_type_api_value:
|
|
354
356
|
url += f"&@tipoOferta='{auction_type_api_value}'"
|
|
@@ -32,7 +32,7 @@ def _fetch_csv_from_url() -> str:
|
|
|
32
32
|
FILE_URL = f"https://www3.bcb.gov.br/novoselic/rest/precosNegociacao/pub/download/estatisticas/{formatted_date}"
|
|
33
33
|
r = requests.get(FILE_URL, timeout=30) # API usually takes 10s to respond
|
|
34
34
|
r.raise_for_status()
|
|
35
|
-
r.encoding = "
|
|
35
|
+
r.encoding = "utf-8-sig" # Handle BOM for UTF-8
|
|
36
36
|
return r.text
|
|
37
37
|
|
|
38
38
|
|
|
@@ -91,7 +91,7 @@ def _process_df(df: pd.DataFrame) -> pd.DataFrame:
|
|
|
91
91
|
df = df.rename(columns=col_names_by_index)
|
|
92
92
|
|
|
93
93
|
df["BondType"] = df["BondType"].str.strip()
|
|
94
|
-
df["MaturityDate"] = pd.to_datetime(df["MaturityDate"], format="%d
|
|
94
|
+
df["MaturityDate"] = pd.to_datetime(df["MaturityDate"], format="%d/%m/%Y")
|
|
95
95
|
today = dt.datetime.now(BZ_TIMEZONE).date()
|
|
96
96
|
df["SettlementDate"] = pd.Timestamp(today)
|
|
97
97
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.35.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|