upstox-python-sdk 2.13.0__tar.gz → 2.15.0__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 (376) hide show
  1. {upstox_python_sdk-2.13.0/upstox_python_sdk.egg-info → upstox_python_sdk-2.15.0}/PKG-INFO +59 -9
  2. upstox_python_sdk-2.13.0/PKG-INFO → upstox_python_sdk-2.15.0/README.md +49 -24
  3. upstox_python_sdk-2.15.0/setup.py +44 -0
  4. upstox_python_sdk-2.15.0/test/test_api_gateway_error_response.py +39 -0
  5. upstox_python_sdk-2.15.0/test/test_brokerage_data.py +39 -0
  6. upstox_python_sdk-2.15.0/test/test_brokerage_taxes.py +39 -0
  7. upstox_python_sdk-2.15.0/test/test_brokerage_wrapper_data.py +39 -0
  8. upstox_python_sdk-2.15.0/test/test_cancel_order_data.py +39 -0
  9. upstox_python_sdk-2.15.0/test/test_cancel_order_response.py +39 -0
  10. upstox_python_sdk-2.15.0/test/test_charge_api.py +40 -0
  11. upstox_python_sdk-2.15.0/test/test_convert_position_data.py +39 -0
  12. upstox_python_sdk-2.15.0/test/test_convert_position_request.py +39 -0
  13. upstox_python_sdk-2.15.0/test/test_convert_position_response.py +39 -0
  14. upstox_python_sdk-2.15.0/test/test_depth.py +39 -0
  15. upstox_python_sdk-2.15.0/test/test_depth_map.py +39 -0
  16. upstox_python_sdk-2.15.0/test/test_dp_plan.py +39 -0
  17. upstox_python_sdk-2.15.0/test/test_get_brokerage_response.py +39 -0
  18. upstox_python_sdk-2.15.0/test/test_get_full_market_quote_response.py +39 -0
  19. upstox_python_sdk-2.15.0/test/test_get_historical_candle_response.py +39 -0
  20. upstox_python_sdk-2.15.0/test/test_get_holdings_response.py +39 -0
  21. upstox_python_sdk-2.15.0/test/test_get_intra_day_candle_response.py +39 -0
  22. upstox_python_sdk-2.15.0/test/test_get_market_quote_last_traded_price_response.py +39 -0
  23. upstox_python_sdk-2.15.0/test/test_get_market_quote_ohlc_response.py +39 -0
  24. upstox_python_sdk-2.15.0/test/test_get_order_book_response.py +39 -0
  25. upstox_python_sdk-2.15.0/test/test_get_order_response.py +39 -0
  26. upstox_python_sdk-2.15.0/test/test_get_position_response.py +39 -0
  27. upstox_python_sdk-2.15.0/test/test_get_profile_response.py +39 -0
  28. upstox_python_sdk-2.15.0/test/test_get_profit_and_loss_charges_response.py +39 -0
  29. upstox_python_sdk-2.15.0/test/test_get_trade_response.py +39 -0
  30. upstox_python_sdk-2.15.0/test/test_get_trade_wise_profit_and_loss_data_response.py +39 -0
  31. upstox_python_sdk-2.15.0/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +39 -0
  32. upstox_python_sdk-2.15.0/test/test_get_user_fund_margin_response.py +39 -0
  33. upstox_python_sdk-2.15.0/test/test_historical_candle_data.py +39 -0
  34. upstox_python_sdk-2.15.0/test/test_history_api.py +54 -0
  35. upstox_python_sdk-2.15.0/test/test_holdings_data.py +39 -0
  36. upstox_python_sdk-2.15.0/test/test_intra_day_candle_data.py +39 -0
  37. upstox_python_sdk-2.15.0/test/test_login_api.py +54 -0
  38. upstox_python_sdk-2.15.0/test/test_logout_response.py +39 -0
  39. upstox_python_sdk-2.15.0/test/test_market_quote_api.py +54 -0
  40. upstox_python_sdk-2.15.0/test/test_market_quote_ohlc.py +39 -0
  41. upstox_python_sdk-2.15.0/test/test_market_quote_symbol.py +39 -0
  42. upstox_python_sdk-2.15.0/test/test_market_quote_symbol_ltp.py +39 -0
  43. upstox_python_sdk-2.15.0/test/test_modify_order_data.py +39 -0
  44. upstox_python_sdk-2.15.0/test/test_modify_order_request.py +39 -0
  45. upstox_python_sdk-2.15.0/test/test_modify_order_response.py +39 -0
  46. upstox_python_sdk-2.15.0/test/test_o_auth_client_exception.py +39 -0
  47. upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause.py +39 -0
  48. upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause_stack_trace.py +39 -0
  49. upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause_suppressed.py +39 -0
  50. upstox_python_sdk-2.15.0/test/test_ohlc.py +39 -0
  51. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_api.py +1 -1
  52. upstox_python_sdk-2.15.0/test/test_order_book_data.py +39 -0
  53. upstox_python_sdk-2.15.0/test/test_order_data.py +39 -0
  54. upstox_python_sdk-2.15.0/test/test_other_taxes.py +39 -0
  55. upstox_python_sdk-2.15.0/test/test_place_order_data.py +39 -0
  56. upstox_python_sdk-2.15.0/test/test_place_order_request.py +39 -0
  57. upstox_python_sdk-2.15.0/test/test_place_order_response.py +39 -0
  58. upstox_python_sdk-2.15.0/test/test_portfolio_api.py +54 -0
  59. upstox_python_sdk-2.15.0/test/test_position_data.py +39 -0
  60. upstox_python_sdk-2.15.0/test/test_problem.py +39 -0
  61. upstox_python_sdk-2.15.0/test/test_profile_data.py +39 -0
  62. upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_data.py +39 -0
  63. upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_taxes.py +39 -0
  64. upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_wrapper_data.py +39 -0
  65. upstox_python_sdk-2.15.0/test/test_profit_and_loss_meta_data.py +39 -0
  66. upstox_python_sdk-2.15.0/test/test_profit_and_loss_meta_data_wrapper.py +39 -0
  67. upstox_python_sdk-2.15.0/test/test_profit_and_loss_other_charges_taxes.py +39 -0
  68. upstox_python_sdk-2.15.0/test/test_token_request.py +39 -0
  69. upstox_python_sdk-2.15.0/test/test_token_response.py +39 -0
  70. upstox_python_sdk-2.15.0/test/test_trade_data.py +39 -0
  71. upstox_python_sdk-2.15.0/test/test_trade_profit_and_loss_api.py +54 -0
  72. upstox_python_sdk-2.15.0/test/test_trade_wise_meta_data.py +39 -0
  73. upstox_python_sdk-2.15.0/test/test_trade_wise_profit_and_loss_data.py +39 -0
  74. upstox_python_sdk-2.15.0/test/test_user_api.py +47 -0
  75. upstox_python_sdk-2.15.0/test/test_user_fund_margin_data.py +39 -0
  76. upstox_python_sdk-2.15.0/test/test_websocket_api.py +61 -0
  77. upstox_python_sdk-2.15.0/test/test_websocket_auth_redirect_response.py +39 -0
  78. upstox_python_sdk-2.15.0/test/test_websocket_auth_redirect_response_data.py +39 -0
  79. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/__init__.py +14 -1
  80. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/__init__.py +6 -0
  81. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/charge_api.py +1 -1
  82. upstox_python_sdk-2.15.0/upstox_client/api/expired_instrument_api.py +453 -0
  83. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/history_api.py +1 -1
  84. upstox_python_sdk-2.15.0/upstox_client/api/history_v3_api.py +390 -0
  85. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/login_api.py +1 -1
  86. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/market_quote_api.py +1 -1
  87. upstox_python_sdk-2.15.0/upstox_client/api/market_quote_v3_api.py +314 -0
  88. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/order_api.py +1 -1
  89. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/portfolio_api.py +88 -1
  90. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/trade_profit_and_loss_api.py +1 -1
  91. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/user_api.py +1 -1
  92. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/websocket_api.py +1 -1
  93. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api_client.py +2 -2
  94. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/configuration.py +1 -1
  95. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_feeder_v3.py +2 -1
  96. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_streamer_v3.py +4 -2
  97. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/portfolio_data_feeder.py +4 -1
  98. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/portfolio_data_streamer.py +3 -2
  99. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/__init__.py +11 -1
  100. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/api_gateway_error_response.py +1 -1
  101. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_data.py +1 -1
  102. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_taxes.py +1 -1
  103. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_wrapper_data.py +1 -1
  104. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_data.py +1 -1
  105. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_response.py +1 -1
  106. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_data.py +1 -1
  107. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_request.py +1 -1
  108. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_response.py +1 -1
  109. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/depth.py +1 -1
  110. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/depth_map.py +1 -1
  111. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/dp_plan.py +1 -1
  112. upstox_python_sdk-2.15.0/upstox_client/models/expired_future_data.py +504 -0
  113. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_brokerage_response.py +1 -1
  114. upstox_python_sdk-2.15.0/upstox_client/models/get_expired_futures_contract_response.py +142 -0
  115. upstox_python_sdk-2.15.0/upstox_client/models/get_expiries.py +142 -0
  116. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_full_market_quote_response.py +1 -1
  117. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_historical_candle_response.py +1 -1
  118. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_holdings_response.py +1 -1
  119. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_intra_day_candle_response.py +1 -1
  120. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_market_quote_last_traded_price_response.py +1 -1
  121. upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_last_traded_price_response_v3.py +142 -0
  122. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_market_quote_ohlc_response.py +1 -1
  123. upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_ohlc_response_v3.py +142 -0
  124. upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_option_greek_response_v3.py +142 -0
  125. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_book_response.py +1 -1
  126. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_response.py +1 -1
  127. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_position_response.py +1 -1
  128. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_profile_response.py +1 -1
  129. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_profit_and_loss_charges_response.py +1 -1
  130. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_trade_response.py +1 -1
  131. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py +1 -1
  132. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py +1 -1
  133. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_user_fund_margin_response.py +1 -1
  134. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/historical_candle_data.py +1 -1
  135. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/holdings_data.py +1 -1
  136. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/intra_day_candle_data.py +1 -1
  137. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/logout_response.py +1 -1
  138. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_ohlc.py +1 -1
  139. upstox_python_sdk-2.15.0/upstox_client/models/market_quote_ohlcv3.py +190 -0
  140. upstox_python_sdk-2.15.0/upstox_client/models/market_quote_option_greek_v3.py +370 -0
  141. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_symbol.py +1 -1
  142. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_symbol_ltp.py +1 -1
  143. upstox_python_sdk-2.15.0/upstox_client/models/market_quote_symbol_ltp_v3.py +214 -0
  144. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_data.py +1 -1
  145. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_request.py +1 -1
  146. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_response.py +1 -1
  147. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_request.py +1 -1
  148. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception.py +1 -1
  149. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception_cause.py +1 -1
  150. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception_cause_stack_trace.py +1 -1
  151. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +1 -1
  152. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/ohlc.py +1 -1
  153. upstox_python_sdk-2.15.0/upstox_client/models/ohlc_v3.py +252 -0
  154. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_book_data.py +1 -1
  155. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_data.py +1 -1
  156. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/other_taxes.py +1 -1
  157. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_data.py +1 -1
  158. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_request.py +1 -1
  159. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_response.py +1 -1
  160. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_v3_request.py +1 -1
  161. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/position_data.py +1 -1
  162. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/problem.py +1 -1
  163. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profile_data.py +1 -1
  164. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_data.py +1 -1
  165. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_taxes.py +1 -1
  166. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +1 -1
  167. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_meta_data.py +1 -1
  168. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +1 -1
  169. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_other_charges_taxes.py +1 -1
  170. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/rule.py +27 -1
  171. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/token_request.py +1 -1
  172. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/token_response.py +1 -1
  173. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_data.py +1 -1
  174. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_wise_meta_data.py +1 -1
  175. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_wise_profit_and_loss_data.py +1 -1
  176. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/user_fund_margin_data.py +1 -1
  177. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/websocket_auth_redirect_response.py +1 -1
  178. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/websocket_auth_redirect_response_data.py +1 -1
  179. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/rest.py +1 -1
  180. upstox_python_sdk-2.13.0/README.md → upstox_python_sdk-2.15.0/upstox_python_sdk.egg-info/PKG-INFO +74 -7
  181. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/SOURCES.txt +13 -0
  182. upstox_python_sdk-2.13.0/setup.py +0 -44
  183. upstox_python_sdk-2.13.0/test/test_api_gateway_error_response.py +0 -39
  184. upstox_python_sdk-2.13.0/test/test_brokerage_data.py +0 -39
  185. upstox_python_sdk-2.13.0/test/test_brokerage_taxes.py +0 -39
  186. upstox_python_sdk-2.13.0/test/test_brokerage_wrapper_data.py +0 -39
  187. upstox_python_sdk-2.13.0/test/test_cancel_order_data.py +0 -39
  188. upstox_python_sdk-2.13.0/test/test_cancel_order_response.py +0 -39
  189. upstox_python_sdk-2.13.0/test/test_charge_api.py +0 -40
  190. upstox_python_sdk-2.13.0/test/test_convert_position_data.py +0 -39
  191. upstox_python_sdk-2.13.0/test/test_convert_position_request.py +0 -39
  192. upstox_python_sdk-2.13.0/test/test_convert_position_response.py +0 -39
  193. upstox_python_sdk-2.13.0/test/test_depth.py +0 -39
  194. upstox_python_sdk-2.13.0/test/test_depth_map.py +0 -39
  195. upstox_python_sdk-2.13.0/test/test_dp_plan.py +0 -39
  196. upstox_python_sdk-2.13.0/test/test_get_brokerage_response.py +0 -39
  197. upstox_python_sdk-2.13.0/test/test_get_full_market_quote_response.py +0 -39
  198. upstox_python_sdk-2.13.0/test/test_get_historical_candle_response.py +0 -39
  199. upstox_python_sdk-2.13.0/test/test_get_holdings_response.py +0 -39
  200. upstox_python_sdk-2.13.0/test/test_get_intra_day_candle_response.py +0 -39
  201. upstox_python_sdk-2.13.0/test/test_get_market_quote_last_traded_price_response.py +0 -39
  202. upstox_python_sdk-2.13.0/test/test_get_market_quote_ohlc_response.py +0 -39
  203. upstox_python_sdk-2.13.0/test/test_get_order_book_response.py +0 -39
  204. upstox_python_sdk-2.13.0/test/test_get_order_response.py +0 -39
  205. upstox_python_sdk-2.13.0/test/test_get_position_response.py +0 -39
  206. upstox_python_sdk-2.13.0/test/test_get_profile_response.py +0 -39
  207. upstox_python_sdk-2.13.0/test/test_get_profit_and_loss_charges_response.py +0 -39
  208. upstox_python_sdk-2.13.0/test/test_get_trade_response.py +0 -39
  209. upstox_python_sdk-2.13.0/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -39
  210. upstox_python_sdk-2.13.0/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +0 -39
  211. upstox_python_sdk-2.13.0/test/test_get_user_fund_margin_response.py +0 -39
  212. upstox_python_sdk-2.13.0/test/test_historical_candle_data.py +0 -39
  213. upstox_python_sdk-2.13.0/test/test_history_api.py +0 -54
  214. upstox_python_sdk-2.13.0/test/test_holdings_data.py +0 -39
  215. upstox_python_sdk-2.13.0/test/test_intra_day_candle_data.py +0 -39
  216. upstox_python_sdk-2.13.0/test/test_login_api.py +0 -54
  217. upstox_python_sdk-2.13.0/test/test_logout_response.py +0 -39
  218. upstox_python_sdk-2.13.0/test/test_market_quote_api.py +0 -54
  219. upstox_python_sdk-2.13.0/test/test_market_quote_ohlc.py +0 -39
  220. upstox_python_sdk-2.13.0/test/test_market_quote_symbol.py +0 -39
  221. upstox_python_sdk-2.13.0/test/test_market_quote_symbol_ltp.py +0 -39
  222. upstox_python_sdk-2.13.0/test/test_modify_order_data.py +0 -39
  223. upstox_python_sdk-2.13.0/test/test_modify_order_request.py +0 -39
  224. upstox_python_sdk-2.13.0/test/test_modify_order_response.py +0 -39
  225. upstox_python_sdk-2.13.0/test/test_o_auth_client_exception.py +0 -39
  226. upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause.py +0 -39
  227. upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause_stack_trace.py +0 -39
  228. upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause_suppressed.py +0 -39
  229. upstox_python_sdk-2.13.0/test/test_ohlc.py +0 -39
  230. upstox_python_sdk-2.13.0/test/test_order_book_data.py +0 -39
  231. upstox_python_sdk-2.13.0/test/test_order_data.py +0 -39
  232. upstox_python_sdk-2.13.0/test/test_other_taxes.py +0 -39
  233. upstox_python_sdk-2.13.0/test/test_place_order_data.py +0 -39
  234. upstox_python_sdk-2.13.0/test/test_place_order_request.py +0 -39
  235. upstox_python_sdk-2.13.0/test/test_place_order_response.py +0 -39
  236. upstox_python_sdk-2.13.0/test/test_portfolio_api.py +0 -54
  237. upstox_python_sdk-2.13.0/test/test_position_data.py +0 -39
  238. upstox_python_sdk-2.13.0/test/test_problem.py +0 -39
  239. upstox_python_sdk-2.13.0/test/test_profile_data.py +0 -39
  240. upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_data.py +0 -39
  241. upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_taxes.py +0 -39
  242. upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_wrapper_data.py +0 -39
  243. upstox_python_sdk-2.13.0/test/test_profit_and_loss_meta_data.py +0 -39
  244. upstox_python_sdk-2.13.0/test/test_profit_and_loss_meta_data_wrapper.py +0 -39
  245. upstox_python_sdk-2.13.0/test/test_profit_and_loss_other_charges_taxes.py +0 -39
  246. upstox_python_sdk-2.13.0/test/test_token_request.py +0 -39
  247. upstox_python_sdk-2.13.0/test/test_token_response.py +0 -39
  248. upstox_python_sdk-2.13.0/test/test_trade_data.py +0 -39
  249. upstox_python_sdk-2.13.0/test/test_trade_profit_and_loss_api.py +0 -54
  250. upstox_python_sdk-2.13.0/test/test_trade_wise_meta_data.py +0 -39
  251. upstox_python_sdk-2.13.0/test/test_trade_wise_profit_and_loss_data.py +0 -39
  252. upstox_python_sdk-2.13.0/test/test_user_api.py +0 -47
  253. upstox_python_sdk-2.13.0/test/test_user_fund_margin_data.py +0 -39
  254. upstox_python_sdk-2.13.0/test/test_websocket_api.py +0 -61
  255. upstox_python_sdk-2.13.0/test/test_websocket_auth_redirect_response.py +0 -39
  256. upstox_python_sdk-2.13.0/test/test_websocket_auth_redirect_response_data.py +0 -39
  257. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/LICENSE.txt +0 -0
  258. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/setup.cfg +0 -0
  259. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/__init__.py +0 -0
  260. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/sanity_test.py +0 -0
  261. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_analytics_data.py +0 -0
  262. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_batch_execution_summary.py +0 -0
  263. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_multi_order_data.py +0 -0
  264. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_multi_order_response.py +0 -0
  265. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_order_error_data.py +0 -0
  266. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_order_v3_response.py +0 -0
  267. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_exchange_timing_data.py +0 -0
  268. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_exchange_timing_response.py +0 -0
  269. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_gtt_order_response.py +0 -0
  270. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_holiday_response.py +0 -0
  271. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_market_status_response.py +0 -0
  272. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_option_chain_response.py +0 -0
  273. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_option_contract_response.py +0 -0
  274. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_order_details_response.py +0 -0
  275. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_cancel_order_request.py +0 -0
  276. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_modify_order_request.py +0 -0
  277. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_order_data.py +0 -0
  278. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_order_details.py +0 -0
  279. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_place_order_request.py +0 -0
  280. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_rule.py +0 -0
  281. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_trigger_order_response.py +0 -0
  282. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_holiday_data.py +0 -0
  283. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_init_token_data.py +0 -0
  284. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_init_token_response.py +0 -0
  285. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_token_request.py +0 -0
  286. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_instrument.py +0 -0
  287. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_instrument_data.py +0 -0
  288. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin.py +0 -0
  289. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin_data.py +0 -0
  290. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin_request.py +0 -0
  291. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_data.py +0 -0
  292. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_holidays_and_timings_api.py +0 -0
  293. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_status_data.py +0 -0
  294. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_modify_order_v3_response.py +0 -0
  295. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_data.py +0 -0
  296. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_error.py +0 -0
  297. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_request.py +0 -0
  298. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_response.py +0 -0
  299. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_summary.py +0 -0
  300. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_v3_data.py +0 -0
  301. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_option_strike_data.py +0 -0
  302. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_options_api.py +0 -0
  303. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_controller_v_3_api.py +0 -0
  304. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_metadata.py +0 -0
  305. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_place_order_v3_request.py +0 -0
  306. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_place_order_v3_response.py +0 -0
  307. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_post_margin_response.py +0 -0
  308. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_post_trade_api.py +0 -0
  309. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_put_call_option_chain_data.py +0 -0
  310. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_rule.py +0 -0
  311. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response.py +0 -0
  312. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_meta_data.py +0 -0
  313. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_page_data.py +0 -0
  314. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_trade_data.py +0 -0
  315. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/market_holidays_and_timings_api.py +0 -0
  316. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/options_api.py +0 -0
  317. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/order_controller_v_3_api.py +0 -0
  318. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/post_trade_api.py +0 -0
  319. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/__init__.py +0 -0
  320. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/feeder.py +0 -0
  321. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_feeder.py +0 -0
  322. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_streamer.py +0 -0
  323. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/MarketDataFeedV3_pb2.py +0 -0
  324. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/MarketDataFeed_pb2.py +0 -0
  325. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/__init__.py +0 -0
  326. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/streamer.py +0 -0
  327. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/analytics_data.py +0 -0
  328. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/batch_execution_summary.py +0 -0
  329. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_multi_order_data.py +0 -0
  330. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_multi_order_response.py +0 -0
  331. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_order_error_data.py +0 -0
  332. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_v3_response.py +0 -0
  333. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/exchange_timing_data.py +0 -0
  334. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_exchange_timing_response.py +0 -0
  335. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_gtt_order_response.py +0 -0
  336. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_holiday_response.py +0 -0
  337. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_market_status_response.py +0 -0
  338. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_option_chain_response.py +0 -0
  339. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_option_contract_response.py +0 -0
  340. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_details_response.py +0 -0
  341. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_cancel_order_request.py +0 -0
  342. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_modify_order_request.py +0 -0
  343. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_order_data.py +0 -0
  344. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_order_details.py +0 -0
  345. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_place_order_request.py +0 -0
  346. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_rule.py +0 -0
  347. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_trigger_order_response.py +0 -0
  348. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/holiday_data.py +0 -0
  349. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_init_token_data.py +0 -0
  350. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_init_token_response.py +0 -0
  351. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_token_request.py +0 -0
  352. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/instrument.py +0 -0
  353. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/instrument_data.py +0 -0
  354. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin.py +0 -0
  355. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin_data.py +0 -0
  356. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin_request.py +0 -0
  357. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_data.py +0 -0
  358. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_status_data.py +0 -0
  359. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_v3_response.py +0 -0
  360. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_data.py +0 -0
  361. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_error.py +0 -0
  362. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_response.py +0 -0
  363. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_summary.py +0 -0
  364. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_v3_data.py +0 -0
  365. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/option_strike_data.py +0 -0
  366. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_metadata.py +0 -0
  367. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_v3_response.py +0 -0
  368. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/post_margin_response.py +0 -0
  369. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/put_call_option_chain_data.py +0 -0
  370. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response.py +0 -0
  371. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_meta_data.py +0 -0
  372. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_page_data.py +0 -0
  373. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_trade_data.py +0 -0
  374. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
  375. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/requires.txt +0 -0
  376. {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: upstox-python-sdk
3
- Version: 2.13.0
3
+ Version: 2.15.0
4
4
  Summary: Upstox Developer API
5
5
  Home-page: https://github.com/upstox/upstox-python
6
6
  License: MIT
@@ -14,6 +14,14 @@ Requires-Dist: python-dateutil
14
14
  Requires-Dist: websocket-client
15
15
  Requires-Dist: uuid
16
16
  Requires-Dist: protobuf
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: keywords
21
+ Dynamic: license
22
+ Dynamic: license-file
23
+ Dynamic: requires-dist
24
+ Dynamic: summary
17
25
 
18
26
  # Upstox Python SDK for API v2
19
27
 
@@ -26,7 +34,7 @@ The official Python client for communicating with the <a href="https://upstox.co
26
34
  Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection.
27
35
 
28
36
  - API version: v2
29
- - Package version: 2.13.0
37
+ - Package version: 2.15.0
30
38
  - Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
31
39
 
32
40
  This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.
@@ -107,9 +115,16 @@ Class | Method | HTTP request | Description
107
115
  ------------ | ------------- | ------------- | -------------
108
116
  *ChargeApi* | [**get_brokerage**](docs/ChargeApi.md#get_brokerage) | **GET** /v2/charges/brokerage | Brokerage details
109
117
  *ChargeApi* | [**post_margin**](docs/ChargeApi.md#post_margin) | **POST** /v2/charges/margin | Calculate Margin
110
- *HistoryApi* | [**get_historical_candle_data**](docs/HistoryApi.md#get_historical_candle_data) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date} | Historical candle data
111
- *HistoryApi* | [**get_historical_candle_data1**](docs/HistoryApi.md#get_historical_candle_data1) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date} | Historical candle data
112
- *HistoryApi* | [**get_intra_day_candle_data**](docs/HistoryApi.md#get_intra_day_candle_data) | **GET** /v2/historical-candle/intraday/{instrumentKey}/{interval} | Intra day candle data
118
+ *ExpiredInstrumentApi* | [**get_expired_future_contracts**](docs/ExpiredInstrumentApi.md#get_expired_future_contracts) | **GET** /v2/expired-instruments/future/contract | Expired instruments - Get future contracts
119
+ *ExpiredInstrumentApi* | [**get_expired_historical_candle_data**](docs/ExpiredInstrumentApi.md#get_expired_historical_candle_data) | **GET** /v2/expired-instruments/historical-candle/{expired_instrument_key}/{interval}/{to_date}/{from_date} | Expired Historical candle data
120
+ *ExpiredInstrumentApi* | [**get_expired_option_contracts**](docs/ExpiredInstrumentApi.md#get_expired_option_contracts) | **GET** /v2/expired-instruments/option/contract | Get expired option contracts
121
+ *ExpiredInstrumentApi* | [**get_expiries**](docs/ExpiredInstrumentApi.md#get_expiries) | **GET** /v2/expired-instruments/expiries | Expired instruments - Get expiries
122
+ *HistoryApi* | [**get_historical_candle_data2**](docs/HistoryApi.md#get_historical_candle_data2) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date} | Historical candle data
123
+ *HistoryApi* | [**get_historical_candle_data3**](docs/HistoryApi.md#get_historical_candle_data3) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date} | Historical candle data
124
+ *HistoryApi* | [**get_intra_day_candle_data1**](docs/HistoryApi.md#get_intra_day_candle_data1) | **GET** /v2/historical-candle/intraday/{instrumentKey}/{interval} | Intra day candle data
125
+ *HistoryV3Api* | [**get_historical_candle_data**](docs/HistoryV3Api.md#get_historical_candle_data) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date} | Historical candle data
126
+ *HistoryV3Api* | [**get_historical_candle_data1**](docs/HistoryV3Api.md#get_historical_candle_data1) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}/{from_date} | Historical candle data
127
+ *HistoryV3Api* | [**get_intra_day_candle_data**](docs/HistoryV3Api.md#get_intra_day_candle_data) | **GET** /v3/historical-candle/intraday/{instrumentKey}/{unit}/{interval} | Intra day candle data
113
128
  *LoginApi* | [**authorize**](docs/LoginApi.md#authorize) | **GET** /v2/login/authorization/dialog | Authorize API
114
129
  *LoginApi* | [**init_token_request_for_indie_user**](docs/LoginApi.md#init_token_request_for_indie_user) | **POST** /v3/login/auth/token/request/{client_id} | Init token API
115
130
  *LoginApi* | [**logout**](docs/LoginApi.md#logout) | **DELETE** /v2/logout | Logout
@@ -121,6 +136,9 @@ Class | Method | HTTP request | Description
121
136
  *MarketQuoteApi* | [**get_full_market_quote**](docs/MarketQuoteApi.md#get_full_market_quote) | **GET** /v2/market-quote/quotes | Market quotes and instruments - Full market quotes
122
137
  *MarketQuoteApi* | [**get_market_quote_ohlc**](docs/MarketQuoteApi.md#get_market_quote_ohlc) | **GET** /v2/market-quote/ohlc | Market quotes and instruments - OHLC quotes
123
138
  *MarketQuoteApi* | [**ltp**](docs/MarketQuoteApi.md#ltp) | **GET** /v2/market-quote/ltp | Market quotes and instruments - LTP quotes.
139
+ *MarketQuoteV3Api* | [**get_ltp**](docs/MarketQuoteV3Api.md#get_ltp) | **GET** /v3/market-quote/ltp | Market quotes and instruments - LTP quotes.
140
+ *MarketQuoteV3Api* | [**get_market_quote_ohlc**](docs/MarketQuoteV3Api.md#get_market_quote_ohlc) | **GET** /v3/market-quote/ohlc | Market quotes and instruments - OHLC quotes
141
+ *MarketQuoteV3Api* | [**get_market_quote_option_greek**](docs/MarketQuoteV3Api.md#get_market_quote_option_greek) | **GET** /v3/market-quote/option-greek | Market quotes and instruments - Option Greek
124
142
  *OptionsApi* | [**get_option_contracts**](docs/OptionsApi.md#get_option_contracts) | **GET** /v2/option/contract | Get option contracts
125
143
  *OptionsApi* | [**get_put_call_option_chain**](docs/OptionsApi.md#get_put_call_option_chain) | **GET** /v2/option/chain | Get option chain
126
144
  *OrderApi* | [**cancel_multi_order**](docs/OrderApi.md#cancel_multi_order) | **DELETE** /v2/order/multi/cancel | Cancel multi order
@@ -136,6 +154,7 @@ Class | Method | HTTP request | Description
136
154
  *OrderApi* | [**place_order**](docs/OrderApi.md#place_order) | **POST** /v2/order/place | Place order
137
155
  *PortfolioApi* | [**convert_positions**](docs/PortfolioApi.md#convert_positions) | **PUT** /v2/portfolio/convert-position | Convert Positions
138
156
  *PortfolioApi* | [**get_holdings**](docs/PortfolioApi.md#get_holdings) | **GET** /v2/portfolio/long-term-holdings | Get Holdings
157
+ *PortfolioApi* | [**get_mtf_positions**](docs/PortfolioApi.md#get_mtf_positions) | **GET** /v3/portfolio/mtf-positions | Get MTF positions
139
158
  *PortfolioApi* | [**get_positions**](docs/PortfolioApi.md#get_positions) | **GET** /v2/portfolio/short-term-positions | Get Positions
140
159
  *PostTradeApi* | [**get_trades_by_date_range**](docs/PostTradeApi.md#get_trades_by_date_range) | **GET** /v2/charges/historical-trades | Get historical trades
141
160
  *TradeProfitAndLossApi* | [**get_profit_and_loss_charges**](docs/TradeProfitAndLossApi.md#get_profit_and_loss_charges) | **GET** /v2/trade/profit-loss/charges | Get profit and loss on trades
@@ -203,9 +222,10 @@ Feel free to adjust the access token placeholder and any other specifics to bett
203
222
  - **ltpc**: ltpc provides information solely about the most recent trade, encompassing details such as the last trade price, time of the last trade, quantity traded, and the closing price from the previous day.
204
223
  - **full**: The full option offers comprehensive information, including the latest trade prices, D5 depth, 1-minute, 30-minute, and daily candlestick data, along with some additional details.
205
224
  - **option_greeks**: Contains only option greeks.
225
+ - **full_d30**: full_d30 includes Full mode data plus 30 market level quotes.
206
226
 
207
227
  #### Functions
208
- 1. **constructor MarketDataStreamerV3(apiClient, instrumentKeys, mode)**: Initializes the streamer with optional instrument keys and mode (`full`, `ltpc` or `option_greeks`).
228
+ 1. **constructor MarketDataStreamerV3(apiClient, instrumentKeys, mode)**: Initializes the streamer with optional instrument keys and mode (`full`, `ltpc`, `option_greeks` or `full_d30`).
209
229
  2. **connect()**: Establishes the WebSocket connection.
210
230
  3. **subscribe(instrumentKeys, mode)**: Subscribes to updates for given instrument keys in the specified mode. Both parameters are mandatory.
211
231
  4. **unsubscribe(instrumentKeys)**: Stops updates for the specified instrument keys.
@@ -745,7 +765,7 @@ if __name__ == "__main__":
745
765
  ```
746
766
  <br/>
747
767
 
748
- Position and holding updates can be enabled by setting the corresponding flag to `True` in the constructor of the `PortfolioDataStreamer` class.
768
+ Position, holding, and GTT order updates can be enabled by setting the corresponding flag to `True` in the constructor of the `PortfolioDataStreamer` class.
749
769
 
750
770
  ```python
751
771
  import upstox_client
@@ -764,7 +784,11 @@ def main():
764
784
  configuration = upstox_client.Configuration()
765
785
  configuration.access_token = <ACCESS_TOKEN>
766
786
 
767
- streamer = upstox_client.PortfolioDataStreamer(upstox_client.ApiClient(configuration),order_update=True,position_update=True,holding_update=True)
787
+ streamer = upstox_client.PortfolioDataStreamer(upstox_client.ApiClient(configuration),
788
+ order_update=True,
789
+ position_update=True,
790
+ holding_update=True,
791
+ gtt_update=True)
768
792
 
769
793
  streamer.on("message", on_message)
770
794
  streamer.on("open", on_open)
@@ -780,6 +804,13 @@ if __name__ == "__main__":
780
804
 
781
805
  ### Exploring the PortfolioDataStreamer Functionality
782
806
 
807
+ #### Constructor Parameters
808
+ 1. **api_client**: Your API client instance
809
+ 2. **order_update**: Set to `True` to receive real-time order updates (default: `True`)
810
+ 3. **position_update**: Set to `True` to receive position updates (default: `False`)
811
+ 4. **holding_update**: Set to `True` to receive holding updates (default: `False`)
812
+ 5. **gtt_update**: Set to `True` to receive GTT order updates (default: `False`)
813
+
783
814
  #### Functions
784
815
  1. **constructor PortfolioDataStreamer()**: Initializes the streamer.
785
816
  2. **connect()**: Establishes the WebSocket connection.
@@ -815,15 +846,22 @@ if __name__ == "__main__":
815
846
  - [DepthMap](docs/DepthMap.md)
816
847
  - [DpPlan](docs/DpPlan.md)
817
848
  - [ExchangeTimingData](docs/ExchangeTimingData.md)
849
+ - [ExpiredFutureData](docs/ExpiredFutureData.md)
818
850
  - [GetBrokerageResponse](docs/GetBrokerageResponse.md)
819
851
  - [GetExchangeTimingResponse](docs/GetExchangeTimingResponse.md)
852
+ - [GetExpiredFuturesContractResponse](docs/GetExpiredFuturesContractResponse.md)
853
+ - [GetExpiriesResponse](docs/GetExpiriesResponse.md)
820
854
  - [GetFullMarketQuoteResponse](docs/GetFullMarketQuoteResponse.md)
855
+ - [GetGttOrderResponse](docs/GetGttOrderResponse.md)
821
856
  - [GetHistoricalCandleResponse](docs/GetHistoricalCandleResponse.md)
822
857
  - [GetHoldingsResponse](docs/GetHoldingsResponse.md)
823
858
  - [GetHolidayResponse](docs/GetHolidayResponse.md)
824
859
  - [GetIntraDayCandleResponse](docs/GetIntraDayCandleResponse.md)
825
860
  - [GetMarketQuoteLastTradedPriceResponse](docs/GetMarketQuoteLastTradedPriceResponse.md)
861
+ - [GetMarketQuoteLastTradedPriceResponseV3](docs/GetMarketQuoteLastTradedPriceResponseV3.md)
826
862
  - [GetMarketQuoteOHLCResponse](docs/GetMarketQuoteOHLCResponse.md)
863
+ - [GetMarketQuoteOHLCResponseV3](docs/GetMarketQuoteOHLCResponseV3.md)
864
+ - [GetMarketQuoteOptionGreekResponseV3](docs/GetMarketQuoteOptionGreekResponseV3.md)
827
865
  - [GetMarketStatusResponse](docs/GetMarketStatusResponse.md)
828
866
  - [GetOptionChainResponse](docs/GetOptionChainResponse.md)
829
867
  - [GetOptionContractResponse](docs/GetOptionContractResponse.md)
@@ -837,6 +875,13 @@ if __name__ == "__main__":
837
875
  - [GetTradeWiseProfitAndLossDataResponse](docs/GetTradeWiseProfitAndLossDataResponse.md)
838
876
  - [GetTradeWiseProfitAndLossMetaDataResponse](docs/GetTradeWiseProfitAndLossMetaDataResponse.md)
839
877
  - [GetUserFundMarginResponse](docs/GetUserFundMarginResponse.md)
878
+ - [GttCancelOrderRequest](docs/GttCancelOrderRequest.md)
879
+ - [GttModifyOrderRequest](docs/GttModifyOrderRequest.md)
880
+ - [GttOrderData](docs/GttOrderData.md)
881
+ - [GttOrderDetails](docs/GttOrderDetails.md)
882
+ - [GttPlaceOrderRequest](docs/GttPlaceOrderRequest.md)
883
+ - [GttRule](docs/GttRule.md)
884
+ - [GttTriggerOrderResponse](docs/GttTriggerOrderResponse.md)
840
885
  - [HistoricalCandleData](docs/HistoricalCandleData.md)
841
886
  - [HoldingsData](docs/HoldingsData.md)
842
887
  - [HolidayData](docs/HolidayData.md)
@@ -852,8 +897,11 @@ if __name__ == "__main__":
852
897
  - [MarginRequest](docs/MarginRequest.md)
853
898
  - [MarketData](docs/MarketData.md)
854
899
  - [MarketQuoteOHLC](docs/MarketQuoteOHLC.md)
900
+ - [MarketQuoteOHLCV3](docs/MarketQuoteOHLCV3.md)
901
+ - [MarketQuoteOptionGreekV3](docs/MarketQuoteOptionGreekV3.md)
855
902
  - [MarketQuoteSymbol](docs/MarketQuoteSymbol.md)
856
903
  - [MarketQuoteSymbolLtp](docs/MarketQuoteSymbolLtp.md)
904
+ - [MarketQuoteSymbolLtpV3](docs/MarketQuoteSymbolLtpV3.md)
857
905
  - [MarketStatusData](docs/MarketStatusData.md)
858
906
  - [ModifyOrderData](docs/ModifyOrderData.md)
859
907
  - [ModifyOrderRequest](docs/ModifyOrderRequest.md)
@@ -870,6 +918,7 @@ if __name__ == "__main__":
870
918
  - [OAuthClientExceptionCauseStackTrace](docs/OAuthClientExceptionCauseStackTrace.md)
871
919
  - [OAuthClientExceptionCauseSuppressed](docs/OAuthClientExceptionCauseSuppressed.md)
872
920
  - [Ohlc](docs/Ohlc.md)
921
+ - [OhlcV3](docs/OhlcV3.md)
873
922
  - [OptionStrikeData](docs/OptionStrikeData.md)
874
923
  - [OrderBookData](docs/OrderBookData.md)
875
924
  - [OrderData](docs/OrderData.md)
@@ -891,6 +940,7 @@ if __name__ == "__main__":
891
940
  - [ProfitAndLossMetaDataWrapper](docs/ProfitAndLossMetaDataWrapper.md)
892
941
  - [ProfitAndLossOtherChargesTaxes](docs/ProfitAndLossOtherChargesTaxes.md)
893
942
  - [PutCallOptionChainData](docs/PutCallOptionChainData.md)
943
+ - [Rule](docs/Rule.md)
894
944
  - [TokenRequest](docs/TokenRequest.md)
895
945
  - [TokenResponse](docs/TokenResponse.md)
896
946
  - [TradeData](docs/TradeData.md)
@@ -1,20 +1,3 @@
1
- Metadata-Version: 2.1
2
- Name: upstox-python-sdk
3
- Version: 2.13.0
4
- Summary: Upstox Developer API
5
- Home-page: https://github.com/upstox/upstox-python
6
- License: MIT
7
- Keywords: Upstox Developer API
8
- Description-Content-Type: text/markdown
9
- License-File: LICENSE.txt
10
- Requires-Dist: urllib3>=1.15
11
- Requires-Dist: six>=1.10
12
- Requires-Dist: certifi
13
- Requires-Dist: python-dateutil
14
- Requires-Dist: websocket-client
15
- Requires-Dist: uuid
16
- Requires-Dist: protobuf
17
-
18
1
  # Upstox Python SDK for API v2
19
2
 
20
3
  [![PyPI](https://img.shields.io/pypi/v/upstox-python-sdk?label=upstox-python-sdk)](https://pypi.python.org/pypi/upstox-python-sdk)
@@ -26,7 +9,7 @@ The official Python client for communicating with the <a href="https://upstox.co
26
9
  Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection.
27
10
 
28
11
  - API version: v2
29
- - Package version: 2.13.0
12
+ - Package version: 2.15.0
30
13
  - Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
31
14
 
32
15
  This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.
@@ -107,9 +90,16 @@ Class | Method | HTTP request | Description
107
90
  ------------ | ------------- | ------------- | -------------
108
91
  *ChargeApi* | [**get_brokerage**](docs/ChargeApi.md#get_brokerage) | **GET** /v2/charges/brokerage | Brokerage details
109
92
  *ChargeApi* | [**post_margin**](docs/ChargeApi.md#post_margin) | **POST** /v2/charges/margin | Calculate Margin
110
- *HistoryApi* | [**get_historical_candle_data**](docs/HistoryApi.md#get_historical_candle_data) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date} | Historical candle data
111
- *HistoryApi* | [**get_historical_candle_data1**](docs/HistoryApi.md#get_historical_candle_data1) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date} | Historical candle data
112
- *HistoryApi* | [**get_intra_day_candle_data**](docs/HistoryApi.md#get_intra_day_candle_data) | **GET** /v2/historical-candle/intraday/{instrumentKey}/{interval} | Intra day candle data
93
+ *ExpiredInstrumentApi* | [**get_expired_future_contracts**](docs/ExpiredInstrumentApi.md#get_expired_future_contracts) | **GET** /v2/expired-instruments/future/contract | Expired instruments - Get future contracts
94
+ *ExpiredInstrumentApi* | [**get_expired_historical_candle_data**](docs/ExpiredInstrumentApi.md#get_expired_historical_candle_data) | **GET** /v2/expired-instruments/historical-candle/{expired_instrument_key}/{interval}/{to_date}/{from_date} | Expired Historical candle data
95
+ *ExpiredInstrumentApi* | [**get_expired_option_contracts**](docs/ExpiredInstrumentApi.md#get_expired_option_contracts) | **GET** /v2/expired-instruments/option/contract | Get expired option contracts
96
+ *ExpiredInstrumentApi* | [**get_expiries**](docs/ExpiredInstrumentApi.md#get_expiries) | **GET** /v2/expired-instruments/expiries | Expired instruments - Get expiries
97
+ *HistoryApi* | [**get_historical_candle_data2**](docs/HistoryApi.md#get_historical_candle_data2) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date} | Historical candle data
98
+ *HistoryApi* | [**get_historical_candle_data3**](docs/HistoryApi.md#get_historical_candle_data3) | **GET** /v2/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date} | Historical candle data
99
+ *HistoryApi* | [**get_intra_day_candle_data1**](docs/HistoryApi.md#get_intra_day_candle_data1) | **GET** /v2/historical-candle/intraday/{instrumentKey}/{interval} | Intra day candle data
100
+ *HistoryV3Api* | [**get_historical_candle_data**](docs/HistoryV3Api.md#get_historical_candle_data) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date} | Historical candle data
101
+ *HistoryV3Api* | [**get_historical_candle_data1**](docs/HistoryV3Api.md#get_historical_candle_data1) | **GET** /v3/historical-candle/{instrumentKey}/{unit}/{interval}/{to_date}/{from_date} | Historical candle data
102
+ *HistoryV3Api* | [**get_intra_day_candle_data**](docs/HistoryV3Api.md#get_intra_day_candle_data) | **GET** /v3/historical-candle/intraday/{instrumentKey}/{unit}/{interval} | Intra day candle data
113
103
  *LoginApi* | [**authorize**](docs/LoginApi.md#authorize) | **GET** /v2/login/authorization/dialog | Authorize API
114
104
  *LoginApi* | [**init_token_request_for_indie_user**](docs/LoginApi.md#init_token_request_for_indie_user) | **POST** /v3/login/auth/token/request/{client_id} | Init token API
115
105
  *LoginApi* | [**logout**](docs/LoginApi.md#logout) | **DELETE** /v2/logout | Logout
@@ -121,6 +111,9 @@ Class | Method | HTTP request | Description
121
111
  *MarketQuoteApi* | [**get_full_market_quote**](docs/MarketQuoteApi.md#get_full_market_quote) | **GET** /v2/market-quote/quotes | Market quotes and instruments - Full market quotes
122
112
  *MarketQuoteApi* | [**get_market_quote_ohlc**](docs/MarketQuoteApi.md#get_market_quote_ohlc) | **GET** /v2/market-quote/ohlc | Market quotes and instruments - OHLC quotes
123
113
  *MarketQuoteApi* | [**ltp**](docs/MarketQuoteApi.md#ltp) | **GET** /v2/market-quote/ltp | Market quotes and instruments - LTP quotes.
114
+ *MarketQuoteV3Api* | [**get_ltp**](docs/MarketQuoteV3Api.md#get_ltp) | **GET** /v3/market-quote/ltp | Market quotes and instruments - LTP quotes.
115
+ *MarketQuoteV3Api* | [**get_market_quote_ohlc**](docs/MarketQuoteV3Api.md#get_market_quote_ohlc) | **GET** /v3/market-quote/ohlc | Market quotes and instruments - OHLC quotes
116
+ *MarketQuoteV3Api* | [**get_market_quote_option_greek**](docs/MarketQuoteV3Api.md#get_market_quote_option_greek) | **GET** /v3/market-quote/option-greek | Market quotes and instruments - Option Greek
124
117
  *OptionsApi* | [**get_option_contracts**](docs/OptionsApi.md#get_option_contracts) | **GET** /v2/option/contract | Get option contracts
125
118
  *OptionsApi* | [**get_put_call_option_chain**](docs/OptionsApi.md#get_put_call_option_chain) | **GET** /v2/option/chain | Get option chain
126
119
  *OrderApi* | [**cancel_multi_order**](docs/OrderApi.md#cancel_multi_order) | **DELETE** /v2/order/multi/cancel | Cancel multi order
@@ -136,6 +129,7 @@ Class | Method | HTTP request | Description
136
129
  *OrderApi* | [**place_order**](docs/OrderApi.md#place_order) | **POST** /v2/order/place | Place order
137
130
  *PortfolioApi* | [**convert_positions**](docs/PortfolioApi.md#convert_positions) | **PUT** /v2/portfolio/convert-position | Convert Positions
138
131
  *PortfolioApi* | [**get_holdings**](docs/PortfolioApi.md#get_holdings) | **GET** /v2/portfolio/long-term-holdings | Get Holdings
132
+ *PortfolioApi* | [**get_mtf_positions**](docs/PortfolioApi.md#get_mtf_positions) | **GET** /v3/portfolio/mtf-positions | Get MTF positions
139
133
  *PortfolioApi* | [**get_positions**](docs/PortfolioApi.md#get_positions) | **GET** /v2/portfolio/short-term-positions | Get Positions
140
134
  *PostTradeApi* | [**get_trades_by_date_range**](docs/PostTradeApi.md#get_trades_by_date_range) | **GET** /v2/charges/historical-trades | Get historical trades
141
135
  *TradeProfitAndLossApi* | [**get_profit_and_loss_charges**](docs/TradeProfitAndLossApi.md#get_profit_and_loss_charges) | **GET** /v2/trade/profit-loss/charges | Get profit and loss on trades
@@ -203,9 +197,10 @@ Feel free to adjust the access token placeholder and any other specifics to bett
203
197
  - **ltpc**: ltpc provides information solely about the most recent trade, encompassing details such as the last trade price, time of the last trade, quantity traded, and the closing price from the previous day.
204
198
  - **full**: The full option offers comprehensive information, including the latest trade prices, D5 depth, 1-minute, 30-minute, and daily candlestick data, along with some additional details.
205
199
  - **option_greeks**: Contains only option greeks.
200
+ - **full_d30**: full_d30 includes Full mode data plus 30 market level quotes.
206
201
 
207
202
  #### Functions
208
- 1. **constructor MarketDataStreamerV3(apiClient, instrumentKeys, mode)**: Initializes the streamer with optional instrument keys and mode (`full`, `ltpc` or `option_greeks`).
203
+ 1. **constructor MarketDataStreamerV3(apiClient, instrumentKeys, mode)**: Initializes the streamer with optional instrument keys and mode (`full`, `ltpc`, `option_greeks` or `full_d30`).
209
204
  2. **connect()**: Establishes the WebSocket connection.
210
205
  3. **subscribe(instrumentKeys, mode)**: Subscribes to updates for given instrument keys in the specified mode. Both parameters are mandatory.
211
206
  4. **unsubscribe(instrumentKeys)**: Stops updates for the specified instrument keys.
@@ -745,7 +740,7 @@ if __name__ == "__main__":
745
740
  ```
746
741
  <br/>
747
742
 
748
- Position and holding updates can be enabled by setting the corresponding flag to `True` in the constructor of the `PortfolioDataStreamer` class.
743
+ Position, holding, and GTT order updates can be enabled by setting the corresponding flag to `True` in the constructor of the `PortfolioDataStreamer` class.
749
744
 
750
745
  ```python
751
746
  import upstox_client
@@ -764,7 +759,11 @@ def main():
764
759
  configuration = upstox_client.Configuration()
765
760
  configuration.access_token = <ACCESS_TOKEN>
766
761
 
767
- streamer = upstox_client.PortfolioDataStreamer(upstox_client.ApiClient(configuration),order_update=True,position_update=True,holding_update=True)
762
+ streamer = upstox_client.PortfolioDataStreamer(upstox_client.ApiClient(configuration),
763
+ order_update=True,
764
+ position_update=True,
765
+ holding_update=True,
766
+ gtt_update=True)
768
767
 
769
768
  streamer.on("message", on_message)
770
769
  streamer.on("open", on_open)
@@ -780,6 +779,13 @@ if __name__ == "__main__":
780
779
 
781
780
  ### Exploring the PortfolioDataStreamer Functionality
782
781
 
782
+ #### Constructor Parameters
783
+ 1. **api_client**: Your API client instance
784
+ 2. **order_update**: Set to `True` to receive real-time order updates (default: `True`)
785
+ 3. **position_update**: Set to `True` to receive position updates (default: `False`)
786
+ 4. **holding_update**: Set to `True` to receive holding updates (default: `False`)
787
+ 5. **gtt_update**: Set to `True` to receive GTT order updates (default: `False`)
788
+
783
789
  #### Functions
784
790
  1. **constructor PortfolioDataStreamer()**: Initializes the streamer.
785
791
  2. **connect()**: Establishes the WebSocket connection.
@@ -815,15 +821,22 @@ if __name__ == "__main__":
815
821
  - [DepthMap](docs/DepthMap.md)
816
822
  - [DpPlan](docs/DpPlan.md)
817
823
  - [ExchangeTimingData](docs/ExchangeTimingData.md)
824
+ - [ExpiredFutureData](docs/ExpiredFutureData.md)
818
825
  - [GetBrokerageResponse](docs/GetBrokerageResponse.md)
819
826
  - [GetExchangeTimingResponse](docs/GetExchangeTimingResponse.md)
827
+ - [GetExpiredFuturesContractResponse](docs/GetExpiredFuturesContractResponse.md)
828
+ - [GetExpiriesResponse](docs/GetExpiriesResponse.md)
820
829
  - [GetFullMarketQuoteResponse](docs/GetFullMarketQuoteResponse.md)
830
+ - [GetGttOrderResponse](docs/GetGttOrderResponse.md)
821
831
  - [GetHistoricalCandleResponse](docs/GetHistoricalCandleResponse.md)
822
832
  - [GetHoldingsResponse](docs/GetHoldingsResponse.md)
823
833
  - [GetHolidayResponse](docs/GetHolidayResponse.md)
824
834
  - [GetIntraDayCandleResponse](docs/GetIntraDayCandleResponse.md)
825
835
  - [GetMarketQuoteLastTradedPriceResponse](docs/GetMarketQuoteLastTradedPriceResponse.md)
836
+ - [GetMarketQuoteLastTradedPriceResponseV3](docs/GetMarketQuoteLastTradedPriceResponseV3.md)
826
837
  - [GetMarketQuoteOHLCResponse](docs/GetMarketQuoteOHLCResponse.md)
838
+ - [GetMarketQuoteOHLCResponseV3](docs/GetMarketQuoteOHLCResponseV3.md)
839
+ - [GetMarketQuoteOptionGreekResponseV3](docs/GetMarketQuoteOptionGreekResponseV3.md)
827
840
  - [GetMarketStatusResponse](docs/GetMarketStatusResponse.md)
828
841
  - [GetOptionChainResponse](docs/GetOptionChainResponse.md)
829
842
  - [GetOptionContractResponse](docs/GetOptionContractResponse.md)
@@ -837,6 +850,13 @@ if __name__ == "__main__":
837
850
  - [GetTradeWiseProfitAndLossDataResponse](docs/GetTradeWiseProfitAndLossDataResponse.md)
838
851
  - [GetTradeWiseProfitAndLossMetaDataResponse](docs/GetTradeWiseProfitAndLossMetaDataResponse.md)
839
852
  - [GetUserFundMarginResponse](docs/GetUserFundMarginResponse.md)
853
+ - [GttCancelOrderRequest](docs/GttCancelOrderRequest.md)
854
+ - [GttModifyOrderRequest](docs/GttModifyOrderRequest.md)
855
+ - [GttOrderData](docs/GttOrderData.md)
856
+ - [GttOrderDetails](docs/GttOrderDetails.md)
857
+ - [GttPlaceOrderRequest](docs/GttPlaceOrderRequest.md)
858
+ - [GttRule](docs/GttRule.md)
859
+ - [GttTriggerOrderResponse](docs/GttTriggerOrderResponse.md)
840
860
  - [HistoricalCandleData](docs/HistoricalCandleData.md)
841
861
  - [HoldingsData](docs/HoldingsData.md)
842
862
  - [HolidayData](docs/HolidayData.md)
@@ -852,8 +872,11 @@ if __name__ == "__main__":
852
872
  - [MarginRequest](docs/MarginRequest.md)
853
873
  - [MarketData](docs/MarketData.md)
854
874
  - [MarketQuoteOHLC](docs/MarketQuoteOHLC.md)
875
+ - [MarketQuoteOHLCV3](docs/MarketQuoteOHLCV3.md)
876
+ - [MarketQuoteOptionGreekV3](docs/MarketQuoteOptionGreekV3.md)
855
877
  - [MarketQuoteSymbol](docs/MarketQuoteSymbol.md)
856
878
  - [MarketQuoteSymbolLtp](docs/MarketQuoteSymbolLtp.md)
879
+ - [MarketQuoteSymbolLtpV3](docs/MarketQuoteSymbolLtpV3.md)
857
880
  - [MarketStatusData](docs/MarketStatusData.md)
858
881
  - [ModifyOrderData](docs/ModifyOrderData.md)
859
882
  - [ModifyOrderRequest](docs/ModifyOrderRequest.md)
@@ -870,6 +893,7 @@ if __name__ == "__main__":
870
893
  - [OAuthClientExceptionCauseStackTrace](docs/OAuthClientExceptionCauseStackTrace.md)
871
894
  - [OAuthClientExceptionCauseSuppressed](docs/OAuthClientExceptionCauseSuppressed.md)
872
895
  - [Ohlc](docs/Ohlc.md)
896
+ - [OhlcV3](docs/OhlcV3.md)
873
897
  - [OptionStrikeData](docs/OptionStrikeData.md)
874
898
  - [OrderBookData](docs/OrderBookData.md)
875
899
  - [OrderData](docs/OrderData.md)
@@ -891,6 +915,7 @@ if __name__ == "__main__":
891
915
  - [ProfitAndLossMetaDataWrapper](docs/ProfitAndLossMetaDataWrapper.md)
892
916
  - [ProfitAndLossOtherChargesTaxes](docs/ProfitAndLossOtherChargesTaxes.md)
893
917
  - [PutCallOptionChainData](docs/PutCallOptionChainData.md)
918
+ - [Rule](docs/Rule.md)
894
919
  - [TokenRequest](docs/TokenRequest.md)
895
920
  - [TokenResponse](docs/TokenResponse.md)
896
921
  - [TradeData](docs/TradeData.md)
@@ -0,0 +1,44 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from setuptools import setup, find_packages # noqa: H301
14
+
15
+ # read the contents of your README file
16
+ from pathlib import Path
17
+ this_directory = Path(__file__).parent
18
+ long_description = (this_directory / "README.md").read_text()
19
+
20
+ NAME = "upstox-python-sdk"
21
+ VERSION = "2.15.0"
22
+ # To install the library, run the following
23
+ #
24
+ # python setup.py install
25
+ #
26
+ # prerequisite: setuptools
27
+ # http://pypi.python.org/pypi/setuptools
28
+
29
+ REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi",
30
+ "python-dateutil", "websocket-client", "uuid", "protobuf"]
31
+
32
+ setup(
33
+ name=NAME,
34
+ version=VERSION,
35
+ license='MIT',
36
+ description="Upstox Developer API",
37
+ url="https://github.com/upstox/upstox-python",
38
+ keywords=["Upstox Developer API"],
39
+ install_requires=REQUIRES,
40
+ packages=find_packages(),
41
+ include_package_data=True,
42
+ long_description=long_description,
43
+ long_description_content_type='text/markdown'
44
+ )
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import upstox_client
18
+ from upstox_client.models.api_gateway_error_response import ApiGatewayErrorResponse # noqa: E501
19
+ from upstox_client.rest import ApiException
20
+
21
+
22
+ class TestApiGatewayErrorResponse(unittest.TestCase):
23
+ """ApiGatewayErrorResponse unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testApiGatewayErrorResponse(self):
32
+ """Test ApiGatewayErrorResponse"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = upstox_client.models.api_gateway_error_response.ApiGatewayErrorResponse() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import upstox_client
18
+ from upstox_client.models.brokerage_data import BrokerageData # noqa: E501
19
+ from upstox_client.rest import ApiException
20
+
21
+
22
+ class TestBrokerageData(unittest.TestCase):
23
+ """BrokerageData unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testBrokerageData(self):
32
+ """Test BrokerageData"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = upstox_client.models.brokerage_data.BrokerageData() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import upstox_client
18
+ from upstox_client.models.brokerage_taxes import BrokerageTaxes # noqa: E501
19
+ from upstox_client.rest import ApiException
20
+
21
+
22
+ class TestBrokerageTaxes(unittest.TestCase):
23
+ """BrokerageTaxes unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testBrokerageTaxes(self):
32
+ """Test BrokerageTaxes"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = upstox_client.models.brokerage_taxes.BrokerageTaxes() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import upstox_client
18
+ from upstox_client.models.brokerage_wrapper_data import BrokerageWrapperData # noqa: E501
19
+ from upstox_client.rest import ApiException
20
+
21
+
22
+ class TestBrokerageWrapperData(unittest.TestCase):
23
+ """BrokerageWrapperData unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testBrokerageWrapperData(self):
32
+ """Test BrokerageWrapperData"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = upstox_client.models.brokerage_wrapper_data.BrokerageWrapperData() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()
@@ -0,0 +1,39 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Upstox Developer API
5
+
6
+ Build your App on the Upstox platform ![Banner](https://api.upstox.com/api-docs/images/banner.jpg \"banner\") # Introduction Upstox API is a set of rest APIs that provide data required to build a complete investment and trading platform. Execute orders in real time, manage user portfolio, stream live market data (using Websocket), and more, with the easy to understand API collection. All requests are over HTTPS and the requests are sent with the content-type ‘application/json’. Developers have the option of choosing the response type as JSON or CSV for a few API calls. To be able to use these APIs you need to create an App in the Developer Console and generate your **apiKey** and **apiSecret**. You can use a redirect URL which will be called after the login flow. If you are a **trader**, you can directly create apps from Upstox mobile app or the desktop platform itself from **Apps** sections inside the **Account** Tab. Head over to <a href=\"http://account.upstox.com/developer/apps\" target=\"_blank\">account.upstox.com/developer/apps</a>.</br> If you are a **business** looking to integrate Upstox APIs, reach out to us and we will get a custom app created for you in no time. It is highly recommended that you do not embed the **apiSecret** in your frontend app. Create a remote backend which does the handshake on behalf of the frontend app. Marking the apiSecret in the frontend app will make your app vulnerable to threats and potential issues. # noqa: E501
7
+
8
+ OpenAPI spec version: v2
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ """
12
+
13
+ from __future__ import absolute_import
14
+
15
+ import unittest
16
+
17
+ import upstox_client
18
+ from upstox_client.models.cancel_order_data import CancelOrderData # noqa: E501
19
+ from upstox_client.rest import ApiException
20
+
21
+
22
+ class TestCancelOrderData(unittest.TestCase):
23
+ """CancelOrderData unit test stubs"""
24
+
25
+ def setUp(self):
26
+ pass
27
+
28
+ def tearDown(self):
29
+ pass
30
+
31
+ def testCancelOrderData(self):
32
+ """Test CancelOrderData"""
33
+ # FIXME: construct object with mandatory attributes with example values
34
+ # model = upstox_client.models.cancel_order_data.CancelOrderData() # noqa: E501
35
+ pass
36
+
37
+
38
+ if __name__ == '__main__':
39
+ unittest.main()