Yo-An Lin
|
e0d7fefbf2
|
Merge pull request #150 from c9s/fix/pnl
feature: add deposit service and withdraw service for sync
|
2021-03-15 09:01:24 +08:00 |
|
c9s
|
0246e298d2
|
apply launch date if since time is empty
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
8e85274876
|
fix used time field for withdraw
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
b25671c864
|
fix max deposits history ordering
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
75778675e3
|
fix withdraw query order
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
dbcf35e4a4
|
add FeeCurrency field
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
2d6b6e7427
|
fix withdrawal data ordering
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
4d3b1ec938
|
fix QueryWithdrawHistory and QueryDepositHistory
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
877ea73435
|
maxapi: align fields
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
be672c89e6
|
max: update deposit and withdraw types
|
2021-03-14 11:18:22 +08:00 |
|
c9s
|
33213746f4
|
cmd: add --all option to the cancel command
|
2021-03-14 10:29:45 +08:00 |
|
c9s
|
48fe6054b0
|
exchange/max: fix query reward issue
|
2021-03-10 14:18:01 +08:00 |
|
c9s
|
1d29009133
|
fix max trade query ordering and sql query ordering for query last
|
2021-02-25 13:55:04 +08:00 |
|
c9s
|
14830c442c
|
refactor and implement reward sync and query
|
2021-02-23 22:53:00 +08:00 |
|
c9s
|
5a7cf05701
|
integrate reward service into the sync service
|
2021-02-23 16:39:48 +08:00 |
|
c9s
|
fb62af05a4
|
add global Reward type
|
2021-02-23 10:08:01 +08:00 |
|
c9s
|
96362a4936
|
max: add rewards api and example
|
2021-02-22 18:45:44 +08:00 |
|
c9s
|
507586b560
|
fix max websocket subscription
|
2021-02-22 17:36:30 +08:00 |
|
c9s
|
21a4669905
|
adjust max query limiter and sync before running trader
|
2021-02-22 16:54:08 +08:00 |
|
c9s
|
f7c952f8ca
|
add version files
|
2021-02-22 15:16:12 +08:00 |
|
c9s
|
59d68e7f0d
|
max: adjust trades limit to 1000
|
2021-02-22 15:03:15 +08:00 |
|
c9s
|
eaad414706
|
adjust max api call rate limiting
|
2021-02-22 15:01:05 +08:00 |
|
c9s
|
cdb7ce84c8
|
apply rate limit
|
2021-02-22 13:36:39 +08:00 |
|
c9s
|
3a89b0a714
|
improve trade sync
|
2021-02-18 18:20:18 +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
|
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
|
02512805f8
|
set default query trade limit to 1000 for max
|
2021-02-16 16:32:48 +08:00 |
|
c9s
|
ffa001fc29
|
fix quantity format
|
2021-02-11 00:21:56 +08:00 |
|
ycdesu
|
565086cc2a
|
util: extract IsError method
|
2021-02-08 19:07:18 +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 |
|
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 |
|
Jui-Nan Lin
|
30f085fa91
|
fix(max): IsBuyer should check side "buy" and "bid"
|
2021-02-06 17:30:18 +08:00 |
|
Yo-An Lin
|
597dd21865
|
Merge pull request #116 from c9s/feature/sqlite3
convert time struct for sqlite driver
|
2021-02-06 15:05:49 +08:00 |
|
c9s
|
26f9e5488d
|
apply datatype.Time to order time fields
|
2021-02-06 14:30:00 +08:00 |
|
c9s
|
3abdb3dd7b
|
convert time struct for sqlite driver
|
2021-02-06 12:32:21 +08:00 |
|
ycdesu
|
f44d6a323a
|
http: move response helper to util
|
2021-02-05 22:31:40 +08:00 |
|
c9s
|
1f1e1383f3
|
fix advancedOrderCancelApi interface
|
2021-01-23 17:20:26 +08:00 |
|
c9s
|
858a8d84bb
|
groupID is an int64 field
|
2021-01-23 17:17:46 +08:00 |
|
c9s
|
4b039847b7
|
support group ID
|
2021-01-23 17:15:32 +08:00 |
|
c9s
|
f485c1ba7f
|
fix grid strategy order placing
|
2020-12-29 18:18:32 +08:00 |
|
c9s
|
275aa9494a
|
support canceling orders on max
|
2020-12-29 16:00:03 +08:00 |
|
c9s
|
9568b04328
|
fix log message
|
2020-12-28 16:24:57 +08:00 |
|
c9s
|
2932230fdb
|
print out websocket error
|
2020-12-28 16:24:35 +08:00 |
|
c9s
|
d9e5ad4365
|
add event authenticated
|
2020-12-28 16:24:17 +08:00 |
|
c9s
|
f56318c9b6
|
add public only mode to stream
|
2020-12-21 15:43:54 +08:00 |
|
c9s
|
1c7d3d5481
|
support max staging url orverride
|
2020-12-17 14:44:30 +08:00 |
|
c9s
|
f7a119fa5e
|
remove debug message
|
2020-12-04 19:15:53 +08:00 |
|
c9s
|
4f399ebb9f
|
fix stop price formating
|
2020-12-03 09:25:47 +08:00 |
|
c9s
|
a86078d68c
|
max: fix tick size
|
2020-11-22 21:34:05 +08:00 |
|
c9s
|
c40982164a
|
fix trade slack formatting
|
2020-11-17 15:48:18 +08:00 |
|
c9s
|
ed6d6342e7
|
fix account currency translation
|
2020-11-17 14:24:26 +08:00 |
|
c9s
|
4bda1fee08
|
fix order id parsing
|
2020-11-17 12:46:55 +08:00 |
|
c9s
|
24e5911140
|
refactory sync mode into the backtest command
|
2020-11-11 16:08:24 +08:00 |
|
c9s
|
23c19c5968
|
use fixedpoint for balances
|
2020-11-10 14:19:33 +08:00 |
|
c9s
|
e7cc79f3cf
|
replace errors.Errorf with fmt.Errorf
|
2020-11-09 16:34:35 +08:00 |
|
c9s
|
1e925cac6e
|
move onConnect to the standard stream
|
2020-11-07 12:38:57 +08:00 |
|
c9s
|
94bb7f5dac
|
max: fix order symbol convertion
|
2020-11-07 12:19:57 +08:00 |
|
c9s
|
22a214328d
|
implement backtest command, stream and add backtest config
|
2020-11-07 02:57:50 +08:00 |
|
c9s
|
8823a39fc2
|
support backtesting kline verification
|
2020-11-07 00:49:17 +08:00 |
|
c9s
|
555fe57341
|
implement kline sync function from command
|
2020-11-06 21:40:48 +08:00 |
|
c9s
|
78d7c71ecc
|
add kline service and extend kline struct fields
|
2020-11-06 19:07:07 +08:00 |
|
c9s
|
b86b74effb
|
fix max kline parsing
|
2020-11-05 15:04:56 +08:00 |
|
c9s
|
b38d0d15ed
|
fix order sync for max
|
2020-11-05 14:12:19 +08:00 |
|
c9s
|
7fab2e24de
|
improve order persistence and support order data sync
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
a4555a2b7b
|
implement QueryClosedOrders
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
fe16f9aa4d
|
add is_working column
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
bb0ff263c8
|
assign order_id to the trade object
|
2020-11-05 11:14:14 +08:00 |
|
c9s
|
8e0b5d11a7
|
add max grid config and fix max price formatting
|
2020-10-31 20:38:20 +08:00 |
|
c9s
|
14abe3fb7e
|
pull out active order book to the types package
|
2020-10-31 20:38:20 +08:00 |
|
c9s
|
8174b64e21
|
handle max order update message convertion
|
2020-10-31 18:29:58 +08:00 |
|
c9s
|
63df07b815
|
fix MAX market min price format
|
2020-10-31 18:29:58 +08:00 |
|
c9s
|
c3961024cf
|
implement grid strategy update orders method
|
2020-10-31 18:29:58 +08:00 |
|
c9s
|
67446670ac
|
finalize swing strategy and fix trade reporter issue
|
2020-10-28 17:48:16 +08:00 |
|
c9s
|
e2df24f31c
|
support standard indicatorset
|
2020-10-28 09:43:19 +08:00 |
|
c9s
|
145264aae4
|
cancel orders and re-submit maker orders
|
2020-10-26 00:26:17 +08:00 |
|
c9s
|
336fb4d25b
|
max: fix order cancel request payload
|
2020-10-25 22:41:54 +08:00 |
|
c9s
|
de11ef10f5
|
return created order objects from SubmitOrders method
|
2020-10-25 19:22:22 +08:00 |
|
c9s
|
fa30f6b52a
|
Support binance order update execution type convertion
|
2020-10-25 19:22:22 +08:00 |
|
c9s
|
308427416a
|
Add more exchange order features
- use uuid for client order id
- add stop limit and stop market order types
- add order convert functions
- improve submit orders
|
2020-10-25 19:22:22 +08:00 |
|
c9s
|
fc687f3174
|
max: implement kline event parser for websocket
|
2020-10-19 22:46:34 +08:00 |
|
c9s
|
366036a35b
|
max: parse and convert trade update
|
2020-10-19 22:23:49 +08:00 |
|
c9s
|
b0b1d2bd49
|
max: fix currency conversion
|
2020-10-19 21:33:21 +08:00 |
|
c9s
|
73e17730d7
|
move account type into types package
|
2020-10-18 11:30:37 +08:00 |
|
c9s
|
fe1a25d735
|
max: add resolution to the subscription
|
2020-10-18 00:09:37 +08:00 |
|
c9s
|
530da665d3
|
fix max newAuthenticatedRequest for nil data
|
2020-10-18 00:05:54 +08:00 |
|
c9s
|
615da2e1d8
|
add logger with fields
|
2020-10-17 10:39:03 +08:00 |
|
c9s
|
ee86a71ebb
|
split files
|
2020-10-16 10:14:36 +08:00 |
|
c9s
|
5112b83041
|
max: fix internal currency usage
|
2020-10-14 11:02:10 +08:00 |
|
c9s
|
c58375f57e
|
max: extend max exchange market information
|
2020-10-14 10:53:18 +08:00 |
|
c9s
|
a91f851ac7
|
pass types.SubmitOrder by value
|
2020-10-13 18:08:02 +08:00 |
|
c9s
|
92a5eac412
|
make currency parameter optional
|
2020-10-12 17:15:13 +08:00 |
|
c9s
|
ea7b501c26
|
add transfer history command for calculating baseline and show transfer records
|
2020-10-11 20:08:54 +08:00 |
|
c9s
|
2d246c3f71
|
move deposit type to global type and add max deposit history support
|
2020-10-11 17:35:59 +08:00 |
|
c9s
|
3d5507a053
|
move files into pkg
|
2020-10-11 16:46:15 +08:00 |
|