Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lbank
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
lbank
Commits
14fed6fe
Commit
14fed6fe
authored
Sep 07, 2018
by
zihan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整可接受最低利差
parent
fdb25f9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
lbankStrategy3.js
lbankStrategy3.js
+5
-3
No files found.
lbankStrategy3.js
View file @
14fed6fe
...
...
@@ -6,7 +6,8 @@ const STRATEGY3_RETURN_MIN_AMOUNT_MAP = {
USDT
:
20
,
BTC
:
0.002
,
ETH
:
0.03
,
BIX
:
15
,
QTUM
:
20
,
BTM
:
20
};
class
BiboxStrategy3
extends
Strategy3
{
...
...
@@ -16,7 +17,6 @@ class BiboxStrategy3 extends Strategy3 {
}
_doTrade
(
baseCurrency1
,
midCurrency
,
baseCurrency2
,
buyPrice
,
sellPrice
,
returnPrice
,
amount
,
returnAmount
,
doSaveOrder
)
{
return
;
//todo remove test stub
const
buySymbol
=
this
.
collector
.
getSymbol
(
baseCurrency1
,
midCurrency
);
const
buyStartTime
=
Date
.
now
();
const
collector
=
this
.
collector
;
...
...
@@ -135,10 +135,12 @@ class BiboxStrategy3 extends Strategy3 {
_needConsiderDepthCount
(){
return
[[
2
,
1
],[
3
,
2
,
1
],[
2
,
1
]];
}
//todo 暂时使用最激进的方式
_giveUpOrder
(){
return
false
;
}
_getMinMargin
(){
return
0.05
;
}
}
const
BiboxCollector
=
require
(
'./lbankCollector'
);
...
...
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