webull-openapi-python-sdk 3.0.3__py3-none-any.whl → 3.0.4__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 +79 -0
- samples/data/data_client_event.py +7 -0
- webull/__init__.py +1 -1
- webull/core/__init__.py +1 -1
- webull/data/__init__.py +1 -1
- webull/data/data_client.py +2 -0
- webull/data/quotes/crypto_market_data.py +6 -1
- webull/data/quotes/event_market_data.py +6 -1
- webull/data/quotes/fundamentals.py +99 -0
- webull/data/quotes/futures_market_data.py +6 -1
- webull/data/quotes/news.py +70 -0
- webull/data/quotes/option_market_data.py +6 -1
- webull/data/quotes/screener.py +34 -0
- webull/data/request/get_crypto_historical_bars_request.py +8 -0
- webull/data/request/get_economic_calendar_request.py +39 -0
- webull/data/request/get_event_bars_request.py +9 -1
- webull/data/request/get_futures_historical_bars_request.py +9 -1
- webull/data/request/get_insider_holdings_request.py +35 -0
- webull/data/request/get_insider_transactions_request.py +39 -0
- webull/data/request/get_institution_holding_changes_request.py +39 -0
- webull/data/request/get_institution_holdings_request.py +31 -0
- webull/data/request/get_institution_search_request.py +31 -0
- webull/data/request/get_news_detail_request.py +27 -0
- webull/data/request/get_news_search_request.py +39 -0
- webull/data/request/get_option_bars_request.py +21 -0
- webull/data/request/get_stock_news_request.py +39 -0
- webull/data/request/screener/get_fear_and_greed_index_request.py +27 -0
- webull/data/request/screener/get_stock_unusual_activities_request.py +43 -0
- webull/trade/__init__.py +1 -1
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/METADATA +1 -1
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/RECORD +36 -24
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/WHEEL +0 -0
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/licenses/LICENSE +0 -0
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/licenses/NOTICE +0 -0
- {webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/top_level.txt +0 -0
samples/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.4'
|
samples/data/data_client.py
CHANGED
|
@@ -59,6 +59,13 @@ if __name__ == '__main__':
|
|
|
59
59
|
if res.status_code == 200:
|
|
60
60
|
print('get_crypto_history_bar:', res.json())
|
|
61
61
|
|
|
62
|
+
# Crypto historical bars within a time range using start_time and end_time (timestamps in milliseconds).
|
|
63
|
+
res = data_client.crypto_market_data.get_crypto_history_bar(
|
|
64
|
+
"BTCUSD", Category.US_CRYPTO.name, Timespan.M1.name,
|
|
65
|
+
start_time=1711262998500, end_time=1711349398500)
|
|
66
|
+
if res.status_code == 200:
|
|
67
|
+
print('get_crypto_history_bar with time range:', res.json())
|
|
68
|
+
|
|
62
69
|
res = data_client.market_data.get_snapshot('AAPL', Category.US_STOCK.name, extend_hour_required=True, overnight_required=True)
|
|
63
70
|
if res.status_code == 200:
|
|
64
71
|
print('get_snapshot:', res.json())
|
|
@@ -94,6 +101,13 @@ if __name__ == '__main__':
|
|
|
94
101
|
if res.status_code == 200:
|
|
95
102
|
print('get_futures_history_bars:', res.json())
|
|
96
103
|
|
|
104
|
+
# Futures historical bars within a time range using start_time and end_time (timestamps in milliseconds).
|
|
105
|
+
res = data_client.futures_market_data.get_futures_history_bars(
|
|
106
|
+
'SILZ5,6BM6', Category.US_FUTURES.name, Timespan.M1.name,
|
|
107
|
+
start_time=1711262998500, end_time=1711349398500)
|
|
108
|
+
if res.status_code == 200:
|
|
109
|
+
print('get_futures_history_bars with time range:', res.json())
|
|
110
|
+
|
|
97
111
|
res = data_client.futures_market_data.get_futures_tick("SILZ5", Category.US_FUTURES.name, count=10)
|
|
98
112
|
if res.status_code == 200:
|
|
99
113
|
print('get_futures_tick:', res.json())
|
|
@@ -156,6 +170,13 @@ if __name__ == '__main__':
|
|
|
156
170
|
if res.status_code == 200:
|
|
157
171
|
print('get_option_history_bars:', res.json())
|
|
158
172
|
|
|
173
|
+
# Option historical bars within a time range using start_time and end_time (timestamps in milliseconds).
|
|
174
|
+
res = data_client.option_market_data.get_option_history_bars(
|
|
175
|
+
'AAPL260522C00300000', Category.US_OPTION.name, Timespan.M1.name,
|
|
176
|
+
start_time=1711262998500, end_time=1711349398500)
|
|
177
|
+
if res.status_code == 200:
|
|
178
|
+
print('get_option_history_bars with time range:', res.json())
|
|
179
|
+
|
|
159
180
|
# Option market data - Tick
|
|
160
181
|
# Rate limit: 60 requests per minute
|
|
161
182
|
res = data_client.option_market_data.get_option_tick("AAPL260522C00300000", Category.US_OPTION.name, count=30)
|
|
@@ -292,3 +313,61 @@ if __name__ == '__main__':
|
|
|
292
313
|
res = data_client.screener.get_52whl(Category.US_STOCK.name, rank_type="NEW_HIGH")
|
|
293
314
|
if res.status_code == 200:
|
|
294
315
|
print('get_52whl:', res.json())
|
|
316
|
+
|
|
317
|
+
# ==================== Screeners ====================
|
|
318
|
+
# Market sentiment (fear & greed) index
|
|
319
|
+
sentiment_res = data_client.screener.get_fear_and_greed_index(Category.US_STOCK.name)
|
|
320
|
+
if sentiment_res.status_code == 200:
|
|
321
|
+
print('get_fear_and_greed_index:', sentiment_res.json())
|
|
322
|
+
|
|
323
|
+
# Stock unusual activities
|
|
324
|
+
unusual_res = data_client.screener.get_stock_unusual_activities("NVDA", Category.US_STOCK.name, count=10)
|
|
325
|
+
if unusual_res.status_code == 200:
|
|
326
|
+
print('get_stock_unusual_activities:', unusual_res.json())
|
|
327
|
+
|
|
328
|
+
# ==================== Fundamentals ====================
|
|
329
|
+
# Macro economic calendar
|
|
330
|
+
calendar_res = data_client.fundamentals.get_economic_calendars("US", "2026-09-01", "2026-09-08")
|
|
331
|
+
if calendar_res.status_code == 200:
|
|
332
|
+
print('get_economic_calendars:', calendar_res.json())
|
|
333
|
+
|
|
334
|
+
# Institution search -> 13F holdings -> holding changes
|
|
335
|
+
institutions_res = data_client.fundamentals.get_institution_search("Bridgewater")
|
|
336
|
+
if institutions_res.status_code == 200:
|
|
337
|
+
print('get_institution_search:', institutions_res.json())
|
|
338
|
+
|
|
339
|
+
holdings_res = data_client.fundamentals.get_institution_holdings("0001738828")
|
|
340
|
+
if holdings_res.status_code == 200:
|
|
341
|
+
print('get_institution_holdings:', holdings_res.json())
|
|
342
|
+
|
|
343
|
+
holding_changes_res = data_client.fundamentals.get_institution_holding_changes("0001738828", "OPEN", count=10)
|
|
344
|
+
if holding_changes_res.status_code == 200:
|
|
345
|
+
print('get_institution_holding_changes:', holding_changes_res.json())
|
|
346
|
+
|
|
347
|
+
# Insider transactions and holdings overview
|
|
348
|
+
insider_tx_res = data_client.fundamentals.get_insider_transactions("NVDA", Category.US_STOCK.name)
|
|
349
|
+
if insider_tx_res.status_code == 200:
|
|
350
|
+
print('get_insider_transactions:', insider_tx_res.json())
|
|
351
|
+
|
|
352
|
+
insider_overview_res = data_client.fundamentals.get_insider_holdings(
|
|
353
|
+
"NVDA", Category.US_STOCK.name, compare_months=1)
|
|
354
|
+
if insider_overview_res.status_code == 200:
|
|
355
|
+
print('get_insider_holdings:', insider_overview_res.json())
|
|
356
|
+
|
|
357
|
+
# ==================== News ====================
|
|
358
|
+
# Search news by keyword
|
|
359
|
+
search_news_res = data_client.news.get_news_search("Starlink")
|
|
360
|
+
if search_news_res.status_code == 200:
|
|
361
|
+
print('get_news_search:', search_news_res.json())
|
|
362
|
+
|
|
363
|
+
# Stock news list
|
|
364
|
+
stock_news_res = data_client.news.get_stock_news("TSLA", Category.US_STOCK.name)
|
|
365
|
+
if stock_news_res.status_code == 200:
|
|
366
|
+
print('get_stock_news:', stock_news_res.json())
|
|
367
|
+
|
|
368
|
+
# News detail (use a news_id returned by the list/search APIs)
|
|
369
|
+
news_items = (stock_news_res.json().get('data') or []) if stock_news_res.status_code == 200 else []
|
|
370
|
+
if news_items:
|
|
371
|
+
news_detail_res = data_client.news.get_news_detail(news_items[0].get('news_id'))
|
|
372
|
+
if news_detail_res.status_code == 200:
|
|
373
|
+
print('get_news_detail:', news_detail_res.json())
|
|
@@ -64,6 +64,13 @@ if __name__ == '__main__':
|
|
|
64
64
|
if res.status_code == 200:
|
|
65
65
|
print('get_event_bars:', res.json())
|
|
66
66
|
|
|
67
|
+
# Query bars within a time range using start_time and end_time (timestamps in milliseconds).
|
|
68
|
+
res = data_client.event_market_data.get_event_bars(
|
|
69
|
+
"KXRATECUTCOUNT-25DEC31-T10", Timespan.M1, Category.US_EVENT.name, 200, False,
|
|
70
|
+
start_time=1711262998500, end_time=1711349398500)
|
|
71
|
+
if res.status_code == 200:
|
|
72
|
+
print('get_event_bars with time range:', res.json())
|
|
73
|
+
|
|
67
74
|
res = data_client.event_market_data.get_event_tick("KXRATECUTCOUNT-25DEC31-T10", Category.US_EVENT.name, 30)
|
|
68
75
|
if res.status_code == 200:
|
|
69
76
|
print('get_event_tick:', res.json())
|
webull/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.4'
|
webull/core/__init__.py
CHANGED
webull/data/__init__.py
CHANGED
webull/data/data_client.py
CHANGED
|
@@ -27,6 +27,7 @@ from webull.data.quotes.option_market_data import OptionMarketData
|
|
|
27
27
|
from webull.data.quotes.fundamentals import Fundamentals
|
|
28
28
|
from webull.data.quotes.screener import Screener
|
|
29
29
|
from webull.data.quotes.watchlist import Watchlist
|
|
30
|
+
from webull.data.quotes.news import News
|
|
30
31
|
from webull.data.quotes.community import Community
|
|
31
32
|
|
|
32
33
|
|
|
@@ -44,6 +45,7 @@ class DataClient:
|
|
|
44
45
|
self.screener = Screener(api_client)
|
|
45
46
|
self.watchlist = Watchlist(api_client)
|
|
46
47
|
self.community = Community(api_client)
|
|
48
|
+
self.news = News(api_client)
|
|
47
49
|
|
|
48
50
|
def _init_logger(self, api_client):
|
|
49
51
|
# No logger configured, using default console and local file logging.
|
|
@@ -20,7 +20,8 @@ class CryptoMarketData:
|
|
|
20
20
|
def __init__(self, api_client):
|
|
21
21
|
self.client = api_client
|
|
22
22
|
|
|
23
|
-
def get_crypto_history_bar(self, symbols, category, timespan, count='200', real_time_required=None
|
|
23
|
+
def get_crypto_history_bar(self, symbols, category, timespan, count='200', real_time_required=None,
|
|
24
|
+
start_time=None, end_time=None):
|
|
24
25
|
"""
|
|
25
26
|
Returns to Instrument in the window aggregated data.
|
|
26
27
|
According to the last N K-lines of the stock code, it supports various granularity K-lines such as m1 and m5.
|
|
@@ -33,6 +34,8 @@ class CryptoMarketData:
|
|
|
33
34
|
:param count: The number of lines: the default is 200, and the maximum limit is 1200
|
|
34
35
|
:param real_time_required: Returns the latest trade quote data. By default, the most recent market data is returned.
|
|
35
36
|
By default, only intraday candlestick data is returned.
|
|
37
|
+
:param start_time: Optional start time as a timestamp in milliseconds, used to specify the beginning of the time range for bar data.
|
|
38
|
+
:param end_time: Optional end time as a timestamp in milliseconds, used to specify the end of the time range for bar data.
|
|
36
39
|
"""
|
|
37
40
|
crypto_history_bar_request = GetCryptoHistoricalBarsRequest()
|
|
38
41
|
crypto_history_bar_request.set_symbols(symbols)
|
|
@@ -40,6 +43,8 @@ class CryptoMarketData:
|
|
|
40
43
|
crypto_history_bar_request.set_timespan(timespan)
|
|
41
44
|
crypto_history_bar_request.set_count(count)
|
|
42
45
|
crypto_history_bar_request.set_real_time_required(real_time_required)
|
|
46
|
+
crypto_history_bar_request.set_start_time(start_time)
|
|
47
|
+
crypto_history_bar_request.set_end_time(end_time)
|
|
43
48
|
response = self.client.get_response(crypto_history_bar_request)
|
|
44
49
|
return response
|
|
45
50
|
|
|
@@ -52,7 +52,8 @@ class EventMarketData:
|
|
|
52
52
|
response = self.client.get_response(quote_request)
|
|
53
53
|
return response
|
|
54
54
|
|
|
55
|
-
def get_event_bars(self, symbols, timespan, category=Category.US_EVENT.name, count=200, real_time_required=False
|
|
55
|
+
def get_event_bars(self, symbols, timespan, category=Category.US_EVENT.name, count=200, real_time_required=False,
|
|
56
|
+
start_time=None, end_time=None):
|
|
56
57
|
"""
|
|
57
58
|
Get the current order book for a specific event instrument.
|
|
58
59
|
The order book shows all active bid orders for both yes and no sides of a binary market.
|
|
@@ -63,6 +64,8 @@ class EventMarketData:
|
|
|
63
64
|
:param category: default is US_EVENT, currently only US_EVENT is supported.
|
|
64
65
|
:param count: Number of entries, default 200 entries, maximum 1200 entries.
|
|
65
66
|
:param real_time_required: Does it include the latest data? The k-line that has not been finalized is not included by default. It is false and only used for minutes.
|
|
67
|
+
:param start_time: Optional start time as a timestamp in milliseconds, used to specify the beginning of the time range for bar data.
|
|
68
|
+
:param end_time: Optional end time as a timestamp in milliseconds, used to specify the end of the time range for bar data.
|
|
66
69
|
"""
|
|
67
70
|
quote_request = GetEventBarsRequest()
|
|
68
71
|
quote_request.set_symbols(symbols)
|
|
@@ -70,6 +73,8 @@ class EventMarketData:
|
|
|
70
73
|
quote_request.set_timespan(timespan)
|
|
71
74
|
quote_request.set_count(count)
|
|
72
75
|
quote_request.set_real_time_required(real_time_required)
|
|
76
|
+
quote_request.set_start_time(start_time)
|
|
77
|
+
quote_request.set_end_time(end_time)
|
|
73
78
|
response = self.client.get_response(quote_request)
|
|
74
79
|
return response
|
|
75
80
|
|
|
@@ -36,6 +36,12 @@ from webull.data.request.get_financials_cashflow_request import GetFinancialsCas
|
|
|
36
36
|
from webull.data.request.get_financials_balance_sheet_request import GetFinancialsBalanceSheetRequest
|
|
37
37
|
from webull.data.request.get_financials_alert_request import GetFinancialsAlertRequest
|
|
38
38
|
from webull.data.request.get_forecast_eps_request import GetForecastEpsRequest
|
|
39
|
+
from webull.data.request.get_institution_search_request import GetInstitutionSearchRequest
|
|
40
|
+
from webull.data.request.get_institution_holdings_request import GetInstitutionHoldingsRequest
|
|
41
|
+
from webull.data.request.get_institution_holding_changes_request import GetInstitutionHoldingChangesRequest
|
|
42
|
+
from webull.data.request.get_insider_transactions_request import GetInsiderTransactionsRequest
|
|
43
|
+
from webull.data.request.get_insider_holdings_request import GetInsiderHoldingsRequest
|
|
44
|
+
from webull.data.request.get_economic_calendar_request import GetEconomicCalendarRequest
|
|
39
45
|
|
|
40
46
|
|
|
41
47
|
class Fundamentals:
|
|
@@ -352,3 +358,96 @@ class Fundamentals:
|
|
|
352
358
|
request.set_category(category)
|
|
353
359
|
response = self.client.get_response(request)
|
|
354
360
|
return response
|
|
361
|
+
|
|
362
|
+
def get_institution_search(self, keyword, pagination_key=None):
|
|
363
|
+
"""
|
|
364
|
+
Search US institutional investors by name or SEC CIK number. US only.
|
|
365
|
+
|
|
366
|
+
:param keyword: Search keyword (institution name or CIK), required.
|
|
367
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
368
|
+
"""
|
|
369
|
+
request = GetInstitutionSearchRequest()
|
|
370
|
+
request.set_keyword(keyword)
|
|
371
|
+
request.set_pagination_key(pagination_key)
|
|
372
|
+
response = self.client.get_response(request)
|
|
373
|
+
return response
|
|
374
|
+
|
|
375
|
+
def get_institution_holdings(self, cik, pagination_key=None):
|
|
376
|
+
"""
|
|
377
|
+
Query a US institution's 13F holdings. US only.
|
|
378
|
+
|
|
379
|
+
:param cik: Institution CIK number, required.
|
|
380
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
381
|
+
"""
|
|
382
|
+
request = GetInstitutionHoldingsRequest()
|
|
383
|
+
request.set_cik(cik)
|
|
384
|
+
request.set_pagination_key(pagination_key)
|
|
385
|
+
response = self.client.get_response(request)
|
|
386
|
+
return response
|
|
387
|
+
|
|
388
|
+
def get_institution_holding_changes(self, cik, position, count=None, pagination_key=None):
|
|
389
|
+
"""
|
|
390
|
+
Query US institutional holding changes filtered by position type. US only.
|
|
391
|
+
|
|
392
|
+
:param cik: Fund CIK number, required.
|
|
393
|
+
:param position: Position type: OPEN, CLOSE, or CHANGE, required.
|
|
394
|
+
:param count: Page size, optional, default 10, max 50.
|
|
395
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
396
|
+
"""
|
|
397
|
+
request = GetInstitutionHoldingChangesRequest()
|
|
398
|
+
request.set_cik(cik)
|
|
399
|
+
request.set_position(position)
|
|
400
|
+
request.set_count(count)
|
|
401
|
+
request.set_pagination_key(pagination_key)
|
|
402
|
+
response = self.client.get_response(request)
|
|
403
|
+
return response
|
|
404
|
+
|
|
405
|
+
def get_insider_transactions(self, symbol, category=Category.US_STOCK.name, side=None, pagination_key=None):
|
|
406
|
+
"""
|
|
407
|
+
Query insider transaction records for a stock.
|
|
408
|
+
|
|
409
|
+
:param symbol: Stock symbol, e.g. NVDA, required.
|
|
410
|
+
:param category: Market category. Supported: US_STOCK (default), HK_STOCK.
|
|
411
|
+
:param side: Transaction side filter: BUY or SELL, None to return all.
|
|
412
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
413
|
+
"""
|
|
414
|
+
request = GetInsiderTransactionsRequest()
|
|
415
|
+
request.set_symbol(symbol)
|
|
416
|
+
request.set_category(category)
|
|
417
|
+
request.set_side(side)
|
|
418
|
+
request.set_pagination_key(pagination_key)
|
|
419
|
+
response = self.client.get_response(request)
|
|
420
|
+
return response
|
|
421
|
+
|
|
422
|
+
def get_insider_holdings(self, symbol, category=Category.US_STOCK.name, compare_months=None):
|
|
423
|
+
"""
|
|
424
|
+
Query the insider ownership statistics overview for a stock.
|
|
425
|
+
|
|
426
|
+
:param symbol: Stock symbol, e.g. NVDA, required.
|
|
427
|
+
:param category: Market category. Supported: US_STOCK (default), HK_STOCK.
|
|
428
|
+
:param compare_months: Comparison period in months: 1 (default) or 3.
|
|
429
|
+
"""
|
|
430
|
+
request = GetInsiderHoldingsRequest()
|
|
431
|
+
request.set_symbol(symbol)
|
|
432
|
+
request.set_category(category)
|
|
433
|
+
request.set_compare_months(compare_months)
|
|
434
|
+
response = self.client.get_response(request)
|
|
435
|
+
return response
|
|
436
|
+
|
|
437
|
+
def get_economic_calendars(self, region=None, start_date=None, end_date=None, pagination_key=None):
|
|
438
|
+
"""
|
|
439
|
+
Query the macroeconomic event calendar for an optional region and date range.
|
|
440
|
+
Results are cursor-paginated, up to 30 events per page.
|
|
441
|
+
|
|
442
|
+
:param region: Region code: US (default), CN, EU, JP, GB.
|
|
443
|
+
:param start_date: Start date in yyyy-MM-dd format, None defaults to today.
|
|
444
|
+
:param end_date: End date in yyyy-MM-dd format, None defaults to start date + 7 days.
|
|
445
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
446
|
+
"""
|
|
447
|
+
request = GetEconomicCalendarRequest()
|
|
448
|
+
request.set_region(region)
|
|
449
|
+
request.set_start_date(start_date)
|
|
450
|
+
request.set_end_date(end_date)
|
|
451
|
+
request.set_pagination_key(pagination_key)
|
|
452
|
+
response = self.client.get_response(request)
|
|
453
|
+
return response
|
|
@@ -22,7 +22,8 @@ class FuturesMarketData:
|
|
|
22
22
|
def __init__(self, api_client):
|
|
23
23
|
self.client = api_client
|
|
24
24
|
|
|
25
|
-
def get_futures_history_bars(self, symbols, category, timespan, count='200', real_time_required=None
|
|
25
|
+
def get_futures_history_bars(self, symbols, category, timespan, count='200', real_time_required=None,
|
|
26
|
+
start_time=None, end_time=None):
|
|
26
27
|
"""
|
|
27
28
|
Batch query K-line data for multiple futures symbols, returning aggregated data within the window.
|
|
28
29
|
According to the last N K-lines of the futures code, it supports various granularity K-lines such as m1 and m5.
|
|
@@ -32,6 +33,8 @@ class FuturesMarketData:
|
|
|
32
33
|
:param timespan: K-line interval
|
|
33
34
|
:param count: Number of K-lines to return, default is 200, maximum is 1200
|
|
34
35
|
:param real_time_required: Returns the latest trade quote data. By default, the most recent market data is returned.
|
|
36
|
+
:param start_time: Optional start time as a timestamp in milliseconds, used to specify the beginning of the time range for bar data.
|
|
37
|
+
:param end_time: Optional end time as a timestamp in milliseconds, used to specify the end of the time range for bar data.
|
|
35
38
|
"""
|
|
36
39
|
history_bar_request = GetFuturesHistoricalBarsRequest()
|
|
37
40
|
history_bar_request.set_symbols(symbols)
|
|
@@ -39,6 +42,8 @@ class FuturesMarketData:
|
|
|
39
42
|
history_bar_request.set_timespan(timespan)
|
|
40
43
|
history_bar_request.set_count(count)
|
|
41
44
|
history_bar_request.set_real_time_required(real_time_required)
|
|
45
|
+
history_bar_request.set_start_time(start_time)
|
|
46
|
+
history_bar_request.set_end_time(end_time)
|
|
42
47
|
response = self.client.get_response(history_bar_request)
|
|
43
48
|
return response
|
|
44
49
|
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
from webull.data.common.category import Category
|
|
18
|
+
from webull.data.request.get_news_detail_request import GetNewsDetailRequest
|
|
19
|
+
from webull.data.request.get_stock_news_request import GetStockNewsRequest
|
|
20
|
+
from webull.data.request.get_news_search_request import GetNewsSearchRequest
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class News:
|
|
24
|
+
def __init__(self, api_client):
|
|
25
|
+
self.client = api_client
|
|
26
|
+
|
|
27
|
+
def get_news_search(self, keyword, start_date=None, end_date=None, pagination_key=None):
|
|
28
|
+
"""
|
|
29
|
+
Search US market news by keyword. US only.
|
|
30
|
+
|
|
31
|
+
:param keyword: Search keyword, max 100 characters, required.
|
|
32
|
+
:param start_date: Start date in yyyy-MM-dd format, None defaults to 7 days ago.
|
|
33
|
+
:param end_date: End date in yyyy-MM-dd format, None defaults to today.
|
|
34
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
35
|
+
"""
|
|
36
|
+
request = GetNewsSearchRequest()
|
|
37
|
+
request.set_keyword(keyword)
|
|
38
|
+
request.set_start_date(start_date)
|
|
39
|
+
request.set_end_date(end_date)
|
|
40
|
+
request.set_pagination_key(pagination_key)
|
|
41
|
+
response = self.client.get_response(request)
|
|
42
|
+
return response
|
|
43
|
+
|
|
44
|
+
def get_news_detail(self, news_id):
|
|
45
|
+
"""
|
|
46
|
+
Query the full content of a US market news article by its ID. US only.
|
|
47
|
+
|
|
48
|
+
:param news_id: News unique identifier, required.
|
|
49
|
+
"""
|
|
50
|
+
request = GetNewsDetailRequest()
|
|
51
|
+
request.set_news_id(news_id)
|
|
52
|
+
response = self.client.get_response(request)
|
|
53
|
+
return response
|
|
54
|
+
|
|
55
|
+
def get_stock_news(self, symbol, category=Category.US_STOCK.name, sentiment=None, pagination_key=None):
|
|
56
|
+
"""
|
|
57
|
+
Query stock-related news list with optional sentiment filter.
|
|
58
|
+
|
|
59
|
+
:param symbol: Stock symbol, e.g. TSLA, required.
|
|
60
|
+
:param category: Market category. Supported: US_STOCK (default), HK_STOCK.
|
|
61
|
+
:param sentiment: Sentiment filter: POSITIVE, NEGATIVE or NEUTRAL, None to return all.
|
|
62
|
+
:param pagination_key: Pagination key from the previous page response; not returned on the last page.
|
|
63
|
+
"""
|
|
64
|
+
request = GetStockNewsRequest()
|
|
65
|
+
request.set_symbol(symbol)
|
|
66
|
+
request.set_category(category)
|
|
67
|
+
request.set_sentiment(sentiment)
|
|
68
|
+
request.set_pagination_key(pagination_key)
|
|
69
|
+
response = self.client.get_response(request)
|
|
70
|
+
return response
|
|
@@ -21,7 +21,8 @@ class OptionMarketData:
|
|
|
21
21
|
def __init__(self, api_client):
|
|
22
22
|
self.client = api_client
|
|
23
23
|
|
|
24
|
-
def get_option_history_bars(self, symbols, category, timespan, count='200', real_time_required=None
|
|
24
|
+
def get_option_history_bars(self, symbols, category, timespan, count='200', real_time_required=None,
|
|
25
|
+
start_time=None, end_time=None):
|
|
25
26
|
"""
|
|
26
27
|
Batch query K-line data for multiple option symbols, returning aggregated data within the window.
|
|
27
28
|
According to the last N K-lines of the option code, it supports various granularity K-lines such as m1 and m5.
|
|
@@ -31,6 +32,8 @@ class OptionMarketData:
|
|
|
31
32
|
:param timespan: K-line interval
|
|
32
33
|
:param count: Number of K-lines to return, default is 200, maximum is 1200
|
|
33
34
|
:param real_time_required: Returns the latest trade quote data. By default, the most recent market data is returned.
|
|
35
|
+
:param start_time: Optional start time as a timestamp in milliseconds, used to specify the beginning of the time range for bar data.
|
|
36
|
+
:param end_time: Optional end time as a timestamp in milliseconds, used to specify the end of the time range for bar data.
|
|
34
37
|
"""
|
|
35
38
|
history_bar_request = GetOptionBarsRequest()
|
|
36
39
|
history_bar_request.set_symbols(symbols)
|
|
@@ -38,6 +41,8 @@ class OptionMarketData:
|
|
|
38
41
|
history_bar_request.set_timespan(timespan)
|
|
39
42
|
history_bar_request.set_count(count)
|
|
40
43
|
history_bar_request.set_real_time_required(real_time_required)
|
|
44
|
+
history_bar_request.set_start_time(start_time)
|
|
45
|
+
history_bar_request.set_end_time(end_time)
|
|
41
46
|
response = self.client.get_response(history_bar_request)
|
|
42
47
|
return response
|
|
43
48
|
|
webull/data/quotes/screener.py
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
# coding=utf-8
|
|
16
16
|
|
|
17
|
+
from webull.data.common.category import Category
|
|
17
18
|
from webull.data.request.screener.get_gainers_losers_request import GetGainersLosersRequest
|
|
18
19
|
from webull.data.request.screener.get_gainers_losers_request_v2 import GetGainersLosersRequestV2
|
|
19
20
|
from webull.data.request.screener.get_most_active_request import GetMostActiveRequest
|
|
@@ -26,6 +27,8 @@ from webull.data.request.screener.get_high_dividend_request import GetHighDivide
|
|
|
26
27
|
from webull.data.request.screener.get_high_dividend_request_v2 import GetHighDividendRequestV2
|
|
27
28
|
from webull.data.request.screener.get_52whl_request import Get52WHLRequest
|
|
28
29
|
from webull.data.request.screener.get_52whl_request_v2 import Get52WHLRequestV2
|
|
30
|
+
from webull.data.request.screener.get_fear_and_greed_index_request import GetFearAndGreedIndexRequest
|
|
31
|
+
from webull.data.request.screener.get_stock_unusual_activities_request import GetStockUnusualActivitiesRequest
|
|
29
32
|
|
|
30
33
|
|
|
31
34
|
class Screener:
|
|
@@ -381,3 +384,34 @@ class Screener:
|
|
|
381
384
|
request.set_direction(direction)
|
|
382
385
|
response = self.client.get_response(request)
|
|
383
386
|
return response
|
|
387
|
+
|
|
388
|
+
def get_fear_and_greed_index(self, category=Category.US_STOCK.name):
|
|
389
|
+
"""
|
|
390
|
+
Query the market fear & greed sentiment index, with current and historical
|
|
391
|
+
comparison points (previous day, one week ago, one month ago).
|
|
392
|
+
:param category: Market category. Supported: US_STOCK (default), HK_STOCK.
|
|
393
|
+
"""
|
|
394
|
+
request = GetFearAndGreedIndexRequest()
|
|
395
|
+
request.set_category(category)
|
|
396
|
+
response = self.client.get_response(request)
|
|
397
|
+
return response
|
|
398
|
+
|
|
399
|
+
def get_stock_unusual_activities(self, symbol=None, category=Category.US_STOCK.name, count=None,
|
|
400
|
+
alert_types=None, extended_hours_required=None):
|
|
401
|
+
"""
|
|
402
|
+
Query recent unusual activity alerts for a stock (volume surge, price spike, etc.).
|
|
403
|
+
Returns up to count most recent events within the last 90 calendar days.
|
|
404
|
+
:param symbol: Stock symbol, e.g. NVDA (optional).
|
|
405
|
+
:param category: Market category, default US_STOCK.
|
|
406
|
+
:param count: Number of most recent events, default 10, max 30.
|
|
407
|
+
:param alert_types: Comma-separated alert type filter, None to return all.
|
|
408
|
+
:param extended_hours_required: Whether to include pre-market and after-hours alerts.
|
|
409
|
+
"""
|
|
410
|
+
request = GetStockUnusualActivitiesRequest()
|
|
411
|
+
request.set_symbol(symbol)
|
|
412
|
+
request.set_category(category)
|
|
413
|
+
request.set_count(count)
|
|
414
|
+
request.set_alert_types(alert_types)
|
|
415
|
+
request.set_extended_hours_required(extended_hours_required)
|
|
416
|
+
response = self.client.get_response(request)
|
|
417
|
+
return response
|
|
@@ -38,3 +38,11 @@ class GetCryptoHistoricalBarsRequest(ApiRequest):
|
|
|
38
38
|
def set_real_time_required(self, real_time_required):
|
|
39
39
|
if real_time_required:
|
|
40
40
|
self.add_query_param("real_time_required", real_time_required)
|
|
41
|
+
|
|
42
|
+
def set_start_time(self, start_time):
|
|
43
|
+
if start_time is not None:
|
|
44
|
+
self.add_query_param("start_time", start_time)
|
|
45
|
+
|
|
46
|
+
def set_end_time(self, end_time):
|
|
47
|
+
if end_time is not None:
|
|
48
|
+
self.add_query_param("end_time", end_time)
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetEconomicCalendarRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/economic-calendars/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_region(self, region):
|
|
26
|
+
if region:
|
|
27
|
+
self.add_query_param("region", region)
|
|
28
|
+
|
|
29
|
+
def set_start_date(self, start_date):
|
|
30
|
+
if start_date:
|
|
31
|
+
self.add_query_param("start_date", start_date)
|
|
32
|
+
|
|
33
|
+
def set_end_date(self, end_date):
|
|
34
|
+
if end_date:
|
|
35
|
+
self.add_query_param("end_date", end_date)
|
|
36
|
+
|
|
37
|
+
def set_pagination_key(self, pagination_key):
|
|
38
|
+
if pagination_key:
|
|
39
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -40,4 +40,12 @@ class GetEventBarsRequest(ApiRequest):
|
|
|
40
40
|
|
|
41
41
|
def set_real_time_required(self, real_time_required):
|
|
42
42
|
if real_time_required:
|
|
43
|
-
self.add_query_param("real_time_required", real_time_required)
|
|
43
|
+
self.add_query_param("real_time_required", real_time_required)
|
|
44
|
+
|
|
45
|
+
def set_start_time(self, start_time):
|
|
46
|
+
if start_time is not None:
|
|
47
|
+
self.add_query_param("start_time", start_time)
|
|
48
|
+
|
|
49
|
+
def set_end_time(self, end_time):
|
|
50
|
+
if end_time is not None:
|
|
51
|
+
self.add_query_param("end_time", end_time)
|
|
@@ -33,4 +33,12 @@ class GetFuturesHistoricalBarsRequest(ApiRequest):
|
|
|
33
33
|
|
|
34
34
|
def set_real_time_required(self, real_time_required):
|
|
35
35
|
if real_time_required:
|
|
36
|
-
self.add_query_param("real_time_required", real_time_required)
|
|
36
|
+
self.add_query_param("real_time_required", real_time_required)
|
|
37
|
+
|
|
38
|
+
def set_start_time(self, start_time):
|
|
39
|
+
if start_time is not None:
|
|
40
|
+
self.add_query_param("start_time", start_time)
|
|
41
|
+
|
|
42
|
+
def set_end_time(self, end_time):
|
|
43
|
+
if end_time is not None:
|
|
44
|
+
self.add_query_param("end_time", end_time)
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetInsiderHoldingsRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/insider-holdings/get", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_symbol(self, symbol):
|
|
26
|
+
if symbol:
|
|
27
|
+
self.add_query_param("symbol", symbol)
|
|
28
|
+
|
|
29
|
+
def set_category(self, category):
|
|
30
|
+
if category:
|
|
31
|
+
self.add_query_param("category", category)
|
|
32
|
+
|
|
33
|
+
def set_compare_months(self, compare_months):
|
|
34
|
+
if compare_months:
|
|
35
|
+
self.add_query_param("compare_months", compare_months)
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetInsiderTransactionsRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/insider-transactions/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_symbol(self, symbol):
|
|
26
|
+
if symbol:
|
|
27
|
+
self.add_query_param("symbol", symbol)
|
|
28
|
+
|
|
29
|
+
def set_category(self, category):
|
|
30
|
+
if category:
|
|
31
|
+
self.add_query_param("category", category)
|
|
32
|
+
|
|
33
|
+
def set_side(self, side):
|
|
34
|
+
if side:
|
|
35
|
+
self.add_query_param("side", side)
|
|
36
|
+
|
|
37
|
+
def set_pagination_key(self, pagination_key):
|
|
38
|
+
if pagination_key:
|
|
39
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetInstitutionHoldingChangesRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/institutions/holding-changes/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_cik(self, cik):
|
|
26
|
+
if cik is not None:
|
|
27
|
+
self.add_query_param("cik", cik)
|
|
28
|
+
|
|
29
|
+
def set_position(self, position):
|
|
30
|
+
if position:
|
|
31
|
+
self.add_query_param("position", position)
|
|
32
|
+
|
|
33
|
+
def set_count(self, count):
|
|
34
|
+
if count:
|
|
35
|
+
self.add_query_param("count", count)
|
|
36
|
+
|
|
37
|
+
def set_pagination_key(self, pagination_key):
|
|
38
|
+
if pagination_key:
|
|
39
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetInstitutionHoldingsRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/institutions/holdings/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_cik(self, cik):
|
|
26
|
+
if cik is not None:
|
|
27
|
+
self.add_query_param("cik", cik)
|
|
28
|
+
|
|
29
|
+
def set_pagination_key(self, pagination_key):
|
|
30
|
+
if pagination_key:
|
|
31
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetInstitutionSearchRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/fundamentals/institutions/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_keyword(self, keyword):
|
|
26
|
+
if keyword is not None:
|
|
27
|
+
self.add_query_param("keyword", keyword)
|
|
28
|
+
|
|
29
|
+
def set_pagination_key(self, pagination_key):
|
|
30
|
+
if pagination_key:
|
|
31
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetNewsDetailRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/news/detail/get", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_news_id(self, news_id):
|
|
26
|
+
if news_id is not None:
|
|
27
|
+
self.add_query_param("news_id", news_id)
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetNewsSearchRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/news/search/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_keyword(self, keyword):
|
|
26
|
+
if keyword is not None:
|
|
27
|
+
self.add_query_param("keyword", keyword)
|
|
28
|
+
|
|
29
|
+
def set_start_date(self, start_date):
|
|
30
|
+
if start_date:
|
|
31
|
+
self.add_query_param("start_date", start_date)
|
|
32
|
+
|
|
33
|
+
def set_end_date(self, end_date):
|
|
34
|
+
if end_date:
|
|
35
|
+
self.add_query_param("end_date", end_date)
|
|
36
|
+
|
|
37
|
+
def set_pagination_key(self, pagination_key):
|
|
38
|
+
if pagination_key:
|
|
39
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -71,3 +71,24 @@ class GetOptionBarsRequest(ApiRequest):
|
|
|
71
71
|
"""
|
|
72
72
|
if real_time_required is not None:
|
|
73
73
|
self.add_query_param("real_time_required", real_time_required)
|
|
74
|
+
|
|
75
|
+
def set_start_time(self, start_time):
|
|
76
|
+
"""
|
|
77
|
+
Set the start time of the query range.
|
|
78
|
+
|
|
79
|
+
:param start_time: Start time as a timestamp in milliseconds, used to specify
|
|
80
|
+
the beginning of the time range for bar data. Example: 1711262998500
|
|
81
|
+
"""
|
|
82
|
+
if start_time is not None:
|
|
83
|
+
self.add_query_param("start_time", start_time)
|
|
84
|
+
|
|
85
|
+
def set_end_time(self, end_time):
|
|
86
|
+
"""
|
|
87
|
+
Set the end time of the query range.
|
|
88
|
+
|
|
89
|
+
:param end_time: End time as a timestamp in milliseconds, used to specify the end
|
|
90
|
+
of the time range for bar data. Delayed permission will automatically
|
|
91
|
+
offset the time. Example: 1711349398500
|
|
92
|
+
"""
|
|
93
|
+
if end_time is not None:
|
|
94
|
+
self.add_query_param("end_time", end_time)
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetStockNewsRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/news/stock-news/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_symbol(self, symbol):
|
|
26
|
+
if symbol:
|
|
27
|
+
self.add_query_param("symbol", symbol)
|
|
28
|
+
|
|
29
|
+
def set_category(self, category):
|
|
30
|
+
if category:
|
|
31
|
+
self.add_query_param("category", category)
|
|
32
|
+
|
|
33
|
+
def set_sentiment(self, sentiment):
|
|
34
|
+
if sentiment:
|
|
35
|
+
self.add_query_param("sentiment", sentiment)
|
|
36
|
+
|
|
37
|
+
def set_pagination_key(self, pagination_key):
|
|
38
|
+
if pagination_key:
|
|
39
|
+
self.add_query_param("pagination_key", pagination_key)
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetFearAndGreedIndexRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/screeners/fear-greed-indexes/get", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_category(self, category):
|
|
26
|
+
if category:
|
|
27
|
+
self.add_query_param("category", category)
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
from webull.core.request import ApiRequest
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class GetStockUnusualActivitiesRequest(ApiRequest):
|
|
21
|
+
def __init__(self):
|
|
22
|
+
ApiRequest.__init__(self, "/market-data/screeners/unusual-activities/list", version='v3', method="GET",
|
|
23
|
+
query_params={})
|
|
24
|
+
|
|
25
|
+
def set_symbol(self, symbol):
|
|
26
|
+
if symbol:
|
|
27
|
+
self.add_query_param("symbol", symbol)
|
|
28
|
+
|
|
29
|
+
def set_category(self, category):
|
|
30
|
+
if category:
|
|
31
|
+
self.add_query_param("category", category)
|
|
32
|
+
|
|
33
|
+
def set_count(self, count):
|
|
34
|
+
if count:
|
|
35
|
+
self.add_query_param("count", count)
|
|
36
|
+
|
|
37
|
+
def set_alert_types(self, alert_types):
|
|
38
|
+
if alert_types:
|
|
39
|
+
self.add_query_param("alert_types", alert_types)
|
|
40
|
+
|
|
41
|
+
def set_extended_hours_required(self, extended_hours_required):
|
|
42
|
+
if extended_hours_required:
|
|
43
|
+
self.add_query_param("extended_hours_required", extended_hours_required)
|
webull/trade/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '3.0.
|
|
1
|
+
__version__ = '3.0.4'
|
{webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/RECORD
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
samples/__init__.py,sha256=
|
|
1
|
+
samples/__init__.py,sha256=zL37B2sw3qNZN5JX3JbC-5k0KFwjSViL9oBB2x4vwDY,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
7
|
samples/data/community.py,sha256=rwt_Gm9so3CbwYb5yxleVBIPrEevSQU_g9lpYDYu1tk,2154
|
|
8
|
-
samples/data/data_client.py,sha256=
|
|
9
|
-
samples/data/data_client_event.py,sha256=
|
|
8
|
+
samples/data/data_client.py,sha256=XPWC6cY4fI1ghp2zYYwMEe-cz5-hWUBfXj_0sGNn2PI,16978
|
|
9
|
+
samples/data/data_client_event.py,sha256=ictfPsa6lAvnw2Y3YKAsGuBjWDJ4FNWToLi-wBDLc8A,3437
|
|
10
10
|
samples/data/data_streaming_client.py,sha256=2da21SE_Mneo7zbM_l1rkpdBBbI4avrpnSPMxsZIalw,4085
|
|
11
11
|
samples/data/data_streaming_client_async.py,sha256=o_u1ch8JdbcYnLCvDCCUzO-Z1IG7BUKncu_GB_kCbOs,4443
|
|
12
12
|
samples/data/data_streaming_client_event.py,sha256=688YhVFA53AWkYBq5-PBXMKIBICf626LpgN6ESHaRSA,3075
|
|
@@ -23,8 +23,8 @@ samples/trade/trade_client_v3_event.py,sha256=91HlT04KlK8Q5gUnsB8F5ErCFdJRnpDABK
|
|
|
23
23
|
samples/trade/trade_event_client.py,sha256=ni7OEc4nnz2Hpbh0Kzl6DXB-FuDPc2UGBaLFnCrdFZ4,2824
|
|
24
24
|
samples/watchlist/__init__.py,sha256=rtV5s4_CJgDAT4DGEJa_pNLJU71Wdr5OLz_IQ1EajFQ,567
|
|
25
25
|
samples/watchlist/watchlist_client.py,sha256=lpzJs7SXuSka2KKkJ0u9s83A9iHta5qrjvIdkbfNcwg,3246
|
|
26
|
-
webull/__init__.py,sha256=
|
|
27
|
-
webull/core/__init__.py,sha256=
|
|
26
|
+
webull/__init__.py,sha256=zL37B2sw3qNZN5JX3JbC-5k0KFwjSViL9oBB2x4vwDY,22
|
|
27
|
+
webull/core/__init__.py,sha256=_B-NiPASdF7AkqYN9VrLjNSJd1OejxE_kyDl1TIoqSc,225
|
|
28
28
|
webull/core/client.py,sha256=zxSBiII9KDxc5tHpTerJfV_PKPt8E9e3oTOpiakAtJw,16758
|
|
29
29
|
webull/core/compat.py,sha256=_r6Y_f3vTo_DoxOaCvLjnvOo1KRkD2Z9kXSh8OijEIA,3088
|
|
30
30
|
webull/core/headers.py,sha256=Wj2zev1XYyYsy2b9YKnoK3GqjVsXZO_o2WziMmuVBTw,2061
|
|
@@ -90,8 +90,8 @@ webull/core/utils/common.py,sha256=bb64grSP7PjaAIe8YYKDNzQ4qwgN7-qW0r24idTEqEY,2
|
|
|
90
90
|
webull/core/utils/data.py,sha256=YUyoWY68_2RkKanh3jsDscgGx__FIPh5VNEGXr1Qotc,852
|
|
91
91
|
webull/core/utils/desensitize.py,sha256=186BKVDomhhKnIi_4-1bWJ7P5s01rStjeIwJkTEGoIA,952
|
|
92
92
|
webull/core/utils/validation.py,sha256=WXNBtJSvKfZ4qX40ke1rOMcu8TyYRemKsLog_t_T6tQ,2192
|
|
93
|
-
webull/data/__init__.py,sha256=
|
|
94
|
-
webull/data/data_client.py,sha256=
|
|
93
|
+
webull/data/__init__.py,sha256=xuJbQO_FMmNYjfbb4vCAOjR2u44VhHKNNzh2aKtdrZc,38
|
|
94
|
+
webull/data/data_client.py,sha256=6RLUr7Wsfs8bHaM8EbQBn8Xu8JcuTRap15SGXNSTQ6s,2605
|
|
95
95
|
webull/data/data_streaming_client.py,sha256=kLKjFH4INREkPIjw6efPwnHGHWIDJn42IEsQam0njb8,4623
|
|
96
96
|
webull/data/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
97
97
|
webull/data/common/category.py,sha256=8mtq9J9aiNan1CkwgfqRnggdH0tENyhJBJ2HI3EkUHE,978
|
|
@@ -114,15 +114,16 @@ webull/data/internal/quotes_payload_decoder.py,sha256=xyG2bEeicF_mZLgdMZUTC7CYpZ
|
|
|
114
114
|
webull/data/internal/quotes_topic.py,sha256=kG4RZTjj01U0e54qoOrJHlLrPeBzXekySasm2uoyXVo,1138
|
|
115
115
|
webull/data/quotes/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
116
116
|
webull/data/quotes/community.py,sha256=b6XPgmBc7vpvZ6VvmCz8ueuih6raTSyiTuhDb5CTDME,3816
|
|
117
|
-
webull/data/quotes/crypto_market_data.py,sha256=
|
|
118
|
-
webull/data/quotes/event_market_data.py,sha256=
|
|
119
|
-
webull/data/quotes/fundamentals.py,sha256=
|
|
120
|
-
webull/data/quotes/futures_market_data.py,sha256=
|
|
117
|
+
webull/data/quotes/crypto_market_data.py,sha256=fKFcFxeBwTfSE2IDC5LxTB1WEOTVU1FDN16lfzLgHZk,3518
|
|
118
|
+
webull/data/quotes/event_market_data.py,sha256=oFM8-JxczK1KRAgZIS6U6aXjmjJsunntXup4cgV1YCY,5071
|
|
119
|
+
webull/data/quotes/fundamentals.py,sha256=WQfij821Pj8WGL5Rz-lTGNDzQ9UZtBB49MxS02hMoR8,20252
|
|
120
|
+
webull/data/quotes/futures_market_data.py,sha256=n5AG6UTiAujiQRiaZp3c7SjF3vyFnqeB81y7dfLcP30,6039
|
|
121
121
|
webull/data/quotes/instrument.py,sha256=3WQoZsbeyHMs9o9xV4iFAGWYu2YVuCAC8A7bYMaFtCI,23585
|
|
122
122
|
webull/data/quotes/market_data.py,sha256=BUGKgsIduauxbznNSQduSEslTXkY6zcZRhvnImW7Wxk,14619
|
|
123
123
|
webull/data/quotes/market_streaming_data.py,sha256=khgTGqrPRiKkRVnG5Post5Vpu9lCAP288B_OE20_JM8,3135
|
|
124
|
-
webull/data/quotes/
|
|
125
|
-
webull/data/quotes/
|
|
124
|
+
webull/data/quotes/news.py,sha256=3jZyeUNME1UZDY2bg2RKd1t8XeHEXYOrJWrYr7oNK6o,2943
|
|
125
|
+
webull/data/quotes/option_market_data.py,sha256=TRtsX5YT32UnHdLbVmgNGSfWEJ8711swsPqoU24p6rs,3747
|
|
126
|
+
webull/data/quotes/screener.py,sha256=0bTY9pB5wEdpmzrI-YULv7GMoltn6mkDTuft9NedP3g,20350
|
|
126
127
|
webull/data/quotes/watchlist.py,sha256=RkuPV7OwC6e4NEpeldTUNWEsYAqGQbVqyOHs9edMuhE,6344
|
|
127
128
|
webull/data/quotes/subscribe/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
128
129
|
webull/data/quotes/subscribe/ask_bid_result.py,sha256=o-Wj2-l6aLkp9ENoIJlMRb4WTmVoZYlfy4OQpTQtPak,1737
|
|
@@ -153,14 +154,15 @@ webull/data/request/get_batch_historical_bars_request.py,sha256=J4iQjpWIz0lbeOwH
|
|
|
153
154
|
webull/data/request/get_capital_flow_request.py,sha256=rifObcJ0wd-NI5rSoly5PFR9oJX3bgdVM23vGqVGe0k,1167
|
|
154
155
|
webull/data/request/get_company_profile_request.py,sha256=s1pcq2S78MYKqfiQ2EWwErC84e_qYAtIQw2N_W3tgCA,1257
|
|
155
156
|
webull/data/request/get_corp_action_request.py,sha256=-2zLGZ9gqr5HMWHl3W0WV8LyGBtBYOcSoEHZeAPG4tg,1851
|
|
156
|
-
webull/data/request/get_crypto_historical_bars_request.py,sha256=
|
|
157
|
+
webull/data/request/get_crypto_historical_bars_request.py,sha256=DrNtxG_fjeRh9ZXeI_MdmHulXe5U54cH2f3auDqt_YE,1737
|
|
157
158
|
webull/data/request/get_crypto_instruments_request.py,sha256=nd4VVGq_xtYlw1V0Qi5HumNBlPdRlC3yIdHaF9vVZgg,1645
|
|
158
159
|
webull/data/request/get_crypto_instruments_request_v2.py,sha256=9llgS1yR85cuCs1EzVXOTgdodoOe24CtAvfsiSY0Cdk,1449
|
|
159
160
|
webull/data/request/get_crypto_snapshot_request.py,sha256=zfr2B6rGHAoNfhA-_5khn6rUiMsGhJ9c7uldMWc20Fk,1134
|
|
160
161
|
webull/data/request/get_dividend_calendar_request.py,sha256=KXSghctsPuPue5MXy820Nz3H52dOs6A9owpif6R_HkY,1078
|
|
161
162
|
webull/data/request/get_earnings_calendar_request.py,sha256=m5N5rcdAtDgehBzbAXzrKddQTAL3EAmDLuM5EIwa1S4,1078
|
|
163
|
+
webull/data/request/get_economic_calendar_request.py,sha256=qr0XSR5GbPA9ukDa7Nb1wbTYepONsDDIWMEPggOTr2k,1349
|
|
162
164
|
webull/data/request/get_eod_bars_request.py,sha256=st-IW_JkXuPatT-l3Hh1_ONFDvoWKuBLv7pA_WVG6QA,1234
|
|
163
|
-
webull/data/request/get_event_bars_request.py,sha256=
|
|
165
|
+
webull/data/request/get_event_bars_request.py,sha256=p9t5M9s26K83x-sV0ZYaIB3RHdbUU1zCVvhQxb2bE5E,1776
|
|
164
166
|
webull/data/request/get_event_depth_request.py,sha256=vFas6GgBzKFGOYcaOAic9W6hn_RKyVaxiCDmH1j9H3s,1115
|
|
165
167
|
webull/data/request/get_event_events_request.py,sha256=J_EchA5LPRSgHXZANvETEC7q15GwxOug4pyKe0vXg2U,1273
|
|
166
168
|
webull/data/request/get_event_instrument_request.py,sha256=IIiN87uyj_3kKBqfYjMkniefJux_ruTq-rxA2NiUdaI,1722
|
|
@@ -189,7 +191,7 @@ webull/data/request/get_fund_rating_request.py,sha256=aZnCEXBYNY_jFNytoDvI0xQYpF
|
|
|
189
191
|
webull/data/request/get_fund_splits_request.py,sha256=ugm_afLjo-JAFpQ9WjZqAlW7smSG1PSMN4Zavh81U4E,1064
|
|
190
192
|
webull/data/request/get_futures_depth_request.py,sha256=zve5Or7Bsty7YmFrEcfodTR7oqUfkYIy89a6YAGTF6g,1081
|
|
191
193
|
webull/data/request/get_futures_footprint_request.py,sha256=NpU7xcxAHHY9MKLowpctTeLwlfv9qIxZRN24hSfFVrc,1671
|
|
192
|
-
webull/data/request/get_futures_historical_bars_request.py,sha256=
|
|
194
|
+
webull/data/request/get_futures_historical_bars_request.py,sha256=ATE4k4WSUGTQkXIlV5SBPl6S63XMlvw8RnlUH-n7pt0,1591
|
|
193
195
|
webull/data/request/get_futures_instruments_by_code_request.py,sha256=PE-9ZNI-wqL-LI6NE_8-C4iGkHzrlnvMFDPxbaVo2bU,1319
|
|
194
196
|
webull/data/request/get_futures_instruments_request.py,sha256=PKzM6tjkpsTETqfRCqG1GIGGUhHZfMfmOvwr4tYud58,1331
|
|
195
197
|
webull/data/request/get_futures_product_class.py,sha256=BnxbPQ1qpXIeYQExETIUjab2TWaUsGPEOn5tUHn1nZE,950
|
|
@@ -198,11 +200,18 @@ webull/data/request/get_futures_snapshot_request.py,sha256=CDojkrzpFcHKV3eUEL2l3
|
|
|
198
200
|
webull/data/request/get_futures_tick_request.py,sha256=_xaYfASHnWBA6ETceiCdURrMUGbTM0iA0aX7-Um5F0s,1057
|
|
199
201
|
webull/data/request/get_historical_bars_request.py,sha256=WBQ9tFSgcA92hGTUua7aJ9gBxA3yBz2SJMoXadIaRH4,2488
|
|
200
202
|
webull/data/request/get_industry_comparison_request.py,sha256=KBdma_EAQTJGuyQEa5bmjgZgLjpm-rHPAwbEaVZ_WVA,1191
|
|
203
|
+
webull/data/request/get_insider_holdings_request.py,sha256=0fKi68hMXHKgPsldrRdIFCb7vVTNIQz0_dcxoZT1WqA,1220
|
|
204
|
+
webull/data/request/get_insider_transactions_request.py,sha256=cnBfITXErj23Rt94B4qi7Ih0aUTTFw1OvomJjYENMI0,1324
|
|
205
|
+
webull/data/request/get_institution_holding_changes_request.py,sha256=LhF9CQ7JV7RsyJJEgnB2kG6m1X5qkiNhfFsjamHO-Zo,1340
|
|
206
|
+
webull/data/request/get_institution_holdings_request.py,sha256=ZV6CB4iUazI8l3XhXocjm-RzS4X-ugpCxrdL8Ucvt4s,1112
|
|
207
|
+
webull/data/request/get_institution_search_request.py,sha256=ZMl6LWumFkJYuZLqq4ZoQtptHJgzH2H3c1YvHlLwHEw,1121
|
|
201
208
|
webull/data/request/get_instruments_request.py,sha256=c6bCzralfUAygM4TbGpCh1zVsIBM5Xz-k3txO9gtPhU,1745
|
|
202
209
|
webull/data/request/get_instruments_request_v2.py,sha256=7KB_ZU855zdBuxll0ZVDefWo9pBYViVCVlhE7O9BUC4,1553
|
|
210
|
+
webull/data/request/get_news_detail_request.py,sha256=eV2QfVGm4PX6qiq6tsDYE8rv5yU0FlnjRACKBWEc9ds,954
|
|
211
|
+
webull/data/request/get_news_search_request.py,sha256=8ss5OcuQ6hH_tWFFNn2nU8le_0y6nTSacvrO7sIc-Z0,1340
|
|
203
212
|
webull/data/request/get_noii_bars_request.py,sha256=Jw-FCn1upQPlT-J1BqfkV8UaYTNakN3ojkwhKErd8Zc,1843
|
|
204
213
|
webull/data/request/get_noii_snapshot_request.py,sha256=c-dIhXFfG8fSFc5PmN6Mqavu_wpamHdc-0LmNXfTFYg,2084
|
|
205
|
-
webull/data/request/get_option_bars_request.py,sha256=
|
|
214
|
+
webull/data/request/get_option_bars_request.py,sha256=K8EVibO6TxUMtuVuz2k52CRb2_pDXCpaKVo5STc1Gr0,3390
|
|
206
215
|
webull/data/request/get_option_contracts_request.py,sha256=SOc_d-Y-9ELPEvF6pkCDiTe2e038Z-6QuDGUH6xVrb0,2941
|
|
207
216
|
webull/data/request/get_option_contracts_request_v2.py,sha256=9V1evUzMOP5uVnkgG9cG1vOtFdCt7QeTzujfe5lMCjY,2721
|
|
208
217
|
webull/data/request/get_option_snapshot_request.py,sha256=QH1YlrtpJq-VsrtSJEY3hC_knbVJLYqh_VoKH6qfKUk,1815
|
|
@@ -211,6 +220,7 @@ webull/data/request/get_post_request.py,sha256=IsDWFRJ0ukR-DWQkKjZ3nnHHGvx5JlFr4
|
|
|
211
220
|
webull/data/request/get_quotes_request.py,sha256=r_NkNUycrCgC1YVONN20xoW6ms6eYOTWGMH8SN5thR4,1242
|
|
212
221
|
webull/data/request/get_sec_filings_request.py,sha256=AuDN4XwjuVfom7JDZdl_DGKEjf1OVrQ0nG79656zInk,1061
|
|
213
222
|
webull/data/request/get_snapshot_request.py,sha256=PqDZ-Q_SXpLUU9D20jlEtBsajKHuNtbaqkcLmAqyGj8,1470
|
|
223
|
+
webull/data/request/get_stock_news_request.py,sha256=O46nq0ck3L1YI9Ksbsg9J4o-HgNqBZzc8b8kK75KEpA,1321
|
|
214
224
|
webull/data/request/get_tick_request.py,sha256=Ts45r3dWqrWHtryKh-qQiO0PfSy9CRjh_6eq15A_t8I,1365
|
|
215
225
|
webull/data/request/list_hot_stocks_request.py,sha256=dwJ7oyA6U_NI8xxK5lpxMtghpYAABCCxGl9v3-00ZmQ,916
|
|
216
226
|
webull/data/request/list_my_posts_request.py,sha256=lB_r7uu2XSXhL5UpJbcX52-9jDQcugotvHtF3mD8SFY,1137
|
|
@@ -220,6 +230,7 @@ webull/data/request/unsubscribe_request.py,sha256=3-47QAUf0TdbEr_AylnWF_QGAm7qsC
|
|
|
220
230
|
webull/data/request/screener/__init__.py,sha256=68et0-FOloDo6Yo6vqmHPM45z-8zorzbhrZmUrLApEQ,583
|
|
221
231
|
webull/data/request/screener/get_52whl_request.py,sha256=sceXwytAfHt7YC5VdvzM1VS8PEqY9R-HWnzF_J6lPVo,1627
|
|
222
232
|
webull/data/request/screener/get_52whl_request_v2.py,sha256=kUtq6060hTjbFM9mA0VlFe3SqKuGhZ3Z7-cD7fCwUhI,1442
|
|
233
|
+
webull/data/request/screener/get_fear_and_greed_index_request.py,sha256=Gv-TRMnF3yQTvDFf2xl4Q3K8fuzmpxnZ2lQj9Nhn7Xo,971
|
|
223
234
|
webull/data/request/screener/get_gainers_losers_request.py,sha256=fGytkABUbH0p_LUvCQNf5sw935qdoPexd5aArbXwmRA,3838
|
|
224
235
|
webull/data/request/screener/get_gainers_losers_request_v2.py,sha256=cP0OeoRK0aKfFm3_t2dku9KxbWVGM3IsXasicRcJJLE,3291
|
|
225
236
|
webull/data/request/screener/get_high_dividend_request.py,sha256=JIrjf8EFCbpDSAdpbQ6T3Z4uEEjyjbx3C0xuFo6Mk5o,1529
|
|
@@ -230,6 +241,7 @@ webull/data/request/screener/get_market_sectors_request.py,sha256=sETcJRVdgvjLto
|
|
|
230
241
|
webull/data/request/screener/get_market_sectors_request_v2.py,sha256=HnAAZjW01njLclwaggaSfJLmaUzevBGXQOQwFTqL8jw,1450
|
|
231
242
|
webull/data/request/screener/get_most_active_request.py,sha256=8_Rq73h2339hVqWsLTbfjlWM2XjMcwaf1B7KszLLnjw,3895
|
|
232
243
|
webull/data/request/screener/get_most_active_request_v2.py,sha256=tlBKAqeufobzhOikgGvoRLsRpkwUi5Y4IaRTOcOjCT0,3171
|
|
244
|
+
webull/data/request/screener/get_stock_unusual_activities_request.py,sha256=kTg8ouqNEGW4eHH7bA4T4weT7I61jbAeEvMbLYZ51ec,1502
|
|
233
245
|
webull/data/request/watchlist/__init__.py,sha256=rtV5s4_CJgDAT4DGEJa_pNLJU71Wdr5OLz_IQ1EajFQ,567
|
|
234
246
|
webull/data/request/watchlist/add_watchlist_instruments_request.py,sha256=MpnZ94xUpUGc3cccq8iJauimj5NqquHwKLA8C728Dko,1509
|
|
235
247
|
webull/data/request/watchlist/create_watchlist_request.py,sha256=fPLUU6zBof8N3lqgC6hsjvwxttyWY8a01WRGlLh6dm4,1216
|
|
@@ -239,7 +251,7 @@ webull/data/request/watchlist/get_watchlist_request.py,sha256=AC59m2-5I78ctAcTUh
|
|
|
239
251
|
webull/data/request/watchlist/remove_watchlist_instruments_request.py,sha256=Fr9whov0qTCSINYSi_eDbvIhZmqdm5p7XW-X-eyICwk,1472
|
|
240
252
|
webull/data/request/watchlist/update_watchlist_instruments_request.py,sha256=OYuF3dYQJAZLf0FkB3i9SxwG6Zy9ZUaiBvsu5flKhvA,1514
|
|
241
253
|
webull/data/request/watchlist/update_watchlist_request.py,sha256=vGWnDZoK3bT9NKLJ7TO4rqlDqcOemj0HOuARTeAGnS0,1459
|
|
242
|
-
webull/trade/__init__.py,sha256=
|
|
254
|
+
webull/trade/__init__.py,sha256=zL37B2sw3qNZN5JX3JbC-5k0KFwjSViL9oBB2x4vwDY,22
|
|
243
255
|
webull/trade/trade_client.py,sha256=c2SWGi0ATix5U2ZRWgsx4p4CJKmGy2qPkq1Pn2ndN0s,2279
|
|
244
256
|
webull/trade/trade_events_client.py,sha256=sHoKPKQQ2Ye_c9tt9MYxFeza3T5lLR5VosNro7H1gN4,9748
|
|
245
257
|
webull/trade/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -332,9 +344,9 @@ webull/trade/trade/v2/account_info_v2.py,sha256=TX-BskDxag52Om-RY803mOThZUtN1j2G
|
|
|
332
344
|
webull/trade/trade/v2/order_operation_v2.py,sha256=ZWH-6dp5rvokb5YX5HO2Op-KPLjGR4gpJ06Kc_IUilQ,12816
|
|
333
345
|
webull/trade/trade/v3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
334
346
|
webull/trade/trade/v3/order_operation_v3.py,sha256=0tYdvcUIht4PNxZfAZLB4BlvgW5_kOFMzQhiL9YTJU4,15382
|
|
335
|
-
webull_openapi_python_sdk-3.0.
|
|
336
|
-
webull_openapi_python_sdk-3.0.
|
|
337
|
-
webull_openapi_python_sdk-3.0.
|
|
338
|
-
webull_openapi_python_sdk-3.0.
|
|
339
|
-
webull_openapi_python_sdk-3.0.
|
|
340
|
-
webull_openapi_python_sdk-3.0.
|
|
347
|
+
webull_openapi_python_sdk-3.0.4.dist-info/licenses/LICENSE,sha256=ALOnsLtb1aHxmDJg3-oMi0BO-i-cjfyZaOBfnnavKMc,11359
|
|
348
|
+
webull_openapi_python_sdk-3.0.4.dist-info/licenses/NOTICE,sha256=X5TApte6CPV10b96Cb70IRLusXmiRmK_R-dB-1tQM_I,2018
|
|
349
|
+
webull_openapi_python_sdk-3.0.4.dist-info/METADATA,sha256=47dG9W3Jt54RxoB-mcUADj31lIYTkWydLd8RR4lFatE,1211
|
|
350
|
+
webull_openapi_python_sdk-3.0.4.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
351
|
+
webull_openapi_python_sdk-3.0.4.dist-info/top_level.txt,sha256=h8pEjNDGWS2ZUZ2vYFpUShoMQT0ZRIQaD57QJWD8_aI,15
|
|
352
|
+
webull_openapi_python_sdk-3.0.4.dist-info/RECORD,,
|
{webull_openapi_python_sdk-3.0.3.dist-info → webull_openapi_python_sdk-3.0.4.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|