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.
- {upstox_python_sdk-2.13.0/upstox_python_sdk.egg-info → upstox_python_sdk-2.15.0}/PKG-INFO +59 -9
- upstox_python_sdk-2.13.0/PKG-INFO → upstox_python_sdk-2.15.0/README.md +49 -24
- upstox_python_sdk-2.15.0/setup.py +44 -0
- upstox_python_sdk-2.15.0/test/test_api_gateway_error_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_brokerage_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_brokerage_taxes.py +39 -0
- upstox_python_sdk-2.15.0/test/test_brokerage_wrapper_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_cancel_order_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_cancel_order_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_charge_api.py +40 -0
- upstox_python_sdk-2.15.0/test/test_convert_position_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_convert_position_request.py +39 -0
- upstox_python_sdk-2.15.0/test/test_convert_position_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_depth.py +39 -0
- upstox_python_sdk-2.15.0/test/test_depth_map.py +39 -0
- upstox_python_sdk-2.15.0/test/test_dp_plan.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_brokerage_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_full_market_quote_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_historical_candle_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_holdings_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_intra_day_candle_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_market_quote_last_traded_price_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_market_quote_ohlc_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_order_book_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_order_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_position_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_profile_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_profit_and_loss_charges_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_trade_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_trade_wise_profit_and_loss_data_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_get_user_fund_margin_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_historical_candle_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_history_api.py +54 -0
- upstox_python_sdk-2.15.0/test/test_holdings_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_intra_day_candle_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_login_api.py +54 -0
- upstox_python_sdk-2.15.0/test/test_logout_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_market_quote_api.py +54 -0
- upstox_python_sdk-2.15.0/test/test_market_quote_ohlc.py +39 -0
- upstox_python_sdk-2.15.0/test/test_market_quote_symbol.py +39 -0
- upstox_python_sdk-2.15.0/test/test_market_quote_symbol_ltp.py +39 -0
- upstox_python_sdk-2.15.0/test/test_modify_order_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_modify_order_request.py +39 -0
- upstox_python_sdk-2.15.0/test/test_modify_order_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_o_auth_client_exception.py +39 -0
- upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause.py +39 -0
- upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause_stack_trace.py +39 -0
- upstox_python_sdk-2.15.0/test/test_o_auth_client_exception_cause_suppressed.py +39 -0
- upstox_python_sdk-2.15.0/test/test_ohlc.py +39 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_api.py +1 -1
- upstox_python_sdk-2.15.0/test/test_order_book_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_order_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_other_taxes.py +39 -0
- upstox_python_sdk-2.15.0/test/test_place_order_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_place_order_request.py +39 -0
- upstox_python_sdk-2.15.0/test/test_place_order_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_portfolio_api.py +54 -0
- upstox_python_sdk-2.15.0/test/test_position_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_problem.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profile_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_taxes.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_charges_wrapper_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_meta_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_meta_data_wrapper.py +39 -0
- upstox_python_sdk-2.15.0/test/test_profit_and_loss_other_charges_taxes.py +39 -0
- upstox_python_sdk-2.15.0/test/test_token_request.py +39 -0
- upstox_python_sdk-2.15.0/test/test_token_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_trade_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_trade_profit_and_loss_api.py +54 -0
- upstox_python_sdk-2.15.0/test/test_trade_wise_meta_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_trade_wise_profit_and_loss_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_user_api.py +47 -0
- upstox_python_sdk-2.15.0/test/test_user_fund_margin_data.py +39 -0
- upstox_python_sdk-2.15.0/test/test_websocket_api.py +61 -0
- upstox_python_sdk-2.15.0/test/test_websocket_auth_redirect_response.py +39 -0
- upstox_python_sdk-2.15.0/test/test_websocket_auth_redirect_response_data.py +39 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/__init__.py +14 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/__init__.py +6 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/charge_api.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/api/expired_instrument_api.py +453 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/history_api.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/api/history_v3_api.py +390 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/login_api.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/market_quote_api.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/api/market_quote_v3_api.py +314 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/order_api.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/portfolio_api.py +88 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/trade_profit_and_loss_api.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/user_api.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/websocket_api.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api_client.py +2 -2
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/configuration.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_feeder_v3.py +2 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_streamer_v3.py +4 -2
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/portfolio_data_feeder.py +4 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/portfolio_data_streamer.py +3 -2
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/__init__.py +11 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/api_gateway_error_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_taxes.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/brokerage_wrapper_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/convert_position_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/depth.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/depth_map.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/dp_plan.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/expired_future_data.py +504 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_brokerage_response.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/get_expired_futures_contract_response.py +142 -0
- upstox_python_sdk-2.15.0/upstox_client/models/get_expiries.py +142 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_full_market_quote_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_historical_candle_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_holdings_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_intra_day_candle_response.py +1 -1
- {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
- upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_last_traded_price_response_v3.py +142 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_market_quote_ohlc_response.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_ohlc_response_v3.py +142 -0
- upstox_python_sdk-2.15.0/upstox_client/models/get_market_quote_option_greek_response_v3.py +142 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_book_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_position_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_profile_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_profit_and_loss_charges_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_trade_response.py +1 -1
- {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
- {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
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_user_fund_margin_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/historical_candle_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/holdings_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/intra_day_candle_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/logout_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_ohlc.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/market_quote_ohlcv3.py +190 -0
- upstox_python_sdk-2.15.0/upstox_client/models/market_quote_option_greek_v3.py +370 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_symbol.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_quote_symbol_ltp.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/market_quote_symbol_ltp_v3.py +214 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception_cause.py +1 -1
- {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
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/ohlc.py +1 -1
- upstox_python_sdk-2.15.0/upstox_client/models/ohlc_v3.py +252 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_book_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/other_taxes.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_v3_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/position_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/problem.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profile_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_taxes.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_meta_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/profit_and_loss_other_charges_taxes.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/rule.py +27 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/token_request.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/token_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_wise_meta_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_wise_profit_and_loss_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/user_fund_margin_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/websocket_auth_redirect_response.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/websocket_auth_redirect_response_data.py +1 -1
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/rest.py +1 -1
- upstox_python_sdk-2.13.0/README.md → upstox_python_sdk-2.15.0/upstox_python_sdk.egg-info/PKG-INFO +74 -7
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/SOURCES.txt +13 -0
- upstox_python_sdk-2.13.0/setup.py +0 -44
- upstox_python_sdk-2.13.0/test/test_api_gateway_error_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_brokerage_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_brokerage_taxes.py +0 -39
- upstox_python_sdk-2.13.0/test/test_brokerage_wrapper_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_cancel_order_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_cancel_order_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_charge_api.py +0 -40
- upstox_python_sdk-2.13.0/test/test_convert_position_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_convert_position_request.py +0 -39
- upstox_python_sdk-2.13.0/test/test_convert_position_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_depth.py +0 -39
- upstox_python_sdk-2.13.0/test/test_depth_map.py +0 -39
- upstox_python_sdk-2.13.0/test/test_dp_plan.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_brokerage_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_full_market_quote_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_historical_candle_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_holdings_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_intra_day_candle_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_market_quote_last_traded_price_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_market_quote_ohlc_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_order_book_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_order_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_position_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_profile_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_profit_and_loss_charges_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_trade_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_get_user_fund_margin_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_historical_candle_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_history_api.py +0 -54
- upstox_python_sdk-2.13.0/test/test_holdings_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_intra_day_candle_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_login_api.py +0 -54
- upstox_python_sdk-2.13.0/test/test_logout_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_market_quote_api.py +0 -54
- upstox_python_sdk-2.13.0/test/test_market_quote_ohlc.py +0 -39
- upstox_python_sdk-2.13.0/test/test_market_quote_symbol.py +0 -39
- upstox_python_sdk-2.13.0/test/test_market_quote_symbol_ltp.py +0 -39
- upstox_python_sdk-2.13.0/test/test_modify_order_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_modify_order_request.py +0 -39
- upstox_python_sdk-2.13.0/test/test_modify_order_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_o_auth_client_exception.py +0 -39
- upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause.py +0 -39
- upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause_stack_trace.py +0 -39
- upstox_python_sdk-2.13.0/test/test_o_auth_client_exception_cause_suppressed.py +0 -39
- upstox_python_sdk-2.13.0/test/test_ohlc.py +0 -39
- upstox_python_sdk-2.13.0/test/test_order_book_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_order_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_other_taxes.py +0 -39
- upstox_python_sdk-2.13.0/test/test_place_order_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_place_order_request.py +0 -39
- upstox_python_sdk-2.13.0/test/test_place_order_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_portfolio_api.py +0 -54
- upstox_python_sdk-2.13.0/test/test_position_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_problem.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profile_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_taxes.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_charges_wrapper_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_meta_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_meta_data_wrapper.py +0 -39
- upstox_python_sdk-2.13.0/test/test_profit_and_loss_other_charges_taxes.py +0 -39
- upstox_python_sdk-2.13.0/test/test_token_request.py +0 -39
- upstox_python_sdk-2.13.0/test/test_token_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_trade_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_trade_profit_and_loss_api.py +0 -54
- upstox_python_sdk-2.13.0/test/test_trade_wise_meta_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_trade_wise_profit_and_loss_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_user_api.py +0 -47
- upstox_python_sdk-2.13.0/test/test_user_fund_margin_data.py +0 -39
- upstox_python_sdk-2.13.0/test/test_websocket_api.py +0 -61
- upstox_python_sdk-2.13.0/test/test_websocket_auth_redirect_response.py +0 -39
- upstox_python_sdk-2.13.0/test/test_websocket_auth_redirect_response_data.py +0 -39
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/LICENSE.txt +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/setup.cfg +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/__init__.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/sanity_test.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_analytics_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_batch_execution_summary.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_multi_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_multi_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_or_exit_order_error_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_cancel_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_exchange_timing_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_exchange_timing_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_gtt_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_holiday_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_market_status_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_option_chain_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_option_contract_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_get_order_details_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_cancel_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_modify_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_order_details.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_place_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_rule.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_gtt_trigger_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_holiday_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_init_token_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_init_token_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_indie_user_token_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_instrument.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_instrument_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_margin_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_holidays_and_timings_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_market_status_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_modify_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_error.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_summary.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_multi_order_v3_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_option_strike_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_options_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_controller_v_3_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_order_metadata.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_place_order_v3_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_place_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_post_margin_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_post_trade_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_put_call_option_chain_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_rule.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_meta_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_page_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/test/test_trade_history_response_trade_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/market_holidays_and_timings_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/options_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/order_controller_v_3_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/api/post_trade_api.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/__init__.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/feeder.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_feeder.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/market_data_streamer.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/MarketDataFeedV3_pb2.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/MarketDataFeed_pb2.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/proto/__init__.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/feeder/streamer.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/analytics_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/batch_execution_summary.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_multi_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_multi_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_or_exit_order_error_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/cancel_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/exchange_timing_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_exchange_timing_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_gtt_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_holiday_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_market_status_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_option_chain_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_option_contract_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/get_order_details_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_cancel_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_modify_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_order_details.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_place_order_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_rule.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/gtt_trigger_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/holiday_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_init_token_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_init_token_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/indie_user_token_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/instrument.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/instrument_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/margin_request.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/market_status_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/modify_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_error.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_summary.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/multi_order_v3_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/option_strike_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/order_metadata.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/place_order_v3_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/post_margin_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/put_call_option_chain_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_meta_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_page_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_client/models/trade_history_response_trade_data.py +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
- {upstox_python_sdk-2.13.0 → upstox_python_sdk-2.15.0}/upstox_python_sdk.egg-info/requires.txt +0 -0
- {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
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: upstox-python-sdk
|
|
3
|
-
Version: 2.
|
|
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.
|
|
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
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
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 `
|
|
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
|
|
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),
|
|
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
|
[](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.
|
|
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
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
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 `
|
|
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
|
|
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),
|
|
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  # 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  # 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  # 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  # 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  # 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  # 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()
|