Commit Graph

7375 Commits

Author SHA1 Message Date
c9s
c640d5c132
Merge pull request #1228 from c9s/c9s/move-v2-indicator
REFACTOR: move v2 indicators to the indicator/v2 package
2023-07-10 17:44:16 +08:00
c9s
630b0d476d
scmaker: use dot import to use v2 indicator DSL 2023-07-10 17:17:46 +08:00
c9s
5853434aec
all: move v2 indicator to indicator/v2 2023-07-10 17:17:46 +08:00
c9s
967f82e935
Merge pull request #1227 from c9s/c9s/rsicross-strategy
FEATURE: add rsicross strategy
2023-07-10 17:10:15 +08:00
Andy Cheng
22ea3192c1
ref/profitStatsTracker: TradeCollector is move to core pkg 2023-07-10 16:33:27 +08:00
Andy Cheng
3935d5fec7
fix/profitStatsTracker: market is initiated after strategy Subscribe() 2023-07-10 16:32:36 +08:00
Andy Cheng
1289d4c4ca
improve/profitStatsTracker: temporarily remove lines relate to time in profit stats 2023-07-10 16:32:36 +08:00
Andy Cheng
5a8a2e8631
improve/profitStatsTracker: rename ProfitTracker to ProfitStatsTracker 2023-07-10 16:32:35 +08:00
Andy Cheng
e13115737b
improve/profitTracker: subscribe kline in strategy Subscribe() 2023-07-10 16:32:35 +08:00
Andy Cheng
e589a95c97
improve/profitTracker: do not bind in order executor 2023-07-10 16:32:35 +08:00
Andy Cheng
54c5c81266
fix/profitTracker: fix typo in config 2023-07-10 16:32:35 +08:00
Andy Cheng
07104aa68a
feature/profitTracker: fix bugs 2023-07-10 16:32:35 +08:00
Andy Cheng
747f60b0d5
feature/profitTracker: integrate profit report with profit tracker 2023-07-10 16:32:35 +08:00
Andy Cheng
2c054e07e9
feature/profitTracker: use profitTracker in Supertrend strategy 2023-07-10 16:32:35 +08:00
Andy Cheng
a311930215
feature/profitTracker: add AddTrade() 2023-07-10 16:32:35 +08:00
Andy Cheng
aabd7edd7b
feature/profitTracker: prototype 2023-07-10 16:32:35 +08:00
c9s
f71fcdee23
Merge pull request #1225 from c9s/c9s/nested-persistence
FEATURE: support nested persistence
2023-07-10 15:29:24 +08:00
c9s
3293866a6c
common: pull out RiskController 2023-07-10 15:27:36 +08:00
c9s
3b6cff8dc7
strategy: move risk control to common.Strategy 2023-07-10 15:24:07 +08:00
c9s
14664188a0
Merge pull request #1224 from c9s/c9s/google-spreadsheet
FEATURE: add google spreadsheet service support
2023-07-10 11:10:49 +08:00
c9s
12bb22ae87
rsicross: remove unused funcs 2023-07-09 21:24:56 +08:00
c9s
5c88abe72f
add rsicross strategy 2023-07-09 21:23:42 +08:00
c9s
7c2de46273
pkg: rename base -> common 2023-07-09 19:55:36 +08:00
c9s
c9c058e717
base: simplify naming 2023-07-09 16:04:27 +08:00
c9s
62d394d183
all: moving common strategy functionality to strategy/base 2023-07-09 15:48:07 +08:00
c9s
0891859b98
dynamic: support nested persistence 2023-07-09 15:11:09 +08:00
c9s
791ee36839
doc: update config struct to the topics 2023-07-09 13:23:31 +08:00
c9s
5962742b43
all: integrate google spread sheet service 2023-07-09 13:17:39 +08:00
c9s
b47da70909
Merge pull request #1223 from c9s/c9s/google-spreadsheet 2023-07-07 18:35:23 +08:00
c9s
e41d720867
service/google: support reflect conversion 2023-07-07 14:52:25 +08:00
c9s
9bec294aa1
service/google: fix appendCells call 2023-07-07 13:36:31 +08:00
c9s
401625db47
ignore .credentials 2023-07-06 16:35:16 +08:00
c9s
63d6c88594
Merge pull request #1222 from c9s/c9s/fix-xfunding 2023-07-06 16:15:55 +08:00
c9s
d3d2a1c4ec
doc: add google spreadsheet setup process 2023-07-06 16:04:14 +08:00
c9s
70e4d42c45
update go module files 2023-07-06 16:04:14 +08:00
c9s
7e2d5f84fb
add google spreadsheet api integration sample code 2023-07-06 16:04:14 +08:00
c9s
f9eba64816
xfunding: always sync funding fee 2023-07-06 16:02:37 +08:00
c9s
dc16e0c299
xfunding: reset LastFundingFeeTime 2023-07-06 15:58:42 +08:00
c9s
e8922a4c3a
xfunding: support transferIn with zero quantity 2023-07-05 17:18:28 +08:00
c9s
f505dda80f
xfunding: handle reset transfer when starting up 2023-07-05 16:59:10 +08:00
c9s
f6a3be6ff5
xfunding: improve checkAndRestorePositionRisks 2023-07-05 16:48:19 +08:00
c9s
bd347d5aa5
xfunding: log positionRisks 2023-07-05 16:48:19 +08:00
c9s
e4ababd39e
xfunding: fix spot order parameters 2023-07-05 16:48:19 +08:00
c9s
12aad7b292
xfunding: log spot balance 2023-07-05 16:48:19 +08:00
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
e82341b2bd
xfunding: add more transfer logs 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