Commit Graph

88 Commits

Author SHA1 Message Date
c9s
a766d88d60
xfunding: fix balance check 2023-07-05 16:48:19 +08:00
c9s
017278826b
xfunding: log failed order 2023-07-05 16:48:19 +08:00
c9s
34d42afbec
xfunding: fix syncSpotPosition cancel order issue 2023-07-05 16:48:18 +08:00
c9s
2813ede7ed
xfunding: fix transferOut, and de-leverage the trade amount from the caller 2023-07-05 16:48:18 +08:00
c9s
5d0bdd19e3
xfunding: always transfer balance out when reducing the futures position 2023-07-05 16:48:18 +08:00
c9s
c818f79932
fix 2023-07-05 16:48:18 +08:00
c9s
84e9b03be7
xfunding: show balance 2023-07-05 16:48:18 +08:00
c9s
7904c73c53
xfunding: use closePosition option when only dust left in the futures position 2023-07-05 16:48:18 +08:00
c9s
d730340b7a
remove diff quantity check 2023-07-05 16:48:18 +08:00
c9s
dc3901cc7f
xfunding: add more notificiation 2023-06-16 13:03:37 +08:00
c9s
4b9e3f2302
xfunding: send positions to slack when start up 2023-03-30 00:46:41 +08:00
c9s
69af9e03ea
xfunding: fix funding fee notification 2023-03-30 00:13:02 +08:00
c9s
7c975da575
xfunding: fix position sync bug 2023-03-29 23:05:31 +08:00
c9s
0efb56c43e
xfunding: also reset the quote balance transfer 2023-03-29 22:55:40 +08:00
c9s
7e2688b8c7
xfunding: cancel open orders before closing the futures position 2023-03-29 22:54:54 +08:00
c9s
0c9e0649c6
xfunding: use b.MaxWithdrawAmount instead of b.Available 2023-03-29 22:49:34 +08:00
c9s
d0566e23ec
xfunding: log submit failed orders 2023-03-29 21:46:15 +08:00
c9s
117b5198ec
xfunding: introduce resetTransfer method to reset the futures transfer 2023-03-29 21:43:36 +08:00
c9s
a2fdc99741
xfunding: notify position ready 2023-03-29 21:40:18 +08:00
c9s
bc6ee59add
xfunding: refactor transferOut with trade quantity 2023-03-29 21:40:18 +08:00
c9s
088a36a169
xfunding: refactor transferIn 2023-03-29 21:40:18 +08:00
c9s
ce0b73b6e4
xfunding: calculate max minQuantity from spot market and future market 2023-03-29 21:40:18 +08:00
c9s
16cb68ac3e
xfunding: change dust quantity info log to warn log 2023-03-29 21:40:18 +08:00
c9s
0f88309d9e
xfunding: add notifications 2023-03-29 21:40:18 +08:00
c9s
eeda500a90
xfunding: pull out handleAccountUpdate handler 2023-03-29 21:40:17 +08:00
c9s
1e7afbc0c8
xfunding: fix position ready set call 2023-03-29 21:40:16 +08:00
c9s
c437837210
xfunding: improve checkAndRestorePositionRisks 2023-03-29 21:36:29 +08:00
c9s
8257c4ffbe
xfunding: fix ClosePosition call for futures 2023-03-29 18:28:25 +08:00
c9s
38778ff756
bbgo: fix order executor ClosePosition for order executor 2023-03-29 17:46:54 +08:00
c9s
38ba567558
xfunding: fix and call FuturesChangeInitialLeverageRequest 2023-03-29 17:14:29 +08:00
c9s
18d8d63b02
binance: add and fix multi assets mode 2023-03-29 16:59:15 +08:00
c9s
88514e8bd9
xfunding: call syncFundingFeeRecords to sync funding fee records 2023-03-26 15:04:12 +08:00
c9s
4d1f691300
xfunding: add syncFundingFeeRecords method 2023-03-26 14:54:27 +08:00
c9s
a3f96871e2
xfunding: pull out newState constructor 2023-03-26 14:44:18 +08:00
c9s
36836c7c79
xfunding: add funding fee time 2023-03-26 14:42:13 +08:00
c9s
e5d2db0f72
xfunding: customize netural position profit 2023-03-26 02:32:21 +08:00
c9s
f4a35132e8
xfunding: add trades to s.NeutralPosition 2023-03-26 02:16:23 +08:00
c9s
ac33b5a878
xfunding: check duplicated funding fee txn 2023-03-26 02:13:22 +08:00
c9s
a6b47fda72
xfunding: check funding fee and record txn id 2023-03-26 02:12:00 +08:00
c9s
ff35fd06c4
xfunding: pull out interval option 2023-03-26 02:09:21 +08:00
c9s
425952d76c
xfunding: log collected funding fee 2023-03-26 01:55:33 +08:00
c9s
ba0dd68be0
xfunding: callcate funding fee 2023-03-26 01:54:39 +08:00
c9s
f127a530b7
xfunding: bind profit stats 2023-03-26 01:33:52 +08:00
c9s
78c73e4514
bbgo: check e.disableNotify for profit stats 2023-03-26 01:32:47 +08:00
c9s
e41df7e321
xfunding: add wip list 2023-03-26 01:21:20 +08:00
c9s
22d339cb41
xfunding: check binance type and return error 2023-03-26 01:16:54 +08:00
c9s
23746678b4
xfunding: initialize NeutralPosition 2023-03-26 01:07:50 +08:00
c9s
5c21445b15
xfunding: comment unused code 2023-03-26 01:03:07 +08:00
c9s
c176e2df5f
xfunding: move moving average config out 2023-03-26 01:02:31 +08:00
c9s
0c6e9496b3
xfunding: use early return 2023-03-25 02:56:45 +08:00