webull-openapi-python-sdk 1.0.5__py3-none-any.whl → 1.0.6__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 +16 -0
- webull/__init__.py +1 -1
- webull/core/__init__.py +1 -1
- webull/data/__init__.py +1 -1
- webull/data/request/get_futures_historical_bars_request.py +1 -1
- webull/trade/__init__.py +1 -2
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/METADATA +1 -1
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/RECORD +13 -13
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/WHEEL +0 -0
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/licenses/LICENSE +0 -0
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/licenses/NOTICE +0 -0
- {webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/top_level.txt +0 -0
samples/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ =
|
|
1
|
+
__version__ = '1.0.6'
|
samples/data/data_client.py
CHANGED
|
@@ -35,6 +35,22 @@ if __name__ == '__main__':
|
|
|
35
35
|
if res.status_code == 200:
|
|
36
36
|
print('get_instrument:', res.json())
|
|
37
37
|
|
|
38
|
+
res = data_client.instrument.get_crypto_instrument()
|
|
39
|
+
if res.status_code == 200:
|
|
40
|
+
print('get_crypto_instrument(all):', res.json())
|
|
41
|
+
|
|
42
|
+
res = data_client.instrument.get_crypto_instrument("BTCUSD")
|
|
43
|
+
if res.status_code == 200:
|
|
44
|
+
print('get_crypto_instrument:', res.json())
|
|
45
|
+
|
|
46
|
+
res = data_client.crypto_market_data.get_crypto_snapshot("BTCUSD")
|
|
47
|
+
if res.status_code == 200:
|
|
48
|
+
print('get_crypto_snapshot:', res.json())
|
|
49
|
+
|
|
50
|
+
res = data_client.crypto_market_data.get_crypto_history_bar("BTCUSD", Category.US_CRYPTO.name, Timespan.M1.name)
|
|
51
|
+
if res.status_code == 200:
|
|
52
|
+
print('get_crypto_history_bar:', res.json())
|
|
53
|
+
|
|
38
54
|
res = data_client.market_data.get_snapshot('AAPL', Category.US_STOCK.name, extend_hour_required=True, overnight_required=True)
|
|
39
55
|
if res.status_code == 200:
|
|
40
56
|
print('get_snapshot:', res.json())
|
webull/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ =
|
|
1
|
+
__version__ = '1.0.6'
|
webull/core/__init__.py
CHANGED
webull/data/__init__.py
CHANGED
|
@@ -17,7 +17,7 @@ from webull.core.request import ApiRequest
|
|
|
17
17
|
|
|
18
18
|
class GetFuturesHistoricalBarsRequest(ApiRequest):
|
|
19
19
|
def __init__(self):
|
|
20
|
-
ApiRequest.__init__(self, "/openapi/market-data/futures/bars", version='v2', method="GET",
|
|
20
|
+
ApiRequest.__init__(self, "/openapi/market-data/futures/bars", version='v2', method="GET", query_params={})
|
|
21
21
|
|
|
22
22
|
def set_symbols(self, symbol):
|
|
23
23
|
self.add_query_param("symbols", symbol)
|
webull/trade/__init__.py
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
__version__ =
|
|
2
|
-
|
|
1
|
+
__version__ = '1.0.6'
|
{webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
samples/__init__.py,sha256=
|
|
1
|
+
samples/__init__.py,sha256=iNeZ6LZ9iCV_ugsqAh5K1fFqbKkfU8o3NbLYBWI3m1I,22
|
|
2
2
|
samples/data/__init__.py,sha256=eoZ6GfifbqhMLNzjlqRDVil-yyBkOmVN9ujSgJWNBlY,15
|
|
3
|
-
samples/data/data_client.py,sha256=
|
|
3
|
+
samples/data/data_client.py,sha256=a2LBi1KqakA01KR-y0nsB9HqUsH0Hj3nAsk0tP5KhlI,4287
|
|
4
4
|
samples/data/data_streaming_client.py,sha256=EILzTCTQ0WkPymdq7V3OW_-JQdfRSZ8aBBYkbpujwqg,3498
|
|
5
5
|
samples/data/data_streaming_client_async.py,sha256=7KyODfZLBFLFRJcux6BtacS05cPKDn78G4lZa978Qgo,3853
|
|
6
6
|
samples/trade/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -8,8 +8,8 @@ samples/trade/trade_client.py,sha256=bXX3onGK6aRFpopeE3yDQAx4Xo9dDc-k9gGbwB9El0A
|
|
|
8
8
|
samples/trade/trade_client_v2.py,sha256=qKlAhalnB770PyVRvPxnLOTW7PvXXfr0WIoJphY4jG4,10192
|
|
9
9
|
samples/trade/trade_client_v3.py,sha256=4lR6AAFmfpp440XQFPG30oIqUz_PpicUGvrpWoMQ8lU,14884
|
|
10
10
|
samples/trade/trade_event_client.py,sha256=uOx9EwFaves2yaTNm13BHpYC0IHXSoBL8BWPbDLeFw4,2469
|
|
11
|
-
webull/__init__.py,sha256=
|
|
12
|
-
webull/core/__init__.py,sha256=
|
|
11
|
+
webull/__init__.py,sha256=iNeZ6LZ9iCV_ugsqAh5K1fFqbKkfU8o3NbLYBWI3m1I,22
|
|
12
|
+
webull/core/__init__.py,sha256=x2CgEC54GYD2NVdrqypNOZ9qo3nqJK4EfI78rCpttAU,225
|
|
13
13
|
webull/core/client.py,sha256=1xH9XS92AKdUiVUPJYtzeaIl88bwa_ChDALJAxrXWQ0,16229
|
|
14
14
|
webull/core/compat.py,sha256=HDis0D271oQ6OCpA7ViX10NJdhfXdoBfzx6nuV3vrnI,3114
|
|
15
15
|
webull/core/headers.py,sha256=7aMt3_YtaL9Yhqj2T1g7ESQgkI78SAXIk7hMX5U5FgE,2019
|
|
@@ -178,7 +178,7 @@ webull/core/vendored/requests/packages/urllib3/util/ssl_.py,sha256=aRUKc1WIyS-sU
|
|
|
178
178
|
webull/core/vendored/requests/packages/urllib3/util/timeout.py,sha256=sAyiBBds7eOk1oM3ulvVMWZiqx1B743puHqK92XwBcY,10325
|
|
179
179
|
webull/core/vendored/requests/packages/urllib3/util/url.py,sha256=_CgqbyNrQWubrv_y5aWhuutz3mnbj1cvTUe4VYbGYWA,7367
|
|
180
180
|
webull/core/vendored/requests/packages/urllib3/util/wait.py,sha256=0FHS8R3OrMU-97XWt8AxuUStkSGXTct9CfOwY_fWn7U,5971
|
|
181
|
-
webull/data/__init__.py,sha256=
|
|
181
|
+
webull/data/__init__.py,sha256=LXH5atFzj-GoZQ4-tPUfhhOIAT61DA8dpVqg6ZwaGmk,38
|
|
182
182
|
webull/data/data_client.py,sha256=JGouoFd37-sxpP6GyOJ0rRw7UuBmXqoIcis0jiRGJPQ,1871
|
|
183
183
|
webull/data/data_streaming_client.py,sha256=hYqrdKTeIB3Xmp7LMjMwN1XE6Y7bKXX0y-lGX1ty6W4,3870
|
|
184
184
|
webull/data/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -227,7 +227,7 @@ webull/data/request/get_crypto_instruments_request.py,sha256=GwOA9oPBH4qNg7yR-lV
|
|
|
227
227
|
webull/data/request/get_crypto_snapshot_request.py,sha256=W-z9nuBu2RaXqy07zFVHMQs9GP5Hc55vOWWYKoibWVA,1136
|
|
228
228
|
webull/data/request/get_eod_bars_request.py,sha256=CwbyXeAE-iPKu43zNxcekSw5qOlfEwZsztFxCQvAXuQ,1234
|
|
229
229
|
webull/data/request/get_futures_depth_request.py,sha256=d6Tl-75pcJlvX6-beAdko15o8hDhdB-486uxH8AeGIk,1083
|
|
230
|
-
webull/data/request/get_futures_historical_bars_request.py,sha256=
|
|
230
|
+
webull/data/request/get_futures_historical_bars_request.py,sha256=QwvJq33wkJ-_KLZutkh3Z55gQyCDTRkCPwc9UyYcvKU,1330
|
|
231
231
|
webull/data/request/get_futures_instruments_by_code_request.py,sha256=9WjmisgOtzSim-3umKu_2NaATPZBFQxU-3HQ-jBHU1U,1319
|
|
232
232
|
webull/data/request/get_futures_instruments_request.py,sha256=3i1B0v0jhQxx3ETN2Jiu-3aoitUWFN6QfwGNnBfK8eo,1136
|
|
233
233
|
webull/data/request/get_futures_products_request.py,sha256=3V7WZ4vVfwOhF6DwnMJb2JVnY0E4gd4VH37XKXJNfAM,907
|
|
@@ -240,7 +240,7 @@ webull/data/request/get_snapshot_request.py,sha256=OD2PiaxmBCboFDaU8DFTwvfNd2zOb
|
|
|
240
240
|
webull/data/request/get_tick_request.py,sha256=rUHhQgC8Z_6ensLyCkg3DDK55SlEi0Bc_dhpCIIspDs,1366
|
|
241
241
|
webull/data/request/subscribe_request.py,sha256=dm93Q5Q4gigAMqAobolaYYSs3wM6QddPUZOjEtJsX-8,1471
|
|
242
242
|
webull/data/request/unsubscribe_request.py,sha256=hQA4mYM64PgmQEA2otl47-3nCXqjsSY_weFA3_wNbMM,1446
|
|
243
|
-
webull/trade/__init__.py,sha256=
|
|
243
|
+
webull/trade/__init__.py,sha256=iNeZ6LZ9iCV_ugsqAh5K1fFqbKkfU8o3NbLYBWI3m1I,22
|
|
244
244
|
webull/trade/trade_client.py,sha256=_6lH4KO-jKgKWU28fWNsc9-KEHto-WvaP0gT96BJ_dw,2184
|
|
245
245
|
webull/trade/trade_events_client.py,sha256=4a7qupeT3dKJRKBQqXNhCai6ENzX6PA4yjTDHHxPR0w,8892
|
|
246
246
|
webull/trade/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -319,9 +319,9 @@ webull/trade/trade/v2/account_info_v2.py,sha256=IGY_BGTrZ0h7yQ_nDodNtmKen9gXW6he
|
|
|
319
319
|
webull/trade/trade/v2/order_operation_v2.py,sha256=m54RH2j45CBBWEnqe4KxrsltAF44XKtPMT4kv8t7djQ,12745
|
|
320
320
|
webull/trade/trade/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
321
321
|
webull/trade/trade/v3/order_opration_v3.py,sha256=4OTodBrcfyRuZOMXodNNHjCtsQxCV-5JQXEFBB1S_cE,6738
|
|
322
|
-
webull_openapi_python_sdk-1.0.
|
|
323
|
-
webull_openapi_python_sdk-1.0.
|
|
324
|
-
webull_openapi_python_sdk-1.0.
|
|
325
|
-
webull_openapi_python_sdk-1.0.
|
|
326
|
-
webull_openapi_python_sdk-1.0.
|
|
327
|
-
webull_openapi_python_sdk-1.0.
|
|
322
|
+
webull_openapi_python_sdk-1.0.6.dist-info/licenses/LICENSE,sha256=ALOnsLtb1aHxmDJg3-oMi0BO-i-cjfyZaOBfnnavKMc,11359
|
|
323
|
+
webull_openapi_python_sdk-1.0.6.dist-info/licenses/NOTICE,sha256=X5TApte6CPV10b96Cb70IRLusXmiRmK_R-dB-1tQM_I,2018
|
|
324
|
+
webull_openapi_python_sdk-1.0.6.dist-info/METADATA,sha256=sGda_Dr-h3X5GSFfTa1RIpbcZrVk8I7M4EPEr1DW6V8,702
|
|
325
|
+
webull_openapi_python_sdk-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
326
|
+
webull_openapi_python_sdk-1.0.6.dist-info/top_level.txt,sha256=h8pEjNDGWS2ZUZ2vYFpUShoMQT0ZRIQaD57QJWD8_aI,15
|
|
327
|
+
webull_openapi_python_sdk-1.0.6.dist-info/RECORD,,
|
{webull_openapi_python_sdk-1.0.5.dist-info → webull_openapi_python_sdk-1.0.6.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|