Commit Graph

4363 Commits

Author SHA1 Message Date
c9s
dfe29e07e7
service/margin: fix query ordering 2022-06-01 19:40:29 +08:00
c9s
991d13cb32
cmd/sync: support multiple session names 2022-06-01 19:40:29 +08:00
c9s
1a85e62993
service: integrate margin service into the sync service 2022-06-01 19:40:29 +08:00
c9s
5bb98734fb
batch: set jump if empty field 2022-06-01 19:40:29 +08:00
c9s
484fc62892
batch: set jump if empty field 2022-06-01 19:40:29 +08:00
c9s
118dc07e10
service: fix reflect rows scan 2022-06-01 19:40:29 +08:00
c9s
5a4a2db66f
service: add time function 2022-06-01 19:40:29 +08:00
c9s
5eaa4706f0
binance: set exchange field for margin records 2022-06-01 19:40:29 +08:00
c9s
63ad635f62
cmd: rewrite sync command 2022-06-01 19:40:29 +08:00
c9s
cf19ed6f26
refactor environment sync method 2022-06-01 19:40:29 +08:00
c9s
f4e7f4f6f6
add margin history entry in config 2022-06-01 19:40:29 +08:00
c9s
bdc76e8db6
types: add gid field 2022-06-01 19:40:29 +08:00
c9s
279e4d8682
service: refactor sync task 2022-06-01 12:02:15 +08:00
Andy Cheng
205921ea42 strategy: remove HasTradableBase() 2022-06-01 10:54:13 +08:00
Andy Cheng
cd96c01131 strategy: use Market.IsDustQuantity instead 2022-06-01 10:51:57 +08:00
Andy Cheng
237d1205e8 strategy: check update balance response in calculateQuantity 2022-06-01 10:26:04 +08:00
Andy Cheng
adbea7d4d0 strategy: add comments to supertrend config 2022-05-31 17:48:25 +08:00
Yo-An Lin
a56bec9dc9
Merge pull request #644 from c9s/feature/binance-margin-history
feature: sync binance margin history into db
2022-05-31 17:48:12 +08:00
c9s
f116b7b2d0
service: add margin liqudiation sync task 2022-05-31 17:43:17 +08:00
c9s
bf92e28461
service: implement margin service for syncing margin related data 2022-05-31 17:43:17 +08:00
c9s
7601f08786
compile and update migration package 2022-05-31 17:32:55 +08:00
c9s
79fbad1266
migrations: add margin_liquidations table 2022-05-31 17:31:15 +08:00
Yo-An Lin
d409c41a29
Merge pull request #645 from zenixls2/feature/emv
feature: add emv indicator, fix: sma
2022-05-31 17:20:57 +08:00
c9s
17e575df33
add margin history migrations 2022-05-31 17:16:42 +08:00
Andy Cheng
6285e145a7 strategy: margin side effect 2022-05-31 15:46:55 +08:00
zenix
a2a186cfbb feature: add emv indicator, fix: sma 2022-05-31 16:28:38 +09:00
Andy Cheng
3421423cd6 strategy: update balance for exchanges like FTX 2022-05-31 14:30:37 +08:00
Andy Cheng
a5124c743f strategy: supertrend strategy TP/SL 2022-05-31 12:53:14 +08:00
c9s
c3f2c9eb4a
batch: add margin loan/repay/interest batch query 2022-05-31 01:19:38 +08:00
c9s
e66eb08db4
batch: refactor batch query 2022-05-31 00:59:33 +08:00
c9s
7add014a2b
service: use upper case sql keywords 2022-05-30 18:11:17 +08:00
c9s
f29e8bd6d2
service: use reflect to generate insert sql 2022-05-30 18:08:54 +08:00
c9s
2dc825f654
types: add db tag 2022-05-30 18:08:54 +08:00
c9s
d72b56f51f
binance: refine liquidation history api 2022-05-30 18:08:54 +08:00
Andy Cheng
7c98fca0c2 strategy: supertrend strategy doc 2022-05-30 17:02:20 +08:00
Andy Cheng
d72a4e8e94 strategy: supertrend strategy config example 2022-05-30 16:48:07 +08:00
Andy Cheng
756284378b strategy: supertrend strategy control 2022-05-30 16:35:10 +08:00
Andy Cheng
44469ed3aa strategy: supertrend position control 2022-05-30 16:26:17 +08:00
Andy Cheng
07fe68d740 strategy: Validate() 2022-05-30 16:22:13 +08:00
Andy Cheng
0e1e5369f2 strategy: leverage parameter 2022-05-30 16:07:36 +08:00
Andy Cheng
1d24379c17 strategy: refactor supertrend sconfig 2022-05-30 14:52:51 +08:00
Zenix
8652b4e043
Merge pull request #633 from zenixls2/fix/ewo_entry
Fix/ewo entry, backtest
2022-05-30 15:47:46 +09:00
zenix
e3a8ef4e69 fix: statistics on entry/exit on signal changes, fix position check 2022-05-30 12:45:52 +09:00
austin362667
c904f9f0f7 strategy: add fmaker
fmaker: cleanup
2022-05-29 21:39:11 +08:00
Yo-An Lin
867b148507
Merge pull request #637 from c9s/feature/binance-margin-history
feature: binance margin loan/interest/repay history
2022-05-29 13:13:16 +08:00
c9s
61a53947ee
binance: re-organize convert functions 2022-05-29 12:03:21 +08:00
c9s
11075b0d1a
cmd: add marginInterestsCmd 2022-05-29 12:01:20 +08:00
c9s
4a4699a4bc
cmd: add margin repays cmd 2022-05-29 11:53:36 +08:00
c9s
70f0dccb9f
binance: convert loans and repays to global types 2022-05-29 11:52:25 +08:00
c9s
409ad9b75c
binance: adjust margin history interface 2022-05-29 01:42:08 +08:00