Fix getPosition

* Re adds the v1 endpoint as `getPositions`
* Fixes params for v2 endpoint `getPosition`

Resolves: #5
This commit is contained in:
Stefan Aebischer
2020-01-20 22:18:29 -05:00
parent d33fef4823
commit 470415056e
2 changed files with 14 additions and 3 deletions

View File

@@ -52,9 +52,13 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
#### async changeUserLeverage(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-change-user-leverage)
#### async getPosition()
#### async getPosition(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-my-position-v2)
#### async getPositions()
*Deprecated v1 method*
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#positionlistget)
#### async changePositionMargin(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#-change-position-margin)