Skip to content

Commit f84ef8a

Browse files
author
方佳
committed
Merge branch 'main_260117_merge' into 'main'
feat: Add footprint interface See merge request webull/webull-openapi-python-sdk!14
2 parents c1cb76e + e8a4224 commit f84ef8a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

samples/data/data_client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@
7070
if res.status_code == 200:
7171
print('get_batch_history_bar:', res.json())
7272

73+
res = data_client.market_data.get_tick("AAPL", Category.US_STOCK.name, trading_sessions=trading_sessions)
74+
if res.status_code == 200:
75+
print('get_tick:', res.json())
76+
7377
res = data_client.market_data.get_footprint("AAPL", Category.US_STOCK.name, Timespan.S5.name)
7478
if res.status_code == 200:
7579
print('get_footprint:', res.json())
@@ -90,6 +94,10 @@
9094
if res.status_code == 200:
9195
print('get_futures_tick:', res.json())
9296

97+
res = data_client.futures_market_data.get_futures_snapshot("SILZ5,6BM6", Category.US_FUTURES.name)
98+
if res.status_code == 200:
99+
print('get_futures_snapshot:', res.json())
100+
93101
res = data_client.futures_market_data.get_futures_footprint("SILZ5,6BM6", Category.US_FUTURES.name, Timespan.S5.name)
94102
if res.status_code == 200:
95103
print('get_futures_footprint:', res.json())

0 commit comments

Comments
 (0)