quantplay 2.0.6__tar.gz → 2.0.8__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.
- {quantplay-2.0.6 → quantplay-2.0.8}/PKG-INFO +1 -1
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/xts.py +5 -1
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/zerodha.py +1 -1
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.0.6 → quantplay-2.0.8}/setup.py +1 -1
- {quantplay-2.0.6 → quantplay-2.0.8}/README.md +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/pyproject.toml +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/noren.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/model/broker/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/model/broker/generics.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/py.typed +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/equities/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/equities/intraday/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/equities/overnight/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/futures/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/futures/overnight/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/options/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/options/intraday/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/options/intraday/ladder.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/options/intraday/musk.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/strategies/options/intraday/short_straddle.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/setup.cfg +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/tests/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/tests/conftest.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.6 → quantplay-2.0.8}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -311,6 +311,10 @@ class XTS(Broker):
|
|
|
311
311
|
.then(pl.lit("NSE"))
|
|
312
312
|
.when(pl.col("exchange") == "NSEFO")
|
|
313
313
|
.then(pl.lit("NFO"))
|
|
314
|
+
.when(pl.col("exchange") == "BSECM")
|
|
315
|
+
.then(pl.lit("BSE"))
|
|
316
|
+
.when(pl.col("exchange") == "BSEFO")
|
|
317
|
+
.then(pl.lit("BFO"))
|
|
314
318
|
.otherwise(pl.col("exchange"))
|
|
315
319
|
.alias("exchange"),
|
|
316
320
|
pl.when(pl.col("status") == "Rejected")
|
|
@@ -490,7 +494,7 @@ class XTS(Broker):
|
|
|
490
494
|
|
|
491
495
|
ltp = [json.loads(x) for x in ltp_json]
|
|
492
496
|
|
|
493
|
-
ltp = {x["ExchangeInstrumentID"]: x["LastTradedPrice"] for x in ltp}
|
|
497
|
+
ltp = {x["ExchangeInstrumentID"]: float(x["LastTradedPrice"]) for x in ltp}
|
|
494
498
|
return ltp
|
|
495
499
|
|
|
496
500
|
def get_exchange_code(self, exchange):
|
|
@@ -424,7 +424,7 @@ class Zerodha(Broker):
|
|
|
424
424
|
symbol_ltps = self.get_ltps(symbols)
|
|
425
425
|
ltp_map = {}
|
|
426
426
|
for exchange_symbol in symbol_ltps:
|
|
427
|
-
ltp_map[exchange_symbol] = symbol_ltps[exchange_symbol]["last_price"]
|
|
427
|
+
ltp_map[exchange_symbol] = float(symbol_ltps[exchange_symbol]["last_price"])
|
|
428
428
|
|
|
429
429
|
positions_df = positions_df.with_columns(
|
|
430
430
|
pl.col("exchange_symbol")
|
|
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
|
|
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
|