longhutianjie
c75a685cc0
bug: fix json tag
2024-09-04 17:58:27 +08:00
c9s
f1828beac8
all: move trade store and order store into pkg/core
2023-07-04 21:42:24 +08:00
c9s
5515f588e3
all: add parameter index to the Last method
2023-05-31 19:35:44 +08:00
c9s
59287b5116
all: support context isolation
2022-10-03 16:01:08 +08:00
c9s
527070d13d
all: rewrite and clean up graceful shutdown api
2022-06-30 15:49:18 +08:00
c9s
156219456b
all: clean up bbgo.Notifiability
2022-06-19 13:05:02 +08:00
c9s
b209d94a9c
rename active order book constructor function
2022-06-06 06:57:25 +08:00
c9s
3786fc64f1
rename LocalActiveOrderBook to just ActiveOrderBook
2022-06-06 05:43:38 +08:00
c9s
13bf5d69a3
use types.Interval instead of string
2022-05-19 10:04:03 +08:00
c9s
18da434e92
all: use thread-safe GetAccount method to get account
2022-04-23 15:43:11 +08:00
zenix
77a88aabe4
feature: add CancelOrders and CancelOrdersTo to executor
2022-03-16 21:38:09 +09:00
c9s
0c09e6b32a
use global timeInForce type
2022-02-18 13:52:13 +08:00
zenix
105b085786
fix bollgrid, emstop, flashcrash, funding, grid, pricealert, pricedrop, rebalance, schedule, swing, xbalance, xgap, xmaker and speedup fixedpoint
2022-02-15 12:01:39 +09:00
c9s
259771b0b0
all: pull out the graceful cancel process to the local active book
2022-01-07 00:10:40 +08:00
c9s
4f16f6b1f8
fix market data stream usage
2021-05-28 03:13:50 +08:00
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