mirror of
https://gitee.com/fasiondog/hikyuu.git
synced 2024-12-02 03:48:19 +08:00
fixed interactive realtime_update
This commit is contained in:
parent
798185ab9d
commit
14a47e46d6
@ -278,7 +278,7 @@ def UpdateOneRealtimeRecord_from_sina(tmpstr):
|
||||
stock = sm[stockstr[0][-8:]]
|
||||
|
||||
record = KRecord()
|
||||
record.date = d
|
||||
record.datetime = d
|
||||
record.open = open
|
||||
record.high = high
|
||||
record.low = low
|
||||
@ -313,7 +313,7 @@ def UpdateOneRealtimeRecord_from_qq(tmpstr):
|
||||
stock = sm[stockstr[0][-8:]]
|
||||
|
||||
record = KRecord()
|
||||
record.date = d
|
||||
record.datetime = d
|
||||
record.open = open
|
||||
record.high = high
|
||||
record.low = low
|
||||
@ -429,7 +429,7 @@ def realtime_update_from_tushare():
|
||||
|
||||
from datetime import date
|
||||
d = date.today()
|
||||
record.date = Datetime(d)
|
||||
record.datetime = Datetime(d)
|
||||
stock.realtime_update(record)
|
||||
|
||||
# 更新指数行情
|
||||
@ -462,7 +462,7 @@ def realtime_update_from_tushare():
|
||||
):
|
||||
from datetime import date
|
||||
d = date.today()
|
||||
record.date = Datetime(d)
|
||||
record.datetime = Datetime(d)
|
||||
stock.realtime_update(record)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user