Commit Graph

57 Commits

Author SHA1 Message Date
c9s
b855267604
bbgo: wrap keyboard removal in defer func 2022-09-14 02:53:32 +08:00
c9s
1d1ec12417
bbgo: fix telegram message error, there must be one message to send 2022-09-14 02:51:07 +08:00
c9s
7b58460d00
bbgo/interact: move strategy filter functions to the bottom 2022-09-11 03:15:11 +08:00
c9s
8961c940b2
bbgo: add two test cases for reflect 2022-09-11 03:13:10 +08:00
c9s
278aa026f2
bbgo/interact: refactor strategy filter functions 2022-09-11 02:55:58 +08:00
c9s
442ca9287d
bbgo: implement position reset 2022-09-11 02:46:58 +08:00
c9s
3be801ab6b
bbgo/interact: add /resetposition command 2022-09-11 02:41:59 +08:00
c9s
c86b29e6dc
all: resolve import cycle 2022-08-23 02:12:26 +08:00
zenix
5e7ea71613 feature: withdraw print config functionality from drift to be a general function 2022-08-18 17:38:27 +09:00
zenix
6a4eec71d6 feature: create simpleinteract and remove command in notification 2022-08-15 21:03:48 +09:00
Yo-An Lin
62aff676da
Revert "feature: add smart cancel to drift" 2022-08-09 16:25:36 +08:00
zenix
45e819ebe7 feature: create simpleinteract and remove command in notification 2022-08-09 13:26:56 +09:00
Andy Cheng
4bc70820c4 positionmodifier: move functions into types.Position 2022-07-29 14:40:54 +08:00
Andy Cheng
9588a6f6bd positionupdater: update command flow 2022-07-29 13:45:33 +08:00
Andy Cheng
2724949678 positionupdater: update avaerage cost 2022-07-29 12:05:39 +08:00
Andy Cheng
32b91b67dd positionupdater: update quote position 2022-07-29 12:00:11 +08:00
Andy Cheng
8c53c7e575 positionupdater: update base position 2022-07-29 11:52:20 +08:00
Andy Cheng
9a086d2855 interact: use instance ID as signature 2022-06-07 10:40:15 +08:00
Andy Cheng
8410b1cc33 interact: update interact test 2022-06-06 17:34:39 +08:00
Andy Cheng
1f79e236ad interact: revert to id = strategy.ID() 2022-06-06 16:20:06 +08:00
Andy Cheng
3d9994706b interact: fix missing make() 2022-06-06 15:36:09 +08:00
Andy Cheng
8c353421d8 interact: Remove status from strategy signature 2022-04-26 21:05:26 +08:00
Andy Cheng
1a13826505 interact: refactor generateStrategyButtonsForm() 2022-04-26 19:11:50 +08:00
Andy Cheng
eb1beb05d1 interact: rename functions to private functions 2022-04-26 18:32:41 +08:00
Andy Cheng
61b6755518 interact: GetStrategySignatures() returns map[string]SingleExchangeStrategy instead of slice of strategy signatures 2022-04-26 18:29:22 +08:00
Andy Cheng
cbf6bf78bc feature: make FilterStrategyByInterface a simple function 2022-04-26 18:29:22 +08:00
Andy Cheng
ecc63f743f feature: split strategy controller interface into several smaller ones 2022-04-26 18:29:21 +08:00
Andy Cheng
64766c48f3 feature: revert position closer and position reader back 2022-04-26 18:29:21 +08:00
Andy Cheng
6228cddbec feature: adapt new strategy controller in interact 2022-04-26 18:29:21 +08:00
c9s
18da434e92 all: use thread-safe GetAccount method to get account 2022-04-23 15:43:11 +08:00
Andy Cheng
3a6f34330b
interact: refactor 2022-03-28 15:16:11 +08:00
Andy Cheng
63e8850cc3
interact: separate strategy filtering and button generation 2022-03-28 12:37:42 +08:00
Andy Cheng
ee6377ab87
interact: fix misuse of cycle() 2022-03-28 11:58:01 +08:00
Andy Cheng
0974b1c7fd
interact: pull out the interaction related code to the caller 2022-03-23 12:05:35 +08:00
Andy Cheng
5eef2a2085
interact: pull out interface filter as a function 2022-03-21 17:49:18 +08:00
Andy Cheng
f4c87e5d75
interact: refactor strategy controller related interfaces 2022-03-21 16:19:55 +08:00
Andy Cheng
fb8b79f38d
interact: rename GetStrategyStatus() to GetStatus() 2022-03-21 16:12:23 +08:00
Andy Cheng
ffd5c646e9
interact: refactor interface func name 2022-03-21 15:08:15 +08:00
Andy Cheng
962645c2c8
interact: Pull out EmergencyStop to a single instance 2022-03-21 15:05:24 +08:00
Andy Cheng
5f7710103d
type: add StrategyStatus type 2022-03-21 15:01:15 +08:00
Andy Cheng
69a02f1664
interact: add EmergencyStop() to StrategyController interface 2022-03-21 11:42:54 +08:00
Andy Cheng
b6aff9674c
strategy: add StrategyController functions to support strategy 2022-03-21 10:20:12 +08:00
Andy Cheng
5de137ced8
interact: add StrategyController interface to control strategies from telegram bot 2022-03-18 18:43:07 +08: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
7b572120a1 interact: use RemoveKeyboard from interact.KeyboardController 2022-01-23 14:13:47 +08:00
c9s
0af5fc0530 interact: add RequireTextInput method to Reply interface 2022-01-23 02:21:26 +08:00
c9s
f5f8f15670 slack: add reply and session struct 2022-01-23 02:21:26 +08:00
c9s
5d54e6fded interact: skip total == 0 balance 2022-01-16 01:06:47 +08:00
c9s
2088234b44 interact: separate telegram user sessions 2022-01-16 00:25:11 +08:00