Skip to content

Commit

Permalink
Merge pull request vnpy#3318 from noranhe/dev
Browse files Browse the repository at this point in the history
[Add] tickoverview
  • Loading branch information
vnpy committed Jul 15, 2022
2 parents b5f97d9 + d4c8258 commit be4a7f8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data_manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Interactive Brokers盈透证券(IB)提供丰富的外盘市场历史数据

## 更新数据

在用户**配置了数据服务**或者**交易接口(已连接)提供充足的历史数据**的情况下,点击右上角的【更新数据】按钮,即可基于数据库中已有的合约数据,执行一键自动下载更新。
在用户**配置了数据服务**或者**交易接口(已连接)提供充足的历史数据**的情况下,点击右上角的【更新数据】按钮,即可基于图形界面上显示的所有合约数据,执行一键自动下载更新。

更新前图形界面显示如下图:

Expand Down
14 changes: 14 additions & 0 deletions vnpy/trader/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ class BarOverview:
end: datetime = None


@dataclass
class TickOverview:
"""
Overview of tick data stored in database.
"""

symbol: str = ""
exchange: Exchange = None
interval: Interval = Interval.TICK
count: int = 0
start: datetime = None
end: datetime = None


class BaseDatabase(ABC):
"""
Abstract database class for connecting to different database.
Expand Down

0 comments on commit be4a7f8

Please sign in to comment.