c9s
54e0e1024c
Merge pull request #1254 from c9s/v1.50
...
merge back v1.50 into main
2023-07-31 20:24:00 +08:00
c9s
4eefe72cb6
service: fix db reflection
2023-07-28 14:41:36 +08:00
c9s
5962742b43
all: integrate google spread sheet service
2023-07-09 13:17:39 +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
f7a5c84768
all: reformat code
2023-05-25 14:01:22 +08:00
c9s
6ea399dc8e
all: rename types.MarginHistory to types.MarginHistoryService
2023-03-26 00:53:43 +08:00
gx578007
a5e35b4711
FIX: add mutex in memory store
2023-03-05 22:20:14 +08:00
gx578007
4deefefe0f
FEATURE: save expiring data to redis
2023-03-03 17:13:54 +08:00
c9s
5765969573
service: add redis namespace support
2023-01-05 19:07:15 +08:00
c9s
1ea72099ed
service: fix margin sync with asset condition
2022-12-22 14:10:35 +08:00
c9s
26e221cf7e
service: fix backtest test for binance restrict
2022-12-03 11:02:36 +08:00
zenix
1eb03c3dba
fix: taker price, matching engine kline emit order and process order, nan in sortino and sharpe
2022-08-29 14:11:02 +09:00
c9s
5d85ceeec4
service/backtest: filter klines that will be closed in the future
2022-08-19 17:55:48 +08:00
c9s
49728622bc
service/backtest: use second instead of milliseconds for filtering
2022-08-19 17:53:45 +08:00
c9s
5e1e0c7661
service/backtest: check and filter kline by its endTime
2022-08-19 17:28:55 +08:00
c9s
0284d090d8
all: move getExchangeAttributes
2022-07-14 17:36:16 +08:00
c9s
0715437cc5
fix lastRecordTime
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-26 13:23:04 +08:00
c9s
9f0e12dc25
service: fix import
2022-06-25 16:46:40 +08:00
c9s
7dd314703c
service: fix trade test
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:30:17 +08:00
c9s
f4bb7bd231
service: drop unused methods
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:11:21 +08:00
c9s
bd991a7080
service: remove unused QueryLast method
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-24 19:08:51 +08:00
c9s
cace7c8f97
sync: add more debug logs
2022-06-24 17:14:30 +08:00
c9s
4f42f90b49
service: update id map when inserting record
2022-06-24 16:49:41 +08:00
c9s
54d0a83eee
use local time instead of UTC
2022-06-24 15:42:30 +08:00
c9s
1587630b7b
service: pull out record to a var
2022-06-24 15:27:51 +08:00
c9s
a78119b9ca
fix time range checking
2022-06-23 17:51:45 +08:00
c9s
4556e501da
batch: fix time range checking
2022-06-23 17:49:28 +08:00
c9s
8c1198de83
service: use created_at field to sort the orders
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-23 01:35:16 +08:00
Yo-An Lin
7398afbde7
Merge pull request #758 from c9s/improve/pnl-cmd
...
improve: add pnl cmd options and fix trade query
2022-06-22 18:38:02 +08:00
c9s
fa7177426f
cmd/pnl: fix trade table query
2022-06-22 18:19:11 +08:00
kettan
a0a96abeec
totp-user: add default user 'bbgo'
...
There's no env in alpine image, causes the program throw error 'No USER or USERNAME' in containers.
* Create and assign env in bbgo image
* Fallback to use the default user 'bbgo' when env or was unassigned
2022-06-22 16:45:23 +08:00
c9s
6e562e2ede
increase batch insert size to 1000 for klines
...
Signed-off-by: c9s <yoanlin93@gmail.com>
2022-06-19 17:41:52 +08:00
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