webull-openapi-python-sdk 3.0.0__py3-none-any.whl → 3.0.1__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/data/data_client.py +3 -0
- webull/__init__.py +1 -1
- webull/core/__init__.py +1 -1
- webull/data/__init__.py +1 -1
- webull/data/quotes/market_data.py +15 -12
- webull/data/request/get_historical_bars_request.py +7 -0
- webull/trade/__init__.py +1 -1
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/METADATA +1 -1
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/RECORD +14 -14
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/WHEEL +0 -0
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/licenses/LICENSE +0 -0
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/licenses/NOTICE +0 -0
- {webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/top_level.txt +0 -0
samples/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '
|
|
1
|
+
__version__ = '3.0.1'
|
samples/data/data_client.py
CHANGED
|
@@ -63,6 +63,9 @@ if __name__ == '__main__':
|
|
|
63
63
|
if res.status_code == 200:
|
|
64
64
|
print('get_snapshot:', res.json())
|
|
65
65
|
|
|
66
|
+
# get_history_bar is deprecated: the /market-data/stocks/bars/get endpoint
|
|
67
|
+
# is no longer available. It now delegates to the batch endpoint
|
|
68
|
+
# /market-data/stocks/bars/list. Prefer get_batch_history_bar directly.
|
|
66
69
|
res = data_client.market_data.get_history_bar('AAPL', Category.US_STOCK.name, Timespan.M1.name)
|
|
67
70
|
if res.status_code == 200:
|
|
68
71
|
print('get_history_bar:', res.json())
|
webull/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1'
|
webull/core/__init__.py
CHANGED
webull/data/__init__.py
CHANGED
|
@@ -15,7 +15,6 @@ from webull.data.request.get_batch_historical_bars_request import BatchHistorica
|
|
|
15
15
|
from webull.data.request.get_corp_action_request import GetCorpActionRequest
|
|
16
16
|
from webull.data.request.get_eod_bars_request import GetEodBarsRequest
|
|
17
17
|
from webull.data.request.get_footprint_request import GetFootprintRequest
|
|
18
|
-
from webull.data.request.get_historical_bars_request import GetHistoricalBarsRequest
|
|
19
18
|
from webull.data.request.get_noii_bars_request import GetNoiiBarsRequest
|
|
20
19
|
from webull.data.request.get_noii_snapshot_request import GetNoiiSnapshotRequest
|
|
21
20
|
from webull.data.request.get_quotes_request import GetQuotesRequest
|
|
@@ -29,6 +28,11 @@ class MarketData:
|
|
|
29
28
|
|
|
30
29
|
def get_history_bar(self, symbol, category, timespan, count='200', real_time_required=None, trading_sessions=None, start_time=None, end_time=None):
|
|
31
30
|
"""
|
|
31
|
+
.. deprecated::
|
|
32
|
+
The endpoint /market-data/stocks/bars/get is no longer available.
|
|
33
|
+
Use :meth:`get_batch_history_bar` instead, which calls the batch
|
|
34
|
+
endpoint /market-data/stocks/bars/list.
|
|
35
|
+
|
|
32
36
|
Returns to Instrument in the window aggregated data.
|
|
33
37
|
According to the last N K-lines of the stock code, it supports various granularity K-lines such as m1 and m5.
|
|
34
38
|
Currently, only the K-line with the previous weight is provided for the daily K-line and above,
|
|
@@ -44,17 +48,16 @@ class MarketData:
|
|
|
44
48
|
:param start_time: Start timestamp in milliseconds (Long). Optional.
|
|
45
49
|
:param end_time: End timestamp in milliseconds (Long). Delayed permission will auto-offset time. Optional.
|
|
46
50
|
"""
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
return response
|
|
51
|
+
return self.get_batch_history_bar(
|
|
52
|
+
[symbol],
|
|
53
|
+
category,
|
|
54
|
+
timespan,
|
|
55
|
+
count=count,
|
|
56
|
+
real_time_required=real_time_required,
|
|
57
|
+
trading_sessions=trading_sessions,
|
|
58
|
+
start_time=start_time,
|
|
59
|
+
end_time=end_time,
|
|
60
|
+
)
|
|
58
61
|
|
|
59
62
|
def get_batch_history_bar(self, symbols, category, timespan, count='200', real_time_required=None, trading_sessions=None, start_time=None, end_time=None):
|
|
60
63
|
"""
|
|
@@ -16,6 +16,13 @@
|
|
|
16
16
|
from webull.core.request import ApiRequest
|
|
17
17
|
|
|
18
18
|
class GetHistoricalBarsRequest(ApiRequest):
|
|
19
|
+
"""
|
|
20
|
+
.. deprecated::
|
|
21
|
+
The endpoint /market-data/stocks/bars/get is no longer available.
|
|
22
|
+
Use :class:`webull.data.request.get_batch_historical_bars_request.BatchHistoricalBarsRequest`
|
|
23
|
+
instead, which calls the batch endpoint /market-data/stocks/bars/list.
|
|
24
|
+
"""
|
|
25
|
+
|
|
19
26
|
def __init__(self):
|
|
20
27
|
ApiRequest.__init__(self, "/market-data/stocks/bars/get", version='v3', method="GET", query_params={})
|
|
21
28
|
|
webull/trade/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.1'
|
{webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/RECORD
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
samples/__init__.py,sha256=
|
|
1
|
+
samples/__init__.py,sha256=Ys8n4as2Wcnr8Aq6OV-e59RKmKVeyh9Oh2nzJ2FZPFk,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
|
|
5
5
|
samples/assets/assets_client.py,sha256=p9LS2Td3gbUMkHn4LD_9RMCFuaQRUbsKvG4PhZBGJDc,1974
|
|
6
6
|
samples/data/__init__.py,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
7
|
-
samples/data/data_client.py,sha256=
|
|
7
|
+
samples/data/data_client.py,sha256=IIrOWT74yMNC0CUGm2Ycel7ca38OFHOHWGYilNlXDZs,12886
|
|
8
8
|
samples/data/data_client_event.py,sha256=u6Bebo2hTE0Ri1bQHa8nhFEe-fBbdxfNwLpTZh3E1WY,3046
|
|
9
9
|
samples/data/data_streaming_client.py,sha256=2da21SE_Mneo7zbM_l1rkpdBBbI4avrpnSPMxsZIalw,4085
|
|
10
10
|
samples/data/data_streaming_client_async.py,sha256=o_u1ch8JdbcYnLCvDCCUzO-Z1IG7BUKncu_GB_kCbOs,4443
|
|
@@ -22,8 +22,8 @@ samples/trade/trade_client_v3_event.py,sha256=91HlT04KlK8Q5gUnsB8F5ErCFdJRnpDABK
|
|
|
22
22
|
samples/trade/trade_event_client.py,sha256=ni7OEc4nnz2Hpbh0Kzl6DXB-FuDPc2UGBaLFnCrdFZ4,2824
|
|
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=Ys8n4as2Wcnr8Aq6OV-e59RKmKVeyh9Oh2nzJ2FZPFk,22
|
|
26
|
+
webull/core/__init__.py,sha256=xq1DShtNGxNOWulRwZya99hPjyivsNppPIQlglL62Cs,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
|
|
@@ -89,7 +89,7 @@ webull/core/utils/common.py,sha256=bb64grSP7PjaAIe8YYKDNzQ4qwgN7-qW0r24idTEqEY,2
|
|
|
89
89
|
webull/core/utils/data.py,sha256=YUyoWY68_2RkKanh3jsDscgGx__FIPh5VNEGXr1Qotc,852
|
|
90
90
|
webull/core/utils/desensitize.py,sha256=186BKVDomhhKnIi_4-1bWJ7P5s01rStjeIwJkTEGoIA,952
|
|
91
91
|
webull/core/utils/validation.py,sha256=gJcIrHYtgo48yVJ0q6O-f5buTYWOcr6ShhDIBhTp-Yg,1957
|
|
92
|
-
webull/data/__init__.py,sha256=
|
|
92
|
+
webull/data/__init__.py,sha256=e6LgVJw9kaNVjruinsj2bum0Q3WEdZ3bhYQan5_1YiQ,38
|
|
93
93
|
webull/data/data_client.py,sha256=FzatKHXgu5xv-FKFaX-mFYdhLTdz7zpRUox9AGWrReQ,2429
|
|
94
94
|
webull/data/data_streaming_client.py,sha256=kLKjFH4INREkPIjw6efPwnHGHWIDJn42IEsQam0njb8,4623
|
|
95
95
|
webull/data/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -117,7 +117,7 @@ webull/data/quotes/event_market_data.py,sha256=lARSHqnVxRZZNOIi9uP-Rs5StMIUWtmwr
|
|
|
117
117
|
webull/data/quotes/fundamentals.py,sha256=WALbh8Q_91vDXJjdolVzMZpUNlqBQCRqL6SmVXUJVDU,15421
|
|
118
118
|
webull/data/quotes/futures_market_data.py,sha256=fc9giYNy1LcdLHOJV31zMbPBKtWDH8kBW5xRFgHzQUA,5596
|
|
119
119
|
webull/data/quotes/instrument.py,sha256=3WQoZsbeyHMs9o9xV4iFAGWYu2YVuCAC8A7bYMaFtCI,23585
|
|
120
|
-
webull/data/quotes/market_data.py,sha256=
|
|
120
|
+
webull/data/quotes/market_data.py,sha256=BUGKgsIduauxbznNSQduSEslTXkY6zcZRhvnImW7Wxk,14619
|
|
121
121
|
webull/data/quotes/market_streaming_data.py,sha256=khgTGqrPRiKkRVnG5Post5Vpu9lCAP288B_OE20_JM8,3135
|
|
122
122
|
webull/data/quotes/option_market_data.py,sha256=4fW_GI3u1T-5dluhLRQ60Gbb2bsnhWkSrILYJq-96pw,3305
|
|
123
123
|
webull/data/quotes/screener.py,sha256=NnOCb1jV_-OYT2We-MezMgXVQZk44-StV9l0kSE9FdY,18485
|
|
@@ -192,7 +192,7 @@ webull/data/request/get_futures_product_class.py,sha256=BnxbPQ1qpXIeYQExETIUjab2
|
|
|
192
192
|
webull/data/request/get_futures_products_request.py,sha256=UKI9Ih0NJzPMBDMRKsi-PJleJkqmZqscoM_cfHHHL9E,1068
|
|
193
193
|
webull/data/request/get_futures_snapshot_request.py,sha256=CDojkrzpFcHKV3eUEL2l3a0q30REDl8bsehFgA4O1MM,1135
|
|
194
194
|
webull/data/request/get_futures_tick_request.py,sha256=_xaYfASHnWBA6ETceiCdURrMUGbTM0iA0aX7-Um5F0s,1057
|
|
195
|
-
webull/data/request/get_historical_bars_request.py,sha256=
|
|
195
|
+
webull/data/request/get_historical_bars_request.py,sha256=WBQ9tFSgcA92hGTUua7aJ9gBxA3yBz2SJMoXadIaRH4,2488
|
|
196
196
|
webull/data/request/get_industry_comparison_request.py,sha256=KBdma_EAQTJGuyQEa5bmjgZgLjpm-rHPAwbEaVZ_WVA,1191
|
|
197
197
|
webull/data/request/get_instruments_request.py,sha256=c6bCzralfUAygM4TbGpCh1zVsIBM5Xz-k3txO9gtPhU,1745
|
|
198
198
|
webull/data/request/get_instruments_request_v2.py,sha256=7KB_ZU855zdBuxll0ZVDefWo9pBYViVCVlhE7O9BUC4,1553
|
|
@@ -231,7 +231,7 @@ webull/data/request/watchlist/get_watchlist_request.py,sha256=AC59m2-5I78ctAcTUh
|
|
|
231
231
|
webull/data/request/watchlist/remove_watchlist_instruments_request.py,sha256=Fr9whov0qTCSINYSi_eDbvIhZmqdm5p7XW-X-eyICwk,1472
|
|
232
232
|
webull/data/request/watchlist/update_watchlist_instruments_request.py,sha256=OYuF3dYQJAZLf0FkB3i9SxwG6Zy9ZUaiBvsu5flKhvA,1514
|
|
233
233
|
webull/data/request/watchlist/update_watchlist_request.py,sha256=vGWnDZoK3bT9NKLJ7TO4rqlDqcOemj0HOuARTeAGnS0,1459
|
|
234
|
-
webull/trade/__init__.py,sha256=
|
|
234
|
+
webull/trade/__init__.py,sha256=Ys8n4as2Wcnr8Aq6OV-e59RKmKVeyh9Oh2nzJ2FZPFk,22
|
|
235
235
|
webull/trade/trade_client.py,sha256=c2SWGi0ATix5U2ZRWgsx4p4CJKmGy2qPkq1Pn2ndN0s,2279
|
|
236
236
|
webull/trade/trade_events_client.py,sha256=sHoKPKQQ2Ye_c9tt9MYxFeza3T5lLR5VosNro7H1gN4,9748
|
|
237
237
|
webull/trade/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -321,9 +321,9 @@ webull/trade/trade/v2/account_info_v2.py,sha256=TX-BskDxag52Om-RY803mOThZUtN1j2G
|
|
|
321
321
|
webull/trade/trade/v2/order_operation_v2.py,sha256=ZWH-6dp5rvokb5YX5HO2Op-KPLjGR4gpJ06Kc_IUilQ,12816
|
|
322
322
|
webull/trade/trade/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
323
323
|
webull/trade/trade/v3/order_operation_v3.py,sha256=0tYdvcUIht4PNxZfAZLB4BlvgW5_kOFMzQhiL9YTJU4,15382
|
|
324
|
-
webull_openapi_python_sdk-3.0.
|
|
325
|
-
webull_openapi_python_sdk-3.0.
|
|
326
|
-
webull_openapi_python_sdk-3.0.
|
|
327
|
-
webull_openapi_python_sdk-3.0.
|
|
328
|
-
webull_openapi_python_sdk-3.0.
|
|
329
|
-
webull_openapi_python_sdk-3.0.
|
|
324
|
+
webull_openapi_python_sdk-3.0.1.dist-info/licenses/LICENSE,sha256=ALOnsLtb1aHxmDJg3-oMi0BO-i-cjfyZaOBfnnavKMc,11359
|
|
325
|
+
webull_openapi_python_sdk-3.0.1.dist-info/licenses/NOTICE,sha256=X5TApte6CPV10b96Cb70IRLusXmiRmK_R-dB-1tQM_I,2018
|
|
326
|
+
webull_openapi_python_sdk-3.0.1.dist-info/METADATA,sha256=DK1po6EdF2IL0_OBtiaeimWt2rzO1VudnS3FKO6l-rk,1211
|
|
327
|
+
webull_openapi_python_sdk-3.0.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
328
|
+
webull_openapi_python_sdk-3.0.1.dist-info/top_level.txt,sha256=h8pEjNDGWS2ZUZ2vYFpUShoMQT0ZRIQaD57QJWD8_aI,15
|
|
329
|
+
webull_openapi_python_sdk-3.0.1.dist-info/RECORD,,
|
{webull_openapi_python_sdk-3.0.0.dist-info → webull_openapi_python_sdk-3.0.1.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|