Change getOrderTradeRecords to getTradeRecords

This commit is contained in:
Stefan Aebischer
2020-01-17 21:45:05 -05:00
parent d8c7a551a4
commit ac8ed45ef5
2 changed files with 3 additions and 3 deletions

View File

@@ -82,8 +82,8 @@ If you only use the [public endpoints](#public-endpoints) you can ommit key and
#### async getPredictedFunding(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-predicted-funding-rate-and-funding-fee)
#### async getOrderTradeRecords(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-the-trade-records-of-a-order)
#### async getTradeRecords(params)
[See bybit documentation](https://github.com/bybit-exchange/bybit-official-api-docs/blob/master/en/rest_api.md#get-users-trade-records)
### Public enpoints

View File

@@ -169,7 +169,7 @@ module.exports = class RestClient {
return await this.request.get('/open-api/funding/predicted-funding', params);
}
async getOrderTradeRecords(params) {
async getTradeRecords(params) {
assert(params, 'No params passed');
assert(params.order_id, 'Parameter order_id is required');