quantplay 2.0.23__tar.gz → 2.0.25__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.23 → quantplay-2.0.25}/PKG-INFO +1 -1
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/noren.py +11 -3
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/upstox.py +11 -7
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay.egg-info/PKG-INFO +1 -1
- {quantplay-2.0.23 → quantplay-2.0.25}/setup.py +1 -1
- {quantplay-2.0.23 → quantplay-2.0.25}/README.md +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/pyproject.toml +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/aliceblue.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/angelone.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/auto_login/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/auto_login/aliceblue.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/finvasia_utils/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/finvasia_utils/fa_noren.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/five_paisa.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/flattrade.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/ft_utils/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/ft_utils/flattrade_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/ft_utils/ft_noren.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/generics/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/generics/broker.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/iifl_xts.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/kite_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/motilal.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/shoonya.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/uplink/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/uplink/uplink_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/xts.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/xts_utils/Connect.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/xts_utils/Exception.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/xts_utils/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/broker/zerodha.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/exception/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/exception/exceptions.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/model/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/model/broker.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/model/generics.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/model/order_event.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/py.typed +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/equities/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/equities/intraday/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/equities/overnight/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/futures/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/futures/overnight/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/intraday/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/intraday/ladder.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/intraday/musk.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/intraday/short_straddle.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/constant.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/exchange.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/number_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/pickle_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/utils/selenium_utils.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/wrapper/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay/wrapper/aws/s3.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay.egg-info/SOURCES.txt +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay.egg-info/dependency_links.txt +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay.egg-info/requires.txt +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/quantplay.egg-info/top_level.txt +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/setup.cfg +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/tests/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/tests/conftest.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/tests/wrapper/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/tests/wrapper/aws/__init__.py +0 -0
- {quantplay-2.0.23 → quantplay-2.0.25}/tests/wrapper/aws/s3_test.py +0 -0
|
@@ -505,13 +505,11 @@ class Noren(Broker):
|
|
|
505
505
|
"norenordno": "order_id",
|
|
506
506
|
"uid": "user_id",
|
|
507
507
|
"exch": "exchange",
|
|
508
|
-
"avgprc": "average_price",
|
|
509
508
|
"prd": "product",
|
|
510
509
|
"trantype": "transaction_type",
|
|
511
510
|
"qty": "quantity",
|
|
512
511
|
"prc": "price",
|
|
513
512
|
"prctyp": "order_type",
|
|
514
|
-
"fillshares": "filled_quantity",
|
|
515
513
|
"norentm": "order_timestamp",
|
|
516
514
|
}
|
|
517
515
|
)
|
|
@@ -528,8 +526,12 @@ class Noren(Broker):
|
|
|
528
526
|
|
|
529
527
|
orders_df = orders_df.with_columns(pl.lit(None).alias("variety"))
|
|
530
528
|
|
|
531
|
-
if "
|
|
529
|
+
if "fillshares" not in orders_df.columns:
|
|
532
530
|
orders_df = orders_df.with_columns(pl.lit(0).alias("filled_quantity"))
|
|
531
|
+
else:
|
|
532
|
+
orders_df = orders_df.with_columns(
|
|
533
|
+
pl.col("fillshares").cast(pl.Int64).alias("filled_quantity")
|
|
534
|
+
)
|
|
533
535
|
if "rorgqty" not in orders_df.columns:
|
|
534
536
|
orders_df = orders_df.with_columns(pl.lit(0).alias("pending_quantity"))
|
|
535
537
|
else:
|
|
@@ -542,6 +544,12 @@ class Noren(Broker):
|
|
|
542
544
|
orders_df = orders_df.with_columns(
|
|
543
545
|
pl.col("trgprc").cast(pl.Float64).alias("trigger_price")
|
|
544
546
|
)
|
|
547
|
+
if "avgprc" not in orders_df.columns:
|
|
548
|
+
orders_df = orders_df.with_columns(pl.lit(None).alias("average_price"))
|
|
549
|
+
else:
|
|
550
|
+
orders_df = orders_df.with_columns(
|
|
551
|
+
pl.col("avgprc").cast(pl.Float64).alias("average_price")
|
|
552
|
+
)
|
|
545
553
|
if "remarks" not in orders_df.columns:
|
|
546
554
|
orders_df = orders_df.with_columns(pl.lit(None).alias("tag"))
|
|
547
555
|
else:
|
|
@@ -484,13 +484,6 @@ class Upstox(Broker):
|
|
|
484
484
|
if tag:
|
|
485
485
|
orders_df = orders_df.filter(pl.col("tag") == tag)
|
|
486
486
|
|
|
487
|
-
orders_df = orders_df.with_columns(
|
|
488
|
-
pl.col("instrument_token")
|
|
489
|
-
.str.split_exact("|", 1)
|
|
490
|
-
.struct.rename_fields(["upstox_exchange", "token"])
|
|
491
|
-
.alias("fields")
|
|
492
|
-
).unnest("fields")
|
|
493
|
-
|
|
494
487
|
orders_df = orders_df.with_columns(
|
|
495
488
|
pl.when(pl.col("exchange") == "NSE")
|
|
496
489
|
.then(pl.col("tradingsymbol").str.replace("-EQ", ""))
|
|
@@ -498,6 +491,17 @@ class Upstox(Broker):
|
|
|
498
491
|
.alias("tradingsymbol")
|
|
499
492
|
)
|
|
500
493
|
|
|
494
|
+
orders_df = orders_df.with_columns(
|
|
495
|
+
pl.struct(["exchange", "tradingsymbol"])
|
|
496
|
+
.map_elements(
|
|
497
|
+
lambda x: int(
|
|
498
|
+
self.symbol_attribute(x["exchange"], x["tradingsymbol"], "token")
|
|
499
|
+
),
|
|
500
|
+
return_dtype=pl.Int64,
|
|
501
|
+
)
|
|
502
|
+
.alias("token")
|
|
503
|
+
)
|
|
504
|
+
|
|
501
505
|
orders_df = orders_df.with_columns(
|
|
502
506
|
pl.col("order_timestamp")
|
|
503
507
|
.str.strptime(pl.Datetime, "%Y-%m-%d %H:%M:%S")
|
|
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
|
{quantplay-2.0.23 → quantplay-2.0.25}/quantplay/strategies/options/intraday/short_straddle.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
|