diff --git a/doc/rest-client.md b/doc/rest-client.md index 0b13355..4158350 100644 --- a/doc/rest-client.md +++ b/doc/rest-client.md @@ -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 diff --git a/lib/rest-client.js b/lib/rest-client.js index 08d2ff1..b58e729 100644 --- a/lib/rest-client.js +++ b/lib/rest-client.js @@ -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');