luxorasap 0.1.12__tar.gz → 0.1.13__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.
- {luxorasap-0.1.12 → luxorasap-0.1.13}/PKG-INFO +1 -1
- {luxorasap-0.1.12 → luxorasap-0.1.13}/pyproject.toml +2 -2
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/__init__.py +1 -1
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/datareader/core.py +3 -3
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/PKG-INFO +1 -1
- {luxorasap-0.1.12 → luxorasap-0.1.13}/README.md +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/setup.cfg +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/btgapi/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/btgapi/auth.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/btgapi/reports.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/btgapi/trades.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/datareader/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/ingest/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/ingest/cloud/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/ingest/legacy_local/dataloader.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/dataframe/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/dataframe/reader.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/dataframe/transforms.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/storage/__init__.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap/utils/storage/blob.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/SOURCES.txt +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/dependency_links.txt +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/entry_points.txt +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/requires.txt +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/src/luxorasap.egg-info/top_level.txt +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_btgapi_auth.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_btgapi_reports.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_btgapi_trades.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_datareader.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_ingest_cloud.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_ingest_legacy_local.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_utils_dataframe.py +0 -0
- {luxorasap-0.1.12 → luxorasap-0.1.13}/tests/test_utils_storage.py +0 -0
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
#############################
|
|
11
11
|
[project]
|
|
12
12
|
name = "luxorasap"
|
|
13
|
-
version = "0.1.
|
|
13
|
+
version = "0.1.13"
|
|
14
14
|
description = "Toolbox da Luxor para ingestão, análise e automação de dados financeiros."
|
|
15
15
|
readme = "README.md"
|
|
16
16
|
requires-python = ">=3.9"
|
|
@@ -78,7 +78,7 @@ exclude = ["tests*"]
|
|
|
78
78
|
# bumpver (sem-ver)
|
|
79
79
|
#############################
|
|
80
80
|
[tool.bumpver]
|
|
81
|
-
current_version = "0.1.
|
|
81
|
+
current_version = "0.1.13"
|
|
82
82
|
version_pattern = "MAJOR.MINOR.PATCH"
|
|
83
83
|
|
|
84
84
|
# regex explícito – obrigatório no bumpver 2024+
|
|
@@ -13,7 +13,7 @@ from types import ModuleType
|
|
|
13
13
|
try:
|
|
14
14
|
__version__: str = metadata.version(__name__)
|
|
15
15
|
except metadata.PackageNotFoundError: # editable install
|
|
16
|
-
__version__ = "0.1.
|
|
16
|
+
__version__ = "0.1.13"
|
|
17
17
|
|
|
18
18
|
# ─── Lazy loader ─────────────────────────────────────────────────
|
|
19
19
|
def __getattr__(name: str) -> ModuleType:
|
|
@@ -1832,14 +1832,14 @@ class LuxorQuery:
|
|
|
1832
1832
|
# Para saber a moeda do caixa retornado, precisamos saber a moeda do fundo
|
|
1833
1833
|
fund_key = fund.replace('_', ' ')
|
|
1834
1834
|
fund_location = self.get_table("funds").query("Short_Name == @fund_key")["Country"].squeeze()
|
|
1835
|
-
currency_location = "us" if currency == "usd" else "
|
|
1835
|
+
currency_location = "us" if currency == "usd" else "bz"
|
|
1836
1836
|
if fund_location != currency_location:
|
|
1837
1837
|
usdbrl = self.get_prices(usdbrl_ticker, previous_date=cash["Date"].min(), recent_date=cash["Date"].max(),)
|
|
1838
1838
|
usdbrl = self.usdbrl_clean_coupon_fix(usdbrl)
|
|
1839
1839
|
usdbrl["Date"] = usdbrl["Date"].dt.date
|
|
1840
1840
|
usdbrl = usdbrl.rename(columns={"Last_Price":"usdbrl"})
|
|
1841
1841
|
cash = cash.merge(usdbrl[["Date", "usdbrl"]], on="Date", how="left")
|
|
1842
|
-
if fund_location == "
|
|
1842
|
+
if fund_location == "bz":
|
|
1843
1843
|
cash["Market_Value"] = cash["Market_Value"] / cash["usdbrl"]
|
|
1844
1844
|
else:
|
|
1845
1845
|
cash["Market_Value"] = cash["Market_Value"] * cash["usdbrl"]
|
|
@@ -1880,7 +1880,7 @@ class LuxorQuery:
|
|
|
1880
1880
|
)
|
|
1881
1881
|
cash["Location"] = 'us'
|
|
1882
1882
|
cash["Location"] = np.where(cash["Group"] == "caixa_us",
|
|
1883
|
-
'us', '
|
|
1883
|
+
'us', 'bz'
|
|
1884
1884
|
)
|
|
1885
1885
|
cash["Close_Price"] = np.where((cash["Market_Value"] < 0) & (cash["Group"] == "caixa_us") ,
|
|
1886
1886
|
cash["us_margin_cost"], cash["Close_Price"]
|
|
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
|