c9s
|
8a3c89ba91
|
autoborrow: fix marginAsset.Low calculation
|
2023-07-25 00:27:43 +08:00 |
|
c9s
|
4cb9ff569a
|
autoborrow: improve available balance checking
|
2023-07-25 00:16:05 +08:00 |
|
c9s
|
b7c9ef7983
|
types: add NotZero() method to filter non-zero balances
|
2023-07-25 00:11:08 +08:00 |
|
c9s
|
bfb1165304
|
autoborrow: fix debt checking condition
|
2023-07-24 23:01:22 +08:00 |
|
c9s
|
a2a062e95b
|
autoborrow: use debt instead of using b.Borrowed
|
2023-07-24 22:57:02 +08:00 |
|
c9s
|
a5a9512ef1
|
autoborrow: check available
|
2023-07-24 18:23:09 +08:00 |
|
c9s
|
f014213c85
|
autoborrow: log balances
|
2023-07-24 18:13:53 +08:00 |
|
c9s
|
106e98afaa
|
autoborrow: add more logs
|
2023-07-24 18:05:32 +08:00 |
|
c9s
|
93d10eba5a
|
autoborrow: improve logging details
|
2023-07-19 16:58:51 +08:00 |
|
c9s
|
8f62665cfd
|
autoborrow: add another skip log
|
2023-07-18 11:08:34 +08:00 |
|
c9s
|
e6958f44f0
|
autoborrow: fix log message
|
2023-07-18 11:04:43 +08:00 |
|
c9s
|
a0145934ec
|
autoborrow: show min debt ratio in the message
|
2023-07-18 11:04:03 +08:00 |
|
c9s
|
3144b640ee
|
autoborrow: update account after repaying the debts
|
2023-07-18 11:01:21 +08:00 |
|
c9s
|
84ec320601
|
autoborrow: show debt and total for debt ratio
|
2023-07-18 10:54:39 +08:00 |
|
c9s
|
f8051b3f2b
|
autoborrow: fix margin warning format
|
2023-07-14 13:22:42 +08:00 |
|
c9s
|
a9d0242a9d
|
strategy/autoborrow: add margin level alert
|
2023-07-14 13:19:54 +08:00 |
|
c9s
|
d6ade1f2fd
|
autoborrow: use context timeout handling
|
2023-07-12 15:07:51 +08:00 |
|
c9s
|
7781d5c70f
|
autoborrow: few improvements:
- return debt once and update the account
- add alert slack mentions
|
2023-07-12 15:01:15 +08:00 |
|
c9s
|
007f3c9531
|
autoborrow: add margin level check back
|
2023-06-13 23:17:24 +08:00 |
|
c9s
|
6308ef5107
|
autoborrow: repay debt first
|
2023-06-13 14:21:16 +08:00 |
|
c9s
|
5a30bedc77
|
autoborrow: always repay first when it deposits
|
2023-06-13 13:23:10 +08:00 |
|
c9s
|
b55fbd5c96
|
autoborrow: check maxBorrowable
|
2023-06-01 12:27:39 +08:00 |
|
c9s
|
95e1f10934
|
autoborrow: send notify when auto repay is skip
|
2023-06-01 12:18:53 +08:00 |
|
c9s
|
1dfb0cd1a1
|
autoborrow: notify balance delta event
|
2023-06-01 12:13:51 +08:00 |
|
c9s
|
f349f3620c
|
autoborrow: add SlackAttachment support to the binance balance update event
|
2023-06-01 12:13:22 +08:00 |
|
c9s
|
702ce5220b
|
autoborrow: improve debtRatio repay
|
2022-08-25 11:05:31 +08:00 |
|
c9s
|
5a4d71b073
|
strategy/autoborrow: fix reBalanceDebt check
|
2022-08-19 18:56:25 +08:00 |
|
c9s
|
4622f9f34e
|
autoborrow: add more verbose logs
|
2022-08-19 16:10:13 +08:00 |
|
c9s
|
94e2e28edd
|
strategy/autoborrow: add debt re-balancing
|
2022-08-17 16:45:10 +08:00 |
|
c9s
|
549e28079b
|
autoborrow: call Debt() for repay
|
2022-07-26 11:49:04 +08:00 |
|
c9s
|
29fc58cb18
|
autoborrow: fix repay amount
|
2022-07-18 19:14:31 +08:00 |
|
c9s
|
cecb278aa1
|
autoborrow: use info logger for the margin level info
|
2022-07-13 13:34:59 +08:00 |
|
c9s
|
28d9aa6820
|
autoborrow: show margin level when check
|
2022-07-11 16:26:25 +08:00 |
|
c9s
|
3f15df4c0e
|
autoborrow: fix repay balance check
|
2022-07-11 16:22:21 +08:00 |
|
c9s
|
98aaa6ce43
|
autoborrow: fix repay mech
|
2022-07-11 16:20:45 +08:00 |
|
c9s
|
156219456b
|
all: clean up bbgo.Notifiability
|
2022-06-19 13:05:02 +08:00 |
|
c9s
|
eacd1f1ae6
|
all: rewrite notification api
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-19 12:29:36 +08:00 |
|
c9s
|
d7c8b0b127
|
autoborrow: render balance map as SlackAttachment
|
2022-06-02 19:50:39 +08:00 |
|
c9s
|
f87a0ab316
|
autoborrow: add json tags
|
2022-06-02 01:53:22 +08:00 |
|
c9s
|
34e1b642d1
|
autoborrow: add exchange name to the margin action struct
|
2022-06-02 01:51:03 +08:00 |
|
c9s
|
4f842c521a
|
fix log message
|
2022-06-02 01:47:55 +08:00 |
|
c9s
|
78f9c7d569
|
improve autoborrow checks
|
2022-06-02 01:27:04 +08:00 |
|
c9s
|
f29e8bd6d2
|
service: use reflect to generate insert sql
|
2022-05-30 18:08:54 +08:00 |
|
c9s
|
16227cea2f
|
autoborrow: call tryToRepayAnyDebt when margin level is low
|
2022-04-26 15:44:13 +08:00 |
|
c9s
|
b97588f153
|
autoborrow: fix max total borrow condition
|
2022-04-26 15:33:01 +08:00 |
|
c9s
|
069db1d0cb
|
replace margin ratio with margin level
|
2022-04-25 19:15:47 +08:00 |
|
c9s
|
333378a52a
|
autoborrow: change debugf to infof
|
2022-04-25 19:10:22 +08:00 |
|
c9s
|
7b2398ce39
|
autoborrow: use margin level instead of margin ratio
|
2022-04-25 19:05:16 +08:00 |
|
c9s
|
638d839975
|
autoborrow: add more logs and warning color for slack message
|
2022-04-25 18:46:23 +08:00 |
|
c9s
|
a30aac6653
|
autoborrow: add slack notification
|
2022-04-25 18:12:08 +08:00 |
|