luxorasap 0.1.22__py3-none-any.whl → 0.1.24__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/datareader/core.py +5 -2
- {luxorasap-0.1.22.dist-info → luxorasap-0.1.24.dist-info}/METADATA +1 -1
- {luxorasap-0.1.22.dist-info → luxorasap-0.1.24.dist-info}/RECORD +7 -7
- {luxorasap-0.1.22.dist-info → luxorasap-0.1.24.dist-info}/WHEEL +0 -0
- {luxorasap-0.1.22.dist-info → luxorasap-0.1.24.dist-info}/entry_points.txt +0 -0
- {luxorasap-0.1.22.dist-info → luxorasap-0.1.24.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.24"
|
|
17
17
|
|
|
18
18
|
# ─── Lazy loader ─────────────────────────────────────────────────
|
|
19
19
|
def __getattr__(name: str) -> ModuleType:
|
luxorasap/datareader/core.py
CHANGED
|
@@ -1966,7 +1966,7 @@ class LuxorQuery:
|
|
|
1966
1966
|
|
|
1967
1967
|
|
|
1968
1968
|
def calculate_daily_pnl(self, fund, ref_date, currency, holiday_location="all", bdays=10,
|
|
1969
|
-
group_filters=[], type_filters=[], classification_filters=[], location_filters=[], asset_filters=[],
|
|
1969
|
+
group_filters=[], type_filters=[], classification_filters=[], inner_classification_filters=[], location_filters=[], asset_filters=[],
|
|
1970
1970
|
currency_exposure_filters=[], include_cash=True, include_cash_debt=False, ticker_filters=[], annual_adm_fee=0,
|
|
1971
1971
|
ignore_small_pnl=True, usdbrl_ticker="bmfxclco curncy"): #test_op_fix=False):
|
|
1972
1972
|
""" Calcula o PnL do dia de cada ativo no fundo.
|
|
@@ -1992,6 +1992,9 @@ class LuxorQuery:
|
|
|
1992
1992
|
if len(classification_filters) > 0:
|
|
1993
1993
|
classification_filters = [x.lower() for x in classification_filters]
|
|
1994
1994
|
assets = assets.query("Luxor_Classification.isin(@classification_filters)")
|
|
1995
|
+
elif len(inner_classification_filters) > 0:
|
|
1996
|
+
inner_classification_filters = [x.lower() for x in inner_classification_filters]
|
|
1997
|
+
assets = assets.query("Inner_Classification.isin(@inner_classification_filters)")
|
|
1995
1998
|
elif len(group_filters) > 0:
|
|
1996
1999
|
group_filters = [x.lower() for x in group_filters]
|
|
1997
2000
|
assets = assets.query("Group.isin(@group_filters)")
|
|
@@ -2067,7 +2070,7 @@ class LuxorQuery:
|
|
|
2067
2070
|
#cash_debt["Open_Price"] = cash_debt["Close_Price"]
|
|
2068
2071
|
#cash_debt["Close_Price"] = cash_debt["Close_Mkt_Value"]
|
|
2069
2072
|
#dropando temp
|
|
2070
|
-
cash_debt = cash_debt.drop(columns="Temp")
|
|
2073
|
+
#cash_debt = cash_debt.drop(columns="Temp")
|
|
2071
2074
|
|
|
2072
2075
|
# Caixa virado no Brasil, vamos desconsiderar, pois na prática nao teremos.
|
|
2073
2076
|
#cash_debt = cash_debt.query("Asset_ID != 'caixa_caixa' or Location != 'bz'").copy()
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
luxorasap/__init__.py,sha256=
|
|
1
|
+
luxorasap/__init__.py,sha256=VEekXrzcacztVXmHh5gFnrx51lQr95DJBMrPV9MF0dQ,1356
|
|
2
2
|
luxorasap/btgapi/__init__.py,sha256=QUlfb5oiBY6K1Q5x4-a-x2wECe1At5wc2962I5odOJk,620
|
|
3
3
|
luxorasap/btgapi/auth.py,sha256=PvyCtbEyBO2B1CIeAlNXWugKW1OgiKfPcVzS6K5FBnQ,1872
|
|
4
4
|
luxorasap/btgapi/reports.py,sha256=ZVEMLoJPXc0r3XjPJPMsKQN0zZd1Npd7umNpAj1bncs,8040
|
|
5
5
|
luxorasap/btgapi/trades.py,sha256=956HZ9BvN9C_VQvKTyBLN0x6ZygwVqBZN11F7OnNbDI,5985
|
|
6
6
|
luxorasap/datareader/__init__.py,sha256=41RAvbrQ4R6oj67S32CrKqolx0CJ2W8cbOF6g5Cqm2g,120
|
|
7
|
-
luxorasap/datareader/core.py,sha256=
|
|
7
|
+
luxorasap/datareader/core.py,sha256=NOADUV78Y-9CmtuKvYFxbaAmxYjVr7IRbcI6xVLiPuY,155805
|
|
8
8
|
luxorasap/ingest/__init__.py,sha256=XhxDTN2ar-u6UCPhnxNU_to-nWiit-SpQ6cA_N9eMSs,795
|
|
9
9
|
luxorasap/ingest/cloud/__init__.py,sha256=azo4zLS-kmV2ZZjePFB4CsibL4obbzHChC-Rn3Jp2Bc,2168
|
|
10
10
|
luxorasap/ingest/legacy_local/dataloader.py,sha256=zKPhuiBSFwkuWN6d8g2s60KkbVk1R_1cGMCtQM9j-0c,11908
|
|
@@ -14,8 +14,8 @@ luxorasap/utils/dataframe/reader.py,sha256=Vzjdw-AeS1lnWEHQ8RZNh0kK93NWTp0NWVi_B
|
|
|
14
14
|
luxorasap/utils/dataframe/transforms.py,sha256=OIvlTTcjFX6bUhuQp_syEp7ssm4sLzwvgsag6n2Wl3k,2438
|
|
15
15
|
luxorasap/utils/storage/__init__.py,sha256=U3XRq94yzRp3kgBSUcRzs2tQgJ4o8h8a1ZzwiscA5XM,67
|
|
16
16
|
luxorasap/utils/storage/blob.py,sha256=0QnwrUP-9vWYK8ffa6NqE7rV_t6RdScRM8GQnMxY_4w,3184
|
|
17
|
-
luxorasap-0.1.
|
|
18
|
-
luxorasap-0.1.
|
|
19
|
-
luxorasap-0.1.
|
|
20
|
-
luxorasap-0.1.
|
|
21
|
-
luxorasap-0.1.
|
|
17
|
+
luxorasap-0.1.24.dist-info/METADATA,sha256=2WR0iqmZG83GSNvH0wk6MzzZ1Me1r0Qvld-erZV0M40,3804
|
|
18
|
+
luxorasap-0.1.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
luxorasap-0.1.24.dist-info/entry_points.txt,sha256=XFh-dOwUhlya9DmGvgookMI0ezyUJjcOvTIHDEYS44g,52
|
|
20
|
+
luxorasap-0.1.24.dist-info/top_level.txt,sha256=9YOL6bUIpzY06XFBRkUW1e4rgB32Ds91fQPGwUEjxzU,10
|
|
21
|
+
luxorasap-0.1.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|