Stefan Aebischer
1b73064aa9
Adds required parameter symbol to cancelActiveOrder
2020-01-20 22:20:55 -05:00
Stefan Aebischer
470415056e
Fix getPosition
...
* Re adds the v1 endpoint as `getPositions`
* Fixes params for v2 endpoint `getPosition`
Resolves : #5
2020-01-20 22:19:25 -05:00
Stefan Aebischer
ac8ed45ef5
Change getOrderTradeRecords to getTradeRecords
2020-01-17 21:45:05 -05:00
Stefan Aebischer
d8c7a551a4
Add missing endpoints, switch to v2
...
Adds missing endpoints:
* queryActiveOrder
* cancelAllConditionalOrders
* queryConditionalOrder
* setTradingStop
* getWalletFundRecords
* getWithdrawRecords
* setRiskLimit
* getRiskLimitList
* getPublicTradingRecords
* getApiAnnouncements
Switches Endpoints to v2:
* getPosition
2020-01-17 21:36:41 -05:00
Tiago
d6c18b1e57
Expand API support, including some V2 endpoints ( #4 )
...
Switch to V2 versions of some APIs:
* place order
* cancel order
Add missing APIs:
* cancel all orders
* replace order
* get symbols
Add support for custom order ID for cancel active order.
2020-01-17 21:01:03 -05:00
Stefan Aebischer
995cd6ed73
Avoid conccurent _syncTime calls
2020-01-15 14:40:10 -05:00
Stefan Aebischer
e5fd04afc1
Fix time synchronization with server
...
- avoid that client time being ahead of server time
2020-01-15 14:38:23 -05:00
Stefan Aebischer
6da5126190
Add silly logging
2019-10-27 16:46:20 +02:00
Stefan Aebischer
59aee838a3
Removing console.log
2019-09-16 16:00:40 +02:00
Stefan Aebischer
4660dc98b8
Reconnect if connection fails
2019-09-16 15:06:18 +02:00
Stefan Aebischer
26a1354ec5
Resubscribe to subscriptions after reconnecting
2019-09-16 15:04:02 +02:00
Stefan Aebischer
5caa65fedf
Allow to unsubscribe from ws topic
2019-09-16 14:37:19 +02:00
Stefan Aebischer
b6d2803a49
Time synchronization with server
...
- wrapper for /v2/public/time rest endpoint
- synchronize time before trying to authenticate a request in order
to avoid invalid authentication because prevented replay attacks.
Resolves #1
2019-09-16 14:25:55 +02:00
Stefan Aebischer
ed28d14171
Initial commit
2019-09-14 16:02:11 +02:00