luxorasap 0.1.7__py3-none-any.whl → 0.1.9__py3-none-any.whl
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/__init__.py +1 -1
- luxorasap/btgapi/auth.py +1 -1
- luxorasap/btgapi/reports.py +1 -1
- luxorasap/btgapi/trades.py +2 -2
- luxorasap/ingest/cloud/__init__.py +1 -2
- {luxorasap-0.1.7.dist-info → luxorasap-0.1.9.dist-info}/METADATA +1 -1
- {luxorasap-0.1.7.dist-info → luxorasap-0.1.9.dist-info}/RECORD +10 -10
- {luxorasap-0.1.7.dist-info → luxorasap-0.1.9.dist-info}/WHEEL +0 -0
- {luxorasap-0.1.7.dist-info → luxorasap-0.1.9.dist-info}/entry_points.txt +0 -0
- {luxorasap-0.1.7.dist-info → luxorasap-0.1.9.dist-info}/top_level.txt +0 -0
luxorasap/__init__.py
CHANGED
|
@@ -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.9"
|
|
17
17
|
|
|
18
18
|
# ─── Lazy loader ─────────────────────────────────────────────────
|
|
19
19
|
def __getattr__(name: str) -> ModuleType:
|
luxorasap/btgapi/auth.py
CHANGED
|
@@ -53,6 +53,6 @@ def get_access_token(*, client_id=None, client_secret=None, test_env: bool = Tru
|
|
|
53
53
|
if resp.ok:
|
|
54
54
|
token = resp.json().get("access_token")
|
|
55
55
|
len_token = len(token) if token else None
|
|
56
|
-
logger.
|
|
56
|
+
logger.info(f"Token BTG obtido (len={len_token})")
|
|
57
57
|
return token or ""
|
|
58
58
|
raise BTGApiError(f"Falha ao autenticar: HTTP {resp.status_code} – {resp.text}")
|
luxorasap/btgapi/reports.py
CHANGED
|
@@ -142,7 +142,7 @@ def await_report_ticket_result(token: str, ticket: str, *, attempts: int = 10,
|
|
|
142
142
|
return check_report_ticket(token, ticket)
|
|
143
143
|
except BTGApiError as err:
|
|
144
144
|
if "Processando" in str(err):
|
|
145
|
-
logger.
|
|
145
|
+
logger.info(f"Ticket {ticket} pendente ({i+1}/{attempts})")
|
|
146
146
|
time.sleep(interval)
|
|
147
147
|
continue
|
|
148
148
|
raise
|
luxorasap/btgapi/trades.py
CHANGED
|
@@ -83,7 +83,7 @@ def submit_offshore_equity_trades(token: str, trades: list[dict], *, test_env: b
|
|
|
83
83
|
)
|
|
84
84
|
if r.status_code in (200, 201):
|
|
85
85
|
ticket = r.json()["ticket"]
|
|
86
|
-
logger.
|
|
86
|
+
logger.info("Trades submetidos, ticket %s", ticket)
|
|
87
87
|
return ticket
|
|
88
88
|
raise BTGApiError(f"Falha no submit: {r.status_code} – {r.text}")
|
|
89
89
|
|
|
@@ -163,7 +163,7 @@ def await_transaction_ticket_result( token: str, ticket_id: str, *, attempts: in
|
|
|
163
163
|
|
|
164
164
|
# ambiente de produção pode ficar em pendente; aguardamos
|
|
165
165
|
if ticket_status == "pendente":
|
|
166
|
-
logger.
|
|
166
|
+
logger.info("Ticket %s pendente (%d/%d)", ticket_id, i + 1, attempts)
|
|
167
167
|
time.sleep(interval)
|
|
168
168
|
continue
|
|
169
169
|
|
|
@@ -47,7 +47,6 @@ def incremental_load(
|
|
|
47
47
|
index_name: str = "index",
|
|
48
48
|
normalize_columns: bool = True,
|
|
49
49
|
directory: str = "enriched/parquet",
|
|
50
|
-
override = False
|
|
51
50
|
):
|
|
52
51
|
"""Concatena novos dados aos existentes, cortando duplicados pela data."""
|
|
53
52
|
df["Last_Updated"] = dt.datetime.now()
|
|
@@ -65,5 +64,5 @@ def incremental_load(
|
|
|
65
64
|
index_name=index_name,
|
|
66
65
|
normalize_columns=normalize_columns,
|
|
67
66
|
directory=directory,
|
|
68
|
-
override=
|
|
67
|
+
override=True
|
|
69
68
|
)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
luxorasap/__init__.py,sha256=
|
|
1
|
+
luxorasap/__init__.py,sha256=gChf0kJo8keSBj-o1REIFsc97DXoE3_-ynR8tzb3Pk0,1355
|
|
2
2
|
luxorasap/btgapi/__init__.py,sha256=QUlfb5oiBY6K1Q5x4-a-x2wECe1At5wc2962I5odOJk,620
|
|
3
|
-
luxorasap/btgapi/auth.py,sha256=
|
|
4
|
-
luxorasap/btgapi/reports.py,sha256=
|
|
5
|
-
luxorasap/btgapi/trades.py,sha256=
|
|
3
|
+
luxorasap/btgapi/auth.py,sha256=PvyCtbEyBO2B1CIeAlNXWugKW1OgiKfPcVzS6K5FBnQ,1872
|
|
4
|
+
luxorasap/btgapi/reports.py,sha256=ZVEMLoJPXc0r3XjPJPMsKQN0zZd1Npd7umNpAj1bncs,8040
|
|
5
|
+
luxorasap/btgapi/trades.py,sha256=956HZ9BvN9C_VQvKTyBLN0x6ZygwVqBZN11F7OnNbDI,5985
|
|
6
6
|
luxorasap/datareader/__init__.py,sha256=41RAvbrQ4R6oj67S32CrKqolx0CJ2W8cbOF6g5Cqm2g,120
|
|
7
7
|
luxorasap/datareader/core.py,sha256=LpXe5g4lZpfEqaz_gjjHizVA-vPEjBi5yJKg_7K0Nkw,153205
|
|
8
8
|
luxorasap/ingest/__init__.py,sha256=XhxDTN2ar-u6UCPhnxNU_to-nWiit-SpQ6cA_N9eMSs,795
|
|
9
|
-
luxorasap/ingest/cloud/__init__.py,sha256=
|
|
9
|
+
luxorasap/ingest/cloud/__init__.py,sha256=Hm-43YkjRhu3UiFVt1Zx7DmQuNJnK2GVWfCx1T3gKNc,2052
|
|
10
10
|
luxorasap/ingest/legacy_local/dataloader.py,sha256=zKPhuiBSFwkuWN6d8g2s60KkbVk1R_1cGMCtQM9j-0c,11908
|
|
11
11
|
luxorasap/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
luxorasap/utils/dataframe/__init__.py,sha256=dU_RwTTOi6F3mlhM-0MYWM_qexBN9BmmKc_yrDE1Lwc,207
|
|
@@ -14,8 +14,8 @@ luxorasap/utils/dataframe/reader.py,sha256=Vzjdw-AeS1lnWEHQ8RZNh0kK93NWTp0NWVi_B
|
|
|
14
14
|
luxorasap/utils/dataframe/transforms.py,sha256=Bm_cv9L9923QIXH82Fa_M4pM94f2AJRPu62Vv_i7tto,1684
|
|
15
15
|
luxorasap/utils/storage/__init__.py,sha256=U3XRq94yzRp3kgBSUcRzs2tQgJ4o8h8a1ZzwiscA5XM,67
|
|
16
16
|
luxorasap/utils/storage/blob.py,sha256=pcEixGxwXM9y5iPPpkX__ySWq0milghJGketYZlRL-0,3171
|
|
17
|
-
luxorasap-0.1.
|
|
18
|
-
luxorasap-0.1.
|
|
19
|
-
luxorasap-0.1.
|
|
20
|
-
luxorasap-0.1.
|
|
21
|
-
luxorasap-0.1.
|
|
17
|
+
luxorasap-0.1.9.dist-info/METADATA,sha256=_RAaTxzxjeqxi3RzXnaK526ih1HAkuv5W-VnUave5Kk,3803
|
|
18
|
+
luxorasap-0.1.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
luxorasap-0.1.9.dist-info/entry_points.txt,sha256=XFh-dOwUhlya9DmGvgookMI0ezyUJjcOvTIHDEYS44g,52
|
|
20
|
+
luxorasap-0.1.9.dist-info/top_level.txt,sha256=9YOL6bUIpzY06XFBRkUW1e4rgB32Ds91fQPGwUEjxzU,10
|
|
21
|
+
luxorasap-0.1.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|