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
8c9ee6a6
Commit
8c9ee6a6
authored
Sep 21, 2018
by
zihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整最小回归通量的参数
parent
abeae114
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
kucoinCollector.js
kucoinCollector.js
+7
-8
kucoinStrategy3.js
kucoinStrategy3.js
+5
-5
No files found.
kucoinCollector.js
View file @
8c9ee6a6
...
...
@@ -5,11 +5,11 @@ const machine = process.env['MACHINE'];
const
biboxApi
=
require
(
'./api_kucoin'
);
const
zlib
=
require
(
'zlib'
);
const
Strategy3MaxAmountMap
=
{
USDT
:
10
00
,
BTC
:
0.
3
,
ETH
:
2
,
NEO
:
49
,
KCS
:
999
,
USDT
:
3
00
,
BTC
:
0.
05
,
ETH
:
1.5
,
NEO
:
30
,
KCS
:
600
,
}
class
BiboxCollector
extends
BaseCollector
{
...
...
@@ -161,9 +161,8 @@ class BiboxCollector extends BaseCollector{
return
price
;
}
getCurrencyMaxReturnAmount
(
currency
){
return
Strategy3MaxAmountMap
[
currency
];
// const balance = this.getCurrencyBalance(currency);
// return Math.min(Strategy3MaxAmountMap[currency],balance);
const
balance
=
this
.
getCurrencyBalance
(
currency
);
return
Math
.
min
(
Strategy3MaxAmountMap
[
currency
],
balance
);
}
getDepthPrintStr
(
fromCurrency
,
toCurrency
,
depth
=
1
){
return
super
.
getDepthPrintStr
(
fromCurrency
,
toCurrency
,
3
);
...
...
kucoinStrategy3.js
View file @
8c9ee6a6
...
...
@@ -3,11 +3,11 @@ const machine = process.env['MACHINE'];
const
Order
=
require
(
'./order_kucoin'
);
const
constants
=
require
(
'./constants'
);
const
STRATEGY3_RETURN_MIN_AMOUNT_MAP
=
{
USDT
:
60
0
,
BTC
:
0.
1
,
ETH
:
1
,
NEO
:
30
,
KCS
:
60
0
,
USDT
:
2
0
,
BTC
:
0.
002
,
ETH
:
0.03
,
NEO
:
1
,
KCS
:
2
0
,
};
class
BiboxStrategy3
extends
Strategy3
{
...
...
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