quantplay 1.3.76__tar.gz → 1.3.77__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.
Files changed (106) hide show
  1. {quantplay-1.3.76 → quantplay-1.3.77}/PKG-INFO +1 -1
  2. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/aliceblue.py +7 -0
  3. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/generics/broker.py +3 -1
  4. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/motilal.py +1 -1
  5. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/shoonya.py +1 -1
  6. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay.egg-info/PKG-INFO +1 -1
  7. {quantplay-1.3.76 → quantplay-1.3.77}/setup.py +1 -1
  8. {quantplay-1.3.76 → quantplay-1.3.77}/README.md +0 -0
  9. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/__init__.py +0 -0
  10. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/backtest/__init__.py +0 -0
  11. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/backtest/backtest_trades.py +0 -0
  12. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/__init__.py +0 -0
  13. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/angelone.py +0 -0
  14. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/broker_client.py +0 -0
  15. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/client.py +0 -0
  16. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/finvasia_utils/__init__.py +0 -0
  17. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/finvasia_utils/shoonya.py +0 -0
  18. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/generics/__init__.py +0 -0
  19. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/iifl.py +0 -0
  20. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/iifl_xts.py +0 -0
  21. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/kite_utils.py +0 -0
  22. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/symphony.py +0 -0
  23. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts.py +0 -0
  24. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts_utils/Connect.py +0 -0
  25. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts_utils/Exception.py +0 -0
  26. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts_utils/InteractiveSocketClient.py +0 -0
  27. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts_utils/MarketDataSocketClient.py +0 -0
  28. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/xts_utils/__init__.py +0 -0
  29. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/broker/zerodha.py +0 -0
  30. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/__init__.py +0 -0
  31. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/angelone/__init__.py +0 -0
  32. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/angelone/angel_broker.py +0 -0
  33. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/generics/__init__.py +0 -0
  34. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/generics/broker.py +0 -0
  35. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/zerodha/ZBroker.py +0 -0
  36. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/brokerage/zerodha/__init__.py +0 -0
  37. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/config/__init__.py +0 -0
  38. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/config/qplay_config.py +0 -0
  39. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/create_sample_data.py +0 -0
  40. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/data_modify_script.py +0 -0
  41. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/date_fix.py +0 -0
  42. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/exception/__init__.py +0 -0
  43. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/exception/exceptions.py +0 -0
  44. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/executor/__init__.py +0 -0
  45. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/executor/strategy_executor.py +0 -0
  46. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/indicators/Indicator.py +0 -0
  47. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/indicators/__init__.py +0 -0
  48. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/indicators/atr.py +0 -0
  49. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/__init__.py +0 -0
  50. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/exchange/__init__.py +0 -0
  51. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/exchange/instrument.py +0 -0
  52. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/exchange/order.py +0 -0
  53. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/exchange/tick.py +0 -0
  54. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/strategy/__init__.py +0 -0
  55. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/model/strategy/strategy_response.py +0 -0
  56. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/oms/__init__.py +0 -0
  57. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/order_execution/__init__.py +0 -0
  58. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/order_execution/execution_algorithm.py +0 -0
  59. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/order_execution/mean_price.py +0 -0
  60. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/reporting/__init__.py +0 -0
  61. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/reporting/strategy_report.py +0 -0
  62. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/reporting/visuals.py +0 -0
  63. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/service.py +0 -0
  64. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/services/__init__.py +0 -0
  65. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/services/market.py +0 -0
  66. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/services/tradelens.py +0 -0
  67. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/__init__.py +0 -0
  68. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/equities/__init__.py +0 -0
  69. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/equities/intraday/__init__.py +0 -0
  70. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/equities/overnight/__init__.py +0 -0
  71. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/futures/__init__.py +0 -0
  72. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/futures/overnight/__init__.py +0 -0
  73. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/options/__init__.py +0 -0
  74. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/options/intraday/__init__.py +0 -0
  75. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/options/intraday/ladder.py +0 -0
  76. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/options/intraday/musk.py +0 -0
  77. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategies/options/intraday/short_straddle.py +0 -0
  78. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategy/__init__.py +0 -0
  79. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategy/base.py +0 -0
  80. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/strategy_run.py +0 -0
  81. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/__init__.py +0 -0
  82. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/config_util.py +0 -0
  83. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/constant.py +0 -0
  84. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/data_utils.py +0 -0
  85. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/exchange.py +0 -0
  86. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/number_utils.py +0 -0
  87. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/pickle_utils.py +0 -0
  88. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/selenium_utils.py +0 -0
  89. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/utils/transaction_utils.py +0 -0
  90. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/wrapper/__init__.py +0 -0
  91. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/wrapper/aws/__init__.py +0 -0
  92. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay/wrapper/aws/s3.py +0 -0
  93. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay.egg-info/SOURCES.txt +0 -0
  94. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay.egg-info/dependency_links.txt +0 -0
  95. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay.egg-info/requires.txt +0 -0
  96. {quantplay-1.3.76 → quantplay-1.3.77}/quantplay.egg-info/top_level.txt +0 -0
  97. {quantplay-1.3.76 → quantplay-1.3.77}/setup.cfg +0 -0
  98. {quantplay-1.3.76 → quantplay-1.3.77}/test/__init__.py +0 -0
  99. {quantplay-1.3.76 → quantplay-1.3.77}/test/broker/__init__.py +0 -0
  100. {quantplay-1.3.76 → quantplay-1.3.77}/test/broker/finvasia.py +0 -0
  101. {quantplay-1.3.76 → quantplay-1.3.77}/test/executor/__init__.py +0 -0
  102. {quantplay-1.3.76 → quantplay-1.3.77}/test/executor/strategy_executor.py +0 -0
  103. {quantplay-1.3.76 → quantplay-1.3.77}/test/strategy/__init__.py +0 -0
  104. {quantplay-1.3.76 → quantplay-1.3.77}/test/strategy/base.py +0 -0
  105. {quantplay-1.3.76 → quantplay-1.3.77}/test/strategy/sample_strategy.py +0 -0
  106. {quantplay-1.3.76 → quantplay-1.3.77}/test/test_motilal.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantplay
