Commit Graph

2754 Commits

Author SHA1 Message Date
Yo-An Lin
fd7ce5307f
Merge pull request #609 from COLDTURNIP/fix/profit_symbol_length
Fix error: Data too long for profits column 'symbol'
2022-05-13 22:28:13 +08:00
zenix
382e6ee0fb fix: error exit on wrong subscription in backtest. NaN issue in stoch indicator. feature: position management in ewo 2022-05-13 22:58:35 +09:00
c9s
eac0117e02
add adjustment orders 2022-05-13 13:01:03 +08:00
Raphanus Lo
e968688e7f fix sqlite column modification 2022-05-13 10:20:47 +08:00
c9s
e950ee9559
add wall strategy 2022-05-12 22:51:39 +08:00
zenix
2bea47003f feature: add InstanceID for report 2022-05-12 20:02:34 +09:00
zenix
71fe6c2d26 feature: SLTP from bookticker. fix: bookTicker typename, depth buffer error message 2022-05-12 19:43:04 +09:00
Raphanus Lo
075028f8fc Fix symbol length in profits
This change fixes "Error 1406: Data too long for column 'symbol' at row 1"
for pair symbol longer than 8 chars.

Fixes #608
2022-05-12 18:24:14 +08:00
なるみ
5d096d39bb use requestgen.BaseAPIClient 2022-05-12 16:41:42 +08:00
なるみ
65606b2c66 add listings request 2022-05-12 01:59:42 +08:00
zenix
668328dd16 fix: message typo 2022-05-11 21:22:22 +08:00
zenix
51e2343299 fix: add more live logs to ewo 2022-05-11 21:22:22 +08:00
zenix
5fa9e930d3 fix: wrong balance, wrong bottom/peak, feature: stdev 2022-05-11 21:22:22 +08:00
Yo-An Lin
88cbafe936
Merge pull request #603 from c9s/feature/backtest-report
feature: backtest report - #2 state recorder
2022-05-11 18:56:26 +08:00
c9s
4e4912ebdc
backtest: update order update time when new trade happen 2022-05-11 15:04:11 +08:00
c9s
323c94149d
add side column to orders.csv 2022-05-11 15:00:09 +08:00
c9s
0ae8c295e2
refactor csv writer 2022-05-11 14:58:52 +08:00
c9s
e947a05cbd
add defer close 2022-05-11 14:37:45 +08:00
c9s
479de002a6
record equity curve 2022-05-11 14:36:18 +08:00
c9s
11d0823782
cmd: refactor back-test command 2022-05-11 13:59:44 +08:00
c9s
6e1f9d6a4e
add backtest exchange to the kline handler function 2022-05-10 19:10:16 +08:00
Zenix
54c946bac0
Merge pull request #599 from zenixls2/feature/cci
feature: add cci indicator
2022-05-10 19:54:54 +09:00
c9s
5f68064ac6
pull out writeJsonFile function 2022-05-10 18:27:23 +08:00
zenix
2bbb36031c fix: index range in float64slice and wrong formula given by investopedia, test: add cci test 2022-05-10 17:15:26 +09:00
c9s
24464fdcb6
define ManifestEntry type 2022-05-10 14:23:11 +08:00
c9s
867047a1a2
backtest: improve manifest struct 2022-05-10 14:21:19 +08:00
c9s
6fbb082d5f
support manifest json encoding in backtest report 2022-05-10 14:05:44 +08:00
c9s
7b17b1a757
integrate state recorder 2022-05-10 13:31:23 +08:00
c9s
185a8279b2
implement state recorder 2022-05-10 12:44:51 +08:00
c9s
2e5b818a75
add balance snapshot type 2022-05-10 01:47:15 +08:00
c9s
54debaf979
remove stock field from report 2022-05-10 01:11:12 +08:00
c9s
2ddff59de6
add report header 2022-05-10 01:10:36 +08:00
c9s
f4991dbbfa
fix time printing 2022-05-10 01:09:40 +08:00
c9s
f6d95a49be
print start time and end time 2022-05-10 01:07:30 +08:00
c9s
5b443f0aeb
add start time and end time to the report struct 2022-05-10 01:06:16 +08:00
c9s
b11c4c7337
turn off UseTickerPrice when in the back-testing environment 2022-05-09 19:42:39 +08:00
c9s
6965baa8dd
cmd: add directory error checking 2022-05-09 19:40:49 +08:00
c9s
bff73a3a80
format backtest report session name 2022-05-09 19:27:02 +08:00
c9s
428e208120
cmd: add backtest --session option to make it backward compatible 2022-05-09 19:14:24 +08:00
c9s
0780dafdc3
add IsBackTesting method for checking environment mode 2022-05-09 18:58:09 +08:00
zenix
2311fbd95c feature: add cci indicator 2022-05-09 19:55:14 +09:00
c9s
234932bc0c
add kline dumper 2022-05-09 18:03:03 +08:00
c9s
6f16f32e16
optimize single exchange back-test 2022-05-09 17:03:01 +08:00
zenix
c81af9ce91 fix: binance futures sync issue 2022-05-09 15:04:51 +09:00
c9s
3af08abef2
ftx: fix ftx api get markets request 2022-05-08 18:36:25 +08:00
Yo-An Lin
278eb937ac
Merge pull request #593 from narumiruna/simplify-request
glassnode: simplify NewAuthenticatedRequest
2022-05-06 22:11:30 +08:00
Andy Cheng
c9ba81fcbb strategy: Update bollmaker to support new strategy controller 2022-05-06 16:52:00 +08:00
Yo-An Lin
c3c35c2240
Merge pull request #575 from c9s/feature/binance-margin-load-api
feature: binance: add get deposit address request
2022-05-06 11:53:50 +08:00
c9s
82c7c024ce
bbgo: add persistence Sync api 2022-05-05 18:18:38 +08:00
c9s
f3691489dd
add state key as the prefix 2022-05-05 18:18:38 +08:00
c9s
6635fd749d
xmaker: migrate xmaker persistence 2022-05-05 15:05:38 +08:00
c9s
10a7928580
extract NewProfitStats method 2022-05-05 14:48:50 +08:00
c9s
c3db85443e
bollmaker: add Deprecated note 2022-05-05 14:47:06 +08:00
c9s
3140b7e2ef
bollmaker: remove unnecessary log 2022-05-05 14:41:11 +08:00
c9s
019e6a2a88
improve legacy state handling and move fnv 2022-05-05 14:39:29 +08:00
c9s
7378c63cb7
cmd: call SaveState and LoadState for normal run 2022-05-05 14:28:42 +08:00
c9s
57c43936d6
ignore service.ErrPersistenceNotExists error 2022-05-05 14:04:44 +08:00
c9s
57a9647401
add more test case and simplify return stmt 2022-05-05 13:16:46 +08:00
c9s
4cf1f0a91a
add func type StructFieldIterator 2022-05-05 13:06:02 +08:00
c9s
30c85d2969
pull out callID method call 2022-05-05 13:05:01 +08:00
c9s
21f81dec29
implement reflect-based persistence restore and load 2022-05-05 12:53:48 +08:00
なるみ
98a35a485f glassnode: use requestgen.BaseAPIClient 2022-05-05 11:05:27 +08:00
c9s
18eab1fbd3
move graceful shutdown to a single file 2022-05-05 09:56:21 +08:00
c9s
58e8da914e
bollmaker: migrating state.position to strategy.position 2022-05-05 09:54:50 +08:00
c9s
3f734e6236
bump version to v1.32.0 2022-05-05 09:04:04 +08:00
なるみ
9c66930537 glassnode: simplify NewAuthenticatedRequest 2022-05-05 01:39:57 +08:00
c9s
f65ecbdbb5
max: add net asset field to max's balance 2022-05-04 21:43:59 +08:00
c9s
2a02c4928c
move balance test 2022-05-04 21:40:16 +08:00
c9s
8ec47a4aaa
add interest field to Asset 2022-05-04 21:38:18 +08:00
c9s
e903bd5f69
add Balance.Add method 2022-05-04 21:33:22 +08:00
c9s
d5b203a925
render borrowed in the attachment 2022-05-04 19:32:29 +08:00
c9s
573f8bb221
use net asset to calculate inUSD 2022-05-04 19:26:26 +08:00
c9s
ef419f75ab
net asset should sub interest 2022-05-04 19:13:55 +08:00
c9s
5dd969fa6f
compile and update migration package 2022-05-04 19:13:55 +08:00
c9s
30c9d251fe
change column to net_asset_in_* to avoid confusion 2022-05-04 19:13:55 +08:00
c9s
5662c5c680
use findUSDMarketPrice to get btc price 2022-05-04 17:56:03 +08:00
c9s
413c5c0479
add comment for the price cal 2022-05-04 17:47:34 +08:00
c9s
08a1819bd3
fix price in usd 2022-05-04 17:45:28 +08:00
c9s
4404098bf9
fix balance map add 2022-05-04 17:39:35 +08:00
c9s
75adb8f3c3
fix usd prices caculation 2022-05-04 17:27:58 +08:00
c9s
36c764efa9
refactor balance, asset and remove price cache check 2022-05-04 17:17:09 +08:00
c9s
f33e8a3de2
calculate netAsset if it's zero 2022-05-04 17:08:42 +08:00
c9s
1844035abb
fix asset calculation 2022-05-04 16:56:31 +08:00
c9s
c4e1cd9480
binanceapi: add GetForceLiquidationRecordRequest api 2022-05-04 16:27:28 +08:00
c9s
2008f179a2
binance: add GetDepositHistoryRequest 2022-05-04 16:27:28 +08:00
c9s
ed8ff89f34
binance: add type alias from github.com/adshao/go-binance/v2 2022-05-04 16:27:28 +08:00
c9s
434434c8d9
binanceapi: add withdraw request 2022-05-04 16:27:28 +08:00
c9s
0fd560d699
binance: add NewGetDepositAddressRequest api 2022-05-04 16:27:28 +08:00
c9s
c3c1666154
binance: add get deposit address request 2022-05-04 16:27:28 +08:00
Yo-An Lin
8cf9218dce
Merge pull request #584 from c9s/add-nav-columns
feature: record nav values into db
2022-05-04 16:25:04 +08:00
c9s
450517d159
bbgo: do not write trade when writing position 2022-05-04 16:21:53 +08:00
c9s
0e417f6f71
xnav: rename assets to allAssets 2022-05-04 16:21:53 +08:00
c9s
0061a5910b
use the same price time 2022-05-04 16:21:53 +08:00
c9s
754d10c3d0
use interval instead of duration 2022-05-04 16:21:53 +08:00
c9s
d78e0c607a
xnav: pass session to the record assets method call 2022-05-04 16:21:53 +08:00
c9s
6ed6f15b75
interact: use debug log instead of info 2022-05-04 16:21:53 +08:00
c9s
40c2de3259
fix: remove zeroed fields 2022-05-04 16:21:53 +08:00
c9s
8a93f0921f
add more margin info columns 2022-05-04 14:40:52 +08:00
c9s
01273f7c4c
compile and update migration package 2022-05-04 14:40:52 +08:00
c9s
5cd7e61006
xnav: support asset recording 2022-05-04 14:23:46 +08:00