c9s
|
bf0186cf55
|
fix batch buffer size check
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-19 17:36:28 +08:00 |
|
Yo-An Lin
|
24fc5c2baf
|
Merge pull request #736 from zenixls2/feature/lint_fmt_check
fix: gosimple alert
|
2022-06-18 02:48:47 +08:00 |
|
c9s
|
8038b7a1c7
|
service: drop unused queryLast method
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-18 02:28:40 +08:00 |
|
c9s
|
d2d6b84079
|
service: add reward stringer support
Signed-off-by: c9s <yoanlin93@gmail.com>
|
2022-06-18 02:27:38 +08:00 |
|
c9s
|
ee1ba417cd
|
rewrite reward sync
|
2022-06-18 01:42:33 +08:00 |
|
zenix
|
a5ffca7fe8
|
fix: gosimple alert
|
2022-06-17 20:19:51 +09:00 |
|
zenix
|
ba1342cbc3
|
feature: add pre-commit
|
2022-06-17 16:07:00 +09:00 |
|
zenix
|
55fa4cc8f1
|
fix: apply gofmt on all files, add revive action
|
2022-06-17 16:06:59 +09:00 |
|
c9s
|
e117cc4157
|
optimize single symbol query for kline query
|
2022-06-09 15:50:23 +08:00 |
|
c9s
|
f1cce3e123
|
clean up
|
2022-06-08 17:33:52 +08:00 |
|
c9s
|
f3a7428b48
|
add stringer method for deposit struct
|
2022-06-08 17:32:42 +08:00 |
|
c9s
|
6d78b05b41
|
rewrite deposit sync service
|
2022-06-08 15:49:44 +08:00 |
|
c9s
|
e023d0be5b
|
service: rewrite kline sync check
|
2022-06-08 15:10:43 +08:00 |
|
c9s
|
e7dfd4a654
|
fix reflect insert (remove gid field)
|
2022-06-08 12:08:04 +08:00 |
|
c9s
|
46a008bea5
|
move batch insert back
|
2022-06-07 12:28:11 +08:00 |
|
c9s
|
a4807d6594
|
fix tests
|
2022-06-07 01:21:27 +08:00 |
|
c9s
|
53e74b6262
|
fix timezone issue for sqlite and mysql
|
2022-06-07 00:48:13 +08:00 |
|
c9s
|
b32b852303
|
service: fix FindMissingTimeRanges until check
|
2022-06-06 18:15:36 +08:00 |
|
zenix
|
c7eb065995
|
fix: close / rollback queries/transactions on error
|
2022-06-06 18:57:24 +09:00 |
|
c9s
|
022775d0a2
|
service: use batch insert for kline
|
2022-06-06 17:21:31 +08:00 |
|
c9s
|
da6a209fd7
|
service: set PRAGMA for sqlite3
|
2022-06-06 14:53:37 +08:00 |
|
c9s
|
a6d18a87f5
|
fix: batch query exit issue
- remove errC case (this channel is closed earlier)
- add empty data range test case for finding missing time range
|
2022-06-06 13:25:11 +08:00 |
|
c9s
|
e1225d4127
|
add log insert option for sync
|
2022-06-06 12:24:18 +08:00 |
|
c9s
|
74f7e4181a
|
service: improve missing time range log
|
2022-06-06 12:15:06 +08:00 |
|
c9s
|
0a6deed305
|
service: fix QueryExistingDataRange
|
2022-06-06 11:46:18 +08:00 |
|
c9s
|
0f6989af8b
|
service: avoid storing nil pointer to redis
|
2022-06-06 06:32:34 +08:00 |
|
c9s
|
a2cfea8acb
|
service: add stringer to TimeRange
|
2022-06-06 06:27:45 +08:00 |
|
c9s
|
be644bb91f
|
fix s.SyncKLineByInterval call
|
2022-06-06 06:24:25 +08:00 |
|
c9s
|
f65b343ea6
|
service: clean up Verify method signature
|
2022-06-06 06:24:25 +08:00 |
|
c9s
|
41191c4db5
|
service: rewrite backtest verify
|
2022-06-06 06:24:24 +08:00 |
|
c9s
|
4b582830f0
|
remove timepoint map
|
2022-06-05 01:57:40 +08:00 |
|
c9s
|
c20e3fee4b
|
fix persistence unmarshalling issue
|
2022-06-05 01:48:56 +08:00 |
|
c9s
|
39fcf1a51b
|
refactor sync command and add integration tests
|
2022-06-05 01:01:59 +08:00 |
|
c9s
|
425f8674d2
|
service: add kline partial sync
|
2022-06-04 19:15:11 +08:00 |
|
c9s
|
bf4d8d345e
|
service/backtest: implement backfill and time range scanner
|
2022-06-04 11:47:55 +08:00 |
|
c9s
|
9083881442
|
refactor exchange factory and solve the incorrect pkg import dependency from ftx
|
2022-06-04 11:47:55 +08:00 |
|
c9s
|
68d6e9e850
|
service: fix state loading (use correct ID method)
|
2022-06-03 03:10:50 +08:00 |
|
c9s
|
55e9c7ee25
|
add more test on Test_loadPersistenceFields
|
2022-06-03 01:57:39 +08:00 |
|
c9s
|
a7bd9239f2
|
fix: pull out time.now variable
|
2022-06-02 21:27:28 +08:00 |
|
c9s
|
d27fee57ad
|
fix: do not load all trades into memory
|
2022-06-02 20:02:32 +08:00 |
|
c9s
|
a2c7ebe90c
|
drop unused function
|
2022-06-02 17:24:54 +08:00 |
|
c9s
|
16322e19fe
|
service: set kline time to UTC
|
2022-06-02 16:53:17 +08:00 |
|
c9s
|
824951c3d5
|
batch: add remote query profiler
|
2022-06-02 16:52:34 +08:00 |
|
c9s
|
a878f35ca1
|
improve and fix kline sync
|
2022-06-02 16:52:33 +08:00 |
|
c9s
|
5d98674ab5
|
fix withdraw sync and improve withdraw string format
|
2022-06-02 13:56:24 +08:00 |
|
c9s
|
e5ca6504f5
|
binance: add get_withdraw_history_request
|
2022-06-02 11:32:21 +08:00 |
|
c9s
|
165b4fdb20
|
binance: remove loop from the withdraw history api
|
2022-06-02 02:31:46 +08:00 |
|
c9s
|
35ac5e1671
|
service/order: remove unused queryLast method
|
2022-06-02 02:13:42 +08:00 |
|
c9s
|
d6f144069d
|
service: refactor closed order sync method
|
2022-06-02 02:12:38 +08:00 |
|
c9s
|
b070952b32
|
service/sync: rewrite trade sync with syncTask
|
2022-06-01 19:40:30 +08:00 |
|
c9s
|
415450acb7
|
service/sync: add onLoad event support
|
2022-06-01 19:40:29 +08:00 |
|
c9s
|
fb63346732
|
service/reflect: add more debug logs
|
2022-06-01 19:40:29 +08:00 |
|
c9s
|
dfe29e07e7
|
service/margin: fix query ordering
|
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
|
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
|
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 |
|
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
|
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 |
|
zenix
|
e81216e678
|
fix: TP compare direction in ewo, feature: add trade report fro ewo, fix: db lock on insertion in sqlite3
|
2022-05-25 16:11:19 +09:00 |
|
c9s
|
b9f0159537
|
add error handling
|
2022-05-20 18:57:41 +08:00 |
|
c9s
|
11d0823782
|
cmd: refactor back-test command
|
2022-05-11 13:59:44 +08:00 |
|
c9s
|
f3691489dd
|
add state key as the prefix
|
2022-05-05 18:18:38 +08:00 |
|
c9s
|
21f81dec29
|
implement reflect-based persistence restore and load
|
2022-05-05 12:53:48 +08:00 |
|
c9s
|
30c9d251fe
|
change column to net_asset_in_* to avoid confusion
|
2022-05-04 19:13:55 +08:00 |
|
c9s
|
8a93f0921f
|
add more margin info columns
|
2022-05-04 14:40:52 +08:00 |
|
c9s
|
5a00e2fe20
|
add account service test
|
2022-05-03 23:36:44 +08:00 |
|
c9s
|
2c70509ee8
|
add recordAsset method
|
2022-05-03 19:26:52 +08:00 |
|
c9s
|
d93fd3cc48
|
service: insert asset fields
|
2022-05-03 17:51:47 +08:00 |
|
c9s
|
6630d3f56b
|
service: correct QueryLast query
|
2022-04-27 11:42:31 +08:00 |
|
c9s
|
a57a238e09
|
bbgo: add more sync options
|
2022-04-25 17:18:42 +08:00 |
|
c9s
|
3944e0b6c0
|
fix query test
|
2022-03-18 15:00:33 +08:00 |
|
c9s
|
43985499be
|
service: reorder trade query
|
2022-03-18 14:04:01 +08:00 |
|
zenix
|
84dbae1592
|
add readme content about testnet, fix code syntax
|
2022-03-18 14:17:06 +09:00 |
|
zenix
|
9cf835728c
|
fix: don't sync on reward/withdraw/deposit records when using testnet
|
2022-03-18 14:04:56 +09:00 |
|
c9s
|
5be1f1571b
|
fix position test
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
3c376b3cd3
|
add accumulated profit column to position
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
ac675d0099
|
add position table and service
|
2022-03-14 21:21:58 +08:00 |
|
c9s
|
b8ef2eb550
|
fix Test_tradeService
|
2022-03-07 12:12:06 +08:00 |
|
c9s
|
197d750cb4
|
all: update profit struct fields
|
2022-03-05 01:39:53 +08:00 |
|
c9s
|
82e5520ee4
|
service: update profit service tests
|
2022-03-05 00:28:13 +08:00 |
|
c9s
|
a642aa1a5a
|
service: add more columns
|
2022-03-05 00:27:44 +08:00 |
|
c9s
|
09dea3938d
|
implement profit insert
|
2022-03-04 19:24:40 +08:00 |
|
c9s
|
9e0df77a36
|
move profit struct into the types package
|
2022-03-04 16:39:48 +08:00 |
|
zenix
|
05521a98b6
|
add skeleton strategy. fix most of the tests. fix final asset value
|
2022-02-15 12:01:39 +09:00 |
|
zenix
|
b8bf2af14d
|
fixedpoint for exchange and indicators, some fixes in types
|
2022-02-15 12:01:38 +09:00 |
|
c9s
|
106239e808
|
service: fix sync process
|
2022-01-23 15:14:29 +08:00 |
|
austin362667
|
91d2312c5c
|
cache: refactor moving from bbgo to pkg/cache
|
2022-01-15 08:28:02 +08:00 |
|
austin362667
|
f661db56bd
|
service: handle error
|
2022-01-15 08:28:02 +08:00 |
|
austin362667
|
5404bfe7f8
|
binance: fix futures symbol not found from syncSession
binance: fix query trades, closed orders futures symbol not found
binance: fix futures symbol not found
|
2022-01-15 08:28:02 +08:00 |
|
c9s
|
e44a2c1cac
|
service: check redis client and show proper error
|
2022-01-12 12:42:39 +08:00 |
|
c9s
|
3c57ce788e
|
add startTime to the trade sync query
|
2022-01-01 02:51:58 +08:00 |
|
c9s
|
129f44bbcb
|
fix empty start time sync issue
|
2022-01-01 02:43:08 +08:00 |
|
c9s
|
6d5ab33d17
|
kucoin: fix kucoin order query
|
2022-01-01 01:28:29 +08:00 |
|
c9s
|
e05da17f4f
|
sync: skip rejected withdraw record
|
2021-12-31 14:20:36 +08:00 |
|
c9s
|
eba33329d1
|
always sort orders and trades in the batch query
|
2021-12-31 14:12:41 +08:00 |
|