From ac8ed45ef5b59895c8f816a59db599abface0291 Mon Sep 17 00:00:00 2001 From: Stefan Aebischer Date: Fri, 17 Jan 2020 21:45:05 -0500 Subject: [PATCH] Change getOrderTradeRecords to getTradeRecords --- doc/rest-client.md | 4 ++-- lib/rest-client.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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');