Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
PyFund
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈涛
PyFund
Commits
0c9e3217
Commit
0c9e3217
authored
Jun 07, 2023
by
杨明橙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改行情数据更新
parent
3b49a589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
price.py
service/price.py
+2
-0
No files found.
service/price.py
View file @
0c9e3217
...
@@ -186,6 +186,7 @@ class CMCPrice:
...
@@ -186,6 +186,7 @@ class CMCPrice:
async
def
start_init_ohlcv
(
self
,
symbol
):
async
def
start_init_ohlcv
(
self
,
symbol
):
await
self
.
init
()
await
self
.
init
()
await
self
.
load_base_coins
()
start_time
=
await
self
.
query_added_date
(
symbol
)
start_time
=
await
self
.
query_added_date
(
symbol
)
logger
.
info
(
f
'[开始初始化] [{symbol}]'
)
logger
.
info
(
f
'[开始初始化] [{symbol}]'
)
await
self
.
start_task
(
symbol
,
start_time
)
await
self
.
start_task
(
symbol
,
start_time
)
...
@@ -193,6 +194,7 @@ class CMCPrice:
...
@@ -193,6 +194,7 @@ class CMCPrice:
async
def
start_update_ohlcv
(
self
,
symbol
=
None
):
async
def
start_update_ohlcv
(
self
,
symbol
=
None
):
await
self
.
init
()
await
self
.
init
()
await
self
.
load_base_coins
()
symbol_list
=
[
symbol
]
if
symbol
else
self
.
base_coins
symbol_list
=
[
symbol
]
if
symbol
else
self
.
base_coins
for
symbol
in
symbol_list
:
for
symbol
in
symbol_list
:
logger
.
info
(
f
'[开始更新] [{symbol}]'
)
logger
.
info
(
f
'[开始更新] [{symbol}]'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment