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
d5f524b7
Commit
d5f524b7
authored
Jun 05, 2019
by
zihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
参数调整
parent
608c7ce8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
kucoinStrategy3.js
kucoinStrategy3.js
+0
-9
strategy3.js
strategy3.js
+4
-4
No files found.
kucoinStrategy3.js
View file @
d5f524b7
...
...
@@ -143,15 +143,6 @@ class BiboxStrategy3 extends Strategy3 {
_getMinMargin
()
{
return
0.05
;
}
// _giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth) {
// const buyAmount = this._getTotalAmount(baseCurrency1, midCurrency, buyDepth)[0];
// const sellAmount = this._getTotalAmount(midCurrency, baseCurrency2, sellDepth)[0];
// if (parseFloat(buyAmount) > parseFloat(sellAmount)) {
// return true;
// }
// return buyDepth > sellDepth ;
// return super._giveUpOrder(baseCurrency1, midCurrency, baseCurrency2, totalMarginRate, buyDepth, sellDepth);
// }
_logDelay
()
{
return
true
;
}
...
...
strategy3.js
View file @
d5f524b7
...
...
@@ -57,10 +57,10 @@ class Strategy3 {
const
buyDelay
=
endTime
-
this
.
collector
.
getSymbolEventTime
(
buySymbol
);
console
.
log
(
'买入交易对延迟:'
+
buyDelay
+
" 卖出交易对延迟:"
+
sellDelay
);
}
//
if(sellDelay > 5000){
//
console.log('延时过大,放弃该轮交易');
//
return false;
//
}
if
(
sellDelay
>
5000
){
console
.
log
(
'延时过大,放弃该轮交易'
);
return
false
;
}
const
service
=
this
.
service
;
let
savedRecord
=
null
;
const
finishedOrders
=
[];
...
...
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