webull-openapi-python-sdk 3.1.0__py3-none-any.whl → 3.1.2__py3-none-any.whl
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.
- samples/__init__.py +1 -1
- samples/trade/trade_client_v3.py +5 -0
- webull/__init__.py +1 -1
- webull/core/__init__.py +1 -1
- webull/core/auth/composer/default_signature_composer.py +6 -5
- webull/core/client.py +11 -4
- webull/core/http/response.py +3 -2
- webull/core/sse/signature_composer.py +3 -2
- webull/core/utils/desensitize.py +84 -10
- webull/data/__init__.py +1 -1
- webull/trade/__init__.py +1 -1
- webull/trade/common/currency.py +1 -0
- webull/trade/events/signature_composer.py +4 -3
- webull/trade/trade_events_client.py +3 -2
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/METADATA +1 -1
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/RECORD +20 -20
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/WHEEL +0 -0
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/licenses/LICENSE +0 -0
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/licenses/NOTICE +0 -0
- {webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/top_level.txt +0 -0
samples/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.1.
|
|
1
|
+
__version__ = '3.1.2'
|
samples/trade/trade_client_v3.py
CHANGED
|
@@ -94,6 +94,11 @@ if __name__ == '__main__':
|
|
|
94
94
|
# Currently, only Webull JP is supported.
|
|
95
95
|
# "account_tax_type":"GENERAL",
|
|
96
96
|
# "margin_type": "ONE_DAY"
|
|
97
|
+
# trade_currency: Currently, only Webull JP is supported.
|
|
98
|
+
# Specifies the settlement currency of the order. Only applicable to Japan stock (JP) orders,
|
|
99
|
+
# and required for JP market orders in both preview_order and place_order.
|
|
100
|
+
# Valid values: JPY, USD.
|
|
101
|
+
# "trade_currency": "JPY"
|
|
97
102
|
}
|
|
98
103
|
]
|
|
99
104
|
|
webull/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.1.
|
|
1
|
+
__version__ = '3.1.2'
|
webull/core/__init__.py
CHANGED
|
@@ -42,6 +42,7 @@ from webull.core.auth.algorithm import sha_hmac256_new
|
|
|
42
42
|
from webull.core.exception import error_code
|
|
43
43
|
from webull.core.exception.exceptions import ClientException
|
|
44
44
|
from webull.core.utils import common
|
|
45
|
+
from webull.core.utils.desensitize import desensitize_secret, mask_sensitive_headers, mask_sensitive_text, mask_value_in_text
|
|
45
46
|
import webull.core.headers as hd
|
|
46
47
|
from six import iteritems
|
|
47
48
|
from six.moves.urllib.parse import quote
|
|
@@ -109,9 +110,9 @@ def _lower_key_dict(od):
|
|
|
109
110
|
|
|
110
111
|
def calc_signature(headers, host, uri, queries, body_params, app_key_id, app_key_secret, signer_spec):
|
|
111
112
|
sign_headers,signer_spec = _refresh_sign_headers(host, headers, app_key_id, signer_spec)
|
|
112
|
-
logger.debug("sign_headers:%s", sign_headers)
|
|
113
|
+
logger.debug("sign_headers:%s", mask_sensitive_headers(sign_headers))
|
|
113
114
|
sign_params = _lower_key_dict(sign_headers)
|
|
114
|
-
logger.debug("sign_queries:%s", queries)
|
|
115
|
+
logger.debug("sign_queries:%s", mask_sensitive_text(queries))
|
|
115
116
|
if queries :
|
|
116
117
|
for (k, v) in iteritems(queries):
|
|
117
118
|
cv = sign_params.get(k)
|
|
@@ -120,12 +121,12 @@ def calc_signature(headers, host, uri, queries, body_params, app_key_id, app_key
|
|
|
120
121
|
else:
|
|
121
122
|
cv = str(v)
|
|
122
123
|
sign_params[k] = cv
|
|
123
|
-
logger.debug("body:%s", body_params)
|
|
124
|
+
logger.debug("body:%s", mask_sensitive_text(body_params))
|
|
124
125
|
body_string = _get_body_string(body_params, signer_spec)
|
|
125
126
|
logger.debug("body_string:%s" % body_string)
|
|
126
127
|
string_to_sign = _build_sign_string(sign_params, uri, body_string)
|
|
127
|
-
logger.debug("string_to_sign:%s" % string_to_sign)
|
|
128
|
+
logger.debug("string_to_sign:%s" % mask_value_in_text(string_to_sign, app_key_id))
|
|
128
129
|
signature = _gen_signature(string_to_sign, app_key_secret, signer_spec)
|
|
129
130
|
headers[hd.SIGNATURE] = signature
|
|
130
|
-
logger.debug("signature:%s", signature)
|
|
131
|
+
logger.debug("signature:%s", desensitize_secret(signature))
|
|
131
132
|
return signature
|
webull/core/client.py
CHANGED
|
@@ -62,6 +62,7 @@ from webull.core.request import BaseRequest
|
|
|
62
62
|
from webull.core.retry.retry_condition import RetryCondition
|
|
63
63
|
from webull.core.retry.retry_policy_context import RetryPolicyContext
|
|
64
64
|
from webull.core.utils import common, validation
|
|
65
|
+
from webull.core.utils.desensitize import mask_sensitive_text
|
|
65
66
|
from requests import codes
|
|
66
67
|
from requests.structures import CaseInsensitiveDict
|
|
67
68
|
from requests.structures import OrderedDict
|
|
@@ -327,7 +328,8 @@ class ApiClient:
|
|
|
327
328
|
except IOError as e:
|
|
328
329
|
exception = ClientException(error_code.SDK_HTTP_ERROR, compat.ensure_string('%s' % e))
|
|
329
330
|
msg = "HttpError occurred. Host:%s SDK-Version:%s Request:%s ClientException:%s" % (
|
|
330
|
-
endpoint, webull.core.__version__,
|
|
331
|
+
endpoint, webull.core.__version__,
|
|
332
|
+
mask_sensitive_text(json.dumps(vars(request), default=str, indent=2)), exception)
|
|
331
333
|
logger.error(compat.ensure_string(msg))
|
|
332
334
|
return None, None, None, exception, None
|
|
333
335
|
exception = self._get_server_exception(request, status, headers, body, endpoint, request.string_to_sign)
|
|
@@ -353,12 +355,15 @@ class ApiClient:
|
|
|
353
355
|
body_obj = json.loads(response_body.decode('utf-8'))
|
|
354
356
|
except (ValueError, TypeError, AttributeError):
|
|
355
357
|
logger.warning('Failed to parse response as json format, Request:%s response:%s, request_id:%s',
|
|
356
|
-
json.dumps(vars(request), default=str, indent=2),
|
|
358
|
+
mask_sensitive_text(json.dumps(vars(request), default=str, indent=2)),
|
|
359
|
+
mask_sensitive_text(response_body), request_id)
|
|
357
360
|
if http_status < codes.OK or http_status >= codes.MULTIPLE_CHOICES:
|
|
358
361
|
server_error_code, server_error_msg = self._parse_error_info_from_response_body(body_obj)
|
|
359
362
|
exception = ServerException(server_error_code, server_error_msg, http_status, request_id)
|
|
360
363
|
msg = "ServerException occurred. Host:%s SDK-Version:%s Request:%s Response:%s ServerException:%s" % (
|
|
361
|
-
endpoint, webull.core.__version__,
|
|
364
|
+
endpoint, webull.core.__version__,
|
|
365
|
+
mask_sensitive_text(json.dumps(vars(request), default=str, indent=2)),
|
|
366
|
+
mask_sensitive_text(body_obj), exception)
|
|
362
367
|
logger.error(compat.ensure_string(msg))
|
|
363
368
|
return exception
|
|
364
369
|
|
|
@@ -426,5 +431,7 @@ class ApiClient:
|
|
|
426
431
|
if exception:
|
|
427
432
|
logger.error("get_response exception. %s", json.dumps(vars(exception), default=str, indent=2))
|
|
428
433
|
raise exception
|
|
429
|
-
logger.
|
|
434
|
+
if logger.isEnabledFor(logging.DEBUG):
|
|
435
|
+
logger.debug('Response received, status:%s, headers:%s, body:%s' % (
|
|
436
|
+
status, mask_sensitive_text(dict(headers) if headers else headers), mask_sensitive_text(body)))
|
|
430
437
|
return response
|
webull/core/http/response.py
CHANGED
|
@@ -45,6 +45,7 @@ from requests import Request, Session
|
|
|
45
45
|
from webull.core.http.request import Request as HttpRequest
|
|
46
46
|
from webull.core.http import protocol_type as PT
|
|
47
47
|
from requests import status_codes
|
|
48
|
+
from webull.core.utils.desensitize import mask_sensitive_headers, mask_sensitive_text
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
logger = logging.getLogger(__name__)
|
|
@@ -100,7 +101,7 @@ class Response(HttpRequest):
|
|
|
100
101
|
@staticmethod
|
|
101
102
|
def prepare_http_debug(request, symbol):
|
|
102
103
|
base = ''
|
|
103
|
-
for key, value in request.headers.items():
|
|
104
|
+
for key, value in mask_sensitive_headers(request.headers).items():
|
|
104
105
|
base += '\n%s %s : %s' % (symbol, key, value)
|
|
105
106
|
return base
|
|
106
107
|
|
|
@@ -115,7 +116,7 @@ class Response(HttpRequest):
|
|
|
115
116
|
response.status_code, status_codes._codes.get(response.status_code)[0].upper())
|
|
116
117
|
logger.debug(response_base + self.prepare_http_debug(response, '<'))
|
|
117
118
|
|
|
118
|
-
logger.debug("\n<\n" + response.text)
|
|
119
|
+
logger.debug("\n<\n" + mask_sensitive_text(response.text))
|
|
119
120
|
|
|
120
121
|
def get_verify_value(self):
|
|
121
122
|
if self.__verify is not None:
|
|
@@ -19,6 +19,7 @@ from webull.core.auth.algorithm import sha_hmac256_new
|
|
|
19
19
|
from webull.core.auth.composer import default_signature_composer
|
|
20
20
|
import webull.core.headers as hd
|
|
21
21
|
import webull.core.utils.common as core_common
|
|
22
|
+
from webull.core.utils.desensitize import mask_sensitive_headers, mask_value_in_text
|
|
22
23
|
|
|
23
24
|
logger = logging.getLogger(__name__)
|
|
24
25
|
|
|
@@ -61,12 +62,12 @@ def calc_signature(app_key_id, app_key_secret, body_bytes, signer_spec):
|
|
|
61
62
|
"""
|
|
62
63
|
headers = _build_sign_headers(app_key_id, signer_spec)
|
|
63
64
|
sign_params = default_signature_composer._lower_key_dict(headers)
|
|
64
|
-
logger.debug("sign_params:%s", sign_params)
|
|
65
|
+
logger.debug("sign_params:%s", mask_sensitive_headers(sign_params))
|
|
65
66
|
body_string = _get_body_string(body_bytes, signer_spec)
|
|
66
67
|
logger.debug("body_string:%s", body_string)
|
|
67
68
|
string_to_sign = default_signature_composer._build_sign_string(
|
|
68
69
|
sign_params, None, body_string)
|
|
69
|
-
logger.debug("string_to_sign:%s", string_to_sign)
|
|
70
|
+
logger.debug("string_to_sign:%s", mask_value_in_text(string_to_sign, app_key_id))
|
|
70
71
|
signature = default_signature_composer._gen_signature(
|
|
71
72
|
string_to_sign, app_key_secret, signer_spec)
|
|
72
73
|
headers[hd.SIGNATURE] = signature
|
webull/core/utils/desensitize.py
CHANGED
|
@@ -15,17 +15,91 @@
|
|
|
15
15
|
# coding=utf-8
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
if not token:
|
|
20
|
-
return token
|
|
18
|
+
import re
|
|
21
19
|
|
|
22
|
-
|
|
20
|
+
_MASK = "******"
|
|
21
|
+
_KEEP_LENGTH = 2
|
|
22
|
+
_MASK_LENGTH = 6
|
|
23
|
+
_MIN_MASKED_LENGTH = 12
|
|
23
24
|
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
_SENSITIVE_KEYS = (
|
|
26
|
+
"token", "access_token", "accesstoken", "x-access-token", "refresh_token", "refreshtoken",
|
|
27
|
+
"app_key", "appkey", "x-app-key", "app_secret", "appsecret", "secret_key", "secretkey",
|
|
28
|
+
"secret", "signature", "x-signature", "authorization",
|
|
29
|
+
)
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
rear_part = token[-keep_length:] if keep_length > 0 else ''
|
|
29
|
-
mask = '*' * mask_length
|
|
31
|
+
_KEYS_REGEX = "|".join(re.escape(k) for k in sorted(_SENSITIVE_KEYS, key=len, reverse=True))
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
# Quoted form, including JSON nested inside a JSON string (escaped quotes):
|
|
34
|
+
# "token": "abc" 'x-signature': 'abc' \\"token\\":\\"abc\\"
|
|
35
|
+
_QUOTED_PATTERN = re.compile(
|
|
36
|
+
r"""(?P<key>(?P<kq>\\{0,2}["'])(?:%s)(?P=kq)\s*[:=]\s*)(?P<vq>\\{0,2}["'])(?P<value>.*?)(?P=vq)""" % _KEYS_REGEX,
|
|
37
|
+
re.IGNORECASE | re.DOTALL)
|
|
38
|
+
|
|
39
|
+
# Unquoted form, e.g. plain text bodies or query strings: token=abc, x-app-key: abc
|
|
40
|
+
_UNQUOTED_PATTERN = re.compile(
|
|
41
|
+
r"""(?<![\w-])(?P<key>(?:%s)\s*[:=]\s*)(?P<value>(?:(?:bearer|basic)\s+)?[^\s&,;"'\\}\]\)]+)""" % _KEYS_REGEX,
|
|
42
|
+
re.IGNORECASE)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def desensitize_secret(value, keep_length=_KEEP_LENGTH, mask_length=_MASK_LENGTH):
|
|
46
|
+
"""Mask a credential: first 2 + ****** + last 2, e.g. ab******hj.
|
|
47
|
+
|
|
48
|
+
Applies to tokens, app keys, app secrets and signatures.
|
|
49
|
+
Values shorter than 12 characters are fully masked.
|
|
50
|
+
"""
|
|
51
|
+
if not value:
|
|
52
|
+
return value
|
|
53
|
+
value = str(value)
|
|
54
|
+
if len(value) < _MIN_MASKED_LENGTH:
|
|
55
|
+
return _MASK
|
|
56
|
+
return value[:keep_length] + '*' * mask_length + value[-keep_length:]
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def desensitize_token(token, keep_length=_KEEP_LENGTH, mask_length=_MASK_LENGTH):
|
|
60
|
+
"""Mask a token. Same rule as desensitize_secret."""
|
|
61
|
+
return desensitize_secret(token, keep_length, mask_length)
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def mask_sensitive_text(text):
|
|
65
|
+
"""Mask sensitive key/value pairs inside a JSON string or the repr of a dict.
|
|
66
|
+
|
|
67
|
+
Handles both quote styles, e.g. {"token": "abc..."} and {'x-signature': 'abc...'}.
|
|
68
|
+
Bytes are decoded as utf-8 first. Returns the input unchanged when it is empty.
|
|
69
|
+
"""
|
|
70
|
+
if not text:
|
|
71
|
+
return text
|
|
72
|
+
if isinstance(text, (bytes, bytearray)):
|
|
73
|
+
text = bytes(text).decode("utf-8", errors="replace")
|
|
74
|
+
elif not isinstance(text, str):
|
|
75
|
+
text = str(text)
|
|
76
|
+
|
|
77
|
+
def _replace_quoted(match):
|
|
78
|
+
key = match.group("key")
|
|
79
|
+
return "%s%s%s%s" % (key, match.group("vq"), desensitize_secret(match.group("value")), match.group("vq"))
|
|
80
|
+
|
|
81
|
+
def _replace_unquoted(match):
|
|
82
|
+
key = match.group("key")
|
|
83
|
+
return "%s%s" % (key, desensitize_secret(match.group("value")))
|
|
84
|
+
|
|
85
|
+
return _UNQUOTED_PATTERN.sub(_replace_unquoted, _QUOTED_PATTERN.sub(_replace_quoted, text))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
def mask_value_in_text(text, value):
|
|
89
|
+
"""Replace every occurrence of a secret value inside text with its masked form."""
|
|
90
|
+
if not text or not value:
|
|
91
|
+
return text
|
|
92
|
+
return text.replace(str(value), desensitize_secret(value))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
def mask_sensitive_headers(headers):
|
|
96
|
+
"""Return a copy of a header-like mapping with sensitive values masked."""
|
|
97
|
+
if not headers:
|
|
98
|
+
return headers
|
|
99
|
+
masked = {}
|
|
100
|
+
for key, value in dict(headers).items():
|
|
101
|
+
if isinstance(key, str) and key.lower() in _SENSITIVE_KEYS:
|
|
102
|
+
masked[key] = desensitize_secret(value)
|
|
103
|
+
else:
|
|
104
|
+
masked[key] = value
|
|
105
|
+
return masked
|
webull/data/__init__.py
CHANGED
webull/trade/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.1.
|
|
1
|
+
__version__ = '3.1.2'
|
webull/trade/common/currency.py
CHANGED
|
@@ -18,6 +18,7 @@ from webull.core.auth.algorithm import sha_hmac1, sha_hmac256_new
|
|
|
18
18
|
from webull.core.auth.composer import default_signature_composer
|
|
19
19
|
import webull.core.headers as hd
|
|
20
20
|
import webull.core.utils.common as core_common
|
|
21
|
+
from webull.core.utils.desensitize import desensitize_secret, mask_sensitive_headers, mask_value_in_text
|
|
21
22
|
import logging
|
|
22
23
|
logger = logging.getLogger(__name__)
|
|
23
24
|
|
|
@@ -54,12 +55,12 @@ def _get_body_string(pb_object, signer_spec):
|
|
|
54
55
|
def calc_signature(app_key_id, app_key_secret, pb_object, signer_spec):
|
|
55
56
|
metadata, sign_params = _build_sign_metadata(app_key_id, signer_spec)
|
|
56
57
|
sign_params = default_signature_composer._lower_key_dict(sign_params)
|
|
57
|
-
logger.debug("sign_params:%s", sign_params)
|
|
58
|
+
logger.debug("sign_params:%s", mask_sensitive_headers(sign_params))
|
|
58
59
|
body_string = _get_body_string(pb_object,signer_spec)
|
|
59
60
|
logger.debug("body_string:%s" % body_string)
|
|
60
61
|
string_to_sign = default_signature_composer._build_sign_string(sign_params, None, body_string)
|
|
61
|
-
logger.debug("string_to_sign:%s" % string_to_sign)
|
|
62
|
+
logger.debug("string_to_sign:%s" % mask_value_in_text(string_to_sign, app_key_id))
|
|
62
63
|
signature = default_signature_composer._gen_signature(string_to_sign, app_key_secret, signer_spec)
|
|
63
64
|
metadata.append((hd.SIGNATURE, signature))
|
|
64
|
-
logger.debug("signature:%s", signature)
|
|
65
|
+
logger.debug("signature:%s", desensitize_secret(signature))
|
|
65
66
|
return signature, metadata
|
|
@@ -34,6 +34,7 @@ import webull.trade.events.events_pb2_grpc as pb_grpc
|
|
|
34
34
|
from webull.trade.events.default_retry_policy import (
|
|
35
35
|
DefaultSubscribeRetryPolicy, SubscribeRetryPolicyContext)
|
|
36
36
|
from webull.trade.events.signature_composer import calc_signature
|
|
37
|
+
from webull.core.utils.desensitize import desensitize_secret, mask_sensitive_headers
|
|
37
38
|
|
|
38
39
|
# contentTypes
|
|
39
40
|
JSON = "application/json"
|
|
@@ -83,8 +84,8 @@ class TradeEventsClient():
|
|
|
83
84
|
# Print detailed request parameters
|
|
84
85
|
print("\n=== gRPC Request Details ===")
|
|
85
86
|
print(f"Request: {request}")
|
|
86
|
-
print(f"Signature: {signature}")
|
|
87
|
-
print(f"Metadata: {metadata}")
|
|
87
|
+
print(f"Signature: {desensitize_secret(signature)}")
|
|
88
|
+
print(f"Metadata: {mask_sensitive_headers(dict(metadata))}")
|
|
88
89
|
print(f"Signer Spec: {signer_spec.__name__ if hasattr(signer_spec, '__name__') else signer_spec}")
|
|
89
90
|
print("=============================\n")
|
|
90
91
|
|
{webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
samples/__init__.py,sha256=
|
|
1
|
+
samples/__init__.py,sha256=k-9bTRFeZVdTqKUCqr6Dn-0sNlXbf6iyWbgnI7MMMyA,22
|
|
2
2
|
samples/account/__init__.py,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
3
3
|
samples/account/account_client.py,sha256=vwh-nI_JnjwcIeOr1sQPMzG8pAqZwliUusE49ZmYE3s,1796
|
|
4
4
|
samples/assets/__init__.py,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
@@ -18,15 +18,15 @@ samples/screener/screener_client.py,sha256=R9LApEv9gZhn0RU3Jy4u3b-64FdvoMRf3gZpp
|
|
|
18
18
|
samples/trade/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
19
19
|
samples/trade/trade_client.py,sha256=LyWSvZJH4ByCkRORqP9WdkXfx65A2b6fhc9_GzL8DOM,6258
|
|
20
20
|
samples/trade/trade_client_v2.py,sha256=IO-zmRiUnCmIetTdiYunPh8jVK2VaPrOR77Dwvz1auY,10771
|
|
21
|
-
samples/trade/trade_client_v3.py,sha256=
|
|
21
|
+
samples/trade/trade_client_v3.py,sha256=Q45x3EfgNZs_KrNy-qVgZEIf06T9sFYJW_aa79X6Ryw,36450
|
|
22
22
|
samples/trade/trade_client_v3_event.py,sha256=91HlT04KlK8Q5gUnsB8F5ErCFdJRnpDABKkBfYRc-YE,3932
|
|
23
23
|
samples/trade/trade_event_client.py,sha256=ni7OEc4nnz2Hpbh0Kzl6DXB-FuDPc2UGBaLFnCrdFZ4,2824
|
|
24
24
|
samples/trade/trade_event_sse_client.py,sha256=b_D3QiTiXD9_nky55tAFKPzxAtUDirsWfpx5693skoI,2781
|
|
25
25
|
samples/watchlist/__init__.py,sha256=rtV5s4_CJgDAT4DGEJa_pNLJU71Wdr5OLz_IQ1EajFQ,567
|
|
26
26
|
samples/watchlist/watchlist_client.py,sha256=lpzJs7SXuSka2KKkJ0u9s83A9iHta5qrjvIdkbfNcwg,3246
|
|
27
|
-
webull/__init__.py,sha256=
|
|
28
|
-
webull/core/__init__.py,sha256=
|
|
29
|
-
webull/core/client.py,sha256=
|
|
27
|
+
webull/__init__.py,sha256=k-9bTRFeZVdTqKUCqr6Dn-0sNlXbf6iyWbgnI7MMMyA,22
|
|
28
|
+
webull/core/__init__.py,sha256=U8JMQmRmPOnTLajHGgfm05BkeNL_CilUlnnb2pHR3qs,225
|
|
29
|
+
webull/core/client.py,sha256=mNTILEiIVytXoqmnN6CyjeSZEcflUcN9JULoUsSURTE,17167
|
|
30
30
|
webull/core/compat.py,sha256=_r6Y_f3vTo_DoxOaCvLjnvOo1KRkD2Z9kXSh8OijEIA,3088
|
|
31
31
|
webull/core/headers.py,sha256=Wj2zev1XYyYsy2b9YKnoK3GqjVsXZO_o2WziMmuVBTw,2061
|
|
32
32
|
webull/core/request.py,sha256=y8l_GwWdRLPr8x-0Qm7xUNg2AEQ8g67vGJZSCbTbMQE,8184
|
|
@@ -37,7 +37,7 @@ webull/core/auth/algorithm/sha_hmac1.py,sha256=oYHpbwwOK2w9dtSnaOMwGLaw-opBwOxJW
|
|
|
37
37
|
webull/core/auth/algorithm/sha_hmac256.py,sha256=jkkWDQOYuJI6nrKVx89KnLI4sTAFi_zmxNc5bPGX0cw,2638
|
|
38
38
|
webull/core/auth/algorithm/sha_hmac256_new.py,sha256=t8s_YegLV5_qtLLp2CQHKY66OTu_eZyUbGjsHWuSpt8,2155
|
|
39
39
|
webull/core/auth/composer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
|
-
webull/core/auth/composer/default_signature_composer.py,sha256=
|
|
40
|
+
webull/core/auth/composer/default_signature_composer.py,sha256=LhCQaVZ0mHURBuZvE_tK1MNZWELGQ2bnNOtSRhxOms0,5476
|
|
41
41
|
webull/core/auth/signers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
42
42
|
webull/core/auth/signers/app_key_signer.py,sha256=ojdG3yFefU7olqnQbRElCuJf9VD7UqueFE39-IP_Bfk,2841
|
|
43
43
|
webull/core/auth/signers/signer.py,sha256=4fo94UqLcwUAYziAlCd9GAqNLM8PbLLVHChdjvcfvhY,1790
|
|
@@ -65,7 +65,7 @@ webull/core/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,
|
|
|
65
65
|
webull/core/http/method_type.py,sha256=yCenoUS06aqcRPVvqozs56src0JTxka_YN1ZNp6Sw-0,1632
|
|
66
66
|
webull/core/http/protocol_type.py,sha256=DIPZ3i_r8nxaW5hVRVTyjwpKtWWTSHoGN_nA1SBXa6o,1638
|
|
67
67
|
webull/core/http/request.py,sha256=GUrxb5n2ozVtb45-yBXe9iT0E61guez_udluMKF1k1w,3769
|
|
68
|
-
webull/core/http/response.py,sha256=
|
|
68
|
+
webull/core/http/response.py,sha256=O0Yo7j5WU9f8lVLGPZg6K8zqHhPjk1fBXndsE5iLOhE,5957
|
|
69
69
|
webull/core/http/initializer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
70
70
|
webull/core/http/initializer/client_initializer.py,sha256=tDJxo5hCyd1k4g1bkGBVhiLCupH1lRKmAGkrSabwyjA,3225
|
|
71
71
|
webull/core/http/initializer/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -88,15 +88,15 @@ webull/core/retry/retry_policy.py,sha256=y1Kwc7lw1N4sgvR71AcUbsv8cYYLAJRdDMx7VWO
|
|
|
88
88
|
webull/core/retry/retry_policy_context.py,sha256=rVAqF6NE6Aw-OUJY1TaxEhSLLCuYe8Kfs6Poqol0WOk,2036
|
|
89
89
|
webull/core/sse/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
90
90
|
webull/core/sse/default_retry_policy.py,sha256=MulainWSyDU_bZnXgUCG_NjhxAgJ9TLnWYuKDnYpW7A,5213
|
|
91
|
-
webull/core/sse/signature_composer.py,sha256=
|
|
91
|
+
webull/core/sse/signature_composer.py,sha256=JHpTxpE_gU_Jk7zreB9oUJYzyr5gpr4BozmDiAl5igc,2887
|
|
92
92
|
webull/core/sse/sse_parser.py,sha256=O18YikkmOPqkEzWWm6AXy1b5HfO4n6C_iL3nTymmDb8,2334
|
|
93
93
|
webull/core/sse/subscribe_response.py,sha256=7EopPitvAgbUMkfLSNicCNJoh653ZwBeq2mUQyQq6-4,3134
|
|
94
94
|
webull/core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
95
95
|
webull/core/utils/common.py,sha256=bb64grSP7PjaAIe8YYKDNzQ4qwgN7-qW0r24idTEqEY,2177
|
|
96
96
|
webull/core/utils/data.py,sha256=YUyoWY68_2RkKanh3jsDscgGx__FIPh5VNEGXr1Qotc,852
|
|
97
|
-
webull/core/utils/desensitize.py,sha256=
|
|
97
|
+
webull/core/utils/desensitize.py,sha256=0i3LBoFNTYKDmfZUMFc0o2mH3iK6UCd6Qey1vysLtFc,3850
|
|
98
98
|
webull/core/utils/validation.py,sha256=WXNBtJSvKfZ4qX40ke1rOMcu8TyYRemKsLog_t_T6tQ,2192
|
|
99
|
-
webull/data/__init__.py,sha256=
|
|
99
|
+
webull/data/__init__.py,sha256=23zsqNrB0y6oh4zP1BZDFFTMdb3_zP7tjdvsv515t3E,38
|
|
100
100
|
webull/data/data_client.py,sha256=6RLUr7Wsfs8bHaM8EbQBn8Xu8JcuTRap15SGXNSTQ6s,2605
|
|
101
101
|
webull/data/data_streaming_client.py,sha256=kLKjFH4INREkPIjw6efPwnHGHWIDJn42IEsQam0njb8,4623
|
|
102
102
|
webull/data/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -257,16 +257,16 @@ webull/data/request/watchlist/get_watchlist_request.py,sha256=AC59m2-5I78ctAcTUh
|
|
|
257
257
|
webull/data/request/watchlist/remove_watchlist_instruments_request.py,sha256=Fr9whov0qTCSINYSi_eDbvIhZmqdm5p7XW-X-eyICwk,1472
|
|
258
258
|
webull/data/request/watchlist/update_watchlist_instruments_request.py,sha256=OYuF3dYQJAZLf0FkB3i9SxwG6Zy9ZUaiBvsu5flKhvA,1514
|
|
259
259
|
webull/data/request/watchlist/update_watchlist_request.py,sha256=vGWnDZoK3bT9NKLJ7TO4rqlDqcOemj0HOuARTeAGnS0,1459
|
|
260
|
-
webull/trade/__init__.py,sha256=
|
|
260
|
+
webull/trade/__init__.py,sha256=k-9bTRFeZVdTqKUCqr6Dn-0sNlXbf6iyWbgnI7MMMyA,22
|
|
261
261
|
webull/trade/trade_client.py,sha256=c2SWGi0ATix5U2ZRWgsx4p4CJKmGy2qPkq1Pn2ndN0s,2279
|
|
262
|
-
webull/trade/trade_events_client.py,sha256=
|
|
262
|
+
webull/trade/trade_events_client.py,sha256=_4WH-IIzKgszra_V_M1WdvcZrc7ilF-xEaWhAVUS-2w,9883
|
|
263
263
|
webull/trade/trade_events_sse_client.py,sha256=UTOhe081qQKjWLIV5_tkEen9f3Of1euBMHU42LR2XNw,20981
|
|
264
264
|
webull/trade/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
265
265
|
webull/trade/common/account_type.py,sha256=haVAB33MERN6XyPsbrfVQhK9_CpU90VltI6_KDkxzlE,715
|
|
266
266
|
webull/trade/common/category.py,sha256=lrSKMO11wMpw9iWWeefTdWXedJAFfWRlJ76swfqVP0c,947
|
|
267
267
|
webull/trade/common/combo_ticker_type.py,sha256=lvyH9Pk3QTBKSwY4N_bpWFdwAeOBPKH2ZEsCF6lfkzg,748
|
|
268
268
|
webull/trade/common/combo_type.py,sha256=yC7KKF-xjtw9YzD49ijph-sq8W98HRBRefGK7ovJaDM,1084
|
|
269
|
-
webull/trade/common/currency.py,sha256=
|
|
269
|
+
webull/trade/common/currency.py,sha256=LDzG1_GRIrNIyAIm9ySYdVx22rkvxc0VM7QOJYQgPsk,767
|
|
270
270
|
webull/trade/common/forbid_reason.py,sha256=S3lfFEJrsfdn-qxvbkqI8fi97n1qq6Sy7AUaS0SA5MM,983
|
|
271
271
|
webull/trade/common/instrument_type.py,sha256=HBBGIuPE9wY5ciykxQtZ7Q60x7hbPyMynOMBz876_Yc,863
|
|
272
272
|
webull/trade/common/markets.py,sha256=eZ_vH4OJupCqOJS5vgAparYysqm38EFjrjDj2C0XkzQ,753
|
|
@@ -284,7 +284,7 @@ webull/trade/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
|
|
|
284
284
|
webull/trade/events/default_retry_policy.py,sha256=zWoaJFJSUTtHw_qLj9_AIPBzFW6UHX295IfcuBHzYaI,2748
|
|
285
285
|
webull/trade/events/events_pb2.py,sha256=NLolj5VOws1LJT5YIvnuZab9YYhR4lm2-iCkztaARPo,2440
|
|
286
286
|
webull/trade/events/events_pb2_grpc.py,sha256=ebxp_VCJHBQFCKvxBKRUMhW67TZoUn6NwCBvKpiTEpg,2482
|
|
287
|
-
webull/trade/events/signature_composer.py,sha256=
|
|
287
|
+
webull/trade/events/signature_composer.py,sha256=IyD_nnvlDoOiCAv6Y9vY_yo0YKhy_spKaMS9KSWoIEs,2820
|
|
288
288
|
webull/trade/events/types.py,sha256=3GlnmE7oaACsXBW5uy-S5BBdNLffFhsQwadICSAADSo,740
|
|
289
289
|
webull/trade/request/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
290
290
|
webull/trade/request/cancel_order_request.py,sha256=b1leARQEpZWEVFmmQJoDOS349UneBqjU9frzrNIcmNE,1016
|
|
@@ -351,9 +351,9 @@ webull/trade/trade/v2/account_info_v2.py,sha256=TX-BskDxag52Om-RY803mOThZUtN1j2G
|
|
|
351
351
|
webull/trade/trade/v2/order_operation_v2.py,sha256=ZWH-6dp5rvokb5YX5HO2Op-KPLjGR4gpJ06Kc_IUilQ,12816
|
|
352
352
|
webull/trade/trade/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
353
353
|
webull/trade/trade/v3/order_operation_v3.py,sha256=0tYdvcUIht4PNxZfAZLB4BlvgW5_kOFMzQhiL9YTJU4,15382
|
|
354
|
-
webull_openapi_python_sdk-3.1.
|
|
355
|
-
webull_openapi_python_sdk-3.1.
|
|
356
|
-
webull_openapi_python_sdk-3.1.
|
|
357
|
-
webull_openapi_python_sdk-3.1.
|
|
358
|
-
webull_openapi_python_sdk-3.1.
|
|
359
|
-
webull_openapi_python_sdk-3.1.
|
|
354
|
+
webull_openapi_python_sdk-3.1.2.dist-info/licenses/LICENSE,sha256=ALOnsLtb1aHxmDJg3-oMi0BO-i-cjfyZaOBfnnavKMc,11359
|
|
355
|
+
webull_openapi_python_sdk-3.1.2.dist-info/licenses/NOTICE,sha256=X5TApte6CPV10b96Cb70IRLusXmiRmK_R-dB-1tQM_I,2018
|
|
356
|
+
webull_openapi_python_sdk-3.1.2.dist-info/METADATA,sha256=kfd5cRaTBnR6boqh3YDkp6qE1QKI6RRp5enAB2TEFSc,1253
|
|
357
|
+
webull_openapi_python_sdk-3.1.2.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
358
|
+
webull_openapi_python_sdk-3.1.2.dist-info/top_level.txt,sha256=h8pEjNDGWS2ZUZ2vYFpUShoMQT0ZRIQaD57QJWD8_aI,15
|
|
359
|
+
webull_openapi_python_sdk-3.1.2.dist-info/RECORD,,
|
{webull_openapi_python_sdk-3.1.0.dist-info → webull_openapi_python_sdk-3.1.2.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|