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
903ad46c
Commit
903ad46c
authored
Oct 04, 2018
by
zihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整再次下卖单的时间
parent
8bb4ee55
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
kucoinStrategy3.js
kucoinStrategy3.js
+3
-2
No files found.
kucoinStrategy3.js
View file @
903ad46c
...
...
@@ -26,6 +26,7 @@ class BiboxStrategy3 extends Strategy3 {
let
createdSellOrder
=
false
;
let
createdBuyOrder
=
false
;
let
retryTime
=
8
;
const
totalRetryTime
=
retryTime
;
function
sellOrder
()
{
console
.
log
(
"sell@"
+
sellSymbol
+
" amount:"
+
amount
+
" price:"
+
sellPrice
);
...
...
@@ -38,9 +39,9 @@ class BiboxStrategy3 extends Strategy3 {
if
(
retryTime
>
0
&&
!
createdSellOrder
){
console
.
log
(
"提示余额不足,再次尝试"
);
retryTime
--
;
//
setTimeout(()=>{
setTimeout
(()
=>
{
sellOrder
();
// },5
0);
},(
totalRetryTime
-
retryTime
)
*
2
0
);
}
else
if
(
!
createdSellOrder
&&
createdBuyOrder
){
console
.
log
(
"已没有重试次数,但是买单已创建成功,继续重试"
);
setTimeout
(()
=>
{
...
...
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