zenix
55fa4cc8f1
fix: apply gofmt on all files, add revive action
2022-06-17 16:06:59 +09:00
c9s
aedd3e79d5
maxapi: drop unused mustParseURL
2022-06-17 12:52:22 +08:00
c9s
ce63723ff0
maxapi: drop unused functions
2022-06-17 12:52:06 +08:00
c9s
500dc64ed4
maxapi: drop unused v2 order api
2022-06-16 16:05:21 +08:00
c9s
0aa606ebcb
maxapi: drop unused v2 api
2022-06-16 16:03:12 +08:00
c9s
4b14e7f7e5
refactor maxapi files
2022-06-16 15:22:36 +08:00
c9s
22d5b6e142
move max api files
2022-06-15 14:55:43 +08:00
c9s
470e003867
max: fix max v3 order cancel
2022-06-10 02:50:39 +08:00
c9s
8aec251a62
max: fix v3 loan/repay api path
2022-06-02 01:41:41 +08:00
c9s
50accc5a2c
max: fix QueryAccount for margin
2022-06-01 19:56:10 +08:00
c9s
4f0ac41850
max: generate missing files
2022-05-28 16:52:02 +08:00
c9s
fcdf0f8168
max: rename methods
2022-05-28 16:48:51 +08:00
c9s
753d7a8d5e
max: rename requests
2022-05-28 16:47:41 +08:00
c9s
cef002ccb6
move type alias
2022-05-28 16:06:16 +08:00
c9s
c891cc56e3
max: fix trades/orders parsing
2022-05-27 19:48:03 +08:00
c9s
d792f3b83b
max: drop unused url ref vars
2022-05-27 16:46:56 +08:00
c9s
60d65a390f
max: add margin api (liquidation history and interest history)
2022-05-27 16:40:56 +08:00
c9s
410a9610c9
max: add margin api (loan, repay, ad ratio)
2022-05-27 16:13:01 +08:00
c9s
37ef5c4b97
max: add margin api (liquidation history and interest history)
2022-05-27 15:04:47 +08:00
c9s
8721679f74
max: update market struct fields
2022-05-26 20:32:25 +08:00
c9s
d9e10b7fcd
max: integrate v3 orders api
2022-05-26 19:52:38 +08:00
c9s
6ca71cf9f1
max: simplify constructor
2022-05-26 18:49:50 +08:00
c9s
2d20083244
max: pull out http transport and register order service v3
2022-05-26 18:49:18 +08:00
c9s
c1ba270d76
max: log max.DebtEvent
2022-05-26 18:07:17 +08:00
c9s
4d8ea7d979
max: log adratio
2022-05-25 20:34:25 +08:00
c9s
459d839c1a
max: parse debt
2022-05-25 20:12:16 +08:00
c9s
2ffbb2ed82
max: add ad_ratio_update type
2022-05-25 20:06:51 +08:00
c9s
a74ad31ea0
max: parse ADRatio message
2022-05-25 20:06:17 +08:00
c9s
83abf14f3b
max: add updateTime field parse
2022-05-25 19:52:29 +08:00
c9s
f65821d4fd
max: add mwallet message type to parser
2022-05-25 14:42:45 +08:00
c9s
eccee460ca
max: add filters field to the auth message
2022-05-25 13:51:24 +08:00
c9s
9d459612a4
maxapi: add wallet type validation
2022-05-24 18:00:52 +08:00
c9s
79893f4b88
define wallet type and separate wallet order api
2022-05-24 17:48:08 +08:00
c9s
c6ede883ce
add max v3 api
2022-05-24 17:40:00 +08:00
c9s
a66bae47fe
add v3 order endpoint
2022-05-23 18:34:08 +08:00
c9s
a57a238e09
bbgo: add more sync options
2022-04-25 17:18:42 +08:00
c9s
76012f0b71
max: deposit request currency field is optional
2022-04-25 16:27:07 +08:00
c9s
9e06053c3b
max: rewrite and rename private trade request
2022-04-21 14:56:20 +08:00
c9s
f9908f2931
rewrite private trade request
2022-04-21 14:52:44 +08:00
c9s
93b10f20ac
maxapi: fix fromID to uint64
2022-04-21 13:18:00 +08:00
c9s
e754b68cdf
maxapi: fix http timeout
2022-04-21 13:17:43 +08:00
c9s
0410ef1305
maxapi: refactor rewards api
2022-04-21 00:18:34 +08:00
c9s
8b9383ecfa
maxapi: refactor withdrawal request
2022-04-20 16:38:08 +08:00
c9s
72ea9f7e24
maxapi: add deposit request tests and withdrawal request tests
2022-04-20 14:01:18 +08:00
c9s
f3eafd5cd8
remove unused get trades method
2022-04-20 13:49:06 +08:00
c9s
387c0bfb8b
maxapi: rewrite vip level request
2022-04-20 13:35:17 +08:00
c9s
68abeb826b
maxapi: add account service tests
2022-04-20 13:28:39 +08:00
c9s
f9df65a2f8
maxapi: add generated files
2022-04-20 13:20:54 +08:00
c9s
ff7f1a8bc8
maxapi: always merge params into the payload for signing
2022-04-20 12:18:35 +08:00
c9s
4d8997a8d5
max: pass context background to the request
2022-04-20 12:18:35 +08:00
c9s
5cba6a6133
maxapi: use requestgen to query and submit orders
2022-04-20 12:18:35 +08:00
c9s
93b19faa3a
refactor newAuthenticatedRequest
2022-04-20 12:18:35 +08:00
c9s
bf4a0169bd
max: update client api
2022-04-20 12:18:35 +08:00
c9s
d1f4c0a225
max: fix kline parse
2022-03-15 16:07:19 +08:00
zenix
b8bf2af14d
fixedpoint for exchange and indicators, some fixes in types
2022-02-15 12:01:38 +09:00
c9s
59cc4d7243
max: improve max closed order query
2022-01-27 00:02:35 +08:00
c9s
50871c1b61
max: fix order query limiter call and order state for query
2022-01-24 23:45:56 +08:00
c9s
0c0a12781a
max: fix max exchange closed order sync
2022-01-24 23:18:52 +08:00
c9s
8b6cae9107
max: fix max authenticated event parsing
2022-01-02 12:20:38 +08:00
c9s
e04139a330
max: clean up and refactor max stream
2022-01-02 12:02:36 +08:00
c9s
e08b2e9a85
fix max exchange order status conversion and document the order status
2021-12-26 15:58:12 +08:00
TonyQ
3e45035ab1
database: sqlite3 issue fix
...
database: upgrade gosqllite3 version for increasing variable amount limit
types: update kline starttime/endtime field to prevent sqlite3
time parsing issue.
fix #215
2021-12-15 14:34:31 +08:00
sincoew
4f2b1d975a
fix type change on max api
2021-07-15 17:51:14 +08:00
c9s
a8048703b3
max: fix order delete refurl
2021-06-27 11:33:00 +08:00
c9s
3fdcf466bf
max: set reqcount for nonce by default 1
2021-06-27 11:32:54 +08:00
c9s
657e1dc9bf
maxapi: pre-parse relative url and cache them
2021-06-16 13:04:05 +08:00
c9s
cbd0180939
maxapi: remove extra user agent header
2021-06-16 13:04:05 +08:00
c9s
16e5e08d58
maxapi: fix dump request error check
2021-06-16 13:04:05 +08:00
c9s
48c84824cf
maxapi: volume, side, market is always required for creating orders
2021-06-16 13:04:05 +08:00
c9s
2da633c221
maxapi: add HTTP_TRANSPORT_IDLE_CONN_TIMEOUT env var for override
2021-06-16 13:04:05 +08:00
c9s
7c5b676366
maxapi: create an isolated http transport rather than the default one
2021-06-16 13:04:05 +08:00
c9s
684232041c
maxapi: load http transport settings from env vars
2021-06-16 13:04:05 +08:00
c9s
b31b830b2b
max: add request dump for debugging request
2021-06-16 13:03:45 +08:00
c9s
a8eda62a8d
max: set debug vars from env vars
2021-06-16 13:02:21 +08:00
c9s
2a5ef30135
add ping worker to max
2021-05-29 00:26:53 +08:00
c9s
f49490f986
fix websocket ping/pong issue
2021-05-28 23:34:21 +08:00
c9s
002b28f75a
okex: implement candlestick api and improve kline console format
2021-05-28 20:51:10 +08:00
c9s
e678289577
implement okex balances endpoint
2021-05-27 00:05:43 +08:00
c9s
56b2c8845b
fix preorder, postorder and inorder
2021-05-22 11:36:58 +08:00
c9s
57a78777df
move Time type to types.Time
2021-05-21 00:10:53 +08:00
c9s
9406682944
improve maxapi websocket reconnect issue
2021-05-18 14:14:58 +08:00
c9s
c3c3c47808
move lock section
2021-05-18 13:59:58 +08:00
c9s
0b7c9a1437
implement withdrawal request api
2021-05-11 22:35:31 +08:00
c9s
03cee5eb0b
apply types.ExchangeMAX
2021-05-05 16:57:01 +08:00
David Chang
c9198d498e
feature: add ioc order type support to max exchange
2021-04-11 12:29:23 +08:00
c9s
3c5071b87e
use uint32 for groupID
2021-03-22 17:32:22 +08:00
c9s
814a77ea39
xmaker: improve balance checking
2021-03-21 12:55:33 +08:00
c9s
837934e690
add post_only order type
2021-03-21 12:55:33 +08:00
c9s
dffd9fc980
add VipLevel api query support
2021-03-18 17:58:18 +08:00
c9s
890324a4ad
maxapi: add VipLevel
2021-03-18 17:58:18 +08:00
c9s
cad8349a1a
remove state OrderStateFinalizing from the order state
...
since we are only interested in the closed orders
2021-03-18 01:15:49 +08:00
c9s
6d249cf83c
bypass disconnect event
2021-03-15 17:48:16 +08:00
c9s
3ffa319ba8
improve max websocket reconnecting issue
2021-03-15 10:23:20 +08:00
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
dbcf35e4a4
add FeeCurrency field
2021-03-14 11:18:22 +08:00
c9s
877ea73435
maxapi: align fields
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
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
f7c952f8ca
add version files
2021-02-22 15:16:12 +08:00
c9s
49f4039a23
add timestamp parameter
2021-02-16 17:11:15 +08:00
ycdesu
565086cc2a
util: extract IsError method
2021-02-08 19:07:18 +08:00
Jui-Nan Lin
30f085fa91
fix(max): IsBuyer should check side "buy" and "bid"
2021-02-06 17:30:18 +08:00
ycdesu
f44d6a323a
http: move response helper to util
2021-02-05 22:31:40 +08:00
c9s
858a8d84bb
groupID is an int64 field
2021-01-23 17:17:46 +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
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
ed6d6342e7
fix account currency translation
2020-11-17 14:24:26 +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
8823a39fc2
support backtesting kline verification
2020-11-07 00:49:17 +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
a4555a2b7b
implement QueryClosedOrders
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
8174b64e21
handle max order update message convertion
2020-10-31 18:29:58 +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
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
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
c58375f57e
max: extend max exchange market information
2020-10-14 10:53:18 +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