Commit Graph

26 Commits

Author SHA1 Message Date
kbearXD
8e224739de sync active orders and send metrics of order nums 2024-03-04 20:53:15 +08:00
c9s
e5033c093a
grid2: check order's original status for updating 2023-11-17 17:14:52 +08:00
kbearXD
20dccc05f9
Merge pull request #1396 from c9s/chiahung/grid2/persistence-ttl
FEATURE: add ttl for position/grid2.profit_stats persistence
2023-11-08 13:50:29 +08:00
chiahung
52d4f50c88 remove sync every ticker 2023-11-08 11:15:06 +08:00
chiahung
4a40c8bea2 refactor 2023-11-07 17:00:29 +08:00
chiahung
e6fc006747 recoverC back to size 1 2023-11-07 15:21:48 +08:00
chiahung
df2fd170db return bool to let syncActiveOrderBook really sync or skip 2023-11-07 14:39:29 +08:00
chiahung
c8becbe4f5 bbgo.sync when syncActiveOrders 2023-11-07 10:56:19 +08:00
chiahung
358aef770f FIX: fix skip syncing active order 2023-11-06 17:13:16 +08:00
chiahung
d33240ec83 rename and simplify import 2023-10-30 17:17:36 +08:00
chiahung
671772a767 FIX: retry to get open orders only for 5 times and do not sync orders updated in 3 min 2023-10-30 16:28:34 +08:00
chiahung
ab1bc998f9 FEATURE: prepare query trades funtion for new recover 2023-10-25 13:34:11 +08:00
chiahung
3710c33670 REFACTOR: rename file and variable 2023-10-24 13:03:14 +08:00
chiahung
ccb7308263 fix 2023-10-17 16:13:05 +08:00
chiahung
243b90aaf9 fix nil metrics error 2023-10-17 15:20:28 +08:00
chiahung
c257bc8ccf sleep 100ms to avoid DDOS 2023-10-17 13:51:51 +08:00
chiahung
5ff3828ec1 move to onAuth 2023-10-16 16:02:43 +08:00
chiahung
c5449374cd add test and remove recovered atmoic bool 2023-10-13 16:50:59 +08:00
chiahung
de1a884153 not add non existing open orders into active orderbook if updated in 5 min 2023-10-13 16:50:21 +08:00
chiahung
136c2cd36f add open orders metrics 2023-10-13 16:50:21 +08:00
chiahung
c6d4ebf57b also sync orders already in active orderbook if the open orders are expired 2023-10-13 16:50:21 +08:00
c9s
a39925b912 grid2: invert if 2023-10-13 16:50:21 +08:00
c9s
5f9d020ac8 grid2: improve some logging 2023-10-13 16:50:21 +08:00
c9s
1347c8ef87 grid2: refactor recoverActiveOrdersPeriodically 2023-10-13 16:50:21 +08:00
chiahung
27294ac9b6 FIX: fix some error and use chan to trigger active orders recover when on auth 2023-10-13 16:50:21 +08:00
chiahung
4c9b1e78fe remove checker 2023-10-13 16:50:21 +08:00