Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kucoin
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
rongjun
kucoin
Commits
1837a87f
Commit
1837a87f
authored
Oct 10, 2018
by
zihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
尝试多开几个ws
parent
de100fd7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
api_kucoin.js
api_kucoin.js
+4
-4
test_kucoin.js
test_kucoin.js
+2
-2
No files found.
api_kucoin.js
View file @
1837a87f
...
...
@@ -54,12 +54,12 @@ class biboxApi {
console
.
log
(
"fetch ws token error"
);
this
.
subscribeSymbols
(
symbols
,
depth
,
callback
);
}
else
{
//
for(let i=0;i<2;i++){
for
(
let
i
=
0
;
i
<
2
;
i
++
){
const
ip
=
IPs
[
0
];
//
setTimeout(()=>{
setTimeout
(()
=>
{
this
.
_openWs
(
result
,
symbols
,
depth
,
ip
,
callback
);
//
},i*10000);
//
}
},
i
*
10000
);
}
}
});
}
...
...
test_kucoin.js
View file @
1837a87f
...
...
@@ -43,7 +43,7 @@ function testCollector(){
// const strategy3 = new BiboxStrategy3(collector);
// strategy3.run();
}
//
testCollector();
testCollector
();
function
printCurrency
(){
const
currentArray
=
[,
'ETH'
,
'BTC'
,
'LTC'
,
'BCH'
,
'USDT'
,
'USD'
,
'RMB'
,
"RCN"
,
"WINGS"
,
"TRX"
,
"LEND"
,
"CMT"
,
"POWR"
,
"HSR"
,
"GAS"
,
"RDN"
,
"TNT"
,
"OAX"
...
...
@@ -121,7 +121,7 @@ function printCurrency(){
}
})
}
printCurrency
()
//
printCurrency()
function
testOrder
(){
const
order
=
new
Order
();
...
...
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