Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
exchange-binance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangheng
exchange-binance
Commits
7e45bdef
Commit
7e45bdef
authored
May 10, 2023
by
zhangheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:"添加laravel_cache前缀"
parent
b7ca0ed9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
price_taos.py
+2
-2
No files found.
price_taos.py
View file @
7e45bdef
...
@@ -73,13 +73,13 @@ def get_mysql_data():
...
@@ -73,13 +73,13 @@ def get_mysql_data():
"symbol"
:
symbol
,
"symbol"
:
symbol
,
"target"
:
target
,
"target"
:
target
,
}
}
redis_client
.
con
()
.
set
(
"binance:symbols:dict"
,
json
.
dumps
(
symbol_dict
))
redis_client
.
con
()
.
set
(
"
laravel_cache:
binance:symbols:dict"
,
json
.
dumps
(
symbol_dict
))
return
symbol_dict
return
symbol_dict
def
get_redis_symbol
():
def
get_redis_symbol
():
redis_client
=
RedisClientLocal
()
redis_client
=
RedisClientLocal
()
data
=
redis_client
.
con
()
.
get
(
"binance:symbols:dict"
)
data
=
redis_client
.
con
()
.
get
(
"
laravel_cache:
binance:symbols:dict"
)
if
data
:
if
data
:
symbol_dict
=
json
.
loads
(
data
)
symbol_dict
=
json
.
loads
(
data
)
else
:
else
:
...
...
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