webull-openapi-python-sdk 3.0.4__tar.gz → 3.1.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.
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/PKG-INFO +2 -1
- webull_openapi_python_sdk-3.1.0/samples/__init__.py +1 -0
- webull_openapi_python_sdk-3.1.0/samples/trade/trade_event_sse_client.py +58 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/setup.py +1 -0
- webull_openapi_python_sdk-3.1.0/webull/__init__.py +1 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/__init__.py +1 -1
- webull_openapi_python_sdk-3.1.0/webull/core/sse/default_retry_policy.py +113 -0
- webull_openapi_python_sdk-3.1.0/webull/core/sse/signature_composer.py +73 -0
- webull_openapi_python_sdk-3.1.0/webull/core/sse/sse_parser.py +69 -0
- webull_openapi_python_sdk-3.1.0/webull/core/sse/subscribe_response.py +84 -0
- webull_openapi_python_sdk-3.1.0/webull/data/__init__.py +3 -0
- webull_openapi_python_sdk-3.1.0/webull/trade/__init__.py +1 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/account_info.py +1 -1
- webull_openapi_python_sdk-3.1.0/webull/trade/trade/v3/__init__.py +0 -0
- webull_openapi_python_sdk-3.1.0/webull/trade/trade_events_sse_client.py +480 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull_openapi_python_sdk.egg-info/PKG-INFO +2 -1
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull_openapi_python_sdk.egg-info/SOURCES.txt +7 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull_openapi_python_sdk.egg-info/requires.txt +1 -0
- webull_openapi_python_sdk-3.0.4/samples/__init__.py +0 -1
- webull_openapi_python_sdk-3.0.4/webull/__init__.py +0 -1
- webull_openapi_python_sdk-3.0.4/webull/data/__init__.py +0 -3
- webull_openapi_python_sdk-3.0.4/webull/trade/__init__.py +0 -1
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/ChangeLog.txt +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/LICENSE +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/MANIFEST.in +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/NOTICE +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/README.rst +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/account/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/account/account_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/assets/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/assets/assets_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/community.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/data_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/data_client_event.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/data_streaming_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/data_streaming_client_async.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/data/data_streaming_client_event.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/order/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/order/order_option_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/order/order_stock_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/screener/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/screener/screener_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/trade_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/trade_client_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/trade_client_v3.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/trade_client_v3_event.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/trade/trade_event_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/watchlist/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/samples/watchlist/watchlist_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/setup.cfg +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/algorithm/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/algorithm/sha_hmac1.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/algorithm/sha_hmac256.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/algorithm/sha_hmac256_new.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/composer/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/composer/default_signature_composer.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/credentials.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/signers/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/signers/app_key_signer.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/signers/signer.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/auth/signers/signer_factory.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/cache/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/common/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/common/api_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/common/easy_enum.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/common/region.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/compat.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/context/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/context/request_context_holder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/data/endpoints.json +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/data/retry_config.json +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/chained_endpoint_resolver.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/default_endpoint_resolver.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/local_config_regional_endpoint_resolver.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/resolver_endpoint_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/endpoint/user_customized_endpoint_resolver.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/exception/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/exception/error_code.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/exception/error_msg.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/exception/exceptions.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/headers.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/client_initializer.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/config/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/config/bean/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/config/bean/query_config_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/config/config_operation.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/bean/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/bean/access_token.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/bean/check_token_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/bean/create_token_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/bean/refresh_token_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/token_manager.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/token_operation.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/initializer/token/token_storage.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/method_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/protocol_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/http/response.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/retry/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/retry/backoff_strategy.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/retry/retry_condition.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/retry/retry_policy.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/retry/retry_policy_context.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/core/utils → webull_openapi_python_sdk-3.1.0/webull/core/sse}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/data/common → webull_openapi_python_sdk-3.1.0/webull/core/utils}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/utils/common.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/utils/data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/utils/desensitize.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/core/utils/validation.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/data/internal → webull_openapi_python_sdk-3.1.0/webull/data/common}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/category.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/connect_ack.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/contract_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/direction.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/exchange_code.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/exercise_style.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/expiration_cycle.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/instrument_status.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/option_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/subscribe_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/common/timespan.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/data_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/data_streaming_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/data/quotes → webull_openapi_python_sdk-3.1.0/webull/data/internal}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/default_retry_policy.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/exceptions.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/quotes_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/quotes_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/quotes_payload_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/internal/quotes_topic.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/data/quotes/subscribe → webull_openapi_python_sdk-3.1.0/webull/data/quotes}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/community.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/crypto_market_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/event_market_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/fundamentals.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/futures_market_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/instrument.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/market_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/market_streaming_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/news.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/option_market_data.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/screener.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/data/request → webull_openapi_python_sdk-3.1.0/webull/data/quotes/subscribe}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/ask_bid_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/basic_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/broker_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_depth_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_depth_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_snapshot_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_snapshot_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_tick_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/event_tick_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/message_pb2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/notice_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/order_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/payload_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/quote_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/quote_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/snapshot_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/snapshot_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/tick_decoder.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/subscribe/tick_result.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/quotes/watchlist.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/common → webull_openapi_python_sdk-3.1.0/webull/data/request}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/create_comment_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/create_post_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_analyst_rating_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_analyst_target_price_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_batch_historical_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_capital_flow_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_company_profile_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_corp_action_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_crypto_historical_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_crypto_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_crypto_instruments_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_crypto_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_dividend_calendar_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_earnings_calendar_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_economic_calendar_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_eod_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_depth_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_events_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_instrument_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_instrument_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_series_categories.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_series_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_series_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_event_tick_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_financials_alert_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_financials_balance_sheet_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_financials_cashflow_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_financials_income_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_financials_indicators_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_footprint_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_forecast_eps_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_allocation_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_brief_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_dividends_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_dividends_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_files_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_holdings_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_net_value_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_performance_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_rating_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_fund_splits_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_depth_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_footprint_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_historical_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_instruments_by_code_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_product_class.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_products_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_futures_tick_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_historical_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_industry_comparison_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_insider_holdings_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_insider_transactions_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_institution_holding_changes_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_institution_holdings_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_institution_search_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_instruments_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_news_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_news_search_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_noii_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_noii_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_option_bars_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_option_contracts_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_option_contracts_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_option_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_option_tick_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_post_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_quotes_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_sec_filings_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_snapshot_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_stock_news_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/get_tick_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/list_hot_stocks_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/list_my_posts_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/list_posts_by_symbol_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_52whl_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_52whl_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_fear_and_greed_index_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_gainers_losers_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_gainers_losers_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_high_dividend_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_high_dividend_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_market_sectors_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_market_sectors_detail_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_market_sectors_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_market_sectors_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_most_active_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_most_active_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/screener/get_stock_unusual_activities_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/subscribe_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/unsubscribe_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/add_watchlist_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/create_watchlist_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/delete_watchlist_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/get_watchlist_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/get_watchlist_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/remove_watchlist_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/update_watchlist_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/data/request/watchlist/update_watchlist_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/events → webull_openapi_python_sdk-3.1.0/webull/trade/common}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/account_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/category.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/combo_ticker_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/combo_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/currency.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/forbid_reason.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/instrument_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/markets.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/order_entrust_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/order_side.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/order_status.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/order_tif.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/order_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/position_intent.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/trade_policy.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/trading_date_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/trailing_type.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/common/transfer_activities_param.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/request → webull_openapi_python_sdk-3.1.0/webull/trade/events}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/events/default_retry_policy.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/events/events_pb2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/events/events_pb2_grpc.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/events/signature_composer.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/events/types.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/request/v2 → webull_openapi_python_sdk-3.1.0/webull/trade/request}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/cancel_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_account_balance_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_account_positions_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_account_profile_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_activities_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_activities_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_app_subscriptions.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_open_orders_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_order_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_today_orders_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_trade_calendar_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_trade_instrument_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_trade_security_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/get_tradeable_instruments_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/palce_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/place_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/place_order_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/replace_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/replace_order_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/request/v3 → webull_openapi_python_sdk-3.1.0/webull/trade/request/v2}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/cancel_option_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/cancel_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_balance_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_list.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_list_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_position_details_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_position_details_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_account_positions_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_order_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_order_executions_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_order_executions_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_order_history_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/get_order_open_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/palce_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/place_option_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/place_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/preview_option_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/preview_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/replace_option_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v2/replace_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/trade → webull_openapi_python_sdk-3.1.0/webull/trade/request/v3}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/batch_place_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/cancel_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_order_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_order_history_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_order_history_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_order_open_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_order_open_request_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_transfer_activities_detail_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/get_transfer_activities_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/place_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/preview_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/request/v3/replace_order_request.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/trade/v2 → webull_openapi_python_sdk-3.1.0/webull/trade/trade}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/activity.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/order_operation.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/trade_calendar.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/trade_instrument.py +0 -0
- {webull_openapi_python_sdk-3.0.4/webull/trade/trade/v3 → webull_openapi_python_sdk-3.1.0/webull/trade/trade/v2}/__init__.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/v2/account_info_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/v2/order_operation_v2.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade/v3/order_operation_v3.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull/trade/trade_events_client.py +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull_openapi_python_sdk.egg-info/dependency_links.txt +0 -0
- {webull_openapi_python_sdk-3.0.4 → webull_openapi_python_sdk-3.1.0}/webull_openapi_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webull-openapi-python-sdk
|
|
3
|
-
Version: 3.0
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Webull Python SDK.
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: Webull
|
|
@@ -16,6 +16,7 @@ Requires-Dist: cachetools<6,>=5.2.0
|
|
|
16
16
|
Requires-Dist: paho-mqtt<2,>=1.6.1
|
|
17
17
|
Requires-Dist: urllib3>=2.0
|
|
18
18
|
Requires-Dist: requests>=2.31.0
|
|
19
|
+
Requires-Dist: httpx[http2]<0.29,>=0.28.1
|
|
19
20
|
Requires-Dist: six>=1.16.0
|
|
20
21
|
Requires-Dist: cryptography<42,>=3.4; python_version < "3.12"
|
|
21
22
|
Requires-Dist: cryptography<43,>=41.0; python_version >= "3.12" and python_version < "3.14"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.1.0'
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Copyright 2022 Webull
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
import logging
|
|
16
|
+
|
|
17
|
+
from webull.trade.events.types import ORDER_STATUS_CHANGED, EVENT_TYPE_ORDER, EVENT_TYPE_POSITION, \
|
|
18
|
+
POSITION_STATUS_CHANGED, EVENT_TYPE_OPTION, OPTION_STATUS_CHANGED
|
|
19
|
+
from webull.trade.trade_events_sse_client import TradeEventsSseClient
|
|
20
|
+
|
|
21
|
+
your_app_key = "<your_app_key>"
|
|
22
|
+
your_app_secret = "<your_app_secret>"
|
|
23
|
+
account_id = "<your_account_id>"
|
|
24
|
+
region_id = "<region_id>"
|
|
25
|
+
|
|
26
|
+
optional_api_endpoint = "<event_api_endpoint>"
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def _on_log(level, log_content):
|
|
30
|
+
print(logging.getLevelName(level), log_content)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def my_on_events_message(event_type, subscribe_type, payload, raw_message):
|
|
34
|
+
if EVENT_TYPE_ORDER == event_type and ORDER_STATUS_CHANGED == subscribe_type:
|
|
35
|
+
print('----request_id:%s----' % payload['request_id'])
|
|
36
|
+
print(payload)
|
|
37
|
+
if EVENT_TYPE_POSITION == event_type and POSITION_STATUS_CHANGED == subscribe_type:
|
|
38
|
+
print('event payload:%s' % payload)
|
|
39
|
+
if EVENT_TYPE_OPTION == event_type and OPTION_STATUS_CHANGED == subscribe_type:
|
|
40
|
+
print('option payload:%s' % payload)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
if __name__ == '__main__':
|
|
44
|
+
# Create SSE EventsClient instance
|
|
45
|
+
trade_events_sse_client = TradeEventsSseClient(your_app_key, your_app_secret, region_id)
|
|
46
|
+
# [Important] For non production environment, you need to set the domain name of the subscription service through events client. For example, the domain name of the UAT environment is set here
|
|
47
|
+
# [Important] The SSE endpoint shares the public port and TLS settings with the gRPC channel, the defaults (443, TLS) apply
|
|
48
|
+
# trade_events_sse_client = TradeEventsSseClient(your_app_key, your_app_secret, region_id, host=optional_api_endpoint)
|
|
49
|
+
trade_events_sse_client.on_log = _on_log
|
|
50
|
+
|
|
51
|
+
# Set the callback function when the event data is received.
|
|
52
|
+
# The data of order status change is printed here
|
|
53
|
+
|
|
54
|
+
trade_events_sse_client.on_events_message = my_on_events_message
|
|
55
|
+
# Set the account ID to be subscribed and initiate the subscription. This method is synchronous
|
|
56
|
+
# Note: one app key can hold only one active subscription across the gRPC and SSE channels,
|
|
57
|
+
# close the gRPC subscription first, otherwise the request is rejected with HTTP 429
|
|
58
|
+
trade_events_sse_client.do_subscribe([account_id])
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.1.0'
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# Copyright 2022 Webull
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# coding=utf-8
|
|
16
|
+
import httpx
|
|
17
|
+
|
|
18
|
+
from webull.core.retry.backoff_strategy import (
|
|
19
|
+
BackoffStrategy, FixedDelayStrategy, JitteredExponentialBackoffStrategy)
|
|
20
|
+
from webull.core.retry.retry_condition import (
|
|
21
|
+
MaxRetryTimesCondition, MergeRetryCondition, RetryCondition)
|
|
22
|
+
from webull.core.retry.retry_policy import RetryPolicy
|
|
23
|
+
from webull.core.retry.retry_policy_context import RetryPolicyContext
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class SseSubscribeRetryPolicyContext(RetryPolicyContext):
|
|
27
|
+
"""Retry context of the SSE subscription.
|
|
28
|
+
|
|
29
|
+
``http_status_code`` is None when the failure happened on an already
|
|
30
|
+
established stream (connection reset, read timeout, server closed the
|
|
31
|
+
stream) or before any HTTP response was received.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, exception, retries_attempted, http_status_code):
|
|
35
|
+
super().__init__(None, exception, retries_attempted, http_status_code)
|
|
36
|
+
|
|
37
|
+
def __str__(self):
|
|
38
|
+
return "exception:%s, retries:%s, http_status_code:%s" % (
|
|
39
|
+
self.exception, self.retries_attempted, self.http_status_code)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class RetryOnSseHttpStatusCondition(RetryCondition):
|
|
43
|
+
# 429 is the session mutex rejection, it must be retried with backoff.
|
|
44
|
+
# 5xx are transient server side failures.
|
|
45
|
+
DEFAULT_RETRYABLE_HTTP_STATUS_LIST = [429, 500, 502, 503, 504]
|
|
46
|
+
THROTTLING_HTTP_STATUS_LIST = [429]
|
|
47
|
+
|
|
48
|
+
def __init__(self, retryable_http_status_list=None):
|
|
49
|
+
if retryable_http_status_list:
|
|
50
|
+
self.retryable_http_status_list = retryable_http_status_list
|
|
51
|
+
else:
|
|
52
|
+
self.retryable_http_status_list = self.DEFAULT_RETRYABLE_HTTP_STATUS_LIST
|
|
53
|
+
|
|
54
|
+
def should_retry(self, retry_policy_context):
|
|
55
|
+
http_status_code = retry_policy_context.http_status_code
|
|
56
|
+
if http_status_code is None:
|
|
57
|
+
exception = retry_policy_context.exception
|
|
58
|
+
# A stream closed by the server (no exception) or a transport level
|
|
59
|
+
# failure: the SSE channel has no resume support so a brand new
|
|
60
|
+
# subscription is the only way to keep receiving events.
|
|
61
|
+
if exception is None or isinstance(exception, httpx.TransportError):
|
|
62
|
+
return RetryCondition.RETRY
|
|
63
|
+
# Any other exception (e.g. raised by a user callback or a payload
|
|
64
|
+
# that cannot be decoded) would happen again after reconnecting,
|
|
65
|
+
# surface it to the caller instead, same as the gRPC channel.
|
|
66
|
+
return RetryCondition.NO_RETRY
|
|
67
|
+
if http_status_code in self.retryable_http_status_list:
|
|
68
|
+
if http_status_code in self.THROTTLING_HTTP_STATUS_LIST:
|
|
69
|
+
return RetryCondition.RETRY | RetryCondition.SHOULD_RETRY_WITH_THROTTLING_BACKOFF
|
|
70
|
+
return RetryCondition.RETRY
|
|
71
|
+
# 400/401/403/404/405 are caused by the request itself, retrying with
|
|
72
|
+
# the same parameters would fail again.
|
|
73
|
+
return RetryCondition.NO_RETRY
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
class DefaultSseSubscribeRetryCondition(RetryCondition):
|
|
77
|
+
def __init__(self, max_retry_times=-1):
|
|
78
|
+
RetryCondition.__init__(self)
|
|
79
|
+
if max_retry_times < 0:
|
|
80
|
+
_conditions = []
|
|
81
|
+
else:
|
|
82
|
+
_conditions = [MaxRetryTimesCondition(max_retry_times)]
|
|
83
|
+
_conditions.append(RetryOnSseHttpStatusCondition())
|
|
84
|
+
self._condition = MergeRetryCondition(_conditions)
|
|
85
|
+
|
|
86
|
+
def should_retry(self, retry_policy_context):
|
|
87
|
+
return self._condition.should_retry(retry_policy_context)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class SseSubscribeBackoffStrategy(BackoffStrategy):
|
|
91
|
+
"""Fixed delay for regular reconnects, jittered backoff for 429 rejections."""
|
|
92
|
+
|
|
93
|
+
DEFAULT_THROTTLED_BASE_DELAY = 5000
|
|
94
|
+
DEFAULT_THROTTLED_MAX_DELAY = 60000
|
|
95
|
+
|
|
96
|
+
def __init__(self, fixed_delay=5000, throttled_base_delay=None, throttled_max_delay=None):
|
|
97
|
+
self._fixed_backoff_strategy = FixedDelayStrategy(fixed_delay)
|
|
98
|
+
self._throttled_backoff_strategy = JitteredExponentialBackoffStrategy(
|
|
99
|
+
throttled_base_delay or self.DEFAULT_THROTTLED_BASE_DELAY,
|
|
100
|
+
throttled_max_delay or self.DEFAULT_THROTTLED_MAX_DELAY)
|
|
101
|
+
|
|
102
|
+
def compute_delay_before_next_retry(self, retry_policy_context):
|
|
103
|
+
if retry_policy_context.retryable & RetryCondition.SHOULD_RETRY_WITH_THROTTLING_BACKOFF:
|
|
104
|
+
return self._throttled_backoff_strategy.compute_delay_before_next_retry(
|
|
105
|
+
retry_policy_context)
|
|
106
|
+
return self._fixed_backoff_strategy.compute_delay_before_next_retry(
|
|
107
|
+
retry_policy_context)
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class DefaultSseSubscribeRetryPolicy(RetryPolicy):
|
|
111
|
+
def __init__(self, max_retry_times=-1, fixed_delay=5000):
|
|
112
|
+
RetryPolicy.__init__(self, DefaultSseSubscribeRetryCondition(max_retry_times),
|
|
113
|
+
SseSubscribeBackoffStrategy(fixed_delay))
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Copyright 2022 Webull
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# coding=utf-8
|
|
16
|
+
import logging
|
|
17
|
+
|
|
18
|
+
from webull.core.auth.algorithm import sha_hmac256_new
|
|
19
|
+
from webull.core.auth.composer import default_signature_composer
|
|
20
|
+
import webull.core.headers as hd
|
|
21
|
+
import webull.core.utils.common as core_common
|
|
22
|
+
|
|
23
|
+
logger = logging.getLogger(__name__)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _build_sign_headers(app_key_id, signer_spec):
|
|
27
|
+
return {
|
|
28
|
+
hd.APP_KEY: app_key_id,
|
|
29
|
+
hd.SIGN_ALGORITHM: signer_spec.get_signer_name(),
|
|
30
|
+
hd.SIGN_VERSION: signer_spec.get_signer_version(),
|
|
31
|
+
hd.NONCE: core_common.get_uuid(),
|
|
32
|
+
hd.TIMESTAMP: core_common.get_iso_8601_date()
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
def _get_body_string(body_bytes, signer_spec):
|
|
37
|
+
"""Hash the exact bytes that will be sent as the HTTP request body.
|
|
38
|
+
|
|
39
|
+
The SSE channel signs the raw JSON body bytes, unlike the gRPC channel
|
|
40
|
+
which signs the protobuf serialized bytes of SubscribeRequest.
|
|
41
|
+
"""
|
|
42
|
+
if body_bytes:
|
|
43
|
+
if signer_spec == sha_hmac256_new:
|
|
44
|
+
return core_common.sha256_hex(body_bytes)
|
|
45
|
+
return core_common.md5_hex(body_bytes)
|
|
46
|
+
return None
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def calc_signature(app_key_id, app_key_secret, body_bytes, signer_spec):
|
|
50
|
+
"""Sign an SSE subscribe request.
|
|
51
|
+
|
|
52
|
+
Args:
|
|
53
|
+
app_key_id: application app key.
|
|
54
|
+
app_key_secret: application app secret.
|
|
55
|
+
body_bytes: raw bytes of the JSON request body, exactly as sent.
|
|
56
|
+
signer_spec: signing algorithm module, e.g. sha_hmac256_new or sha_hmac1.
|
|
57
|
+
|
|
58
|
+
Returns:
|
|
59
|
+
tuple of (signature, headers dict) where headers already contains the
|
|
60
|
+
five signing headers plus x-signature.
|
|
61
|
+
"""
|
|
62
|
+
headers = _build_sign_headers(app_key_id, signer_spec)
|
|
63
|
+
sign_params = default_signature_composer._lower_key_dict(headers)
|
|
64
|
+
logger.debug("sign_params:%s", sign_params)
|
|
65
|
+
body_string = _get_body_string(body_bytes, signer_spec)
|
|
66
|
+
logger.debug("body_string:%s", body_string)
|
|
67
|
+
string_to_sign = default_signature_composer._build_sign_string(
|
|
68
|
+
sign_params, None, body_string)
|
|
69
|
+
logger.debug("string_to_sign:%s", string_to_sign)
|
|
70
|
+
signature = default_signature_composer._gen_signature(
|
|
71
|
+
string_to_sign, app_key_secret, signer_spec)
|
|
72
|
+
headers[hd.SIGNATURE] = signature
|
|
73
|
+
return signature, headers
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Copyright 2022 Webull
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# coding=utf-8
|
|
16
|
+
|
|
17
|
+
# Default event name used when the server omits the "event" field.
|
|
18
|
+
DEFAULT_EVENT_NAME = "message"
|
|
19
|
+
|
|
20
|
+
_FIELD_EVENT = "event"
|
|
21
|
+
_FIELD_DATA = "data"
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _decode_line(line):
|
|
25
|
+
if line is None:
|
|
26
|
+
return None
|
|
27
|
+
if isinstance(line, bytes):
|
|
28
|
+
return line.decode("utf-8", "replace")
|
|
29
|
+
return line
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def iter_sse_frames(lines):
|
|
33
|
+
"""Turn a raw SSE line stream into (event_name, data) tuples.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
lines: iterator over the response lines, either bytes or str.
|
|
37
|
+
Typically ``httpx.Response.iter_lines()``.
|
|
38
|
+
|
|
39
|
+
Yields:
|
|
40
|
+
tuple of (event name, data payload). Multiple ``data:`` lines of the
|
|
41
|
+
same frame are joined with a newline, as required by the SSE spec.
|
|
42
|
+
"""
|
|
43
|
+
event_name = None
|
|
44
|
+
data_lines = []
|
|
45
|
+
for raw_line in lines:
|
|
46
|
+
line = _decode_line(raw_line)
|
|
47
|
+
if line is None:
|
|
48
|
+
continue
|
|
49
|
+
line = line.rstrip("\r")
|
|
50
|
+
if not line:
|
|
51
|
+
# Blank line terminates the current frame.
|
|
52
|
+
if event_name is not None or data_lines:
|
|
53
|
+
yield event_name or DEFAULT_EVENT_NAME, "\n".join(data_lines)
|
|
54
|
+
event_name = None
|
|
55
|
+
data_lines = []
|
|
56
|
+
continue
|
|
57
|
+
if line.startswith(":"):
|
|
58
|
+
# Comment line, used by some servers to keep the connection alive.
|
|
59
|
+
continue
|
|
60
|
+
field, _, value = line.partition(":")
|
|
61
|
+
if value.startswith(" "):
|
|
62
|
+
value = value[1:]
|
|
63
|
+
if field == _FIELD_EVENT:
|
|
64
|
+
event_name = value
|
|
65
|
+
elif field == _FIELD_DATA:
|
|
66
|
+
data_lines.append(value)
|
|
67
|
+
# Other fields (id, retry) are not used by this channel.
|
|
68
|
+
if event_name is not None or data_lines:
|
|
69
|
+
yield event_name or DEFAULT_EVENT_NAME, "\n".join(data_lines)
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Copyright 2022 Webull
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
# coding=utf-8
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
# Control event type values, kept identical to the gRPC EventType enum.
|
|
19
|
+
# Declared locally so that the SSE channel does not depend on protobuf.
|
|
20
|
+
SUBSCRIBE_SUCCESS = 0
|
|
21
|
+
PING = 1
|
|
22
|
+
AUTH_ERROR = 2
|
|
23
|
+
NUM_OF_CONN_EXCEED = 3
|
|
24
|
+
SUBSCRIBE_EXPIRED = 4
|
|
25
|
+
|
|
26
|
+
# SSE frame names pushed by the server.
|
|
27
|
+
EVENT_SUBSCRIBE_SUCCESS = "subscribeSuccess"
|
|
28
|
+
EVENT_PING = "ping"
|
|
29
|
+
EVENT_BUSINESS = "event"
|
|
30
|
+
EVENT_SUBSCRIBE_EXPIRED = "subscribeExpired"
|
|
31
|
+
EVENT_AUTH_ERROR = "authError"
|
|
32
|
+
EVENT_NUM_OF_CONN_EXCEED = "numOfConnExceed"
|
|
33
|
+
|
|
34
|
+
# Control frames are identified by the SSE frame name, not by the eventType
|
|
35
|
+
# value in the data (zero value fields such as eventType 0 are omitted).
|
|
36
|
+
EVENT_NAME_TO_EVENT_TYPE = {
|
|
37
|
+
EVENT_SUBSCRIBE_SUCCESS: SUBSCRIBE_SUCCESS,
|
|
38
|
+
EVENT_PING: PING,
|
|
39
|
+
EVENT_AUTH_ERROR: AUTH_ERROR,
|
|
40
|
+
EVENT_NUM_OF_CONN_EXCEED: NUM_OF_CONN_EXCEED,
|
|
41
|
+
EVENT_SUBSCRIBE_EXPIRED: SUBSCRIBE_EXPIRED,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class SseSubscribeResponse:
|
|
46
|
+
"""Decoded SSE frame exposing the same fields as the gRPC SubscribeResponse.
|
|
47
|
+
|
|
48
|
+
Field names intentionally match the protobuf message (``eventType``,
|
|
49
|
+
``subscribeType``, ``contentType``, ``payload``, ``requestId``,
|
|
50
|
+
``timestamp``) so that callbacks written against the gRPC channel keep
|
|
51
|
+
working without changes.
|
|
52
|
+
"""
|
|
53
|
+
|
|
54
|
+
def __init__(self, event, data):
|
|
55
|
+
"""
|
|
56
|
+
Args:
|
|
57
|
+
event: SSE frame name, e.g. ``subscribeSuccess``, ``ping``, ``event``.
|
|
58
|
+
data: raw ``data:`` payload of the frame, a JSON string.
|
|
59
|
+
|
|
60
|
+
Raises:
|
|
61
|
+
ValueError: the frame data is not a JSON object.
|
|
62
|
+
"""
|
|
63
|
+
self.event = event
|
|
64
|
+
self.raw_data = data
|
|
65
|
+
fields = json.loads(data) if data else {}
|
|
66
|
+
if not isinstance(fields, dict):
|
|
67
|
+
raise ValueError("unexpected sse data, not a json object: %s" % data)
|
|
68
|
+
if event in EVENT_NAME_TO_EVENT_TYPE:
|
|
69
|
+
self.eventType = EVENT_NAME_TO_EVENT_TYPE[event]
|
|
70
|
+
else:
|
|
71
|
+
self.eventType = fields.get("eventType")
|
|
72
|
+
self.subscribeType = fields.get("subscribeType", 0)
|
|
73
|
+
self.contentType = fields.get("contentType", "")
|
|
74
|
+
self.payload = fields.get("payload", "")
|
|
75
|
+
self.requestId = fields.get("requestId", "")
|
|
76
|
+
self.timestamp = fields.get("timestamp", 0)
|
|
77
|
+
|
|
78
|
+
def __str__(self):
|
|
79
|
+
return ("event:%s, eventType:%s, subscribeType:%s, contentType:%s, "
|
|
80
|
+
"requestId:%s, timestamp:%s, payload:%s") % (
|
|
81
|
+
self.event, self.eventType, self.subscribeType, self.contentType,
|
|
82
|
+
self.requestId, self.timestamp, self.payload)
|
|
83
|
+
|
|
84
|
+
__repr__ = __str__
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '3.1.0'
|
|
@@ -44,7 +44,7 @@ class Account:
|
|
|
44
44
|
|
|
45
45
|
:param account_id: Account ID
|
|
46
46
|
:param total_asset_currency: The currency in which the total assets are denominated: the value refers to Currency
|
|
47
|
-
in the dictionary value.
|
|
47
|
+
in the dictionary value.
|
|
48
48
|
"""
|
|
49
49
|
account_balance_request = AccountBalanceRequest()
|
|
50
50
|
account_balance_request.set_account_id(account_id)
|
|
File without changes
|