quantplay 2.1.3__tar.gz → 2.1.4__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.1.3 → quantplay-2.1.4}/PKG-INFO +1 -1
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/kotak.py +3 -3
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils_v2/ConnectV2.py +18 -18
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.1.3 → quantplay-2.1.4}/setup.py +1 -1
- {quantplay-2.1.3 → quantplay-2.1.4}/README.md +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/pyproject.toml +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/breeze/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/breeze/breeze_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/broker_factory.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/dhan.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/icici_direct.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/jainam_xts.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/kotak_utils/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/kotak_utils/kotak_ws.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/kotak_utils/kotak_ws_lib.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/noren.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/upstox.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils_v2/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/core/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/core/strategy.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/indicator/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/indicator/iv.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/broker.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/broker_response.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/generics.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/instrument_data.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/model/order_event.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/py.typed +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/strategy/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/strategy/iv_spike.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/strategy/obuy.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/caching.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/constant.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay/wrapper/redis.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/setup.cfg +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/tests/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/tests/conftest.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.1.3 → quantplay-2.1.4}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -290,7 +290,7 @@ class Kotak(Broker):
|
|
|
290
290
|
.then(pl.lit("CDS"))
|
|
291
291
|
.when(pl.col("exchange") == "bcs-fo")
|
|
292
292
|
.then(pl.lit("BCD"))
|
|
293
|
-
.when(pl.col("exchange") == "
|
|
293
|
+
.when(pl.col("exchange") == "mcx_fo")
|
|
294
294
|
.then(pl.lit("MCX"))
|
|
295
295
|
.otherwise(pl.col("exchange"))
|
|
296
296
|
.alias("exchange"),
|
|
@@ -315,7 +315,7 @@ class Kotak(Broker):
|
|
|
315
315
|
token_list = [self.token_converter(int(d["token"]), d["exchange"]) for d in data]
|
|
316
316
|
ltps: list[float] = self.ltp_from_tokens(token_list) # type:ignore
|
|
317
317
|
|
|
318
|
-
ltps = [float(a) for a in ltps]
|
|
318
|
+
ltps = [float(a) if a else None for a in ltps] # type:ignore
|
|
319
319
|
ltps = pl.Series("ltp", ltps, dtype=pl.Float64) # type:ignore
|
|
320
320
|
|
|
321
321
|
# Assign the Series to a new column in the DataFrame
|
|
@@ -371,7 +371,7 @@ class Kotak(Broker):
|
|
|
371
371
|
.then(pl.lit("CDS"))
|
|
372
372
|
.when(pl.col("exchange") == "bcs-fo")
|
|
373
373
|
.then(pl.lit("BCD"))
|
|
374
|
-
.when(pl.col("exchange")
|
|
374
|
+
.when(pl.col("exchange").is_in(["mcx", "mcx_fo"]))
|
|
375
375
|
.then(pl.lit("MCX"))
|
|
376
376
|
.otherwise(pl.col("exchange"))
|
|
377
377
|
.alias("exchange"),
|
|
@@ -128,24 +128,24 @@ class XTSConnectV2(XTSCommon):
|
|
|
128
128
|
"order.dealer.status": "/orders/dealerorderbook",
|
|
129
129
|
"dealer.trades": "/orders/dealertradebook",
|
|
130
130
|
# Market API endpoints
|
|
131
|
-
"marketdata.prefix": "
|
|
132
|
-
"market.login": "/
|
|
133
|
-
"market.logout": "/
|
|
134
|
-
"market.config": "/
|
|
135
|
-
"market.instruments.master": "/
|
|
136
|
-
"market.instruments.subscription": "/
|
|
137
|
-
"market.instruments.unsubscription": "/
|
|
138
|
-
"market.instruments.ohlc": "/
|
|
139
|
-
"market.instruments.indexlist": "/
|
|
140
|
-
"market.instruments.quotes": "/
|
|
141
|
-
"market.search.instrumentsbyid": "/
|
|
142
|
-
"market.search.instrumentsbystring": "/
|
|
143
|
-
"market.instruments.instrument.series": "/
|
|
144
|
-
"market.instruments.instrument.equitysymbol": "/
|
|
145
|
-
"market.instruments.instrument.futuresymbol": "/
|
|
146
|
-
"market.instruments.instrument.optionsymbol": "/
|
|
147
|
-
"market.instruments.instrument.optiontype": "/
|
|
148
|
-
"market.instruments.instrument.expirydate": "/
|
|
131
|
+
"marketdata.prefix": "marketdata",
|
|
132
|
+
"market.login": "/marketdata/auth/login",
|
|
133
|
+
"market.logout": "/marketdata/auth/logout",
|
|
134
|
+
"market.config": "/marketdata/config/clientConfig",
|
|
135
|
+
"market.instruments.master": "/marketdata/instruments/master",
|
|
136
|
+
"market.instruments.subscription": "/marketdata/instruments/subscription",
|
|
137
|
+
"market.instruments.unsubscription": "/marketdata/instruments/subscription",
|
|
138
|
+
"market.instruments.ohlc": "/marketdata/instruments/ohlc",
|
|
139
|
+
"market.instruments.indexlist": "/marketdata/instruments/indexlist",
|
|
140
|
+
"market.instruments.quotes": "/marketdata/instruments/quotes",
|
|
141
|
+
"market.search.instrumentsbyid": "/marketdata/search/instrumentsbyid",
|
|
142
|
+
"market.search.instrumentsbystring": "/marketdata/search/instruments",
|
|
143
|
+
"market.instruments.instrument.series": "/marketdata/instruments/instrument/series",
|
|
144
|
+
"market.instruments.instrument.equitysymbol": "/marketdata/instruments/instrument/symbol",
|
|
145
|
+
"market.instruments.instrument.futuresymbol": "/marketdata/instruments/instrument/futureSymbol",
|
|
146
|
+
"market.instruments.instrument.optionsymbol": "/marketdata/instruments/instrument/optionsymbol",
|
|
147
|
+
"market.instruments.instrument.optiontype": "/marketdata/instruments/instrument/optionType",
|
|
148
|
+
"market.instruments.instrument.expirydate": "/marketdata/instruments/instrument/expiryDate",
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
def __init__(
|
|
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
|
{quantplay-2.1.3 → quantplay-2.1.4}/quantplay/broker/xts_utils_v2/InteractiveSocketClientV2.py
RENAMED
|
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
|