c9s
1ad10a9360
all: move trade collector to pkg/core
2023-07-05 15:26:36 +08:00
c9s
ff727ae495
all: use order executor extended interface to mock the risk tests
2023-07-04 22:07:31 +08:00
c9s
0e2f69e837
bbgo: just use else condition
2023-06-30 11:05:03 +08:00
c9s
5c5543d78a
bbgo: when err == nil, should just return the created orders
2023-06-29 21:08:43 +08:00
c9s
a838b4991a
bbgo: refactor order executor with max retries
2023-03-23 12:51:52 +08:00
c9s
07f2de4300
bbgo: print submit order in the message
2023-03-05 17:23:06 +08:00
c9s
a01888dcdd
bbgo: fix logger usage in BatchRetryPlaceOrder
2023-03-05 17:21:29 +08:00
c9s
ae5bd507a8
bbgo: add BBGO_SUBMIT_ORDER_RETRY_TIMEOUT env var for overriding timeout
2023-03-02 17:17:18 +08:00
c9s
f4b012623f
bbgo: add back retry timeout context
2023-03-02 16:58:14 +08:00
c9s
3cb190c2c7
bbgo: apply logger into the order executor
2023-03-02 16:16:14 +08:00
c9s
01ecdc8d6b
fix order submit retry
2023-03-02 15:41:11 +08:00
c9s
39f8557231
bbgo: if the error is context.Canceled, exit the retry loop
2023-03-01 17:42:01 +08:00
c9s
c1cc008ecc
bbgo: add retry limit and exponential backoff to retry order
2023-03-01 15:48:38 +08:00
c9s
18478cf4c8
bbgo: apply backoff to submitOrders
2023-02-24 13:34:08 +08:00
c9s
d89d0cf0ff
bbgo: refactor SubmitOrders method for retry
2023-02-23 23:34:26 +08:00
c9s
ed61f70d74
bbgo: rewrite BatchRetryPlaceOrder to make it retry with err index
2023-02-23 23:17:04 +08:00
c9s
cf1be9fc6f
bbgo: process pending order update for active order book
2023-02-17 19:15:00 +08:00
c9s
e48ae215e5
bbgo: remove Notifiability from the order executor
2022-09-19 09:51:48 +08:00
c9s
59b1e52439
bbgo: remove submitOrder notification
2022-09-19 09:38:57 +08:00
c9s
c484c1f176
reformat code
2022-09-10 13:31:31 +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
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
eacd1f1ae6
all: rewrite notification api
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 12:29:36 +08:00
c9s
47e76a9eb5
pivotshort: refactor and redesign order executor
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-18 12:30:42 +08:00
zenix
7a045a48d4
fix: drift window in factorzoo, order_execution print order, refactor: use defer to mu.Unlock in depth/buffer.go
2022-06-08 12:14:53 +09:00
c9s
dc0cb30b23
fix order submit message format
2022-06-07 20:26:33 +08:00
c9s
625bd0c5e4
fix order executor formatting
2022-06-06 07:23:16 +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
zenix
8648528435
fix go fmt, fix convert.go (the legacy fixedpoint implementation) in all tests
2022-02-15 14:55:19 +09:00
zenix
d9450e823e
fix all the fixedpoint use other than strategy
2022-02-15 12:01:39 +09:00
c9s
e5b4af53e6
all: clean up SubmitOrder fields
2022-01-11 01:36:19 +08:00
c9s
bb34b1002a
improve order execution graceful shutdown
2021-05-14 14:53:26 +08:00
c9s
a49cf531b5
fix cross exchange order executor for the basic risk control
2021-05-12 19:02:09 +08:00
c9s
95d58e9385
adjust hedge quantity according to the hedge account balances
2021-05-10 20:13:23 +08:00
ben
40eadfeaca
add yaml tag for mapping basic risk control order executor.
2021-03-01 13:44:58 +08:00
c9s
ffa001fc29
fix quantity format
2021-02-11 00:21:56 +08:00
c9s
25eab8e95f
adjust log
2020-12-29 18:32:51 +08:00
c9s
9223b2ba47
move FormatOrder to ExchangeSession since it depends on Market
2020-12-21 13:47:40 +08:00
c9s
3eae58322a
add trade update callbacks and order update callbacks to order executor
2020-12-21 13:40:23 +08:00
c9s
4f399ebb9f
fix stop price formating
2020-12-03 09:25:47 +08:00
c9s
f4512f031c
improve cross exchange strategy mounting behavior and add fixedpoint atomic ops
2020-11-17 08:19:22 +08:00
c9s
cd283f2c28
remove unused logger field
2020-11-12 17:30:21 +08:00
c9s
23c19c5968
use fixedpoint for balances
2020-11-10 14:19:33 +08:00
c9s
e7cc79f3cf
replace errors.Errorf with fmt.Errorf
2020-11-09 16:34:35 +08:00
c9s
1e129e4c86
collect error object instead of logging
2020-11-09 15:29:40 +08:00
c9s
8414f406bf
drop the legacy order executor
2020-11-09 15:02:12 +08:00
c9s
4a2a542222
refactor basic risk controller
2020-11-09 14:56:54 +08:00
c9s
8e0b5d11a7
add max grid config and fix max price formatting
2020-10-31 20:38:20 +08:00
c9s
14abe3fb7e
pull out active order book to the types package
2020-10-31 20:38:20 +08:00