webull-openapi-python-sdk 2.0.6__py3-none-any.whl → 2.0.7__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
- webull/__init__.py +1 -1
- webull/core/__init__.py +1 -1
- webull/core/common/region.py +1 -0
- webull/core/data/endpoints.json +7 -2
- webull/data/__init__.py +1 -1
- webull/data/request/subscribe_request.py +2 -1
- webull/data/request/unsubscribe_request.py +2 -1
- webull/trade/__init__.py +1 -1
- webull/trade/trade/v2/account_info_v2.py +3 -3
- webull/trade/trade/v3/order_opration_v3.py +7 -7
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/METADATA +1 -1
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/RECORD +17 -17
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/WHEEL +0 -0
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/licenses/LICENSE +0 -0
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/licenses/NOTICE +0 -0
- {webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/top_level.txt +0 -0
samples/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.0.
|
|
1
|
+
__version__ = '2.0.7'
|
webull/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.0.
|
|
1
|
+
__version__ = '2.0.7'
|
webull/core/__init__.py
CHANGED
webull/core/common/region.py
CHANGED
webull/core/data/endpoints.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"default_region": "us",
|
|
3
|
-
"regions": ["us", "hk", "jp"],
|
|
3
|
+
"regions": ["us", "hk", "jp","sg"],
|
|
4
4
|
"region_mapping": {
|
|
5
5
|
"us": {
|
|
6
6
|
"api": "api.webull.com",
|
|
@@ -14,8 +14,13 @@
|
|
|
14
14
|
},
|
|
15
15
|
"jp": {
|
|
16
16
|
"api": "api.webull.co.jp",
|
|
17
|
-
"quotes-api": "",
|
|
17
|
+
"quotes-api": "data-api.webull.co.jp",
|
|
18
18
|
"events-api": "events-api.webull.co.jp"
|
|
19
|
+
},
|
|
20
|
+
"sg": {
|
|
21
|
+
"api": "api.webull.com.sg",
|
|
22
|
+
"quotes-api": "data-api.webull.com.sg",
|
|
23
|
+
"events-api": "events-api.webull.com.sg"
|
|
19
24
|
}
|
|
20
25
|
}
|
|
21
26
|
}
|
webull/data/__init__.py
CHANGED
|
@@ -19,7 +19,8 @@ from webull.core.request import ApiRequest
|
|
|
19
19
|
|
|
20
20
|
class SubscribeRequest(ApiRequest):
|
|
21
21
|
def __init__(self):
|
|
22
|
-
ApiRequest.__init__(self, "/market-data/streaming/subscribe", version='v2', method="POST",
|
|
22
|
+
ApiRequest.__init__(self, "/openapi/market-data/streaming/subscribe", version='v2', method="POST",
|
|
23
|
+
query_params={})
|
|
23
24
|
self.set_body_params({})
|
|
24
25
|
|
|
25
26
|
def set_session_id(self, session_id):
|
|
@@ -19,7 +19,8 @@ from webull.core.request import ApiRequest
|
|
|
19
19
|
|
|
20
20
|
class UnsubcribeRequest(ApiRequest):
|
|
21
21
|
def __init__(self):
|
|
22
|
-
ApiRequest.__init__(self, "/market-data/streaming/unsubscribe", version='v2', method="POST",
|
|
22
|
+
ApiRequest.__init__(self, "/openapi/market-data/streaming/unsubscribe", version='v2', method="POST",
|
|
23
|
+
query_params={})
|
|
23
24
|
self.set_body_params({})
|
|
24
25
|
|
|
25
26
|
def set_session_id(self, session_id):
|
webull/trade/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '2.0.
|
|
1
|
+
__version__ = '2.0.7'
|
|
@@ -25,7 +25,7 @@ class AccountV2:
|
|
|
25
25
|
|
|
26
26
|
def get_account_list(self):
|
|
27
27
|
"""
|
|
28
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
28
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
29
29
|
Support for other regions will be available in future updates.
|
|
30
30
|
"""
|
|
31
31
|
account_list = GetAccountListRequest()
|
|
@@ -34,7 +34,7 @@ class AccountV2:
|
|
|
34
34
|
|
|
35
35
|
def get_account_balance(self, account_id):
|
|
36
36
|
"""
|
|
37
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
37
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
38
38
|
Support for other regions will be available in future updates.
|
|
39
39
|
"""
|
|
40
40
|
account_balance_request = AccountBalanceRequest()
|
|
@@ -44,7 +44,7 @@ class AccountV2:
|
|
|
44
44
|
|
|
45
45
|
def get_account_position(self, account_id):
|
|
46
46
|
"""
|
|
47
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
47
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
48
48
|
Support for other regions will be available in future updates.
|
|
49
49
|
"""
|
|
50
50
|
account_positions_request = AccountPositionsRequest()
|
|
@@ -28,7 +28,7 @@ class OrderOperationV3:
|
|
|
28
28
|
|
|
29
29
|
def preview_order(self, account_id, preview_orders, client_combo_order_id=None):
|
|
30
30
|
"""
|
|
31
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
31
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
32
32
|
Support for other regions will be available in future updates.
|
|
33
33
|
"""
|
|
34
34
|
preview_order_request = PreviewOrderRequest()
|
|
@@ -40,7 +40,7 @@ class OrderOperationV3:
|
|
|
40
40
|
|
|
41
41
|
def place_order(self, account_id, new_orders, client_combo_order_id=None):
|
|
42
42
|
"""
|
|
43
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
43
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
44
44
|
Support for other regions will be available in future updates.
|
|
45
45
|
"""
|
|
46
46
|
place_order_request = PlaceOrderRequest()
|
|
@@ -65,7 +65,7 @@ class OrderOperationV3:
|
|
|
65
65
|
|
|
66
66
|
def replace_order(self, account_id, modify_orders, client_combo_order_id=None):
|
|
67
67
|
"""
|
|
68
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
68
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
69
69
|
Support for other regions will be available in future updates.
|
|
70
70
|
"""
|
|
71
71
|
replace_order_request = ReplaceOrderRequest()
|
|
@@ -77,7 +77,7 @@ class OrderOperationV3:
|
|
|
77
77
|
|
|
78
78
|
def cancel_order(self, account_id, client_order_id):
|
|
79
79
|
"""
|
|
80
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
80
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
81
81
|
Support for other regions will be available in future updates.
|
|
82
82
|
"""
|
|
83
83
|
cancel_order_request = CancelOrderRequest()
|
|
@@ -88,7 +88,7 @@ class OrderOperationV3:
|
|
|
88
88
|
|
|
89
89
|
def get_order_detail(self, account_id, client_order_id):
|
|
90
90
|
"""
|
|
91
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
91
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
92
92
|
Support for other regions will be available in future updates.
|
|
93
93
|
"""
|
|
94
94
|
order_detail_request = OrderDetailRequest()
|
|
@@ -99,7 +99,7 @@ class OrderOperationV3:
|
|
|
99
99
|
|
|
100
100
|
def get_order_history(self, account_id, page_size=None, start_date=None, end_date=None, last_client_order_id=None):
|
|
101
101
|
"""
|
|
102
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
102
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG.
|
|
103
103
|
Support for other regions will be available in future updates.
|
|
104
104
|
|
|
105
105
|
Historical orders. If they are group orders, will be returned together,
|
|
@@ -127,7 +127,7 @@ class OrderOperationV3:
|
|
|
127
127
|
|
|
128
128
|
def get_order_open(self, account_id, page_size=None, last_client_order_id=None):
|
|
129
129
|
"""
|
|
130
|
-
This interface is currently supported only for Webull HK, Webull US, and Webull JP.
|
|
130
|
+
This interface is currently supported only for Webull HK, Webull US, and Webull JP, and Webull SG, and Webull SG.
|
|
131
131
|
Support for other regions will be available in future updates.
|
|
132
132
|
|
|
133
133
|
Paging query pending orders.
|
{webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
samples/__init__.py,sha256=
|
|
1
|
+
samples/__init__.py,sha256=Eqd_jrp6aA0AOwkbRY6r2MSGXmOOkqUkdUqKDmktZJM,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
|
|
@@ -22,8 +22,8 @@ samples/trade/trade_client_v3_event.py,sha256=91HlT04KlK8Q5gUnsB8F5ErCFdJRnpDABK
|
|
|
22
22
|
samples/trade/trade_event_client.py,sha256=BWdD1L41LXmDlaig6ku9T3t3fSCCZEdj5nxH1xI1AZA,2653
|
|
23
23
|
samples/watchlist/__init__.py,sha256=rtV5s4_CJgDAT4DGEJa_pNLJU71Wdr5OLz_IQ1EajFQ,567
|
|
24
24
|
samples/watchlist/watchlist_client.py,sha256=lpzJs7SXuSka2KKkJ0u9s83A9iHta5qrjvIdkbfNcwg,3246
|
|
25
|
-
webull/__init__.py,sha256=
|
|
26
|
-
webull/core/__init__.py,sha256=
|
|
25
|
+
webull/__init__.py,sha256=Eqd_jrp6aA0AOwkbRY6r2MSGXmOOkqUkdUqKDmktZJM,22
|
|
26
|
+
webull/core/__init__.py,sha256=P6HyssmMpnvnyiBdmTTmwJ4Hvu3pmR6nn9bxyi7CNG4,225
|
|
27
27
|
webull/core/client.py,sha256=zxSBiII9KDxc5tHpTerJfV_PKPt8E9e3oTOpiakAtJw,16758
|
|
28
28
|
webull/core/compat.py,sha256=_r6Y_f3vTo_DoxOaCvLjnvOo1KRkD2Z9kXSh8OijEIA,3088
|
|
29
29
|
webull/core/headers.py,sha256=Wj2zev1XYyYsy2b9YKnoK3GqjVsXZO_o2WziMmuVBTw,2061
|
|
@@ -44,10 +44,10 @@ webull/core/cache/__init__.py,sha256=_dME59dRIinH4PXhB3ZOtlN-3J57mFfhegzuFKVedWs
|
|
|
44
44
|
webull/core/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
45
45
|
webull/core/common/api_type.py,sha256=rXYvwiJs71AX7exvD_szbXcv3UW50V7_ve8ModpkAiM,643
|
|
46
46
|
webull/core/common/easy_enum.py,sha256=3PorEZPQgBT7uFwtNplpwZ9oi76CCwgKIZ0jRiybZYw,1047
|
|
47
|
-
webull/core/common/region.py,sha256=
|
|
47
|
+
webull/core/common/region.py,sha256=CwUurkJVnUWRD50aVZoDNdRBGLecv68179KkexiYaec,100
|
|
48
48
|
webull/core/context/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
49
|
webull/core/context/request_context_holder.py,sha256=41aSKMtOkS0yHVvMMmP2vjsMg3WHvDPe3_njT0hwi_4,1148
|
|
50
|
-
webull/core/data/endpoints.json,sha256=
|
|
50
|
+
webull/core/data/endpoints.json,sha256=Ln5awMOVWtpFqsfD-ggshg6wD8M-ZYmrIu0APF-daeo,766
|
|
51
51
|
webull/core/data/retry_config.json,sha256=aRKrBfZyLrXt_58LCt7VvunQoxXS_qGon4JGGZnB644,304
|
|
52
52
|
webull/core/endpoint/__init__.py,sha256=hC_6UsVc7NGxD21gMT4i42Crm2zN4K-IAU4zxkLysVo,153
|
|
53
53
|
webull/core/endpoint/chained_endpoint_resolver.py,sha256=YQ-K7w9P3UolgiH0UdXiKsG4ALSManebWlZHeZjxSjY,2256
|
|
@@ -89,7 +89,7 @@ webull/core/utils/common.py,sha256=T5VVcYQVhA9fhiUHZN9gBuoh0uzVgbCM01o1qK08NAE,2
|
|
|
89
89
|
webull/core/utils/data.py,sha256=YUyoWY68_2RkKanh3jsDscgGx__FIPh5VNEGXr1Qotc,852
|
|
90
90
|
webull/core/utils/desensitize.py,sha256=f8_ps9BrG3WfXD8ZAw873-_YoGeke1Q55CeDwRmYkqA,1104
|
|
91
91
|
webull/core/utils/validation.py,sha256=gJcIrHYtgo48yVJ0q6O-f5buTYWOcr6ShhDIBhTp-Yg,1957
|
|
92
|
-
webull/data/__init__.py,sha256=
|
|
92
|
+
webull/data/__init__.py,sha256=E0G1HBxSnLY_6pVD-FW8RwpEJMoXIAB9ub-e38-q0IY,38
|
|
93
93
|
webull/data/data_client.py,sha256=5lMvWswwnL3gwjGKGWo5MYjJGzfmDlOoyS_wq5sZRKQ,2189
|
|
94
94
|
webull/data/data_streaming_client.py,sha256=TQBAilvOLCbcMqacByrniXGr9VjSwjym-4-LUOiqKx8,4456
|
|
95
95
|
webull/data/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -174,8 +174,8 @@ webull/data/request/get_noii_snapshot_request.py,sha256=IQ2HrAyyO2GzC8HEsjz4S0Ow
|
|
|
174
174
|
webull/data/request/get_quotes_request.py,sha256=g4J7lAQZBqoeM67Xm2E-Y2pwNxsqkrECf_r5DTTrS5M,1244
|
|
175
175
|
webull/data/request/get_snapshot_request.py,sha256=OD2PiaxmBCboFDaU8DFTwvfNd2zObYSnPfl1fa49DIs,1471
|
|
176
176
|
webull/data/request/get_tick_request.py,sha256=rUHhQgC8Z_6ensLyCkg3DDK55SlEi0Bc_dhpCIIspDs,1366
|
|
177
|
-
webull/data/request/subscribe_request.py,sha256=
|
|
178
|
-
webull/data/request/unsubscribe_request.py,sha256=
|
|
177
|
+
webull/data/request/subscribe_request.py,sha256=2OPi0ssYvACTfCag8nb7EoyQJb-iGXZojUhopS80sLQ,1507
|
|
178
|
+
webull/data/request/unsubscribe_request.py,sha256=GTfPNk-b11OcHIK8zzTv9gM_8ABD2JDAiPPkPyfgy30,1482
|
|
179
179
|
webull/data/request/screener/__init__.py,sha256=68et0-FOloDo6Yo6vqmHPM45z-8zorzbhrZmUrLApEQ,583
|
|
180
180
|
webull/data/request/screener/get_gainers_losers_request.py,sha256=uXqTzbx1kkkuhFefyIBuO1JAsDyXtycTwTnmwc9EPxE,3733
|
|
181
181
|
webull/data/request/screener/get_most_active_request.py,sha256=TdotLzjkVLKRQupEUMgKotQILFwX3w8wdHQAYqSq2oo,3802
|
|
@@ -188,7 +188,7 @@ webull/data/request/watchlist/get_watchlist_request.py,sha256=XxzS4gxFbdQSajpFSm
|
|
|
188
188
|
webull/data/request/watchlist/remove_watchlist_instruments_request.py,sha256=qOtQYDBp-PSawAgljnLmtfUce8dAblWI_zB0nnIv3G0,1451
|
|
189
189
|
webull/data/request/watchlist/update_watchlist_instruments_request.py,sha256=KoihfB8MszsAooQGUUMjFmnid_a7xk4YSdEMDO1gh-k,1493
|
|
190
190
|
webull/data/request/watchlist/update_watchlist_request.py,sha256=0s3ftkxiz9hjtXhLORrIUphyDIldRA8pJ4mP5zfbsyU,1466
|
|
191
|
-
webull/trade/__init__.py,sha256=
|
|
191
|
+
webull/trade/__init__.py,sha256=XrDu8k_IxSYdWR9fdENgQaVLDoDnh9VjrAmupbj-Ozw,21
|
|
192
192
|
webull/trade/trade_client.py,sha256=_6lH4KO-jKgKWU28fWNsc9-KEHto-WvaP0gT96BJ_dw,2184
|
|
193
193
|
webull/trade/trade_events_client.py,sha256=G9ovuxrnQh8iA1so2Ar-41jWRzDCYQYSHTkQLGlwhhA,9983
|
|
194
194
|
webull/trade/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -266,13 +266,13 @@ webull/trade/trade/order_operation.py,sha256=QrL4Da87RTOSupiAbuXtZigo9602Byp14DQ
|
|
|
266
266
|
webull/trade/trade/trade_calendar.py,sha256=rGSiR5GZggQnZOmmpbC-06trgPQgFTvdpUzGMpw2ycw,1415
|
|
267
267
|
webull/trade/trade/trade_instrument.py,sha256=293IaiLnhw0mAc1IuF3LSgwgve_XZ1Dyf1VeFtmClc8,3474
|
|
268
268
|
webull/trade/trade/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
269
|
-
webull/trade/trade/v2/account_info_v2.py,sha256=
|
|
269
|
+
webull/trade/trade/v2/account_info_v2.py,sha256=YXDEejg7spwg4j2wd25SQdVyHWMqasO4J9QDP56rY8s,3036
|
|
270
270
|
webull/trade/trade/v2/order_operation_v2.py,sha256=m54RH2j45CBBWEnqe4KxrsltAF44XKtPMT4kv8t7djQ,12745
|
|
271
271
|
webull/trade/trade/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
272
|
-
webull/trade/trade/v3/order_opration_v3.py,sha256=
|
|
273
|
-
webull_openapi_python_sdk-2.0.
|
|
274
|
-
webull_openapi_python_sdk-2.0.
|
|
275
|
-
webull_openapi_python_sdk-2.0.
|
|
276
|
-
webull_openapi_python_sdk-2.0.
|
|
277
|
-
webull_openapi_python_sdk-2.0.
|
|
278
|
-
webull_openapi_python_sdk-2.0.
|
|
272
|
+
webull/trade/trade/v3/order_opration_v3.py,sha256=ZWxlIkoD5Dk8G-gRD04UeCrLQHbFQZL-8H5yOEdIIR4,7730
|
|
273
|
+
webull_openapi_python_sdk-2.0.7.dist-info/licenses/LICENSE,sha256=ALOnsLtb1aHxmDJg3-oMi0BO-i-cjfyZaOBfnnavKMc,11359
|
|
274
|
+
webull_openapi_python_sdk-2.0.7.dist-info/licenses/NOTICE,sha256=X5TApte6CPV10b96Cb70IRLusXmiRmK_R-dB-1tQM_I,2018
|
|
275
|
+
webull_openapi_python_sdk-2.0.7.dist-info/METADATA,sha256=GAbdm1NDSHxawBt9_8FEz3xGFuN_JRLMgEwz2NGBceM,1032
|
|
276
|
+
webull_openapi_python_sdk-2.0.7.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
277
|
+
webull_openapi_python_sdk-2.0.7.dist-info/top_level.txt,sha256=h8pEjNDGWS2ZUZ2vYFpUShoMQT0ZRIQaD57QJWD8_aI,15
|
|
278
|
+
webull_openapi_python_sdk-2.0.7.dist-info/RECORD,,
|
{webull_openapi_python_sdk-2.0.6.dist-info → webull_openapi_python_sdk-2.0.7.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|