upstox-python-sdk 2.4.2__tar.gz → 2.4.3__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.4.2 → upstox-python-sdk-2.4.3}/PKG-INFO +9 -2
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/README.md +1 -1
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/setup.py +1 -1
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/__init__.py +15 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/charge_api.py +1 -1
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/history_api.py +3 -3
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/login_api.py +3 -3
- upstox-python-sdk-2.4.3/upstox_client/api/market_holidays_and_timings_api.py +405 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/market_quote_api.py +3 -3
- upstox-python-sdk-2.4.3/upstox_client/api/options_api.py +235 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/order_api.py +7 -7
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/portfolio_api.py +3 -3
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/trade_profit_and_loss_api.py +3 -3
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/user_api.py +2 -2
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/websocket_api.py +4 -4
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/configuration.py +2 -2
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/__init__.py +13 -0
- upstox-python-sdk-2.4.3/upstox_client/models/analytics_data.py +240 -0
- upstox-python-sdk-2.4.3/upstox_client/models/exchange_timing_data.py +162 -0
- upstox-python-sdk-2.4.3/upstox_client/models/get_exchange_timing_response.py +144 -0
- upstox-python-sdk-2.4.3/upstox_client/models/get_holiday_response.py +144 -0
- upstox-python-sdk-2.4.3/upstox_client/models/get_market_status_response.py +142 -0
- upstox-python-sdk-2.4.3/upstox_client/models/get_option_chain_response.py +144 -0
- upstox-python-sdk-2.4.3/upstox_client/models/get_option_contract_response.py +144 -0
- upstox-python-sdk-2.4.3/upstox_client/models/holiday_data.py +220 -0
- upstox-python-sdk-2.4.3/upstox_client/models/instrument_data.py +1020 -0
- upstox-python-sdk-2.4.3/upstox_client/models/market_data.py +318 -0
- upstox-python-sdk-2.4.3/upstox_client/models/market_status_data.py +162 -0
- upstox-python-sdk-2.4.3/upstox_client/models/option_strike_data.py +266 -0
- upstox-python-sdk-2.4.3/upstox_client/models/put_call_option_chain_data.py +162 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_python_sdk.egg-info/PKG-INFO +9 -2
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_python_sdk.egg-info/SOURCES.txt +15 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/LICENSE.txt +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/setup.cfg +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/__init__.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/sanity_test.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_brokerage_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_cancel_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_cancel_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_charge_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_convert_position_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_convert_position_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_convert_position_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_depth.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_depth_map.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_dp_plan.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_holdings_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_order_book_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_position_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_profile_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_trade_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_historical_candle_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_history_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_holdings_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_login_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_logout_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_market_quote_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_modify_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_modify_order_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_modify_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_ohlc.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_order_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_order_book_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_other_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_place_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_place_order_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_place_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_portfolio_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_position_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_problem.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profile_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_token_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_token_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_trade_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_trade_profit_and_loss_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_user_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_websocket_api.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/test/test_websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api/__init__.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/api_client.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/__init__.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/feeder.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/market_data_feeder.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/market_data_streamer.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/portfolio_data_feeder.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/portfolio_data_streamer.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/proto/MarketDataFeed_pb2.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/proto/__init__.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/feeder/streamer.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/api_gateway_error_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/brokerage_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/brokerage_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/brokerage_wrapper_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/cancel_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/cancel_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/convert_position_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/convert_position_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/convert_position_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/depth.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/depth_map.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/dp_plan.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_brokerage_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_full_market_quote_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_historical_candle_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_holdings_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_intra_day_candle_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_market_quote_last_traded_price_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_market_quote_ohlc_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_order_book_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_position_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_profile_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_profit_and_loss_charges_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_trade_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_trade_wise_profit_and_loss_data_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_trade_wise_profit_and_loss_meta_data_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/get_user_fund_margin_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/historical_candle_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/holdings_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/intra_day_candle_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/logout_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/market_quote_ohlc.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/market_quote_symbol.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/market_quote_symbol_ltp.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/modify_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/modify_order_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/modify_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/o_auth_client_exception.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/o_auth_client_exception_cause.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/o_auth_client_exception_cause_stack_trace.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/o_auth_client_exception_cause_suppressed.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/ohlc.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/order_book_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/other_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/place_order_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/place_order_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/place_order_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/position_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/problem.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profile_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_charges_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_charges_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_charges_wrapper_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_meta_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_meta_data_wrapper.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/profit_and_loss_other_charges_taxes.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/token_request.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/token_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/trade_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/trade_wise_meta_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/trade_wise_profit_and_loss_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/user_fund_margin_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/websocket_auth_redirect_response.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/models/websocket_auth_redirect_response_data.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_client/rest.py +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_python_sdk.egg-info/dependency_links.txt +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_python_sdk.egg-info/requires.txt +0 -0
- {upstox-python-sdk-2.4.2 → upstox-python-sdk-2.4.3}/upstox_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: upstox-python-sdk
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.3
|
|
4
4
|
Summary: Upstox Developer API
|
|
5
5
|
Home-page: https://github.com/upstox/upstox-python
|
|
6
6
|
License: MIT
|
|
7
7
|
Keywords: Upstox Developer API
|
|
8
8
|
Description-Content-Type: text/markdown
|
|
9
9
|
License-File: LICENSE.txt
|
|
10
|
+
Requires-Dist: urllib3>=1.15
|
|
11
|
+
Requires-Dist: six>=1.10
|
|
12
|
+
Requires-Dist: certifi
|
|
13
|
+
Requires-Dist: python-dateutil
|
|
14
|
+
Requires-Dist: websocket-client
|
|
15
|
+
Requires-Dist: uuid
|
|
16
|
+
Requires-Dist: protobuf
|
|
10
17
|
|
|
11
18
|
# Upstox Python SDK for API v2
|
|
12
19
|
|
|
@@ -132,7 +139,7 @@ def main():
|
|
|
132
139
|
configuration.access_token = access_token
|
|
133
140
|
|
|
134
141
|
streamer = upstox_client.MarketDataStreamer(
|
|
135
|
-
upstox_client.ApiClient(configuration), ["NSE_INDEX|Nifty 50", "NSE_INDEX|Bank
|
|
142
|
+
upstox_client.ApiClient(configuration), ["NSE_INDEX|Nifty 50", "NSE_INDEX|Nifty Bank"], "full")
|
|
136
143
|
|
|
137
144
|
streamer.on("message", on_message)
|
|
138
145
|
|
|
@@ -122,7 +122,7 @@ def main():
|
|
|
122
122
|
configuration.access_token = access_token
|
|
123
123
|
|
|
124
124
|
streamer = upstox_client.MarketDataStreamer(
|
|
125
|
-
upstox_client.ApiClient(configuration), ["NSE_INDEX|Nifty 50", "NSE_INDEX|Bank
|
|
125
|
+
upstox_client.ApiClient(configuration), ["NSE_INDEX|Nifty 50", "NSE_INDEX|Nifty Bank"], "full")
|
|
126
126
|
|
|
127
127
|
streamer.on("message", on_message)
|
|
128
128
|
|
|
@@ -18,7 +18,9 @@ from __future__ import absolute_import
|
|
|
18
18
|
from upstox_client.api.charge_api import ChargeApi
|
|
19
19
|
from upstox_client.api.history_api import HistoryApi
|
|
20
20
|
from upstox_client.api.login_api import LoginApi
|
|
21
|
+
from upstox_client.api.market_holidays_and_timings_api import MarketHolidaysAndTimingsApi
|
|
21
22
|
from upstox_client.api.market_quote_api import MarketQuoteApi
|
|
23
|
+
from upstox_client.api.options_api import OptionsApi
|
|
22
24
|
from upstox_client.api.order_api import OrderApi
|
|
23
25
|
from upstox_client.api.portfolio_api import PortfolioApi
|
|
24
26
|
from upstox_client.api.trade_profit_and_loss_api import TradeProfitAndLossApi
|
|
@@ -31,6 +33,7 @@ from upstox_client.feeder.portfolio_data_streamer import PortfolioDataStreamer
|
|
|
31
33
|
from upstox_client.api_client import ApiClient
|
|
32
34
|
from upstox_client.configuration import Configuration
|
|
33
35
|
# import models into sdk package
|
|
36
|
+
from upstox_client.models.analytics_data import AnalyticsData
|
|
34
37
|
from upstox_client.models.api_gateway_error_response import ApiGatewayErrorResponse
|
|
35
38
|
from upstox_client.models.brokerage_data import BrokerageData
|
|
36
39
|
from upstox_client.models.brokerage_taxes import BrokerageTaxes
|
|
@@ -43,13 +46,19 @@ from upstox_client.models.convert_position_response import ConvertPositionRespon
|
|
|
43
46
|
from upstox_client.models.depth import Depth
|
|
44
47
|
from upstox_client.models.depth_map import DepthMap
|
|
45
48
|
from upstox_client.models.dp_plan import DpPlan
|
|
49
|
+
from upstox_client.models.exchange_timing_data import ExchangeTimingData
|
|
46
50
|
from upstox_client.models.get_brokerage_response import GetBrokerageResponse
|
|
51
|
+
from upstox_client.models.get_exchange_timing_response import GetExchangeTimingResponse
|
|
47
52
|
from upstox_client.models.get_full_market_quote_response import GetFullMarketQuoteResponse
|
|
48
53
|
from upstox_client.models.get_historical_candle_response import GetHistoricalCandleResponse
|
|
49
54
|
from upstox_client.models.get_holdings_response import GetHoldingsResponse
|
|
55
|
+
from upstox_client.models.get_holiday_response import GetHolidayResponse
|
|
50
56
|
from upstox_client.models.get_intra_day_candle_response import GetIntraDayCandleResponse
|
|
51
57
|
from upstox_client.models.get_market_quote_last_traded_price_response import GetMarketQuoteLastTradedPriceResponse
|
|
52
58
|
from upstox_client.models.get_market_quote_ohlc_response import GetMarketQuoteOHLCResponse
|
|
59
|
+
from upstox_client.models.get_market_status_response import GetMarketStatusResponse
|
|
60
|
+
from upstox_client.models.get_option_chain_response import GetOptionChainResponse
|
|
61
|
+
from upstox_client.models.get_option_contract_response import GetOptionContractResponse
|
|
53
62
|
from upstox_client.models.get_order_book_response import GetOrderBookResponse
|
|
54
63
|
from upstox_client.models.get_order_response import GetOrderResponse
|
|
55
64
|
from upstox_client.models.get_position_response import GetPositionResponse
|
|
@@ -61,11 +70,15 @@ from upstox_client.models.get_trade_wise_profit_and_loss_meta_data_response impo
|
|
|
61
70
|
from upstox_client.models.get_user_fund_margin_response import GetUserFundMarginResponse
|
|
62
71
|
from upstox_client.models.historical_candle_data import HistoricalCandleData
|
|
63
72
|
from upstox_client.models.holdings_data import HoldingsData
|
|
73
|
+
from upstox_client.models.holiday_data import HolidayData
|
|
74
|
+
from upstox_client.models.instrument_data import InstrumentData
|
|
64
75
|
from upstox_client.models.intra_day_candle_data import IntraDayCandleData
|
|
65
76
|
from upstox_client.models.logout_response import LogoutResponse
|
|
77
|
+
from upstox_client.models.market_data import MarketData
|
|
66
78
|
from upstox_client.models.market_quote_ohlc import MarketQuoteOHLC
|
|
67
79
|
from upstox_client.models.market_quote_symbol import MarketQuoteSymbol
|
|
68
80
|
from upstox_client.models.market_quote_symbol_ltp import MarketQuoteSymbolLtp
|
|
81
|
+
from upstox_client.models.market_status_data import MarketStatusData
|
|
69
82
|
from upstox_client.models.modify_order_data import ModifyOrderData
|
|
70
83
|
from upstox_client.models.modify_order_request import ModifyOrderRequest
|
|
71
84
|
from upstox_client.models.modify_order_response import ModifyOrderResponse
|
|
@@ -74,6 +87,7 @@ from upstox_client.models.o_auth_client_exception_cause import OAuthClientExcept
|
|
|
74
87
|
from upstox_client.models.o_auth_client_exception_cause_stack_trace import OAuthClientExceptionCauseStackTrace
|
|
75
88
|
from upstox_client.models.o_auth_client_exception_cause_suppressed import OAuthClientExceptionCauseSuppressed
|
|
76
89
|
from upstox_client.models.ohlc import Ohlc
|
|
90
|
+
from upstox_client.models.option_strike_data import OptionStrikeData
|
|
77
91
|
from upstox_client.models.order_book_data import OrderBookData
|
|
78
92
|
from upstox_client.models.order_data import OrderData
|
|
79
93
|
from upstox_client.models.other_taxes import OtherTaxes
|
|
@@ -89,6 +103,7 @@ from upstox_client.models.profit_and_loss_charges_wrapper_data import ProfitAndL
|
|
|
89
103
|
from upstox_client.models.profit_and_loss_meta_data import ProfitAndLossMetaData
|
|
90
104
|
from upstox_client.models.profit_and_loss_meta_data_wrapper import ProfitAndLossMetaDataWrapper
|
|
91
105
|
from upstox_client.models.profit_and_loss_other_charges_taxes import ProfitAndLossOtherChargesTaxes
|
|
106
|
+
from upstox_client.models.put_call_option_chain_data import PutCallOptionChainData
|
|
92
107
|
from upstox_client.models.token_request import TokenRequest
|
|
93
108
|
from upstox_client.models.token_response import TokenResponse
|
|
94
109
|
from upstox_client.models.trade_data import TradeData
|
|
@@ -136,7 +136,7 @@ class HistoryApi(object):
|
|
|
136
136
|
auth_settings = [] # noqa: E501
|
|
137
137
|
|
|
138
138
|
return self.api_client.call_api(
|
|
139
|
-
'/historical-candle/{instrumentKey}/{interval}/{to_date}', 'GET',
|
|
139
|
+
'/v2/historical-candle/{instrumentKey}/{interval}/{to_date}', 'GET',
|
|
140
140
|
path_params,
|
|
141
141
|
query_params,
|
|
142
142
|
header_params,
|
|
@@ -263,7 +263,7 @@ class HistoryApi(object):
|
|
|
263
263
|
auth_settings = [] # noqa: E501
|
|
264
264
|
|
|
265
265
|
return self.api_client.call_api(
|
|
266
|
-
'/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date}', 'GET',
|
|
266
|
+
'/v2/historical-candle/{instrumentKey}/{interval}/{to_date}/{from_date}', 'GET',
|
|
267
267
|
path_params,
|
|
268
268
|
query_params,
|
|
269
269
|
header_params,
|
|
@@ -374,7 +374,7 @@ class HistoryApi(object):
|
|
|
374
374
|
auth_settings = [] # noqa: E501
|
|
375
375
|
|
|
376
376
|
return self.api_client.call_api(
|
|
377
|
-
'/historical-candle/intraday/{instrumentKey}/{interval}', 'GET',
|
|
377
|
+
'/v2/historical-candle/intraday/{instrumentKey}/{interval}', 'GET',
|
|
378
378
|
path_params,
|
|
379
379
|
query_params,
|
|
380
380
|
header_params,
|
|
@@ -136,7 +136,7 @@ class LoginApi(object):
|
|
|
136
136
|
auth_settings = [] # noqa: E501
|
|
137
137
|
|
|
138
138
|
return self.api_client.call_api(
|
|
139
|
-
'/login/authorization/dialog', 'GET',
|
|
139
|
+
'/v2/login/authorization/dialog', 'GET',
|
|
140
140
|
path_params,
|
|
141
141
|
query_params,
|
|
142
142
|
header_params,
|
|
@@ -231,7 +231,7 @@ class LoginApi(object):
|
|
|
231
231
|
auth_settings = ['OAUTH2'] # noqa: E501
|
|
232
232
|
|
|
233
233
|
return self.api_client.call_api(
|
|
234
|
-
'/logout', 'DELETE',
|
|
234
|
+
'/v2/logout', 'DELETE',
|
|
235
235
|
path_params,
|
|
236
236
|
query_params,
|
|
237
237
|
header_params,
|
|
@@ -350,7 +350,7 @@ class LoginApi(object):
|
|
|
350
350
|
auth_settings = [] # noqa: E501
|
|
351
351
|
|
|
352
352
|
return self.api_client.call_api(
|
|
353
|
-
'/login/authorization/token', 'POST',
|
|
353
|
+
'/v2/login/authorization/token', 'POST',
|
|
354
354
|
path_params,
|
|
355
355
|
query_params,
|
|
356
356
|
header_params,
|
|
@@ -0,0 +1,405 @@
|
|
|
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 MarketHolidaysAndTimingsApi(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_exchange_timings(self, _date, **kwargs): # noqa: E501
|
|
36
|
+
"""Get Exchange Timings on particular date # noqa: E501
|
|
37
|
+
|
|
38
|
+
This API provides the functionality to retrieve the exchange timings on particular date # 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_exchange_timings(_date, async_req=True)
|
|
42
|
+
>>> result = thread.get()
|
|
43
|
+
|
|
44
|
+
:param async_req bool
|
|
45
|
+
:param str _date: (required)
|
|
46
|
+
:return: GetExchangeTimingResponse
|
|
47
|
+
If the method is called asynchronously,
|
|
48
|
+
returns the request thread.
|
|
49
|
+
"""
|
|
50
|
+
kwargs['_return_http_data_only'] = True
|
|
51
|
+
if kwargs.get('async_req'):
|
|
52
|
+
return self.get_exchange_timings_with_http_info(_date, **kwargs) # noqa: E501
|
|
53
|
+
else:
|
|
54
|
+
(data) = self.get_exchange_timings_with_http_info(_date, **kwargs) # noqa: E501
|
|
55
|
+
return data
|
|
56
|
+
|
|
57
|
+
def get_exchange_timings_with_http_info(self, _date, **kwargs): # noqa: E501
|
|
58
|
+
"""Get Exchange Timings on particular date # noqa: E501
|
|
59
|
+
|
|
60
|
+
This API provides the functionality to retrieve the exchange timings on particular date # noqa: E501
|
|
61
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
62
|
+
asynchronous HTTP request, please pass async_req=True
|
|
63
|
+
>>> thread = api.get_exchange_timings_with_http_info(_date, async_req=True)
|
|
64
|
+
>>> result = thread.get()
|
|
65
|
+
|
|
66
|
+
:param async_req bool
|
|
67
|
+
:param str _date: (required)
|
|
68
|
+
:return: GetExchangeTimingResponse
|
|
69
|
+
If the method is called asynchronously,
|
|
70
|
+
returns the request thread.
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
all_params = ['_date'] # noqa: E501
|
|
74
|
+
all_params.append('async_req')
|
|
75
|
+
all_params.append('_return_http_data_only')
|
|
76
|
+
all_params.append('_preload_content')
|
|
77
|
+
all_params.append('_request_timeout')
|
|
78
|
+
|
|
79
|
+
params = locals()
|
|
80
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
81
|
+
if key not in all_params:
|
|
82
|
+
raise TypeError(
|
|
83
|
+
"Got an unexpected keyword argument '%s'"
|
|
84
|
+
" to method get_exchange_timings" % key
|
|
85
|
+
)
|
|
86
|
+
params[key] = val
|
|
87
|
+
del params['kwargs']
|
|
88
|
+
# verify the required parameter '_date' is set
|
|
89
|
+
if ('_date' not in params or
|
|
90
|
+
params['_date'] is None):
|
|
91
|
+
raise ValueError("Missing the required parameter `_date` when calling `get_exchange_timings`") # noqa: E501
|
|
92
|
+
|
|
93
|
+
collection_formats = {}
|
|
94
|
+
|
|
95
|
+
path_params = {}
|
|
96
|
+
if '_date' in params:
|
|
97
|
+
path_params['date'] = params['_date'] # noqa: E501
|
|
98
|
+
|
|
99
|
+
query_params = []
|
|
100
|
+
|
|
101
|
+
header_params = {}
|
|
102
|
+
|
|
103
|
+
form_params = []
|
|
104
|
+
local_var_files = {}
|
|
105
|
+
|
|
106
|
+
body_params = None
|
|
107
|
+
# HTTP header `Accept`
|
|
108
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
109
|
+
['application/json', '*/*']) # noqa: E501
|
|
110
|
+
|
|
111
|
+
# Authentication setting
|
|
112
|
+
auth_settings = [] # noqa: E501
|
|
113
|
+
|
|
114
|
+
return self.api_client.call_api(
|
|
115
|
+
'/v2/market/timings/{date}', 'GET',
|
|
116
|
+
path_params,
|
|
117
|
+
query_params,
|
|
118
|
+
header_params,
|
|
119
|
+
body=body_params,
|
|
120
|
+
post_params=form_params,
|
|
121
|
+
files=local_var_files,
|
|
122
|
+
response_type='GetExchangeTimingResponse', # noqa: E501
|
|
123
|
+
auth_settings=auth_settings,
|
|
124
|
+
async_req=params.get('async_req'),
|
|
125
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
126
|
+
_preload_content=params.get('_preload_content', True),
|
|
127
|
+
_request_timeout=params.get('_request_timeout'),
|
|
128
|
+
collection_formats=collection_formats)
|
|
129
|
+
|
|
130
|
+
def get_holiday(self, _date, **kwargs): # noqa: E501
|
|
131
|
+
"""Get Holiday on particular date # noqa: E501
|
|
132
|
+
|
|
133
|
+
This API provides the functionality to retrieve the holiday on particular date # noqa: E501
|
|
134
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
135
|
+
asynchronous HTTP request, please pass async_req=True
|
|
136
|
+
>>> thread = api.get_holiday(_date, async_req=True)
|
|
137
|
+
>>> result = thread.get()
|
|
138
|
+
|
|
139
|
+
:param async_req bool
|
|
140
|
+
:param str _date: (required)
|
|
141
|
+
:return: GetHolidayResponse
|
|
142
|
+
If the method is called asynchronously,
|
|
143
|
+
returns the request thread.
|
|
144
|
+
"""
|
|
145
|
+
kwargs['_return_http_data_only'] = True
|
|
146
|
+
if kwargs.get('async_req'):
|
|
147
|
+
return self.get_holiday_with_http_info(_date, **kwargs) # noqa: E501
|
|
148
|
+
else:
|
|
149
|
+
(data) = self.get_holiday_with_http_info(_date, **kwargs) # noqa: E501
|
|
150
|
+
return data
|
|
151
|
+
|
|
152
|
+
def get_holiday_with_http_info(self, _date, **kwargs): # noqa: E501
|
|
153
|
+
"""Get Holiday on particular date # noqa: E501
|
|
154
|
+
|
|
155
|
+
This API provides the functionality to retrieve the holiday on particular date # noqa: E501
|
|
156
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
157
|
+
asynchronous HTTP request, please pass async_req=True
|
|
158
|
+
>>> thread = api.get_holiday_with_http_info(_date, async_req=True)
|
|
159
|
+
>>> result = thread.get()
|
|
160
|
+
|
|
161
|
+
:param async_req bool
|
|
162
|
+
:param str _date: (required)
|
|
163
|
+
:return: GetHolidayResponse
|
|
164
|
+
If the method is called asynchronously,
|
|
165
|
+
returns the request thread.
|
|
166
|
+
"""
|
|
167
|
+
|
|
168
|
+
all_params = ['_date'] # noqa: E501
|
|
169
|
+
all_params.append('async_req')
|
|
170
|
+
all_params.append('_return_http_data_only')
|
|
171
|
+
all_params.append('_preload_content')
|
|
172
|
+
all_params.append('_request_timeout')
|
|
173
|
+
|
|
174
|
+
params = locals()
|
|
175
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
176
|
+
if key not in all_params:
|
|
177
|
+
raise TypeError(
|
|
178
|
+
"Got an unexpected keyword argument '%s'"
|
|
179
|
+
" to method get_holiday" % key
|
|
180
|
+
)
|
|
181
|
+
params[key] = val
|
|
182
|
+
del params['kwargs']
|
|
183
|
+
# verify the required parameter '_date' is set
|
|
184
|
+
if ('_date' not in params or
|
|
185
|
+
params['_date'] is None):
|
|
186
|
+
raise ValueError("Missing the required parameter `_date` when calling `get_holiday`") # noqa: E501
|
|
187
|
+
|
|
188
|
+
collection_formats = {}
|
|
189
|
+
|
|
190
|
+
path_params = {}
|
|
191
|
+
if '_date' in params:
|
|
192
|
+
path_params['date'] = params['_date'] # noqa: E501
|
|
193
|
+
|
|
194
|
+
query_params = []
|
|
195
|
+
|
|
196
|
+
header_params = {}
|
|
197
|
+
|
|
198
|
+
form_params = []
|
|
199
|
+
local_var_files = {}
|
|
200
|
+
|
|
201
|
+
body_params = None
|
|
202
|
+
# HTTP header `Accept`
|
|
203
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
204
|
+
['application/json', '*/*']) # noqa: E501
|
|
205
|
+
|
|
206
|
+
# Authentication setting
|
|
207
|
+
auth_settings = [] # noqa: E501
|
|
208
|
+
|
|
209
|
+
return self.api_client.call_api(
|
|
210
|
+
'/v2/market/holidays/{date}', 'GET',
|
|
211
|
+
path_params,
|
|
212
|
+
query_params,
|
|
213
|
+
header_params,
|
|
214
|
+
body=body_params,
|
|
215
|
+
post_params=form_params,
|
|
216
|
+
files=local_var_files,
|
|
217
|
+
response_type='GetHolidayResponse', # noqa: E501
|
|
218
|
+
auth_settings=auth_settings,
|
|
219
|
+
async_req=params.get('async_req'),
|
|
220
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
221
|
+
_preload_content=params.get('_preload_content', True),
|
|
222
|
+
_request_timeout=params.get('_request_timeout'),
|
|
223
|
+
collection_formats=collection_formats)
|
|
224
|
+
|
|
225
|
+
def get_holidays(self, **kwargs): # noqa: E501
|
|
226
|
+
"""Get Holiday list of current year # noqa: E501
|
|
227
|
+
|
|
228
|
+
This API provides the functionality to retrieve the holiday list of current year # noqa: E501
|
|
229
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
230
|
+
asynchronous HTTP request, please pass async_req=True
|
|
231
|
+
>>> thread = api.get_holidays(async_req=True)
|
|
232
|
+
>>> result = thread.get()
|
|
233
|
+
|
|
234
|
+
:param async_req bool
|
|
235
|
+
:return: GetHolidayResponse
|
|
236
|
+
If the method is called asynchronously,
|
|
237
|
+
returns the request thread.
|
|
238
|
+
"""
|
|
239
|
+
kwargs['_return_http_data_only'] = True
|
|
240
|
+
if kwargs.get('async_req'):
|
|
241
|
+
return self.get_holidays_with_http_info(**kwargs) # noqa: E501
|
|
242
|
+
else:
|
|
243
|
+
(data) = self.get_holidays_with_http_info(**kwargs) # noqa: E501
|
|
244
|
+
return data
|
|
245
|
+
|
|
246
|
+
def get_holidays_with_http_info(self, **kwargs): # noqa: E501
|
|
247
|
+
"""Get Holiday list of current year # noqa: E501
|
|
248
|
+
|
|
249
|
+
This API provides the functionality to retrieve the holiday list of current year # noqa: E501
|
|
250
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
251
|
+
asynchronous HTTP request, please pass async_req=True
|
|
252
|
+
>>> thread = api.get_holidays_with_http_info(async_req=True)
|
|
253
|
+
>>> result = thread.get()
|
|
254
|
+
|
|
255
|
+
:param async_req bool
|
|
256
|
+
:return: GetHolidayResponse
|
|
257
|
+
If the method is called asynchronously,
|
|
258
|
+
returns the request thread.
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
all_params = [] # noqa: E501
|
|
262
|
+
all_params.append('async_req')
|
|
263
|
+
all_params.append('_return_http_data_only')
|
|
264
|
+
all_params.append('_preload_content')
|
|
265
|
+
all_params.append('_request_timeout')
|
|
266
|
+
|
|
267
|
+
params = locals()
|
|
268
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
269
|
+
if key not in all_params:
|
|
270
|
+
raise TypeError(
|
|
271
|
+
"Got an unexpected keyword argument '%s'"
|
|
272
|
+
" to method get_holidays" % key
|
|
273
|
+
)
|
|
274
|
+
params[key] = val
|
|
275
|
+
del params['kwargs']
|
|
276
|
+
|
|
277
|
+
collection_formats = {}
|
|
278
|
+
|
|
279
|
+
path_params = {}
|
|
280
|
+
|
|
281
|
+
query_params = []
|
|
282
|
+
|
|
283
|
+
header_params = {}
|
|
284
|
+
|
|
285
|
+
form_params = []
|
|
286
|
+
local_var_files = {}
|
|
287
|
+
|
|
288
|
+
body_params = None
|
|
289
|
+
# HTTP header `Accept`
|
|
290
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
291
|
+
['application/json', '*/*']) # noqa: E501
|
|
292
|
+
|
|
293
|
+
# Authentication setting
|
|
294
|
+
auth_settings = [] # noqa: E501
|
|
295
|
+
|
|
296
|
+
return self.api_client.call_api(
|
|
297
|
+
'/v2/market/holidays', 'GET',
|
|
298
|
+
path_params,
|
|
299
|
+
query_params,
|
|
300
|
+
header_params,
|
|
301
|
+
body=body_params,
|
|
302
|
+
post_params=form_params,
|
|
303
|
+
files=local_var_files,
|
|
304
|
+
response_type='GetHolidayResponse', # noqa: E501
|
|
305
|
+
auth_settings=auth_settings,
|
|
306
|
+
async_req=params.get('async_req'),
|
|
307
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
308
|
+
_preload_content=params.get('_preload_content', True),
|
|
309
|
+
_request_timeout=params.get('_request_timeout'),
|
|
310
|
+
collection_formats=collection_formats)
|
|
311
|
+
|
|
312
|
+
def get_market_status(self, exchange, **kwargs): # noqa: E501
|
|
313
|
+
"""Get Market status for particular exchange # noqa: E501
|
|
314
|
+
|
|
315
|
+
This API provides the functionality to retrieve the market status for particular exchange # noqa: E501
|
|
316
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
317
|
+
asynchronous HTTP request, please pass async_req=True
|
|
318
|
+
>>> thread = api.get_market_status(exchange, async_req=True)
|
|
319
|
+
>>> result = thread.get()
|
|
320
|
+
|
|
321
|
+
:param async_req bool
|
|
322
|
+
:param str exchange: (required)
|
|
323
|
+
:return: GetMarketStatusResponse
|
|
324
|
+
If the method is called asynchronously,
|
|
325
|
+
returns the request thread.
|
|
326
|
+
"""
|
|
327
|
+
kwargs['_return_http_data_only'] = True
|
|
328
|
+
if kwargs.get('async_req'):
|
|
329
|
+
return self.get_market_status_with_http_info(exchange, **kwargs) # noqa: E501
|
|
330
|
+
else:
|
|
331
|
+
(data) = self.get_market_status_with_http_info(exchange, **kwargs) # noqa: E501
|
|
332
|
+
return data
|
|
333
|
+
|
|
334
|
+
def get_market_status_with_http_info(self, exchange, **kwargs): # noqa: E501
|
|
335
|
+
"""Get Market status for particular exchange # noqa: E501
|
|
336
|
+
|
|
337
|
+
This API provides the functionality to retrieve the market status for particular exchange # noqa: E501
|
|
338
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
339
|
+
asynchronous HTTP request, please pass async_req=True
|
|
340
|
+
>>> thread = api.get_market_status_with_http_info(exchange, async_req=True)
|
|
341
|
+
>>> result = thread.get()
|
|
342
|
+
|
|
343
|
+
:param async_req bool
|
|
344
|
+
:param str exchange: (required)
|
|
345
|
+
:return: GetMarketStatusResponse
|
|
346
|
+
If the method is called asynchronously,
|
|
347
|
+
returns the request thread.
|
|
348
|
+
"""
|
|
349
|
+
|
|
350
|
+
all_params = ['exchange'] # noqa: E501
|
|
351
|
+
all_params.append('async_req')
|
|
352
|
+
all_params.append('_return_http_data_only')
|
|
353
|
+
all_params.append('_preload_content')
|
|
354
|
+
all_params.append('_request_timeout')
|
|
355
|
+
|
|
356
|
+
params = locals()
|
|
357
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
358
|
+
if key not in all_params:
|
|
359
|
+
raise TypeError(
|
|
360
|
+
"Got an unexpected keyword argument '%s'"
|
|
361
|
+
" to method get_market_status" % key
|
|
362
|
+
)
|
|
363
|
+
params[key] = val
|
|
364
|
+
del params['kwargs']
|
|
365
|
+
# verify the required parameter 'exchange' is set
|
|
366
|
+
if ('exchange' not in params or
|
|
367
|
+
params['exchange'] is None):
|
|
368
|
+
raise ValueError("Missing the required parameter `exchange` when calling `get_market_status`") # noqa: E501
|
|
369
|
+
|
|
370
|
+
collection_formats = {}
|
|
371
|
+
|
|
372
|
+
path_params = {}
|
|
373
|
+
if 'exchange' in params:
|
|
374
|
+
path_params['exchange'] = params['exchange'] # noqa: E501
|
|
375
|
+
|
|
376
|
+
query_params = []
|
|
377
|
+
|
|
378
|
+
header_params = {}
|
|
379
|
+
|
|
380
|
+
form_params = []
|
|
381
|
+
local_var_files = {}
|
|
382
|
+
|
|
383
|
+
body_params = None
|
|
384
|
+
# HTTP header `Accept`
|
|
385
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
386
|
+
['application/json', '*/*']) # noqa: E501
|
|
387
|
+
|
|
388
|
+
# Authentication setting
|
|
389
|
+
auth_settings = ['OAUTH2'] # noqa: E501
|
|
390
|
+
|
|
391
|
+
return self.api_client.call_api(
|
|
392
|
+
'/v2/market/status/{exchange}', 'GET',
|
|
393
|
+
path_params,
|
|
394
|
+
query_params,
|
|
395
|
+
header_params,
|
|
396
|
+
body=body_params,
|
|
397
|
+
post_params=form_params,
|
|
398
|
+
files=local_var_files,
|
|
399
|
+
response_type='GetMarketStatusResponse', # noqa: E501
|
|
400
|
+
auth_settings=auth_settings,
|
|
401
|
+
async_req=params.get('async_req'),
|
|
402
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
403
|
+
_preload_content=params.get('_preload_content', True),
|
|
404
|
+
_request_timeout=params.get('_request_timeout'),
|
|
405
|
+
collection_formats=collection_formats)
|
|
@@ -120,7 +120,7 @@ class MarketQuoteApi(object):
|
|
|
120
120
|
auth_settings = ['OAUTH2'] # noqa: E501
|
|
121
121
|
|
|
122
122
|
return self.api_client.call_api(
|
|
123
|
-
'/market-quote/quotes', 'GET',
|
|
123
|
+
'/v2/market-quote/quotes', 'GET',
|
|
124
124
|
path_params,
|
|
125
125
|
query_params,
|
|
126
126
|
header_params,
|
|
@@ -231,7 +231,7 @@ class MarketQuoteApi(object):
|
|
|
231
231
|
auth_settings = ['OAUTH2'] # noqa: E501
|
|
232
232
|
|
|
233
233
|
return self.api_client.call_api(
|
|
234
|
-
'/market-quote/ohlc', 'GET',
|
|
234
|
+
'/v2/market-quote/ohlc', 'GET',
|
|
235
235
|
path_params,
|
|
236
236
|
query_params,
|
|
237
237
|
header_params,
|
|
@@ -334,7 +334,7 @@ class MarketQuoteApi(object):
|
|
|
334
334
|
auth_settings = ['OAUTH2'] # noqa: E501
|
|
335
335
|
|
|
336
336
|
return self.api_client.call_api(
|
|
337
|
-
'/market-quote/ltp', 'GET',
|
|
337
|
+
'/v2/market-quote/ltp', 'GET',
|
|
338
338
|
path_params,
|
|
339
339
|
query_params,
|
|
340
340
|
header_params,
|