upstox-python-sdk 2.22.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.22.0 → upstox-python-sdk-2.23.0}/PKG-INFO +2 -2
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/README.md +1 -1
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/setup.py +1 -1
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/__init__.py +5 -0
- {upstox-python-sdk-2.22.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.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api_client.py +1 -1
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/__init__.py +4 -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/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.22.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/PKG-INFO +2 -2
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/SOURCES.txt +5 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/LICENSE.txt +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/setup.cfg +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/__init__.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/sanity_test.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_analytics_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_charge_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_convert_position_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_depth.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_depth_map.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_dp_plan.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_holdings_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_holiday_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_market_status_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_order_book_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_order_details_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_position_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_profile_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_trade_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.22.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.22.0 → upstox-python-sdk-2.23.0}/test/test_get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_order_details.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_rule.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_historical_candle_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_history_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_holdings_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_holiday_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_instrument.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_instrument_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_login_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_logout_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_margin.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_margin_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_margin_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_market_status_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_error.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_summary.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_ohlc.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_option_strike_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_options_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_order_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_order_book_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_order_metadata.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_other_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_place_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_place_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_place_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_portfolio_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_position_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_post_margin_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_post_trade_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_problem.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profile_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_rule.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_token_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_token_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_user_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_websocket_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/test/test_websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/charge_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/expired_instrument_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/history_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/history_v3_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/instruments_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/login_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_holidays_and_timings_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_quote_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/market_quote_v3_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/options_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/order_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/order_controller_v_3_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/portfolio_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/post_trade_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/user_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/api/websocket_api.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/configuration.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/__init__.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/feeder.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/market_data_feeder_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/market_data_streamer_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/portfolio_data_feeder.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/portfolio_data_streamer.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/proto/MarketDataFeedV3_pb2.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/proto/__init__.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/feeder/streamer.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/analytics_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/available_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/batch_execution_summary.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_multi_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_multi_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_or_exit_order_error_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cancel_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cash_available_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cash_breakdown.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cash_margin_used.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/cash_unavailable_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/convert_position_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/delivery_margin.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/depth.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/depth_map.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/dp_plan.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/exchange_timing_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/expired_future_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_exchange_timing_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_expired_futures_contract_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_expiries.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_gtt_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_holdings_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_holiday_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.22.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.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_ohlc_response_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_quote_option_greek_response_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_market_status_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_option_chain_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_option_contract_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_book_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_details_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_position_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_profile_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_trade_response.py +0 -0
- {upstox-python-sdk-2.22.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.22.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.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/get_user_fund_margin_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_cancel_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_modify_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_order_details.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_place_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_rule.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/gtt_trigger_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/historical_candle_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/holdings_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/holiday_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_init_token_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_init_token_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/indie_user_token_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/instrument.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/instrument_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/kill_switch_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/kill_switch_segment_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/kill_switch_segment_update_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/logout_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/loss.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin_from_pledge.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/margin_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_ohlcv3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_option_greek_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_quote_symbol_ltp_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/market_status_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/modify_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_error.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_summary.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/multi_order_v3_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/ohlc.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/ohlc_v3.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/option_strike_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_book_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/order_metadata.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/other_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_v3_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/place_order_v3_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/pledge_available_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/pledge_margin_used.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/pledge_unavailable_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/position_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/post_margin_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/problem.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profile_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/put_call_option_chain_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/rule.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_instrument_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/search_page.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/token_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/token_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_page_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_history_response_trade_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/unavailable_to_trade.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/unsettled_profit.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/update_user_ip_request.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/user_fund_margin_v3_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/user_ip_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/user_ip_response_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/models/websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_client/rest.py +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
- {upstox-python-sdk-2.22.0 → upstox-python-sdk-2.23.0}/upstox_python_sdk.egg-info/requires.txt +0 -0
- {upstox-python-sdk-2.22.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.
|
|
@@ -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.
|
|
@@ -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
|
|
@@ -81,6 +82,7 @@ from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOH
|
|
|
81
82
|
from upstox_client.models.get_market_quote_ohlc_response_v3 import GetMarketQuoteOHLCResponseV3
|
|
82
83
|
from upstox_client.models.get_market_quote_option_greek_response_v3 import GetMarketQuoteOptionGreekResponseV3
|
|
83
84
|
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
|
|
85
|
+
from upstox_client.models.get_news_response import GetNewsResponse
|
|
84
86
|
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
|
|
85
87
|
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
|
|
86
88
|
from upstox_client.models.get_order_book_response import GetOrderBookResponse
|
|
@@ -140,6 +142,9 @@ from upstox_client.models.multi_order_request import MultiOrderRequest
|
|
|
140
142
|
from upstox_client.models.multi_order_response import MultiOrderResponse
|
|
141
143
|
from upstox_client.models.multi_order_summary import MultiOrderSummary
|
|
142
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
|
|
143
148
|
from upstox_client.models.o_auth_client_exception import OAuthClientException
|
|
144
149
|
from upstox_client.models.o_auth_client_exception_cause import OAuthClientExceptionCause
|
|
145
150
|
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
|
|
@@ -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)
|
|
@@ -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.23.0"
|
|
78
78
|
|
|
79
79
|
def __del__(self):
|
|
80
80
|
try:
|
|
@@ -56,6 +56,7 @@ from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOH
|
|
|
56
56
|
from upstox_client.models.get_market_quote_ohlc_response_v3 import GetMarketQuoteOHLCResponseV3
|
|
57
57
|
from upstox_client.models.get_market_quote_option_greek_response_v3 import GetMarketQuoteOptionGreekResponseV3
|
|
58
58
|
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
|
|
59
|
+
from upstox_client.models.get_news_response import GetNewsResponse
|
|
59
60
|
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
|
|
60
61
|
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
|
|
61
62
|
from upstox_client.models.get_order_book_response import GetOrderBookResponse
|
|
@@ -115,6 +116,9 @@ from upstox_client.models.multi_order_request import MultiOrderRequest
|
|
|
115
116
|
from upstox_client.models.multi_order_response import MultiOrderResponse
|
|
116
117
|
from upstox_client.models.multi_order_summary import MultiOrderSummary
|
|
117
118
|
from upstox_client.models.multi_order_v3_data import MultiOrderV3Data
|
|
119
|
+
from upstox_client.models.news_item_data import NewsItemData
|
|
120
|
+
from upstox_client.models.news_response_meta_data import NewsResponseMetaData
|
|
121
|
+
from upstox_client.models.news_response_page_data import NewsResponsePageData
|
|
118
122
|
from upstox_client.models.o_auth_client_exception import OAuthClientException
|
|
119
123
|
from upstox_client.models.o_auth_client_exception_cause import OAuthClientExceptionCause
|
|
120
124
|
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
|
|
@@ -0,0 +1,162 @@
|
|
|
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 GetNewsResponse(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
|
+
'metadata': 'NewsResponseMetaData'
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
attribute_map = {
|
|
37
|
+
'status': 'status',
|
|
38
|
+
'data': 'data',
|
|
39
|
+
'metadata': 'metadata'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
def __init__(self, status=None, data=None, metadata=None): # noqa: E501
|
|
43
|
+
"""GetNewsResponse - a model defined in Swagger""" # noqa: E501
|
|
44
|
+
self._status = None
|
|
45
|
+
self._data = None
|
|
46
|
+
self._metadata = 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 metadata is not None:
|
|
53
|
+
self.metadata = metadata
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def status(self):
|
|
57
|
+
"""Gets the status of this GetNewsResponse. # noqa: E501
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
:return: The status of this GetNewsResponse. # 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 GetNewsResponse.
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:param status: The status of this GetNewsResponse. # noqa: E501
|
|
71
|
+
:type: object
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
self._status = status
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def data(self):
|
|
78
|
+
"""Gets the data of this GetNewsResponse. # noqa: E501
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:return: The data of this GetNewsResponse. # noqa: E501
|
|
82
|
+
:rtype: object
|
|
83
|
+
"""
|
|
84
|
+
return self._data
|
|
85
|
+
|
|
86
|
+
@data.setter
|
|
87
|
+
def data(self, data):
|
|
88
|
+
"""Sets the data of this GetNewsResponse.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:param data: The data of this GetNewsResponse. # noqa: E501
|
|
92
|
+
:type: object
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
self._data = data
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def metadata(self):
|
|
99
|
+
"""Gets the metadata of this GetNewsResponse. # noqa: E501
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
:return: The metadata of this GetNewsResponse. # noqa: E501
|
|
103
|
+
:rtype: NewsResponseMetaData
|
|
104
|
+
"""
|
|
105
|
+
return self._metadata
|
|
106
|
+
|
|
107
|
+
@metadata.setter
|
|
108
|
+
def metadata(self, metadata):
|
|
109
|
+
"""Sets the metadata of this GetNewsResponse.
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:param metadata: The metadata of this GetNewsResponse. # noqa: E501
|
|
113
|
+
:type: NewsResponseMetaData
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
self._metadata = metadata
|
|
117
|
+
|
|
118
|
+
def to_dict(self):
|
|
119
|
+
"""Returns the model properties as a dict"""
|
|
120
|
+
result = {}
|
|
121
|
+
|
|
122
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
123
|
+
value = getattr(self, attr)
|
|
124
|
+
if isinstance(value, list):
|
|
125
|
+
result[attr] = list(map(
|
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
127
|
+
value
|
|
128
|
+
))
|
|
129
|
+
elif hasattr(value, "to_dict"):
|
|
130
|
+
result[attr] = value.to_dict()
|
|
131
|
+
elif isinstance(value, dict):
|
|
132
|
+
result[attr] = dict(map(
|
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
|
135
|
+
value.items()
|
|
136
|
+
))
|
|
137
|
+
else:
|
|
138
|
+
result[attr] = value
|
|
139
|
+
if issubclass(GetNewsResponse, dict):
|
|
140
|
+
for key, value in self.items():
|
|
141
|
+
result[key] = value
|
|
142
|
+
|
|
143
|
+
return result
|
|
144
|
+
|
|
145
|
+
def to_str(self):
|
|
146
|
+
"""Returns the string representation of the model"""
|
|
147
|
+
return pprint.pformat(self.to_dict())
|
|
148
|
+
|
|
149
|
+
def __repr__(self):
|
|
150
|
+
"""For `print` and `pprint`"""
|
|
151
|
+
return self.to_str()
|
|
152
|
+
|
|
153
|
+
def __eq__(self, other):
|
|
154
|
+
"""Returns true if both objects are equal"""
|
|
155
|
+
if not isinstance(other, GetNewsResponse):
|
|
156
|
+
return False
|
|
157
|
+
|
|
158
|
+
return self.__dict__ == other.__dict__
|
|
159
|
+
|
|
160
|
+
def __ne__(self, other):
|
|
161
|
+
"""Returns true if both objects are not equal"""
|
|
162
|
+
return not self == other
|
|
@@ -0,0 +1,214 @@
|
|
|
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 NewsItemData(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
|
+
'heading': 'object',
|
|
32
|
+
'summary': 'object',
|
|
33
|
+
'thumbnail': 'object',
|
|
34
|
+
'article_link': 'object',
|
|
35
|
+
'published_time': 'object'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'heading': 'heading',
|
|
40
|
+
'summary': 'summary',
|
|
41
|
+
'thumbnail': 'thumbnail',
|
|
42
|
+
'article_link': 'article_link',
|
|
43
|
+
'published_time': 'published_time'
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
def __init__(self, heading=None, summary=None, thumbnail=None, article_link=None, published_time=None): # noqa: E501
|
|
47
|
+
"""NewsItemData - a model defined in Swagger""" # noqa: E501
|
|
48
|
+
self._heading = None
|
|
49
|
+
self._summary = None
|
|
50
|
+
self._thumbnail = None
|
|
51
|
+
self._article_link = None
|
|
52
|
+
self._published_time = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
if heading is not None:
|
|
55
|
+
self.heading = heading
|
|
56
|
+
if summary is not None:
|
|
57
|
+
self.summary = summary
|
|
58
|
+
if thumbnail is not None:
|
|
59
|
+
self.thumbnail = thumbnail
|
|
60
|
+
if article_link is not None:
|
|
61
|
+
self.article_link = article_link
|
|
62
|
+
if published_time is not None:
|
|
63
|
+
self.published_time = published_time
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def heading(self):
|
|
67
|
+
"""Gets the heading of this NewsItemData. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The heading of this NewsItemData. # noqa: E501
|
|
71
|
+
:rtype: object
|
|
72
|
+
"""
|
|
73
|
+
return self._heading
|
|
74
|
+
|
|
75
|
+
@heading.setter
|
|
76
|
+
def heading(self, heading):
|
|
77
|
+
"""Sets the heading of this NewsItemData.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param heading: The heading of this NewsItemData. # noqa: E501
|
|
81
|
+
:type: object
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._heading = heading
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def summary(self):
|
|
88
|
+
"""Gets the summary of this NewsItemData. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The summary of this NewsItemData. # noqa: E501
|
|
92
|
+
:rtype: object
|
|
93
|
+
"""
|
|
94
|
+
return self._summary
|
|
95
|
+
|
|
96
|
+
@summary.setter
|
|
97
|
+
def summary(self, summary):
|
|
98
|
+
"""Sets the summary of this NewsItemData.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param summary: The summary of this NewsItemData. # noqa: E501
|
|
102
|
+
:type: object
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._summary = summary
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def thumbnail(self):
|
|
109
|
+
"""Gets the thumbnail of this NewsItemData. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The thumbnail of this NewsItemData. # noqa: E501
|
|
113
|
+
:rtype: object
|
|
114
|
+
"""
|
|
115
|
+
return self._thumbnail
|
|
116
|
+
|
|
117
|
+
@thumbnail.setter
|
|
118
|
+
def thumbnail(self, thumbnail):
|
|
119
|
+
"""Sets the thumbnail of this NewsItemData.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param thumbnail: The thumbnail of this NewsItemData. # noqa: E501
|
|
123
|
+
:type: object
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._thumbnail = thumbnail
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def article_link(self):
|
|
130
|
+
"""Gets the article_link of this NewsItemData. # noqa: E501
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
:return: The article_link of this NewsItemData. # noqa: E501
|
|
134
|
+
:rtype: object
|
|
135
|
+
"""
|
|
136
|
+
return self._article_link
|
|
137
|
+
|
|
138
|
+
@article_link.setter
|
|
139
|
+
def article_link(self, article_link):
|
|
140
|
+
"""Sets the article_link of this NewsItemData.
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
:param article_link: The article_link of this NewsItemData. # noqa: E501
|
|
144
|
+
:type: object
|
|
145
|
+
"""
|
|
146
|
+
|
|
147
|
+
self._article_link = article_link
|
|
148
|
+
|
|
149
|
+
@property
|
|
150
|
+
def published_time(self):
|
|
151
|
+
"""Gets the published_time of this NewsItemData. # noqa: E501
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
:return: The published_time of this NewsItemData. # noqa: E501
|
|
155
|
+
:rtype: object
|
|
156
|
+
"""
|
|
157
|
+
return self._published_time
|
|
158
|
+
|
|
159
|
+
@published_time.setter
|
|
160
|
+
def published_time(self, published_time):
|
|
161
|
+
"""Sets the published_time of this NewsItemData.
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
:param published_time: The published_time of this NewsItemData. # noqa: E501
|
|
165
|
+
:type: object
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
self._published_time = published_time
|
|
169
|
+
|
|
170
|
+
def to_dict(self):
|
|
171
|
+
"""Returns the model properties as a dict"""
|
|
172
|
+
result = {}
|
|
173
|
+
|
|
174
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
175
|
+
value = getattr(self, attr)
|
|
176
|
+
if isinstance(value, list):
|
|
177
|
+
result[attr] = list(map(
|
|
178
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
179
|
+
value
|
|
180
|
+
))
|
|
181
|
+
elif hasattr(value, "to_dict"):
|
|
182
|
+
result[attr] = value.to_dict()
|
|
183
|
+
elif isinstance(value, dict):
|
|
184
|
+
result[attr] = dict(map(
|
|
185
|
+
lambda item: (item[0], item[1].to_dict())
|
|
186
|
+
if hasattr(item[1], "to_dict") else item,
|
|
187
|
+
value.items()
|
|
188
|
+
))
|
|
189
|
+
else:
|
|
190
|
+
result[attr] = value
|
|
191
|
+
if issubclass(NewsItemData, dict):
|
|
192
|
+
for key, value in self.items():
|
|
193
|
+
result[key] = value
|
|
194
|
+
|
|
195
|
+
return result
|
|
196
|
+
|
|
197
|
+
def to_str(self):
|
|
198
|
+
"""Returns the string representation of the model"""
|
|
199
|
+
return pprint.pformat(self.to_dict())
|
|
200
|
+
|
|
201
|
+
def __repr__(self):
|
|
202
|
+
"""For `print` and `pprint`"""
|
|
203
|
+
return self.to_str()
|
|
204
|
+
|
|
205
|
+
def __eq__(self, other):
|
|
206
|
+
"""Returns true if both objects are equal"""
|
|
207
|
+
if not isinstance(other, NewsItemData):
|
|
208
|
+
return False
|
|
209
|
+
|
|
210
|
+
return self.__dict__ == other.__dict__
|
|
211
|
+
|
|
212
|
+
def __ne__(self, other):
|
|
213
|
+
"""Returns true if both objects are not equal"""
|
|
214
|
+
return not self == other
|