Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zbNode
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ken
zbNode
Commits
b1c58932
Commit
b1c58932
authored
May 12, 2018
by
ken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
试试看
parent
e1fa0b14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
zb.js
zb.js
+1
-1
No files found.
zb.js
View file @
b1c58932
...
@@ -139,7 +139,7 @@ function depthByRest(symbol,callback) {
...
@@ -139,7 +139,7 @@ function depthByRest(symbol,callback) {
const
url
=
`http://api.zb.com/data/v1/depth?market=
${
symbol
}
&size=10`
;
const
url
=
`http://api.zb.com/data/v1/depth?market=
${
symbol
}
&size=10`
;
_request
(
"GET"
,
url
,
(
err
,
data
)
=>
{
_request
(
"GET"
,
url
,
(
err
,
data
)
=>
{
if
(
err
)
{
if
(
err
)
{
console
.
error
(
err
);
console
.
error
(
url
+
"出错"
);
}
else
{
}
else
{
const
key
=
symbol
.
replace
(
'_'
,
''
).
toUpperCase
()
+
'DEPTH@zb'
;
const
key
=
symbol
.
replace
(
'_'
,
''
).
toUpperCase
()
+
'DEPTH@zb'
;
symbol
=
symbol
.
toUpperCase
();
symbol
=
symbol
.
toUpperCase
();
...
...
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