upstox-python-sdk 2.20.0__tar.gz → 2.21.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.20.0 → upstox-python-sdk-2.21.0}/PKG-INFO +3 -3
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/README.md +2 -2
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/setup.py +1 -1
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/__init__.py +4 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/__init__.py +1 -0
- upstox-python-sdk-2.21.0/upstox_client/api/instruments_api.py +156 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/login_api.py +1 -5
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api_client.py +1 -1
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/__init__.py +3 -0
- upstox-python-sdk-2.21.0/upstox_client/models/search_instrument_response.py +166 -0
- upstox-python-sdk-2.21.0/upstox_client/models/search_meta_data.py +110 -0
- upstox-python-sdk-2.21.0/upstox_client/models/search_page.py +188 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_python_sdk.egg-info/PKG-INFO +3 -3
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_python_sdk.egg-info/SOURCES.txt +4 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/LICENSE.txt +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/setup.cfg +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/__init__.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/sanity_test.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_analytics_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_brokerage_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_charge_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_convert_position_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_convert_position_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_convert_position_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_depth.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_depth_map.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_dp_plan.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_holdings_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_holiday_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_market_status_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_order_book_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_order_details_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_position_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_profile_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_trade_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_order_details.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_rule.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_historical_candle_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_history_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_holdings_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_holiday_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_instrument.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_instrument_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_login_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_logout_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_margin.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_margin_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_margin_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_quote_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_market_status_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_modify_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_modify_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_modify_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_error.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_summary.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_ohlc.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_option_strike_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_options_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_order_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_order_book_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_order_metadata.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_other_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_place_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_place_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_place_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_portfolio_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_position_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_post_margin_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_post_trade_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_problem.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profile_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_rule.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_token_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_token_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_history_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_user_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_websocket_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/test/test_websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/charge_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/expired_instrument_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/history_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/history_v3_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/market_quote_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/market_quote_v3_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/options_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/order_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/portfolio_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/post_trade_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/user_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/api/websocket_api.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/configuration.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/__init__.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/feeder.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/market_data_feeder_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/market_data_streamer_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/portfolio_data_feeder.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/portfolio_data_streamer.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/proto/MarketDataFeedV3_pb2.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/proto/__init__.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/feeder/streamer.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/analytics_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/brokerage_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/convert_position_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/convert_position_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/convert_position_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/depth.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/depth_map.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/dp_plan.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/expired_future_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_expired_futures_contract_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_expiries.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_holdings_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_holiday_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_quote_last_traded_price_response_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_quote_ohlc_response_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_quote_option_greek_response_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_market_status_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_order_book_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_order_details_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_position_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_profile_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_trade_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_order_details.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_rule.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/historical_candle_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/holdings_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/holiday_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/instrument.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/instrument_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/logout_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/margin.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/margin_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/margin_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_ohlcv3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_option_greek_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_quote_symbol_ltp_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/market_status_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/modify_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/modify_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/modify_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_error.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_summary.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/ohlc.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/ohlc_v3.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/option_strike_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/order_book_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/order_metadata.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/other_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/place_order_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/place_order_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/place_order_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/position_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/post_margin_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/problem.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profile_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/rule.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/token_request.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/token_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_history_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/models/websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_client/rest.py +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.0}/upstox_python_sdk.egg-info/requires.txt +0 -0
- {upstox-python-sdk-2.20.0 → upstox-python-sdk-2.21.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.21.0
|
|
4
4
|
Summary: Upstox Developer API
|
|
5
5
|
Home-page: https://github.com/upstox/upstox-python
|
|
6
6
|
License: MIT
|
|
@@ -15,12 +15,12 @@ License-File: LICENSE.txt
|
|
|
15
15
|
|
|
16
16
|
## Introduction
|
|
17
17
|
|
|
18
|
-
The official Python client for communicating with the <a href="https://upstox.com/
|
|
18
|
+
The official Python client for communicating with the <a href="https://upstox.com/developer/api-documentation/open-api">Upstox API</a>.
|
|
19
19
|
|
|
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.21.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.
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
## Introduction
|
|
6
6
|
|
|
7
|
-
The official Python client for communicating with the <a href="https://upstox.com/
|
|
7
|
+
The official Python client for communicating with the <a href="https://upstox.com/developer/api-documentation/open-api">Upstox API</a>.
|
|
8
8
|
|
|
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.21.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.
|
|
@@ -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.21.0"
|
|
22
22
|
# To install the library, run the following
|
|
23
23
|
#
|
|
24
24
|
# python setup.py install
|
|
@@ -19,6 +19,7 @@ from upstox_client.api.charge_api import ChargeApi
|
|
|
19
19
|
from upstox_client.api.expired_instrument_api import ExpiredInstrumentApi
|
|
20
20
|
from upstox_client.api.history_api import HistoryApi
|
|
21
21
|
from upstox_client.api.history_v3_api import HistoryV3Api
|
|
22
|
+
from upstox_client.api.instruments_api import InstrumentsApi
|
|
22
23
|
from upstox_client.api.login_api import LoginApi
|
|
23
24
|
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
|
|
24
25
|
from upstox_client.api.market_quote_api import MarketQuoteApi
|
|
@@ -101,6 +102,9 @@ from upstox_client.models.indie_user_init_token_response import IndieUserInitTok
|
|
|
101
102
|
from upstox_client.models.indie_user_token_request import IndieUserTokenRequest
|
|
102
103
|
from upstox_client.models.instrument import Instrument
|
|
103
104
|
from upstox_client.models.instrument_data import InstrumentData
|
|
105
|
+
from upstox_client.models.search_instrument_response import SearchInstrumentResponse
|
|
106
|
+
from upstox_client.models.search_meta_data import SearchMetaData
|
|
107
|
+
from upstox_client.models.search_page import SearchPage
|
|
104
108
|
from upstox_client.models.intra_day_candle_data import IntraDayCandleData
|
|
105
109
|
from upstox_client.models.logout_response import LogoutResponse
|
|
106
110
|
from upstox_client.models.margin import Margin
|
|
@@ -7,6 +7,7 @@ from upstox_client.api.charge_api import ChargeApi
|
|
|
7
7
|
from upstox_client.api.expired_instrument_api import ExpiredInstrumentApi
|
|
8
8
|
from upstox_client.api.history_api import HistoryApi
|
|
9
9
|
from upstox_client.api.history_v3_api import HistoryV3Api
|
|
10
|
+
from upstox_client.api.instruments_api import InstrumentsApi
|
|
10
11
|
from upstox_client.api.login_api import LoginApi
|
|
11
12
|
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
|
|
12
13
|
from upstox_client.api.market_quote_api import MarketQuoteApi
|
|
@@ -0,0 +1,156 @@
|
|
|
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 InstrumentsApi(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 search_instrument(self, query, **kwargs): # noqa: E501
|
|
36
|
+
"""Search instruments # noqa: E501
|
|
37
|
+
|
|
38
|
+
This API provides the functionality to retrieve the instrument details for searched query # 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.search_instrument(query, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param object query: natural language query (required)
|
|
46
|
+
:param object exchanges: Comma separated exchanges
|
|
47
|
+
:param object segments: Comma separated segments
|
|
48
|
+
:param object instrument_types: Comma separated instrument types
|
|
49
|
+
:param object expiry: expiry in format: yyyy-MM-dd
|
|
50
|
+
:param object atm_offset: page number greater than or equal to 1
|
|
51
|
+
:param object page_number: ATM offset number for queries like ATM, ATM+1, ATM-1, etc.
|
|
52
|
+
:param object records: no of records in a single page
|
|
53
|
+
:return: SearchInstrumentResponse
|
|
54
|
+
If the method is called asynchronously,
|
|
55
|
+
returns the request thread.
|
|
56
|
+
"""
|
|
57
|
+
kwargs['_return_http_data_only'] = True
|
|
58
|
+
if kwargs.get('async_req'):
|
|
59
|
+
return self.search_instrument_with_http_info(query, **kwargs) # noqa: E501
|
|
60
|
+
else:
|
|
61
|
+
(data) = self.search_instrument_with_http_info(query, **kwargs) # noqa: E501
|
|
62
|
+
return data
|
|
63
|
+
|
|
64
|
+
def search_instrument_with_http_info(self, query, **kwargs): # noqa: E501
|
|
65
|
+
"""Search instruments # noqa: E501
|
|
66
|
+
|
|
67
|
+
This API provides the functionality to retrieve the instrument details for searched query # noqa: E501
|
|
68
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
69
|
+
asynchronous HTTP request, please pass async_req=True
|
|
70
|
+
>>> thread = api.search_instrument_with_http_info(query, async_req=True)
|
|
71
|
+
>>> result = thread.get()
|
|
72
|
+
|
|
73
|
+
:param async_req bool
|
|
74
|
+
:param object query: natural language query (required)
|
|
75
|
+
:param object exchanges: Comma separated exchanges
|
|
76
|
+
:param object segments: Comma separated segments
|
|
77
|
+
:param object instrument_types: Comma separated instrument types
|
|
78
|
+
:param object expiry: expiry in format: yyyy-MM-dd
|
|
79
|
+
:param object atm_offset: page number greater than or equal to 1
|
|
80
|
+
:param object page_number: ATM offset number for queries like ATM, ATM+1, ATM-1, etc.
|
|
81
|
+
:param object records: no of records in a single page
|
|
82
|
+
:return: SearchInstrumentResponse
|
|
83
|
+
If the method is called asynchronously,
|
|
84
|
+
returns the request thread.
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
all_params = ['query', 'exchanges', 'segments', 'instrument_types', 'expiry', 'atm_offset', 'page_number', 'records'] # noqa: E501
|
|
88
|
+
all_params.append('async_req')
|
|
89
|
+
all_params.append('_return_http_data_only')
|
|
90
|
+
all_params.append('_preload_content')
|
|
91
|
+
all_params.append('_request_timeout')
|
|
92
|
+
|
|
93
|
+
params = locals()
|
|
94
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
95
|
+
if key not in all_params:
|
|
96
|
+
raise TypeError(
|
|
97
|
+
"Got an unexpected keyword argument '%s'"
|
|
98
|
+
" to method search_instrument" % key
|
|
99
|
+
)
|
|
100
|
+
params[key] = val
|
|
101
|
+
del params['kwargs']
|
|
102
|
+
# verify the required parameter 'query' is set
|
|
103
|
+
if ('query' not in params or
|
|
104
|
+
params['query'] is None):
|
|
105
|
+
raise ValueError("Missing the required parameter `query` when calling `search_instrument`") # noqa: E501
|
|
106
|
+
|
|
107
|
+
collection_formats = {}
|
|
108
|
+
|
|
109
|
+
path_params = {}
|
|
110
|
+
|
|
111
|
+
query_params = []
|
|
112
|
+
if 'query' in params:
|
|
113
|
+
query_params.append(('query', params['query'])) # noqa: E501
|
|
114
|
+
if 'exchanges' in params:
|
|
115
|
+
query_params.append(('exchanges', params['exchanges'])) # noqa: E501
|
|
116
|
+
if 'segments' in params:
|
|
117
|
+
query_params.append(('segments', params['segments'])) # noqa: E501
|
|
118
|
+
if 'instrument_types' in params:
|
|
119
|
+
query_params.append(('instrument_types', params['instrument_types'])) # noqa: E501
|
|
120
|
+
if 'expiry' in params:
|
|
121
|
+
query_params.append(('expiry', params['expiry'])) # noqa: E501
|
|
122
|
+
if 'atm_offset' in params:
|
|
123
|
+
query_params.append(('atm_offset', params['atm_offset'])) # noqa: E501
|
|
124
|
+
if 'page_number' in params:
|
|
125
|
+
query_params.append(('page_number', params['page_number'])) # noqa: E501
|
|
126
|
+
if 'records' in params:
|
|
127
|
+
query_params.append(('records', params['records'])) # noqa: E501
|
|
128
|
+
|
|
129
|
+
header_params = {}
|
|
130
|
+
|
|
131
|
+
form_params = []
|
|
132
|
+
local_var_files = {}
|
|
133
|
+
|
|
134
|
+
body_params = None
|
|
135
|
+
# HTTP header `Accept`
|
|
136
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
137
|
+
['*/*', 'application/json']) # noqa: E501
|
|
138
|
+
|
|
139
|
+
# Authentication setting
|
|
140
|
+
auth_settings = ['OAUTH2'] # noqa: E501
|
|
141
|
+
|
|
142
|
+
return self.api_client.call_api(
|
|
143
|
+
'/v2/instruments/search', 'GET',
|
|
144
|
+
path_params,
|
|
145
|
+
query_params,
|
|
146
|
+
header_params,
|
|
147
|
+
body=body_params,
|
|
148
|
+
post_params=form_params,
|
|
149
|
+
files=local_var_files,
|
|
150
|
+
response_type='SearchInstrumentResponse', # noqa: E501
|
|
151
|
+
auth_settings=auth_settings,
|
|
152
|
+
async_req=params.get('async_req'),
|
|
153
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
154
|
+
_preload_content=params.get('_preload_content', True),
|
|
155
|
+
_request_timeout=params.get('_request_timeout'),
|
|
156
|
+
collection_formats=collection_formats)
|
|
@@ -369,7 +369,6 @@ class LoginApi(object):
|
|
|
369
369
|
:param str client_secret:
|
|
370
370
|
:param str redirect_uri:
|
|
371
371
|
:param str grant_type:
|
|
372
|
-
:param bool refresh_extended_token:
|
|
373
372
|
:return: TokenResponse
|
|
374
373
|
If the method is called asynchronously,
|
|
375
374
|
returns the request thread.
|
|
@@ -397,13 +396,12 @@ class LoginApi(object):
|
|
|
397
396
|
:param str client_secret:
|
|
398
397
|
:param str redirect_uri:
|
|
399
398
|
:param str grant_type:
|
|
400
|
-
:param bool refresh_extended_token:
|
|
401
399
|
:return: TokenResponse
|
|
402
400
|
If the method is called asynchronously,
|
|
403
401
|
returns the request thread.
|
|
404
402
|
"""
|
|
405
403
|
|
|
406
|
-
all_params = ['api_version', 'code', 'client_id', 'client_secret', 'redirect_uri', 'grant_type'
|
|
404
|
+
all_params = ['api_version', 'code', 'client_id', 'client_secret', 'redirect_uri', 'grant_type'] # noqa: E501
|
|
407
405
|
all_params.append('async_req')
|
|
408
406
|
all_params.append('_return_http_data_only')
|
|
409
407
|
all_params.append('_preload_content')
|
|
@@ -445,8 +443,6 @@ class LoginApi(object):
|
|
|
445
443
|
form_params.append(('redirect_uri', params['redirect_uri'])) # noqa: E501
|
|
446
444
|
if 'grant_type' in params:
|
|
447
445
|
form_params.append(('grant_type', params['grant_type'])) # noqa: E501
|
|
448
|
-
if 'refresh_extended_token' in params and params['refresh_extended_token'] is not None:
|
|
449
|
-
form_params.append(('refresh_extended_token', 'true' if params['refresh_extended_token'] else 'false')) # noqa: E501
|
|
450
446
|
|
|
451
447
|
body_params = None
|
|
452
448
|
# HTTP header `Accept`
|
|
@@ -74,7 +74,7 @@ class ApiClient(object):
|
|
|
74
74
|
# Set default User-Agent.
|
|
75
75
|
self.user_agent = 'Swagger-Codegen/1.0.0/python'
|
|
76
76
|
self.default_headers["X-Upstox-SDK-Language"] = "python"
|
|
77
|
-
self.default_headers["X-Upstox-SDK-Version"] = "2.
|
|
77
|
+
self.default_headers["X-Upstox-SDK-Version"] = "2.21.0"
|
|
78
78
|
|
|
79
79
|
def __del__(self):
|
|
80
80
|
try:
|
|
@@ -77,6 +77,9 @@ from upstox_client.models.indie_user_init_token_response import IndieUserInitTok
|
|
|
77
77
|
from upstox_client.models.indie_user_token_request import IndieUserTokenRequest
|
|
78
78
|
from upstox_client.models.instrument import Instrument
|
|
79
79
|
from upstox_client.models.instrument_data import InstrumentData
|
|
80
|
+
from upstox_client.models.search_instrument_response import SearchInstrumentResponse
|
|
81
|
+
from upstox_client.models.search_meta_data import SearchMetaData
|
|
82
|
+
from upstox_client.models.search_page import SearchPage
|
|
80
83
|
from upstox_client.models.intra_day_candle_data import IntraDayCandleData
|
|
81
84
|
from upstox_client.models.logout_response import LogoutResponse
|
|
82
85
|
from upstox_client.models.margin import Margin
|
|
@@ -0,0 +1,166 @@
|
|
|
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
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class SearchInstrumentResponse(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'status': 'object',
|
|
32
|
+
'data': 'object',
|
|
33
|
+
'meta_data': 'SearchMetaData'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'status': 'status',
|
|
38
|
+
'data': 'data',
|
|
39
|
+
'meta_data': 'meta_data'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, status=None, data=None, meta_data=None): # noqa: E501
|
|
43
|
+
"""SearchInstrumentResponse - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._status = None
|
|
45
|
+
self._data = None
|
|
46
|
+
self._meta_data = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
if status is not None:
|
|
49
|
+
self.status = status
|
|
50
|
+
if data is not None:
|
|
51
|
+
self.data = data
|
|
52
|
+
if meta_data is not None:
|
|
53
|
+
self.meta_data = meta_data
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def status(self):
|
|
57
|
+
"""Gets the status of this SearchInstrumentResponse. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The status of this SearchInstrumentResponse. # noqa: E501
|
|
61
|
+
:rtype: object
|
|
62
|
+
"""
|
|
63
|
+
return self._status
|
|
64
|
+
|
|
65
|
+
@status.setter
|
|
66
|
+
def status(self, status):
|
|
67
|
+
"""Sets the status of this SearchInstrumentResponse.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param status: The status of this SearchInstrumentResponse. # noqa: E501
|
|
71
|
+
:type: object
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
self._status = status
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def data(self):
|
|
78
|
+
"""Gets the data of this SearchInstrumentResponse. # noqa: E501
|
|
79
|
+
|
|
80
|
+
Response data for search instrument request # noqa: E501
|
|
81
|
+
|
|
82
|
+
:return: The data of this SearchInstrumentResponse. # noqa: E501
|
|
83
|
+
:rtype: object
|
|
84
|
+
"""
|
|
85
|
+
return self._data
|
|
86
|
+
|
|
87
|
+
@data.setter
|
|
88
|
+
def data(self, data):
|
|
89
|
+
"""Sets the data of this SearchInstrumentResponse.
|
|
90
|
+
|
|
91
|
+
Response data for search instrument request # noqa: E501
|
|
92
|
+
|
|
93
|
+
:param data: The data of this SearchInstrumentResponse. # noqa: E501
|
|
94
|
+
:type: object
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._data = data
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def meta_data(self):
|
|
101
|
+
"""Gets the meta_data of this SearchInstrumentResponse. # noqa: E501
|
|
102
|
+
|
|
103
|
+
Meta data for search instrument response # noqa: E501
|
|
104
|
+
|
|
105
|
+
:return: The meta_data of this SearchInstrumentResponse. # noqa: E501
|
|
106
|
+
:rtype: SearchMetaData
|
|
107
|
+
"""
|
|
108
|
+
return self._meta_data
|
|
109
|
+
|
|
110
|
+
@meta_data.setter
|
|
111
|
+
def meta_data(self, meta_data):
|
|
112
|
+
"""Sets the meta_data of this SearchInstrumentResponse.
|
|
113
|
+
|
|
114
|
+
Meta data for search instrument response # noqa: E501
|
|
115
|
+
|
|
116
|
+
:param meta_data: The meta_data of this SearchInstrumentResponse. # noqa: E501
|
|
117
|
+
:type: SearchMetaData
|
|
118
|
+
"""
|
|
119
|
+
|
|
120
|
+
self._meta_data = meta_data
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
"""Returns the model properties as a dict"""
|
|
124
|
+
result = {}
|
|
125
|
+
|
|
126
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
127
|
+
value = getattr(self, attr)
|
|
128
|
+
if isinstance(value, list):
|
|
129
|
+
result[attr] = list(map(
|
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
131
|
+
value
|
|
132
|
+
))
|
|
133
|
+
elif hasattr(value, "to_dict"):
|
|
134
|
+
result[attr] = value.to_dict()
|
|
135
|
+
elif isinstance(value, dict):
|
|
136
|
+
result[attr] = dict(map(
|
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
|
139
|
+
value.items()
|
|
140
|
+
))
|
|
141
|
+
else:
|
|
142
|
+
result[attr] = value
|
|
143
|
+
if issubclass(SearchInstrumentResponse, dict):
|
|
144
|
+
for key, value in self.items():
|
|
145
|
+
result[key] = value
|
|
146
|
+
|
|
147
|
+
return result
|
|
148
|
+
|
|
149
|
+
def to_str(self):
|
|
150
|
+
"""Returns the string representation of the model"""
|
|
151
|
+
return pprint.pformat(self.to_dict())
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print` and `pprint`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, SearchInstrumentResponse):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
import pprint
|
|
14
|
+
import re # noqa: F401
|
|
15
|
+
|
|
16
|
+
import six
|
|
17
|
+
|
|
18
|
+
class SearchMetaData(object):
|
|
19
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
20
|
+
|
|
21
|
+
Do not edit the class manually.
|
|
22
|
+
"""
|
|
23
|
+
"""
|
|
24
|
+
Attributes:
|
|
25
|
+
swagger_types (dict): The key is attribute name
|
|
26
|
+
and the value is attribute type.
|
|
27
|
+
attribute_map (dict): The key is attribute name
|
|
28
|
+
and the value is json key in definition.
|
|
29
|
+
"""
|
|
30
|
+
swagger_types = {
|
|
31
|
+
'page': 'SearchPage'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
attribute_map = {
|
|
35
|
+
'page': 'page'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
def __init__(self, page=None): # noqa: E501
|
|
39
|
+
"""SearchMetaData - a model defined in Swagger""" # noqa: E501
|
|
40
|
+
self._page = None
|
|
41
|
+
self.discriminator = None
|
|
42
|
+
if page is not None:
|
|
43
|
+
self.page = page
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def page(self):
|
|
47
|
+
"""Gets the page of this SearchMetaData. # noqa: E501
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
:return: The page of this SearchMetaData. # noqa: E501
|
|
51
|
+
:rtype: SearchPage
|
|
52
|
+
"""
|
|
53
|
+
return self._page
|
|
54
|
+
|
|
55
|
+
@page.setter
|
|
56
|
+
def page(self, page):
|
|
57
|
+
"""Sets the page of this SearchMetaData.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:param page: The page of this SearchMetaData. # noqa: E501
|
|
61
|
+
:type: SearchPage
|
|
62
|
+
"""
|
|
63
|
+
|
|
64
|
+
self._page = page
|
|
65
|
+
|
|
66
|
+
def to_dict(self):
|
|
67
|
+
"""Returns the model properties as a dict"""
|
|
68
|
+
result = {}
|
|
69
|
+
|
|
70
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
71
|
+
value = getattr(self, attr)
|
|
72
|
+
if isinstance(value, list):
|
|
73
|
+
result[attr] = list(map(
|
|
74
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
75
|
+
value
|
|
76
|
+
))
|
|
77
|
+
elif hasattr(value, "to_dict"):
|
|
78
|
+
result[attr] = value.to_dict()
|
|
79
|
+
elif isinstance(value, dict):
|
|
80
|
+
result[attr] = dict(map(
|
|
81
|
+
lambda item: (item[0], item[1].to_dict())
|
|
82
|
+
if hasattr(item[1], "to_dict") else item,
|
|
83
|
+
value.items()
|
|
84
|
+
))
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
if issubclass(SearchMetaData, dict):
|
|
88
|
+
for key, value in self.items():
|
|
89
|
+
result[key] = value
|
|
90
|
+
|
|
91
|
+
return result
|
|
92
|
+
|
|
93
|
+
def to_str(self):
|
|
94
|
+
"""Returns the string representation of the model"""
|
|
95
|
+
return pprint.pformat(self.to_dict())
|
|
96
|
+
|
|
97
|
+
def __repr__(self):
|
|
98
|
+
"""For `print` and `pprint`"""
|
|
99
|
+
return self.to_str()
|
|
100
|
+
|
|
101
|
+
def __eq__(self, other):
|
|
102
|
+
"""Returns true if both objects are equal"""
|
|
103
|
+
if not isinstance(other, SearchMetaData):
|
|
104
|
+
return False
|
|
105
|
+
|
|
106
|
+
return self.__dict__ == other.__dict__
|
|
107
|
+
|
|
108
|
+
def __ne__(self, other):
|
|
109
|
+
"""Returns true if both objects are not equal"""
|
|
110
|
+
return not self == other
|