Commit Graph

39 Commits

Author SHA1 Message Date
c9s
8180153e9c
bbgo: use margin asset borrowable amount to adjust the quantity 2022-09-19 09:10:59 +08:00
c9s
be40ed7410
bbgo: refactor marginAssetUpdater 2022-09-16 12:19:30 +08:00
c9s
88696bc6d2
bbgo: add more interface implementation for order executor 2022-09-14 15:54:43 +08:00
c9s
8d4eb611f3
bbgo: add more open position doc comments 2022-09-12 23:48:40 +08:00
c9s
776f89b2f2
pivotshort: apply OpenPositionOptions to breakLow 2022-09-12 23:24:37 +08:00
c9s
db94b2690a
bbgo: check base balance only for long position 2022-09-11 17:49:24 +08:00
c9s
7b68e5ee27
bbgo: fix balance lock issue 2022-09-11 17:46:23 +08:00
Yo-An Lin
d45bc9e509
Merge pull request #927 from c9s/refactor/submit-order
refactor: simplify submit order
2022-09-11 02:58:47 +08:00
c9s
9474c2779c
bbgo: call notify when opening new position 2022-09-11 02:36:45 +08:00
c9s
5c18bc4d41
bbgo: notify closing position 2022-09-11 02:33:32 +08:00
c9s
6c22c3799e
bbgo: Add ClosePosition doc comment 2022-09-11 02:01:48 +08:00
Yo-An Lin
e0228f80f4
Merge pull request #926 from c9s/feature/open-position
fix: handle created orders before we retry
2022-09-10 13:37:16 +08:00
c9s
29105eb57f
all: simplify underlying exchange submitOrder method
- Replace SubmitOrders with SubmitOrder
- Accept only one submit order and return one created order
- Add bbgo.BatchPlaceOrders helper method and bbgo.BatchRetryPlaceOrders method
2022-09-09 18:41:06 +08:00
Yo-An Lin
e86df62daf
Merge pull request #925 from c9s/feature/open-position
feature: order executor open position method
2022-09-09 17:58:12 +08:00
c9s
94780b39e6
bbgo: order executor should collect the created orders first before we retry 2022-09-09 17:55:51 +08:00
c9s
5f2254e2cb
bbgo: add description to the open position options 2022-09-09 17:50:21 +08:00
c9s
8dca24e9ee
all: solve cyclic import 2022-09-09 17:40:17 +08:00
c9s
2e95246687
bbgo: add OpenPosition method 2022-09-09 13:57:39 +08:00
zenix
4a878b5596 fix: rename generalorderexecutor.cancel to gracefulcancelorder 2022-09-05 19:32:35 +09:00
zenix
938dc3c497 feature: add serialmarketdatastore, add elliottwave strategy to replace ewoDgtrd, add active cancel on general order executor, add pca 2022-09-05 19:32:35 +09:00
zenix
da28750313 feature: dump parameter to tg, esp series, fix: order tag, position calculation and bp/sp of drift 2022-08-15 21:05:29 +09:00
Andy Cheng
6f2eb1688b generalorderexecutor: retry submit/cancel order once 2022-08-11 13:49:16 +08:00
zenix
d46267aff9 feature: use ma for tp coefficient, rewrite trailing stop for drift, export all window param to yaml 2022-07-28 19:34:12 +09:00
c9s
93593ffa06
bbgo: add close position tag log 2022-07-28 10:27:04 +08:00
zenix
f2d37650a5 fix: drift bias on long entry position condition, make cancel faster 2022-07-26 18:00:05 +09:00
zenix
6a9e00ebd4 fix: update drift strategy 2022-07-26 18:00:05 +09:00
c9s
5bd292d0b2
bbgo: add notify(profit) 2022-07-08 16:43:32 +08:00
c9s
193703a9a0
all: use tradeStats constructor 2022-07-05 11:14:50 +08:00
c9s
b158c44b95
fix profit stats notification 2022-07-01 17:32:40 +08:00
c9s
a4af4776d2
pivotshort: use active orderbook to maintain the resistance orders 2022-07-01 00:57:19 +08:00
c9s
cb1c5634a2
pivotshort: remove redundant notification 2022-06-29 15:14:24 +08:00
c9s
2784408b8b
add submit order tag 2022-06-27 18:17:57 +08:00
c9s
47677e303f
pivotshort: refactor take profit and stop loss methods
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 16:13:58 +08:00
c9s
b6d1b4309b
refactor and update the support strategy 2022-06-19 15:57:59 +08:00
c9s
cb9ce753e2
strategy/bollmaker: refactor and clean up 2022-06-19 13:40:10 +08:00
c9s
88a63df186
all: clean up notifiability usage 2022-06-19 13:01:22 +08:00
c9s
eacd1f1ae6
all: rewrite notification api
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 12:29:36 +08:00
c9s
88e83c944c
pivotshort: clean up log 2022-06-19 11:21:07 +08:00
c9s
6cae9e7449
move GeneralOrderExecutor into bbgo package 2022-06-18 16:31:53 +08:00