c9s
|
eaad414706
|
adjust max api call rate limiting
|
2021-02-22 15:01:05 +08:00 |
|
c9s
|
724dad70bb
|
remove trade sync from environ init
|
2021-02-22 14:14:39 +08:00 |
|
c9s
|
84775652fe
|
remove defer wrapper func
|
2021-02-22 13:49:26 +08:00 |
|
c9s
|
cdb7ce84c8
|
apply rate limit
|
2021-02-22 13:36:39 +08:00 |
|
c9s
|
63ebbc0e73
|
fix frontend sync status checking
|
2021-02-21 19:36:03 +08:00 |
|
c9s
|
f2978fa89c
|
pull out ping interval parameter
|
2021-02-21 18:58:25 +08:00 |
|
c9s
|
3629a1f5a2
|
pre-save syncing var for return
|
2021-02-21 18:54:48 +08:00 |
|
c9s
|
9ea1a22b3f
|
wrap errors
|
2021-02-21 17:48:03 +08:00 |
|
c9s
|
a8516edb98
|
add Get method to the persistence service facade
|
2021-02-21 16:55:45 +08:00 |
|
c9s
|
21b092037e
|
refactor notification configuration
|
2021-02-21 16:52:47 +08:00 |
|
c9s
|
fa4e813729
|
resolve cyclic imports
|
2021-02-21 01:01:39 +08:00 |
|
c9s
|
6845db6dd3
|
refactor database configure method
|
2021-02-21 00:58:34 +08:00 |
|
c9s
|
1763fb8904
|
improve the warning message
|
2021-02-21 00:48:26 +08:00 |
|
c9s
|
12ed5a1efe
|
move persistence service into the service package
|
2021-02-21 00:45:56 +08:00 |
|
c9s
|
b7a3f2ee03
|
refactor telegram initialization
|
2021-02-20 12:33:43 +08:00 |
|
c9s
|
be00aae81e
|
move trade configuration to the trader struct method
|
2021-02-20 12:23:31 +08:00 |
|
c9s
|
c72b7b2dfa
|
add sync api for syncing trades in the background
|
2021-02-20 11:56:39 +08:00 |
|
c9s
|
7684099f01
|
add /api/environment/syncing api
|
2021-02-20 11:54:48 +08:00 |
|
c9s
|
4ce6e85624
|
add sync status to the environment
|
2021-02-20 11:29:33 +08:00 |
|
c9s
|
ff5233ba3e
|
support: use Notfiy
|
2021-02-20 10:51:01 +08:00 |
|
c9s
|
dd13b9a8bf
|
remove start time query condition for trade sync since starting from trade id = 1 works
|
2021-02-19 14:18:50 +08:00 |
|
c9s
|
44fa74a4c9
|
refactor session sync
|
2021-02-19 10:42:24 +08:00 |
|
c9s
|
390c9b1a4b
|
move Sync method into the sync service
|
2021-02-19 10:26:13 +08:00 |
|
c9s
|
eaa8c647b5
|
refactor session sync
|
2021-02-18 22:40:46 +08:00 |
|
c9s
|
90069a8589
|
improve sync command to find possible trading symbols automatically
|
2021-02-18 22:07:54 +08:00 |
|
c9s
|
65ff2894c5
|
binance: calculate quote quantity manually if it's not defined
|
2021-02-18 18:24:00 +08:00 |
|
c9s
|
3a89b0a714
|
improve trade sync
|
2021-02-18 18:20:18 +08:00 |
|
c9s
|
654ad62f36
|
remove type assert
|
2021-02-18 17:42:14 +08:00 |
|
c9s
|
0ba595bd55
|
Fix trade sync for self trades
MAX uses one single trade for presenting self trade.
BINANCE uses two trade records for presenting self trade. the trade
creation time are the same.
|
2021-02-18 17:37:49 +08:00 |
|
c9s
|
c3dbb1b204
|
avoid using last trade id for syncing data
|
2021-02-18 16:40:47 +08:00 |
|
c9s
|
29bbd03836
|
add binance single ticker query method and fix quantity formating
|
2021-02-18 16:17:40 +08:00 |
|
c9s
|
b9564690b5
|
fix go migration loader
|
2021-02-17 19:06:55 +08:00 |
|
c9s
|
b2bcd3528c
|
use sqlx for testing connection
|
2021-02-17 17:35:54 +08:00 |
|
c9s
|
88f7f0f61c
|
compile and update migration package
|
2021-02-17 17:35:11 +08:00 |
|
c9s
|
ea27a291db
|
compile and update migration package
|
2021-02-17 17:28:05 +08:00 |
|
c9s
|
a1cb3859c3
|
fix db driver setup
|
2021-02-17 14:57:29 +08:00 |
|
c9s
|
e372a53835
|
refactor transfer history command
|
2021-02-17 14:43:50 +08:00 |
|
c9s
|
49f4039a23
|
add timestamp parameter
|
2021-02-16 17:11:15 +08:00 |
|
c9s
|
9a7437de53
|
set default limit to 1000
|
2021-02-16 17:10:58 +08:00 |
|
c9s
|
5f759780c3
|
remove unused since flag
|
2021-02-16 17:10:48 +08:00 |
|
c9s
|
3867fdde91
|
add stringer interface to Position
|
2021-02-16 16:40:11 +08:00 |
|
c9s
|
bc3754d989
|
check if limit is set
|
2021-02-16 16:39:56 +08:00 |
|
c9s
|
02512805f8
|
set default query trade limit to 1000 for max
|
2021-02-16 16:32:48 +08:00 |
|
c9s
|
e3d3eacb78
|
fix trade service injection
|
2021-02-16 16:30:01 +08:00 |
|
c9s
|
8ae4cab550
|
inject TradeService field if we found it
|
2021-02-16 16:14:49 +08:00 |
|
c9s
|
c75eb6b5ba
|
pull out Persistence injection to the common injection
|
2021-02-16 16:13:52 +08:00 |
|
c9s
|
5c1630f000
|
refactor strategy executor
|
2021-02-16 16:12:00 +08:00 |
|
c9s
|
bf0ba89aee
|
convert StrategyID field to NullString
|
2021-02-16 16:00:14 +08:00 |
|
c9s
|
fc4419b49b
|
refactor injection
|
2021-02-16 15:58:21 +08:00 |
|
c9s
|
1c2646b0af
|
add Test_injectField
|
2021-02-16 15:49:57 +08:00 |
|
c9s
|
67a3c49081
|
add more trade service tests
|
2021-02-16 15:34:01 +08:00 |
|
c9s
|
ebe065332c
|
allocate sqlx db from rockhopper db
|
2021-02-15 21:07:55 +08:00 |
|
c9s
|
c219dc7be0
|
add test code for testing migration scripts
|
2021-02-15 21:04:44 +08:00 |
|
c9s
|
3d47b3f34d
|
update trade fields for pnl and strategy id
|
2021-02-15 20:55:14 +08:00 |
|
c9s
|
786f37e675
|
add MarkStrategyID for marking trade with the source strategy
|
2021-02-15 20:53:19 +08:00 |
|
c9s
|
f3d65b1281
|
add UpdatePnL method for updating trade pnl field
|
2021-02-15 20:51:34 +08:00 |
|
c9s
|
8224447985
|
fix build tags
|
2021-02-15 16:21:47 +08:00 |
|
c9s
|
0c9ca851e5
|
improve support strategy
|
2021-02-15 01:26:46 +08:00 |
|
c9s
|
bea750ca97
|
make margin order side effect json unmarshallable
|
2021-02-15 01:26:23 +08:00 |
|
c9s
|
f8378957ee
|
add more checks for bollgrid
related to #93
|
2021-02-13 16:03:31 +08:00 |
|
Yo-An Lin
|
de195b3c17
|
Merge pull request #130 from Larry850806/fix/bollgrid
|
2021-02-11 15:38:50 +08:00 |
|
Larry850806
|
ca31179b40
|
Fix balance calculation
|
2021-02-11 14:48:13 +08:00 |
|
c9s
|
f7ef91b55c
|
binance: set the default ping handler
|
2021-02-11 08:13:50 +08:00 |
|
c9s
|
4a0bd45301
|
remove order test code
|
2021-02-11 00:30:37 +08:00 |
|
c9s
|
ffa001fc29
|
fix quantity format
|
2021-02-11 00:21:56 +08:00 |
|
c9s
|
88411a134b
|
add supportAndTargets strategy
|
2021-02-11 00:21:06 +08:00 |
|
c9s
|
4b66deec3d
|
subscribe RepostInterval as well
might be related to issue #93
|
2021-02-10 22:45:23 +08:00 |
|
c9s
|
061312771c
|
fix float formatting
|
2021-02-10 22:41:42 +08:00 |
|
c9s
|
57435419b4
|
add marketData label
|
2021-02-10 22:40:36 +08:00 |
|
Larry850806
|
9f6d9028fa
|
Use fixedpoint type to calculate the balance
|
2021-02-10 16:01:11 +08:00 |
|
Larry850806
|
6d399647cf
|
Remove unused functions
|
2021-02-10 11:37:37 +08:00 |
|
Larry850806
|
11a176145e
|
Refactor placeGridOrders into three functions
|
2021-02-10 11:37:33 +08:00 |
|
Larry850806
|
d22a8e9c63
|
Improve bollgrid strategy's balance check and quote calculation
|
2021-02-10 10:11:32 +08:00 |
|
YC
|
776cd95955
|
Merge pull request #128 from c9s/ftx/balance
|
2021-02-09 19:49:38 +08:00 |
|
Yo-An Lin
|
bb394c8d38
|
Merge pull request #124 from ychi/feat/calculate-asset-with-ticker
feat/calculate asset with ticker
|
2021-02-09 17:49:22 +08:00 |
|
Yo-An Lin
|
5b06c47b2a
|
Merge pull request #125 from c9s/fix/grid
|
2021-02-09 12:02:04 +08:00 |
|
ycchen
|
2b285c0202
|
fix: remove unused
|
2021-02-08 22:43:20 +01:00 |
|
ycchen
|
6655e16889
|
minor tweaks
|
2021-02-08 22:41:44 +01:00 |
|
ycchen
|
61c98432f2
|
feat: tickers for asset calculation
|
2021-02-08 22:41:44 +01:00 |
|
ycdesu
|
ed86e923df
|
ftx: add exchange name
|
2021-02-08 22:33:12 +08:00 |
|
ycdesu
|
0eb0bdefa2
|
ftx: use uppercase in toGlobalCurrency
|
2021-02-08 22:29:50 +08:00 |
|
ycdesu
|
46b0315871
|
ftx: implement ftx balances querying
|
2021-02-08 19:07:18 +08:00 |
|
ycdesu
|
eb00720043
|
ftx: define empty ftx.toGlobalCurrency
|
2021-02-08 19:07:18 +08:00 |
|
ycdesu
|
7c48670c39
|
ftx: define rest client
|
2021-02-08 19:07:18 +08:00 |
|
ycdesu
|
8663704d6e
|
util: create IsJSON/IsHTML type helper
|
2021-02-08 19:07:18 +08:00 |
|
ycdesu
|
565086cc2a
|
util: extract IsError method
|
2021-02-08 19:07:18 +08:00 |
|
ycdesu
|
54ef8d3ca6
|
ftx: define empty exchange
|
2021-02-08 19:04:18 +08:00 |
|
c9s
|
72044a63fd
|
remove query trades default limit 200
|
2021-02-08 13:40:47 +08:00 |
|
c9s
|
ffb6a29d0d
|
fix startPrice value conversion
|
2021-02-08 13:21:22 +08:00 |
|
Yo-An Lin
|
f8ae8ec5b0
|
Merge pull request #108 from ychi/feat/exchange-ticker-api
|
2021-02-08 07:37:50 +08:00 |
|
ycchen
|
7a67083fbe
|
Address review feedbacks
|
2021-02-07 22:58:30 +01:00 |
|
Jui-Nan Lin
|
001f0e8c2f
|
fix(max): use global trade side here, not string
|
2021-02-07 14:58:44 +08:00 |
|
c9s
|
173074f5e4
|
improve grid strategy's balance check and quote calculation
|
2021-02-07 11:37:24 +08:00 |
|
c9s
|
367e9fcae1
|
fix price range check
|
2021-02-07 10:58:31 +08:00 |
|
ycchen
|
288f7257eb
|
fix testcases
|
2021-02-06 19:39:43 +01:00 |
|
ycchen
|
5fed7b81de
|
QueryTicker
|
2021-02-06 18:35:23 +01:00 |
|
ycchen
|
fa20df487e
|
feat: ticker api for types.Exchange
|
2021-02-06 14:05:26 +01:00 |
|
Yo-An Lin
|
a738bffc07
|
Merge pull request #112 from jnlin/fix/pnl-amount
|
2021-02-06 18:26:04 +08:00 |
|
Yo-An Lin
|
b81eb33cad
|
Merge pull request #117 from c9s/wizard/sqlite3
add sqlite3 driver option to the wizard user interface
|
2021-02-06 17:41:45 +08:00 |
|
Jui-Nan Lin
|
b38b65ce83
|
fix(pnl): do not calculate the "self" trade
|
2021-02-06 17:34:13 +08:00 |
|