From 3ceec80c17f8ee7bb46bd763078949a253a9d7c3 Mon Sep 17 00:00:00 2001 From: peepopoggers <72892531+peepopoggers@users.noreply.github.com> Date: Tue, 2 Feb 2021 11:52:13 +0000 Subject: [PATCH] comments --- src/shared-endpoints.ts | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/src/shared-endpoints.ts b/src/shared-endpoints.ts index b77c4d3..dbb4bc9 100644 --- a/src/shared-endpoints.ts +++ b/src/shared-endpoints.ts @@ -5,7 +5,11 @@ export default class SharedEndpoints { // TODO: Is there a way to say that Base has to provide this? protected requestWrapper: RequestWrapper; - //------------Market Data Endpoints------------> + /** + * + * Market Data Endpoints + * + */ getOrderBook(params: { symbol: string; @@ -56,13 +60,21 @@ export default class SharedEndpoints { return this.requestWrapper.get('v2/public/account-ratio', params); } - //------------Account Data Endpoints------------> + /** + * + * Account Data Endpoints + * + */ getApiKeyInfo(): GenericAPIResponse { return this.requestWrapper.get('v2/private/account/api-key'); } - //------------Wallet Data Endpoints------------> + /** + * + * Wallet Data Endpoints + * + */ getWalletBalance(params: { coin?: string; @@ -101,7 +113,11 @@ export default class SharedEndpoints { return this.requestWrapper.get('v2/private/wallet/withdraw/list', params); } - //-------------API Data Endpoints-------------> + /** + * + * API Data Endpoints + * + */ getServerTime(): GenericAPIResponse { return this.requestWrapper.get('v2/public/time'); @@ -118,4 +134,4 @@ export default class SharedEndpoints { return Math.ceil((result.time_now * 1000) - end + ((end - start) / 2)); }); } -} \ No newline at end of file +}