c9s
|
1dae711d33
|
fix trade collector race condition and infinite iterate
|
2023-07-20 12:45:23 +08:00 |
|
c9s
|
93d10eba5a
|
autoborrow: improve logging details
|
2023-07-19 16:58:51 +08:00 |
|
gx578007
|
bded2edaf2
|
FIX: [grid2] fix upper pin
|
2023-07-18 16:07:55 +08:00 |
|
gx578007
|
d99aa1f013
|
FIX: [grid2] fix upper pin
|
2023-07-18 15:54:23 +08:00 |
|
Andy Cheng
|
e37edb3056
|
Merge pull request #1198 from andycheng123/feature/profit-tracker
FEATURE: add ProfitStatsTracker
|
2023-07-18 11:40:26 +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 |
|
Andy Cheng
|
1773c8d155
|
fix/linregmaker: use float64() to output parameters
|
2023-07-18 11:00:02 +08:00 |
|
Andy Cheng
|
b9734bca0c
|
fix/linregmaker: missing line
|
2023-07-18 10:56:42 +08:00 |
|
c9s
|
84ec320601
|
autoborrow: show debt and total for debt ratio
|
2023-07-18 10:54:39 +08:00 |
|
c9s
|
844bd8be87
|
bitget: add account transfers request
|
2023-07-17 16:38:42 +08:00 |
|
Andy Cheng
|
192d958adc
|
improve/linregmaker: use strconv
|
2023-07-17 12:22:09 +08:00 |
|
Andy Cheng
|
08d8519e67
|
improve/profitStatsTracker: use SMA instead of SMA2
|
2023-07-17 12:10:48 +08:00 |
|
Andy Cheng
|
e5254e6446
|
improve/linregmaker: add profit report
|
2023-07-17 11:45:37 +08:00 |
|
Andy Cheng
|
bc4eae5e39
|
improve/supertrend: Switch of outputting patameters in profit report
|
2023-07-17 11:19:10 +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
|
b9616a0805
|
add TradeCollector.Process() log message
|
2023-07-12 17:16:46 +08:00 |
|
c9s
|
885c58f77e
|
core/tradecollector: reduce critical section
|
2023-07-12 16:47:51 +08:00 |
|
c9s
|
baf431d7b6
|
riskcontrol: log on release position order
|
2023-07-12 16:17:22 +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
|
c54031b0e8
|
Merge pull request #1229 from c9s/c9s/indicator-cci-v2
|
2023-07-11 14:14:17 +08:00 |
|
c9s
|
b1c1caa6af
|
tri: load test data from static file
|
2023-07-11 14:07:07 +08:00 |
|
c9s
|
ce481ba52d
|
rewrite cci indicator in v2 indicator
|
2023-07-11 14:07:07 +08:00 |
|
Andy Cheng
|
e161deba25
|
improve/profitStatsTracker: use SMA v2
|
2023-07-11 11:13:13 +08:00 |
|
Andy Cheng
|
6e54972304
|
improve/profitStatsTracker: use CsvFormatter interface
|
2023-07-11 10:48:29 +08:00 |
|
Andy Cheng
|
1a90cd0322
|
improve/profitStatsTracker: rename InitOld() to InitLegacy()
|
2023-07-11 10:48:29 +08:00 |
|
Andy Cheng
|
928a77cb8b
|
improve/profitStatsTracker: use strconv instead of Sprintf()
|
2023-07-11 10:48:29 +08:00 |
|
Andy Cheng
|
2a80d708af
|
ref/profitStatsTracker: TradeCollector is move to core pkg
|
2023-07-11 10:48:29 +08:00 |
|
Andy Cheng
|
4c1639cf00
|
fix/profitStatsTracker: market is initiated after strategy Subscribe()
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
2ccce12cbf
|
improve/profitStatsTracker: temporarily remove lines relate to time in profit stats
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
ae7ae27d82
|
improve/profitStatsTracker: rename ProfitTracker to ProfitStatsTracker
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
bcbb27de79
|
improve/profitTracker: subscribe kline in strategy Subscribe()
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
80170e0397
|
improve/profitTracker: do not bind in order executor
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
5513330816
|
feature/profitTracker: fix bugs
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
027acfe3b5
|
feature/profitTracker: integrate profit report with profit tracker
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
a197352c6e
|
feature/profitTracker: use profitTracker in Supertrend strategy
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
57cdbb1d77
|
feature/profitTracker: add AddTrade()
|
2023-07-11 10:48:28 +08:00 |
|
Andy Cheng
|
d5e194ca80
|
feature/profitTracker: prototype
|
2023-07-11 10:48:27 +08:00 |
|
c9s
|
ee9a3269b6
|
indicator/v2: add SMA example
|
2023-07-11 10:31:20 +08:00 |
|
c9s
|
66dd5507d1
|
rename SMA2 to just SMA
|
2023-07-11 10:31:20 +08:00 |
|
c9s
|
1da94f55e9
|
Merge pull request #1226 from c9s/c9s/base-strategy
REFACTOR: pull out base strategy struct
|
2023-07-10 17:50:12 +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
|
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
|
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
|
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 |
|
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
|
b59b42c3fa
|
Merge branch 'feature/tri'
|
2023-07-05 16:47:01 +08:00 |
|
c9s
|
631203c89e
|
tri: update symbol file
|
2023-07-05 16:46:43 +08:00 |
|
c9s
|
05a8a7442c
|
Merge pull request #1221 from c9s/feature/tri
FEATURE: add triangular arbitrate strategy as an example
|
2023-07-05 16:24:29 +08:00 |
|
c9s
|
f06e37c44f
|
tri: ignore test in dnum mode
|
2023-07-05 16:02:11 +08:00 |
|
c9s
|
1abb301af1
|
core: add order update trigger channel
|
2023-07-05 15:51:29 +08:00 |
|
c9s
|
e19aa8fa10
|
add tri strategy
|
2023-07-05 15:51:16 +08:00 |
|
c9s
|
b9b89756e2
|
Merge pull request #1220 from c9s/feature/scmaker-with-risk-control
REFACTOR: refactor risk control with the order executor interface and mocks
|
2023-07-05 15:48:38 +08:00 |
|
c9s
|
01096829ae
|
bbgo: drop empty files
|
2023-07-05 15:30:15 +08:00 |
|
c9s
|
fbc49c28ef
|
types: add PriceVolume.Equals method
|
2023-07-05 15:30:08 +08:00 |
|
c9s
|
1ad10a9360
|
all: move trade collector to pkg/core
|
2023-07-05 15:26:36 +08:00 |
|
c9s
|
ff727ae495
|
all: use order executor extended interface to mock the risk tests
|
2023-07-04 22:07:31 +08:00 |
|
c9s
|
f1828beac8
|
all: move trade store and order store into pkg/core
|
2023-07-04 21:42:24 +08:00 |
|
c9s
|
1f98731636
|
riskcontrol: add doc to PositionRiskControl
|
2023-07-04 21:33:40 +08:00 |
|
c9s
|
adbb6d7f93
|
riskcontrol: move parameter order
|
2023-07-04 21:32:34 +08:00 |
|
c9s
|
c8ae36ddfc
|
riskcontrol: move release position order submission into the pos risk control
|
2023-07-04 21:31:47 +08:00 |
|
c9s
|
f6ad784583
|
Merge pull request #1219 from c9s/feature/scmaker-with-risk-control
FEATURE: [scmaker] integrate risk control
|
2023-07-03 17:50:16 +08:00 |
|
c9s
|
0426c18757
|
scmaker: initialize order executor before we setup risk control
|
2023-07-03 17:39:42 +08:00 |
|
c9s
|
808d771748
|
Merge pull request #1218 from c9s/feature/scmaker-liq-skew
FEATURE: [scmaker] add liquiditySkew support
|
2023-07-03 17:23:20 +08:00 |
|
c9s
|
ae3f371551
|
all: refactor risk control and integrate risk control into scmaker
|
2023-07-03 17:09:13 +08:00 |
|
c9s
|
3052dd5add
|
scmaker: add liquiditySkew support
|
2023-07-03 16:22:01 +08:00 |
|
Andy Cheng
|
b877d07f74
|
exit/hhllStop: log hhll detection instead of notify
|
2023-07-03 16:06:04 +08:00 |
|