Skip to content

Commit

Permalink
[Mod] 更新版本号到1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
vnpy committed Apr 23, 2022
1 parent 4ee589d commit ea05566
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -0,0 +1,5 @@
# 1.0.2版本

1. 支持pymongo 4.0版本新增的批量写入功能,提高数据保存速度
2. 完善函数和变量的类型声明
3. 修复由于时间戳的时区信息缺失,导致的数据加载范围偏差问题
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -5,7 +5,7 @@
</p>

<p align="center">
<img src ="https://img.shields.io/badge/version-1.0.1-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/version-1.0.2-blueviolet.svg"/>
<img src ="https://img.shields.io/badge/platform-windows|linux|macos-yellow.svg"/>
<img src ="https://img.shields.io/badge/python-3.7|3.8|3.9|3.10-blue.svg" />
</p>
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = vnpy_mongodb
version = 1.0.1
version = 1.0.2
url = https://www.vnpy.com
license = MIT
author = Xiaoyou Chen
Expand Down
6 changes: 3 additions & 3 deletions vnpy_mongodb/mongodb_database.py
Expand Up @@ -190,11 +190,11 @@ def save_tick_data(self, ticks: List[TickData]) -> bool:
"ask_volume_5": tick.ask_volume_5,
"localtime": tick.localtime,
}

requests.append(ReplaceOne(filter, d, upsert=True))

self.tick_collection.bulk_write(requests, ordered=False)

return True

def load_bar_data(
Expand Down

0 comments on commit ea05566

Please sign in to comment.