c9s
45f1a13870
rename Stream field to UserDataStream and add MarketDataStream
2021-05-27 14:45:06 +08:00
c9s
a2bcfc8630
fix bollgrid function call
2021-05-14 15:34:58 +08:00
Larry850806
4b53b3c96a
bollgrid: generate the last order if balance is not enough
2021-05-12 20:45:54 +08:00
Frank Chang
da0ea3d390
fix(bollgrid): skip canceling profit order on graceful exit
...
profit orders shouldn't be canceled on graceful exit unless
properly persisted.
a new strategy parameter `shutdownCancelProfitOrders` is added.
Issue: #220
2021-05-08 15:19:04 +08:00
Larry850806
f1309c46fc
bollgrid: check balance before submit reverse order
2021-05-03 16:18:58 +08:00
Larry850806
453a906a5a
bollgrid: use onStart instead of onConnect
2021-04-15 15:51:23 +08:00
Larry850806
980f1ae3e7
bollgrid: submit buy/sell orders separately
2021-04-15 12:31:18 +08:00
Larry850806
aa950b3dc4
bollgrid: track createdOrders when error occurs
2021-04-15 12:31:18 +08:00
Larry850806
2c41ec28ae
Add validation for bollgrid strategy
2021-04-02 10:32:34 +08:00
c9s
21a4669905
adjust max query limiter and sync before running trader
2021-02-22 16:54:08 +08:00
c9s
f8378957ee
add more checks for bollgrid
...
related to #93
2021-02-13 16:03:31 +08:00
Yo-An Lin
de195b3c17
Merge pull request #130 from Larry850806/fix/bollgrid
2021-02-11 15:38:50 +08:00
Larry850806
ca31179b40
Fix balance calculation
2021-02-11 14:48:13 +08:00
c9s
4b66deec3d
subscribe RepostInterval as well
...
might be related to issue #93
2021-02-10 22:45:23 +08:00
c9s
061312771c
fix float formatting
2021-02-10 22:41:42 +08:00
Larry850806
9f6d9028fa
Use fixedpoint type to calculate the balance
2021-02-10 16:01:11 +08:00
Larry850806
6d399647cf
Remove unused functions
2021-02-10 11:37:37 +08:00
Larry850806
11a176145e
Refactor placeGridOrders into three functions
2021-02-10 11:37:33 +08:00
Larry850806
d22a8e9c63
Improve bollgrid strategy's balance check and quote calculation
2021-02-10 10:11:32 +08:00
c9s
7904c6f4d0
add ID() to Strategy interface
2021-02-03 09:08:05 +08:00
c9s
84b6982033
add order store to exchange session
2021-01-24 14:14:25 +08:00
c9s
d226ec2e01
change field names to lower case so that we can use shorter name for the accessors
2020-12-02 22:21:13 +08:00
c9s
e8b5379202
bollgrid: add warn messages
2020-11-12 17:41:28 +08:00
c9s
2b6547df47
bollgrid: add profit orderbook for bolling grid
2020-11-12 17:38:13 +08:00
c9s
1a6f5b99ae
bollgrid: submit orders on connect
2020-11-12 16:31:09 +08:00
c9s
8cc1c589a1
fix waitgroup counting
2020-11-12 14:59:47 +08:00
c9s
fc9409673f
add graceful shutdown
2020-11-12 14:50:21 +08:00
c9s
af8826a9e4
improve messages
2020-11-12 08:30:57 +08:00
c9s
6740541bcd
improve bollgrid
2020-11-12 08:28:59 +08:00
c9s
0264baa922
refactor and improve bollgrid
2020-11-11 23:18:53 +08:00
c9s
04f6da3cb8
add traditional grid strategy
2020-11-10 19:06:20 +08:00