3
- Version: 1.3.76
3
+ Version: 1.3.77
4
4
  Summary: This python package will be stored in AWS CodeArtifact
5
5
  Home-page:
6
6
  Author:
@@ -39,6 +39,7 @@ class Aliceblue(Broker):
39
39
  if "sessionID" not in response or response["sessionID"] is None:
40
40
  raise InvalidArgumentException(f"Invalid API Key {api_key}")
41
41
  self.user_id = self.alice.user_id
42
+ self.load_instrument()
42
43
 
43
44
  def set_client(self, serialized_client):
44
45
  self.alice = pickle.loads(codecs.decode(serialized_client.encode(), "base64"))
@@ -173,6 +174,12 @@ class Aliceblue(Broker):
173
174
  "Product {} not supported for trading".format(product)
174
175
  )
175
176
 
177
+ def get_symbol(self, symbol, exchange=None):
178
+ if exchange == "NSE":
179
+ if "-EQ" not in symbol:
180
+ return f"{symbol}-EQ"
181
+ return symbol
182
+
176
183
  def place_order(
177
184
  self,
178
185
  tradingsymbol=None,
@@ -368,7 +368,7 @@ class Broker:
368
368
  Output : broker symbol
369
369
  """
370
370
 
371
- def get_symbol(self, symbol):
371
+ def get_symbol(self, symbol, exchange=None):
372
372
  return symbol
373
373
 
374
374
  """
@@ -399,6 +399,8 @@ class Broker:
399
399
  return product
400
400
 
401
401
  def get_lot_size(self, exchange, tradingsymbol):
402
+ tradingsymbol = self.get_symbol(tradingsymbol, exchange=exchange)
403
+ exchange = self.get_exchange(exchange)
402
404
  try:
403
405
  return int(
404
406
  self.symbol_data["{}:{}".format(exchange, tradingsymbol)]["lot_size"]
@@ -323,7 +323,7 @@ class Motilal(Broker):
323
323
 
324
324
  PickleUtils.save_data(self.symbol_data, "motilal_instruments")
325
325
 
326
- def get_symbol(self, symbol):
326
+ def get_symbol(self, symbol, exchange=None):
327
327
  if symbol not in self.quantplay_symbol_map:
328
328
  return symbol
329
329
  return self.quantplay_symbol_map[symbol]
@@ -134,7 +134,7 @@ class FinvAsia(Broker):
134
134
 
135
135
  self.initialize_broker_symbol_map()
136
136
 
137
- def get_symbol(self, symbol):
137
+ def get_symbol(self, symbol, exchange=None):
138
138
  if symbol not in self.quantplay_symbol_map:
139
139
  return symbol
140
140
  return self.quantplay_symbol_map[symbol]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: quantplay
3
- Version: 1.3.76
3
+ Version: 1.3.77
4
4
  Summary: This python package will be stored in AWS CodeArtifact
5
5
  Home-page:
6
6
  Author:
@@ -21,7 +21,7 @@ requirements = [
21
21
  setup(
22
22
  name="quantplay",
23
23
  long_description=Path("README.md").read_text(),
24
- version="1.3.76",
24
+ version="1.3.77",
25
25
  setup_requires=["pytest-runner"],
26
26
  install_requires=requirements,
27
27
  tests_require=[],
File without changes
File without changes
File without changes