update,
This commit is contained in:
18
kennethmak226/test/helloworld_1 copy.py
Normal file
18
kennethmak226/test/helloworld_1 copy.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from futu import *
|
||||
from pprint import pprint
|
||||
|
||||
# 创建行情对象
|
||||
quote_ctx = OpenQuoteContext(host='25.10.49.37', port=11111)
|
||||
|
||||
print('start')
|
||||
|
||||
for i in range(0, 40):
|
||||
print(str(i) + ' try')
|
||||
# 获取港股 HK.00700 的快照数据
|
||||
pprint(quote_ctx.get_market_snapshot('HK.00700'))
|
||||
|
||||
|
||||
# 关闭对象,防止连接条数用尽
|
||||
quote_ctx.close()
|
||||
|
||||
print('done')
|
Reference in New Issue
Block a user