upstox-python-sdk 2.21.0__tar.gz → 2.23.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.21.0 → upstox-python-sdk-2.23.0}/PKG-INFO +31 -65
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/README.md +30 -64
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/setup.py +1 -1
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/__init__.py +26 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/__init__.py +1 -0
- upstox-python-sdk-2.23.0/upstox_client/api/news_api.py +140 -0
- upstox-python-sdk-2.23.0/upstox_client/api/user_api.py +682 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api_client.py +1 -1
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/__init__.py +25 -0
- upstox-python-sdk-2.23.0/upstox_client/models/available_to_trade.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/cash_available_to_trade.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/cash_breakdown.py +214 -0
- upstox-python-sdk-2.23.0/upstox_client/models/cash_margin_used.py +266 -0
- upstox-python-sdk-2.23.0/upstox_client/models/cash_unavailable_to_trade.py +110 -0
- upstox-python-sdk-2.23.0/upstox_client/models/delivery_margin.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/get_news_response.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/get_user_fund_margin_v3_response.py +138 -0
- upstox-python-sdk-2.23.0/upstox_client/models/kill_switch_response.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/kill_switch_segment_data.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/kill_switch_segment_update_request.py +138 -0
- upstox-python-sdk-2.23.0/upstox_client/models/loss.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/margin_from_pledge.py +162 -0
- upstox-python-sdk-2.23.0/upstox_client/models/news_item_data.py +214 -0
- upstox-python-sdk-2.23.0/upstox_client/models/news_response_meta_data.py +110 -0
- upstox-python-sdk-2.23.0/upstox_client/models/news_response_page_data.py +188 -0
- upstox-python-sdk-2.23.0/upstox_client/models/pledge_available_to_trade.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/pledge_margin_used.py +240 -0
- upstox-python-sdk-2.23.0/upstox_client/models/pledge_unavailable_to_trade.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/unavailable_to_trade.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/unsettled_profit.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/update_user_ip_request.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/user_fund_margin_v3_data.py +136 -0
- upstox-python-sdk-2.23.0/upstox_client/models/user_ip_response.py +138 -0
- upstox-python-sdk-2.23.0/upstox_client/models/user_ip_response_data.py +218 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/PKG-INFO +31 -65
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/SOURCES.txt +26 -0
- upstox-python-sdk-2.21.0/upstox_client/api/user_api.py +0 -227
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/LICENSE.txt +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/setup.cfg +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/__init__.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/sanity_test.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_analytics_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_charge_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_depth.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_depth_map.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_dp_plan.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_holdings_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_holiday_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_market_status_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_order_book_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_order_details_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_position_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_profile_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_trade_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_order_details.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_rule.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_historical_candle_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_history_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_holdings_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_holiday_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_instrument.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_instrument_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_login_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_logout_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_margin.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_margin_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_margin_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_market_status_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_error.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_summary.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_ohlc.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_option_strike_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_options_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_order_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_order_book_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_order_metadata.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_other_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_place_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_place_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_place_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_portfolio_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_position_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_post_margin_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_post_trade_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_problem.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profile_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_rule.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_token_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_token_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_user_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_websocket_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/test/test_websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/charge_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/expired_instrument_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/history_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/history_v3_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/instruments_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/login_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_quote_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_quote_v3_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/options_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/order_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/portfolio_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/post_trade_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/api/websocket_api.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/configuration.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/__init__.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/feeder.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/market_data_feeder_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/market_data_streamer_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/portfolio_data_feeder.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/portfolio_data_streamer.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/proto/MarketDataFeedV3_pb2.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/proto/__init__.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/streamer.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/analytics_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/depth.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/depth_map.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/dp_plan.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/expired_future_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_expired_futures_contract_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_expiries.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_holdings_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_holiday_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_last_traded_price_response_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_ohlc_response_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_option_greek_response_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_status_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_book_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_details_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_position_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_profile_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_trade_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_order_details.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_rule.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/historical_candle_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/holdings_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/holiday_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/instrument.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/instrument_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/logout_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_ohlcv3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_option_greek_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol_ltp_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_status_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_error.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_summary.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/ohlc.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/ohlc_v3.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/option_strike_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_book_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_metadata.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/other_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/position_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/post_margin_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/problem.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profile_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/rule.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_instrument_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_page.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/token_request.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/token_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/models/websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_client/rest.py +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/requires.txt +0 -0
- {upstox-python-sdk-2.21.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: upstox-python-sdk
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.23.0
|
|
4
4
|
Summary: Upstox Developer API
|
|
5
5
|
Home-page: https://github.com/upstox/upstox-python
|
|
6
6
|
License: MIT
|
|
@@ -20,7 +20,7 @@ The official Python client for communicating with the <a href="https://upstox.co
|
|
|
20
20
|
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.
|
|
21
21
|
|
|
22
22
|
- API version: v2
|
|
23
|
-
- Package version: 2.
|
|
23
|
+
- Package version: 2.23.0
|
|
24
24
|
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
25
25
|
|
|
26
26
|
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.
|
|
@@ -111,69 +111,35 @@ except ApiException as e:
|
|
|
111
111
|
Other order methods (modify, cancel, etc.) follow the same pattern by accepting an optional `algo_name` as a keyword parameter.
|
|
112
112
|
|
|
113
113
|
|
|
114
|
-
##
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
Exit All Position | **POST** /v2/order/positions/exit | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/exit-all-positions) | [Sample Code](https://upstox.com/developer/api-documentation/exit-all-positions#sample-code-python_sdk)
|
|
144
|
-
Get Order Details | **GET** /v2/order/details | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-order-details) | [Sample Code](https://upstox.com/developer/api-documentation/get-order-details#sample-code-python_sdk)
|
|
145
|
-
Get Order History | **GET** /v2/order/history | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-order-history) | [Sample Code](https://upstox.com/developer/api-documentation/get-order-history#sample-code-python_sdk)
|
|
146
|
-
Get Trades By Order | **GET** /v2/order/trades | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trades-by-order) | [Sample Code](https://upstox.com/developer/api-documentation/get-trades-by-order#sample-code-python_sdk)
|
|
147
|
-
Get Trade History | **GET** /v2/order/trades/get-trades-for-day | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trade-history) | [Sample Code](https://upstox.com/developer/api-documentation/get-trade-history#sample-code-python_sdk)
|
|
148
|
-
**GTT Order** | | | |
|
|
149
|
-
Place GTT Order | **POST** /v3/order/gtt/place | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/place-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/place-gtt-order#sample-code-python_sdk)
|
|
150
|
-
Modify GTT Order | **PUT** /v3/order/gtt/modify | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/modify-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/modify-gtt-order#sample-code-python_sdk)
|
|
151
|
-
Cancel GTT Order | **DELETE** /v3/order/gtt/cancel | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/cancel-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/cancel-gtt-order#sample-code-python_sdk)
|
|
152
|
-
Get GTT Order Details | **GET** /v3/order/gtt | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/get-gtt-order-details) | [Sample Code](https://upstox.com/developer/api-documentation/get-gtt-order-details#sample-code-python_sdk)
|
|
153
|
-
**Portfolio** | | | |
|
|
154
|
-
Get Positions | **GET** /v2/portfolio/short-term-positions | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-positions) | [Sample Code](https://upstox.com/developer/api-documentation/get-positions#sample-code-python_sdk)
|
|
155
|
-
Get MTF Positions | **GET** /v3/portfolio/mtf | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-mtf-positions) | [Sample Code](https://upstox.com/developer/api-documentation/get-mtf-positions#sample-code-python_sdk)
|
|
156
|
-
Convert Positions | **PUT** /v2/portfolio/convert-position | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/convert-positions) | [Sample Code](https://upstox.com/developer/api-documentation/convert-positions#sample-code-python_sdk)
|
|
157
|
-
Get Holdings | **GET** /v2/portfolio/long-term-holdings | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-holdings) | [Sample Code](https://upstox.com/developer/api-documentation/get-holdings#sample-code-python_sdk)
|
|
158
|
-
**Trade Profit And Loss** | | | |
|
|
159
|
-
Get Report Meta Data | **GET** /v2/trade/profit-loss/metadata | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-report-meta-data) | [Sample Code](https://upstox.com/developer/api-documentation/get-report-meta-data#sample-code-python_sdk)
|
|
160
|
-
Get Profit And Loss Report | **GET** /v2/trade/profit-loss/data | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-profit-and-loss-report) | [Sample Code](https://upstox.com/developer/api-documentation/get-profit-and-loss-report#sample-code-python_sdk)
|
|
161
|
-
Get Trade Charges | **GET** /v2/trade/profit-loss/charges | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trade-charges) | [Sample Code](https://upstox.com/developer/api-documentation/get-trade-charges#sample-code-python_sdk)
|
|
162
|
-
**Historical Data** | | | |
|
|
163
|
-
Get Historical Candle Data V3 | **GET** /v3/historical-candle | *HistoryV3Api* | [API Reference](https://upstox.com/developer/api-documentation/v3/get-historical-candle-data) | [Sample Code](https://upstox.com/developer/api-documentation/v3/get-historical-candle-data#sample-code-python_sdk)
|
|
164
|
-
Get Intra Day Candle Data V3 | **GET** /v3/intra-day-candle | *HistoryV3Api* | [API Reference](https://upstox.com/developer/api-documentation/v3/get-intra-day-candle-data) | [Sample Code](https://upstox.com/developer/api-documentation/v3/get-intra-day-candle-data#sample-code-python_sdk)
|
|
165
|
-
**Market Quote** | | | |
|
|
166
|
-
Get Full Market Quote | **GET** /v2/market-quote/quotes | *MarketQuoteApi* | [API Reference](https://upstox.com/developer/api-documentation/get-full-market-quote) | [Sample Code](https://upstox.com/developer/api-documentation/get-full-market-quote#sample-code-python_sdk)
|
|
167
|
-
Get Market Quote OHLC | **GET** /v2/market-quote/ohlc | *MarketQuoteApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-quote-ohlc) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-quote-ohlc#sample-code-python_sdk)
|
|
168
|
-
LTP V3 | **GET** /v3/market-quote/ltp | *MarketQuoteV3Api* | [API Reference](https://upstox.com/developer/api-documentation/ltp-v3) | [Sample Code](https://upstox.com/developer/api-documentation/ltp-v3#sample-code-python_sdk)
|
|
169
|
-
Option Greek | **GET** /v3/market-quote/greeks | *MarketQuoteV3Api* | [API Reference](https://upstox.com/developer/api-documentation/option-greek) | [Sample Code](https://upstox.com/developer/api-documentation/option-greek#sample-code-python_sdk)
|
|
170
|
-
**Market Information** | | | |
|
|
171
|
-
Get Market Holidays | **GET** /v2/market/holidays | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-holidays) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-holidays#sample-code-python_sdk)
|
|
172
|
-
Get Market Timings | **GET** /v2/market/timings | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-timings) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-timings#sample-code-python_sdk)
|
|
173
|
-
Get Market Status | **GET** /v2/market/status | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-status) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-status#sample-code-python_sdk)
|
|
174
|
-
**Option Chain** | | | |
|
|
175
|
-
Get Option Contracts | **GET** /v2/option/contract | *OptionsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-option-contracts) | [Sample Code](https://upstox.com/developer/api-documentation/get-option-contracts#sample-code-python_sdk)
|
|
176
|
-
Get PC Option Chain | **GET** /v2/option/chain | *OptionsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-pc-option-chain) | [Sample Code](https://upstox.com/developer/api-documentation/get-pc-option-chain#sample-code-python_sdk)
|
|
114
|
+
## Example Scripts
|
|
115
|
+
|
|
116
|
+
The [`examples/`](examples/) folder contains ready-to-run scripts covering common API use cases:
|
|
117
|
+
|
|
118
|
+
| Folder | Description |
|
|
119
|
+
|--------|-------------|
|
|
120
|
+
| [`examples/login/`](examples/login/) | OAuth2 authorization flow and access token generation |
|
|
121
|
+
| [`examples/orders/`](examples/orders/) | Place, modify, cancel, and retrieve orders |
|
|
122
|
+
| [`examples/market_quote/`](examples/market-quote/) | Fetch live quotes, OHLC, and market depth |
|
|
123
|
+
| [`examples/portfolio/`](examples/portfolio/) | View holdings, positions, and P&L |
|
|
124
|
+
| [`examples/strategies/`](examples/strategies/) | 33 options trading strategies across four categories |
|
|
125
|
+
|
|
126
|
+
### Options Strategy Examples
|
|
127
|
+
|
|
128
|
+
## Interactive Examples
|
|
129
|
+
|
|
130
|
+
The [interactive_examples/](interactive_examples/) directory contains 47 ready-to-run CLI scripts across 8 categories: instrument search, futures basis, options strategies, options analytics, arbitrage, historical analysis, portfolio screening, and market data. See the [interactive_examples README](interactive_examples/README.md) for details.
|
|
131
|
+
|
|
132
|
+
The [`examples/strategies/`](examples/strategies/) folder is organized by market outlook:
|
|
133
|
+
|
|
134
|
+
| Category | Strategies |
|
|
135
|
+
|----------|------------|
|
|
136
|
+
| [Bullish](examples/strategies/bullish/) | Buy Call, Sell Put, Bull Call Spread, Bull Put Spread, Bull Butterfly, Bull Condor, Long Calendar with Calls, Long Synthetic Future, Call Ratio Back Spread, Range Forward |
|
|
137
|
+
| [Bearish](examples/strategies/bearish/) | Buy Put, Sell Call, Bear Call Spread, Bear Put Spread, Bear Butterfly, Bear Condor, Long Calendar with Puts, Short Synthetic Future, Put Ratio Back Spread, Risk Reversal |
|
|
138
|
+
| [Neutral](examples/strategies/neutral/) | Short Straddle, Short Strangle, Iron Butterfly, Batman, Short Iron Condor |
|
|
139
|
+
| [Others](examples/strategies/others/) | Long Straddle, Long Strangle, Call Ratio Spread, Put Ratio Spread, Long Iron Butterfly, Long Iron Condor, Strip, Strap |
|
|
140
|
+
|
|
141
|
+
Each strategy script automatically selects the correct Nifty 50 strikes using `InstrumentsApi.search_instrument()` and places orders via `OrderApiV3`. Just set your `ACCESS_TOKEN` and run.
|
|
142
|
+
|
|
177
143
|
|
|
178
144
|
## Documentation for Feeder Functions
|
|
179
145
|
|
|
@@ -9,7 +9,7 @@ The official Python client for communicating with the <a href="https://upstox.co
|
|
|
9
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.
|
|
10
10
|
|
|
11
11
|
- API version: v2
|
|
12
|
-
- Package version: 2.
|
|
12
|
+
- Package version: 2.23.0
|
|
13
13
|
- Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen
|
|
14
14
|
|
|
15
15
|
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project.
|
|
@@ -100,69 +100,35 @@ except ApiException as e:
|
|
|
100
100
|
Other order methods (modify, cancel, etc.) follow the same pattern by accepting an optional `algo_name` as a keyword parameter.
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
##
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
Exit All Position | **POST** /v2/order/positions/exit | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/exit-all-positions) | [Sample Code](https://upstox.com/developer/api-documentation/exit-all-positions#sample-code-python_sdk)
|
|
133
|
-
Get Order Details | **GET** /v2/order/details | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-order-details) | [Sample Code](https://upstox.com/developer/api-documentation/get-order-details#sample-code-python_sdk)
|
|
134
|
-
Get Order History | **GET** /v2/order/history | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-order-history) | [Sample Code](https://upstox.com/developer/api-documentation/get-order-history#sample-code-python_sdk)
|
|
135
|
-
Get Trades By Order | **GET** /v2/order/trades | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trades-by-order) | [Sample Code](https://upstox.com/developer/api-documentation/get-trades-by-order#sample-code-python_sdk)
|
|
136
|
-
Get Trade History | **GET** /v2/order/trades/get-trades-for-day | *OrderApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trade-history) | [Sample Code](https://upstox.com/developer/api-documentation/get-trade-history#sample-code-python_sdk)
|
|
137
|
-
**GTT Order** | | | |
|
|
138
|
-
Place GTT Order | **POST** /v3/order/gtt/place | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/place-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/place-gtt-order#sample-code-python_sdk)
|
|
139
|
-
Modify GTT Order | **PUT** /v3/order/gtt/modify | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/modify-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/modify-gtt-order#sample-code-python_sdk)
|
|
140
|
-
Cancel GTT Order | **DELETE** /v3/order/gtt/cancel | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/cancel-gtt-order) | [Sample Code](https://upstox.com/developer/api-documentation/cancel-gtt-order#sample-code-python_sdk)
|
|
141
|
-
Get GTT Order Details | **GET** /v3/order/gtt | *OrderApiV3* | [API Reference](https://upstox.com/developer/api-documentation/get-gtt-order-details) | [Sample Code](https://upstox.com/developer/api-documentation/get-gtt-order-details#sample-code-python_sdk)
|
|
142
|
-
**Portfolio** | | | |
|
|
143
|
-
Get Positions | **GET** /v2/portfolio/short-term-positions | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-positions) | [Sample Code](https://upstox.com/developer/api-documentation/get-positions#sample-code-python_sdk)
|
|
144
|
-
Get MTF Positions | **GET** /v3/portfolio/mtf | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-mtf-positions) | [Sample Code](https://upstox.com/developer/api-documentation/get-mtf-positions#sample-code-python_sdk)
|
|
145
|
-
Convert Positions | **PUT** /v2/portfolio/convert-position | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/convert-positions) | [Sample Code](https://upstox.com/developer/api-documentation/convert-positions#sample-code-python_sdk)
|
|
146
|
-
Get Holdings | **GET** /v2/portfolio/long-term-holdings | *PortfolioApi* | [API Reference](https://upstox.com/developer/api-documentation/get-holdings) | [Sample Code](https://upstox.com/developer/api-documentation/get-holdings#sample-code-python_sdk)
|
|
147
|
-
**Trade Profit And Loss** | | | |
|
|
148
|
-
Get Report Meta Data | **GET** /v2/trade/profit-loss/metadata | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-report-meta-data) | [Sample Code](https://upstox.com/developer/api-documentation/get-report-meta-data#sample-code-python_sdk)
|
|
149
|
-
Get Profit And Loss Report | **GET** /v2/trade/profit-loss/data | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-profit-and-loss-report) | [Sample Code](https://upstox.com/developer/api-documentation/get-profit-and-loss-report#sample-code-python_sdk)
|
|
150
|
-
Get Trade Charges | **GET** /v2/trade/profit-loss/charges | *TradeProfitAndLossApi* | [API Reference](https://upstox.com/developer/api-documentation/get-trade-charges) | [Sample Code](https://upstox.com/developer/api-documentation/get-trade-charges#sample-code-python_sdk)
|
|
151
|
-
**Historical Data** | | | |
|
|
152
|
-
Get Historical Candle Data V3 | **GET** /v3/historical-candle | *HistoryV3Api* | [API Reference](https://upstox.com/developer/api-documentation/v3/get-historical-candle-data) | [Sample Code](https://upstox.com/developer/api-documentation/v3/get-historical-candle-data#sample-code-python_sdk)
|
|
153
|
-
Get Intra Day Candle Data V3 | **GET** /v3/intra-day-candle | *HistoryV3Api* | [API Reference](https://upstox.com/developer/api-documentation/v3/get-intra-day-candle-data) | [Sample Code](https://upstox.com/developer/api-documentation/v3/get-intra-day-candle-data#sample-code-python_sdk)
|
|
154
|
-
**Market Quote** | | | |
|
|
155
|
-
Get Full Market Quote | **GET** /v2/market-quote/quotes | *MarketQuoteApi* | [API Reference](https://upstox.com/developer/api-documentation/get-full-market-quote) | [Sample Code](https://upstox.com/developer/api-documentation/get-full-market-quote#sample-code-python_sdk)
|
|
156
|
-
Get Market Quote OHLC | **GET** /v2/market-quote/ohlc | *MarketQuoteApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-quote-ohlc) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-quote-ohlc#sample-code-python_sdk)
|
|
157
|
-
LTP V3 | **GET** /v3/market-quote/ltp | *MarketQuoteV3Api* | [API Reference](https://upstox.com/developer/api-documentation/ltp-v3) | [Sample Code](https://upstox.com/developer/api-documentation/ltp-v3#sample-code-python_sdk)
|
|
158
|
-
Option Greek | **GET** /v3/market-quote/greeks | *MarketQuoteV3Api* | [API Reference](https://upstox.com/developer/api-documentation/option-greek) | [Sample Code](https://upstox.com/developer/api-documentation/option-greek#sample-code-python_sdk)
|
|
159
|
-
**Market Information** | | | |
|
|
160
|
-
Get Market Holidays | **GET** /v2/market/holidays | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-holidays) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-holidays#sample-code-python_sdk)
|
|
161
|
-
Get Market Timings | **GET** /v2/market/timings | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-timings) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-timings#sample-code-python_sdk)
|
|
162
|
-
Get Market Status | **GET** /v2/market/status | *MarketHolidaysAndTimingsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-market-status) | [Sample Code](https://upstox.com/developer/api-documentation/get-market-status#sample-code-python_sdk)
|
|
163
|
-
**Option Chain** | | | |
|
|
164
|
-
Get Option Contracts | **GET** /v2/option/contract | *OptionsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-option-contracts) | [Sample Code](https://upstox.com/developer/api-documentation/get-option-contracts#sample-code-python_sdk)
|
|
165
|
-
Get PC Option Chain | **GET** /v2/option/chain | *OptionsApi* | [API Reference](https://upstox.com/developer/api-documentation/get-pc-option-chain) | [Sample Code](https://upstox.com/developer/api-documentation/get-pc-option-chain#sample-code-python_sdk)
|
|
103
|
+
## Example Scripts
|
|
104
|
+
|
|
105
|
+
The [`examples/`](examples/) folder contains ready-to-run scripts covering common API use cases:
|
|
106
|
+
|
|
107
|
+
| Folder | Description |
|
|
108
|
+
|--------|-------------|
|
|
109
|
+
| [`examples/login/`](examples/login/) | OAuth2 authorization flow and access token generation |
|
|
110
|
+
| [`examples/orders/`](examples/orders/) | Place, modify, cancel, and retrieve orders |
|
|
111
|
+
| [`examples/market_quote/`](examples/market-quote/) | Fetch live quotes, OHLC, and market depth |
|
|
112
|
+
| [`examples/portfolio/`](examples/portfolio/) | View holdings, positions, and P&L |
|
|
113
|
+
| [`examples/strategies/`](examples/strategies/) | 33 options trading strategies across four categories |
|
|
114
|
+
|
|
115
|
+
### Options Strategy Examples
|
|
116
|
+
|
|
117
|
+
## Interactive Examples
|
|
118
|
+
|
|
119
|
+
The [interactive_examples/](interactive_examples/) directory contains 47 ready-to-run CLI scripts across 8 categories: instrument search, futures basis, options strategies, options analytics, arbitrage, historical analysis, portfolio screening, and market data. See the [interactive_examples README](interactive_examples/README.md) for details.
|
|
120
|
+
|
|
121
|
+
The [`examples/strategies/`](examples/strategies/) folder is organized by market outlook:
|
|
122
|
+
|
|
123
|
+
| Category | Strategies |
|
|
124
|
+
|----------|------------|
|
|
125
|
+
| [Bullish](examples/strategies/bullish/) | Buy Call, Sell Put, Bull Call Spread, Bull Put Spread, Bull Butterfly, Bull Condor, Long Calendar with Calls, Long Synthetic Future, Call Ratio Back Spread, Range Forward |
|
|
126
|
+
| [Bearish](examples/strategies/bearish/) | Buy Put, Sell Call, Bear Call Spread, Bear Put Spread, Bear Butterfly, Bear Condor, Long Calendar with Puts, Short Synthetic Future, Put Ratio Back Spread, Risk Reversal |
|
|
127
|
+
| [Neutral](examples/strategies/neutral/) | Short Straddle, Short Strangle, Iron Butterfly, Batman, Short Iron Condor |
|
|
128
|
+
| [Others](examples/strategies/others/) | Long Straddle, Long Strangle, Call Ratio Spread, Put Ratio Spread, Long Iron Butterfly, Long Iron Condor, Strip, Strap |
|
|
129
|
+
|
|
130
|
+
Each strategy script automatically selects the correct Nifty 50 strikes using `InstrumentsApi.search_instrument()` and places orders via `OrderApiV3`. Just set your `ACCESS_TOKEN` and run.
|
|
131
|
+
|
|
166
132
|
|
|
167
133
|
## Documentation for Feeder Functions
|
|
168
134
|
|
|
@@ -18,7 +18,7 @@ this_directory = Path(__file__).parent
|
|
|
18
18
|
long_description = (this_directory / "README.md").read_text()
|
|
19
19
|
|
|
20
20
|
NAME = "upstox-python-sdk"
|
|
21
|
-
VERSION = "2.
|
|
21
|
+
VERSION = "2.23.0"
|
|
22
22
|
# To install the library, run the following
|
|
23
23
|
#
|
|
24
24
|
# python setup.py install
|
|
@@ -24,6 +24,7 @@ from upstox_client.api.login_api import LoginApi
|
|
|
24
24
|
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
|
|
25
25
|
from upstox_client.api.market_quote_api import MarketQuoteApi
|
|
26
26
|
from upstox_client.api.market_quote_v3_api import MarketQuoteV3Api
|
|
27
|
+
from upstox_client.api.news_api import NewsApi
|
|
27
28
|
from upstox_client.api.options_api import OptionsApi
|
|
28
29
|
from upstox_client.api.order_api import OrderApi
|
|
29
30
|
from upstox_client.api.portfolio_api import PortfolioApi
|
|
@@ -41,6 +42,7 @@ from upstox_client.configuration import Configuration
|
|
|
41
42
|
# import models into sdk package
|
|
42
43
|
from upstox_client.models.analytics_data import AnalyticsData
|
|
43
44
|
from upstox_client.models.api_gateway_error_response import ApiGatewayErrorResponse
|
|
45
|
+
from upstox_client.models.available_to_trade import AvailableToTrade
|
|
44
46
|
from upstox_client.models.batch_execution_summary import BatchExecutionSummary
|
|
45
47
|
from upstox_client.models.brokerage_data import BrokerageData
|
|
46
48
|
from upstox_client.models.brokerage_taxes import BrokerageTaxes
|
|
@@ -49,11 +51,16 @@ from upstox_client.models.cancel_or_exit_multi_order_data import CancelOrExitMul
|
|
|
49
51
|
from upstox_client.models.cancel_or_exit_multi_order_response import CancelOrExitMultiOrderResponse
|
|
50
52
|
from upstox_client.models.cancel_or_exit_order_error_data import CancelOrExitOrderErrorData
|
|
51
53
|
from upstox_client.models.cancel_order_data import CancelOrderData
|
|
54
|
+
from upstox_client.models.cash_available_to_trade import CashAvailableToTrade
|
|
55
|
+
from upstox_client.models.cash_breakdown import CashBreakdown
|
|
56
|
+
from upstox_client.models.cash_margin_used import CashMarginUsed
|
|
57
|
+
from upstox_client.models.cash_unavailable_to_trade import CashUnavailableToTrade
|
|
52
58
|
from upstox_client.models.cancel_order_response import CancelOrderResponse
|
|
53
59
|
from upstox_client.models.cancel_order_v3_response import CancelOrderV3Response
|
|
54
60
|
from upstox_client.models.convert_position_data import ConvertPositionData
|
|
55
61
|
from upstox_client.models.convert_position_request import ConvertPositionRequest
|
|
56
62
|
from upstox_client.models.convert_position_response import ConvertPositionResponse
|
|
63
|
+
from upstox_client.models.delivery_margin import DeliveryMargin
|
|
57
64
|
from upstox_client.models.depth import Depth
|
|
58
65
|
from upstox_client.models.depth_map import DepthMap
|
|
59
66
|
from upstox_client.models.dp_plan import DpPlan
|
|
@@ -75,6 +82,7 @@ from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOH
|
|
|
75
82
|
from upstox_client.models.get_market_quote_ohlc_response_v3 import GetMarketQuoteOHLCResponseV3
|
|
76
83
|
from upstox_client.models.get_market_quote_option_greek_response_v3 import GetMarketQuoteOptionGreekResponseV3
|
|
77
84
|
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
|
|
85
|
+
from upstox_client.models.get_news_response import GetNewsResponse
|
|
78
86
|
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
|
|
79
87
|
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
|
|
80
88
|
from upstox_client.models.get_order_book_response import GetOrderBookResponse
|
|
@@ -87,6 +95,7 @@ from upstox_client.models.get_trade_response import GetTradeResponse
|
|
|
87
95
|
from upstox_client.models.get_trade_wise_profit_and_loss_data_response import GetTradeWiseProfitAndLossDataResponse
|
|
88
96
|
from upstox_client.models.get_trade_wise_profit_and_loss_meta_data_response import GetTradeWiseProfitAndLossMetaDataResponse
|
|
89
97
|
from upstox_client.models.get_user_fund_margin_response import GetUserFundMarginResponse
|
|
98
|
+
from upstox_client.models.get_user_fund_margin_v3_response import GetUserFundMarginV3Response
|
|
90
99
|
from upstox_client.models.gtt_cancel_order_request import GttCancelOrderRequest
|
|
91
100
|
from upstox_client.models.gtt_modify_order_request import GttModifyOrderRequest
|
|
92
101
|
from upstox_client.models.gtt_order_data import GttOrderData
|
|
@@ -106,9 +115,14 @@ from upstox_client.models.search_instrument_response import SearchInstrumentResp
|
|
|
106
115
|
from upstox_client.models.search_meta_data import SearchMetaData
|
|
107
116
|
from upstox_client.models.search_page import SearchPage
|
|
108
117
|
from upstox_client.models.intra_day_candle_data import IntraDayCandleData
|
|
118
|
+
from upstox_client.models.kill_switch_response import KillSwitchResponse
|
|
119
|
+
from upstox_client.models.kill_switch_segment_data import KillSwitchSegmentData
|
|
120
|
+
from upstox_client.models.kill_switch_segment_update_request import KillSwitchSegmentUpdateRequest
|
|
109
121
|
from upstox_client.models.logout_response import LogoutResponse
|
|
122
|
+
from upstox_client.models.loss import Loss
|
|
110
123
|
from upstox_client.models.margin import Margin
|
|
111
124
|
from upstox_client.models.margin_data import MarginData
|
|
125
|
+
from upstox_client.models.margin_from_pledge import MarginFromPledge
|
|
112
126
|
from upstox_client.models.margin_request import MarginRequest
|
|
113
127
|
from upstox_client.models.market_data import MarketData
|
|
114
128
|
from upstox_client.models.market_quote_ohlc import MarketQuoteOHLC
|
|
@@ -128,6 +142,9 @@ from upstox_client.models.multi_order_request import MultiOrderRequest
|
|
|
128
142
|
from upstox_client.models.multi_order_response import MultiOrderResponse
|
|
129
143
|
from upstox_client.models.multi_order_summary import MultiOrderSummary
|
|
130
144
|
from upstox_client.models.multi_order_v3_data import MultiOrderV3Data
|
|
145
|
+
from upstox_client.models.news_item_data import NewsItemData
|
|
146
|
+
from upstox_client.models.news_response_meta_data import NewsResponseMetaData
|
|
147
|
+
from upstox_client.models.news_response_page_data import NewsResponsePageData
|
|
131
148
|
from upstox_client.models.o_auth_client_exception import OAuthClientException
|
|
132
149
|
from upstox_client.models.o_auth_client_exception_cause import OAuthClientExceptionCause
|
|
133
150
|
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
|
|
@@ -144,6 +161,9 @@ from upstox_client.models.place_order_request import PlaceOrderRequest
|
|
|
144
161
|
from upstox_client.models.place_order_response import PlaceOrderResponse
|
|
145
162
|
from upstox_client.models.place_order_v3_request import PlaceOrderV3Request
|
|
146
163
|
from upstox_client.models.place_order_v3_response import PlaceOrderV3Response
|
|
164
|
+
from upstox_client.models.pledge_available_to_trade import PledgeAvailableToTrade
|
|
165
|
+
from upstox_client.models.pledge_margin_used import PledgeMarginUsed
|
|
166
|
+
from upstox_client.models.pledge_unavailable_to_trade import PledgeUnavailableToTrade
|
|
147
167
|
from upstox_client.models.position_data import PositionData
|
|
148
168
|
from upstox_client.models.post_margin_response import PostMarginResponse
|
|
149
169
|
from upstox_client.models.problem import Problem
|
|
@@ -165,6 +185,12 @@ from upstox_client.models.trade_history_response_page_data import TradeHistoryRe
|
|
|
165
185
|
from upstox_client.models.trade_history_response_trade_data import TradeHistoryResponseTradeData
|
|
166
186
|
from upstox_client.models.trade_wise_meta_data import TradeWiseMetaData
|
|
167
187
|
from upstox_client.models.trade_wise_profit_and_loss_data import TradeWiseProfitAndLossData
|
|
188
|
+
from upstox_client.models.unavailable_to_trade import UnavailableToTrade
|
|
189
|
+
from upstox_client.models.unsettled_profit import UnsettledProfit
|
|
190
|
+
from upstox_client.models.update_user_ip_request import UpdateUserIpRequest
|
|
168
191
|
from upstox_client.models.user_fund_margin_data import UserFundMarginData
|
|
192
|
+
from upstox_client.models.user_fund_margin_v3_data import UserFundMarginV3Data
|
|
193
|
+
from upstox_client.models.user_ip_response import UserIpResponse
|
|
194
|
+
from upstox_client.models.user_ip_response_data import UserIpResponseData
|
|
169
195
|
from upstox_client.models.websocket_auth_redirect_response import WebsocketAuthRedirectResponse
|
|
170
196
|
from upstox_client.models.websocket_auth_redirect_response_data import WebsocketAuthRedirectResponseData
|
|
@@ -12,6 +12,7 @@ from upstox_client.api.login_api import LoginApi
|
|
|
12
12
|
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
|
|
13
13
|
from upstox_client.api.market_quote_api import MarketQuoteApi
|
|
14
14
|
from upstox_client.api.market_quote_v3_api import MarketQuoteV3Api
|
|
15
|
+
from upstox_client.api.news_api import NewsApi
|
|
15
16
|
from upstox_client.api.options_api import OptionsApi
|
|
16
17
|
from upstox_client.api.order_api import OrderApi
|
|
17
18
|
from upstox_client.api.portfolio_api import PortfolioApi
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
OpenAPI definition
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: v0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
from __future__ import absolute_import
|
|
14
|
+
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
# python 2 and python 3 compatibility library
|
|
18
|
+
import six
|
|
19
|
+
|
|
20
|
+
from upstox_client.api_client import ApiClient
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class NewsApi(object):
|
|
24
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
25
|
+
|
|
26
|
+
Do not edit the class manually.
|
|
27
|
+
Ref: https://github.com/swagger-api/swagger-codegen
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def __init__(self, api_client=None):
|
|
31
|
+
if api_client is None:
|
|
32
|
+
api_client = ApiClient()
|
|
33
|
+
self.api_client = api_client
|
|
34
|
+
|
|
35
|
+
def get_news(self, category, **kwargs): # noqa: E501
|
|
36
|
+
"""Get News # noqa: E501
|
|
37
|
+
|
|
38
|
+
Fetches news articles for the given instrument keys, or the user's current positions or holdings. # noqa: E501
|
|
39
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
40
|
+
asynchronous HTTP request, please pass async_req=True
|
|
41
|
+
>>> thread = api.get_news(category, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param object category: Category of news to fetch. Allowed values: instrument_keys, positions, holdings (required)
|
|
46
|
+
:param object instrument_keys: Comma-separated list of instrument keys. Required when category is instrument_keys.
|
|
47
|
+
:param object page_number: Page number for pagination
|
|
48
|
+
:param object page_size: Number of records per page
|
|
49
|
+
:return: GetNewsResponse
|
|
50
|
+
If the method is called asynchronously,
|
|
51
|
+
returns the request thread.
|
|
52
|
+
"""
|
|
53
|
+
kwargs['_return_http_data_only'] = True
|
|
54
|
+
if kwargs.get('async_req'):
|
|
55
|
+
return self.get_news_with_http_info(category, **kwargs) # noqa: E501
|
|
56
|
+
else:
|
|
57
|
+
(data) = self.get_news_with_http_info(category, **kwargs) # noqa: E501
|
|
58
|
+
return data
|
|
59
|
+
|
|
60
|
+
def get_news_with_http_info(self, category, **kwargs): # noqa: E501
|
|
61
|
+
"""Get News # noqa: E501
|
|
62
|
+
|
|
63
|
+
Fetches news articles for the given instrument keys, or the user's current positions or holdings. # noqa: E501
|
|
64
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
65
|
+
asynchronous HTTP request, please pass async_req=True
|
|
66
|
+
>>> thread = api.get_news_with_http_info(category, async_req=True)
|
|
67
|
+
>>> result = thread.get()
|
|
68
|
+
|
|
69
|
+
:param async_req bool
|
|
70
|
+
:param object category: Category of news to fetch. Allowed values: instrument_keys, positions, holdings (required)
|
|
71
|
+
:param object instrument_keys: Comma-separated list of instrument keys. Required when category is instrument_keys.
|
|
72
|
+
:param object page_number: Page number for pagination
|
|
73
|
+
:param object page_size: Number of records per page
|
|
74
|
+
:return: GetNewsResponse
|
|
75
|
+
If the method is called asynchronously,
|
|
76
|
+
returns the request thread.
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
all_params = ['category', 'instrument_keys', 'page_number', 'page_size'] # noqa: E501
|
|
80
|
+
all_params.append('async_req')
|
|
81
|
+
all_params.append('_return_http_data_only')
|
|
82
|
+
all_params.append('_preload_content')
|
|
83
|
+
all_params.append('_request_timeout')
|
|
84
|
+
|
|
85
|
+
params = locals()
|
|
86
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
87
|
+
if key not in all_params:
|
|
88
|
+
raise TypeError(
|
|
89
|
+
"Got an unexpected keyword argument '%s'"
|
|
90
|
+
" to method get_news" % key
|
|
91
|
+
)
|
|
92
|
+
params[key] = val
|
|
93
|
+
del params['kwargs']
|
|
94
|
+
# verify the required parameter 'category' is set
|
|
95
|
+
if ('category' not in params or
|
|
96
|
+
params['category'] is None):
|
|
97
|
+
raise ValueError("Missing the required parameter `category` when calling `get_news`") # noqa: E501
|
|
98
|
+
|
|
99
|
+
collection_formats = {}
|
|
100
|
+
|
|
101
|
+
path_params = {}
|
|
102
|
+
|
|
103
|
+
query_params = []
|
|
104
|
+
if 'category' in params:
|
|
105
|
+
query_params.append(('category', params['category'])) # noqa: E501
|
|
106
|
+
if 'instrument_keys' in params:
|
|
107
|
+
query_params.append(('instrument_keys', params['instrument_keys'])) # noqa: E501
|
|
108
|
+
if 'page_number' in params:
|
|
109
|
+
query_params.append(('page_number', params['page_number'])) # noqa: E501
|
|
110
|
+
if 'page_size' in params:
|
|
111
|
+
query_params.append(('page_size', params['page_size'])) # noqa: E501
|
|
112
|
+
|
|
113
|
+
header_params = {}
|
|
114
|
+
|
|
115
|
+
form_params = []
|
|
116
|
+
local_var_files = {}
|
|
117
|
+
|
|
118
|
+
body_params = None
|
|
119
|
+
# HTTP header `Accept`
|
|
120
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
121
|
+
['*/*', 'application/json']) # noqa: E501
|
|
122
|
+
|
|
123
|
+
# Authentication setting
|
|
124
|
+
auth_settings = ['OAUTH2'] # noqa: E501
|
|
125
|
+
|
|
126
|
+
return self.api_client.call_api(
|
|
127
|
+
'/v2/news', 'GET',
|
|
128
|
+
path_params,
|
|
129
|
+
query_params,
|
|
130
|
+
header_params,
|
|
131
|
+
body=body_params,
|
|
132
|
+
post_params=form_params,
|
|
133
|
+
files=local_var_files,
|
|
134
|
+
response_type='GetNewsResponse', # noqa: E501
|
|
135
|
+
auth_settings=auth_settings,
|
|
136
|
+
async_req=params.get('async_req'),
|
|
137
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
138
|
+
_preload_content=params.get('_preload_content', True),
|
|
139
|
+
_request_timeout=params.get('_request_timeout'),
|
|
140
|
+
collection_formats=collection_formats)
|