From c41cb89b2c0e95a23aaa538fb528ede8e65a5b55 Mon Sep 17 00:00:00 2001 From: CryptoCompiler <72892531+peepopoggers@users.noreply.github.com> Date: Fri, 29 Jan 2021 14:16:33 +0000 Subject: [PATCH] Some endpoint updates --- src/inverse-client.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inverse-client.ts b/src/inverse-client.ts index 72bd211..4d4fd1f 100644 --- a/src/inverse-client.ts +++ b/src/inverse-client.ts @@ -274,7 +274,7 @@ export class InverseClient extends SharedEndpoints { symbol: string; leverage: number; }): GenericAPIResponse { - return this.requestWrapper.post('user/leverage/save', params); + return this.requestWrapper.post('v2/private/position/leverage/save', params); } /** @@ -320,7 +320,7 @@ export class InverseClient extends SharedEndpoints { getLastFundingRate(params: { symbol: string; }): GenericAPIResponse { - return this.requestWrapper.get('v2/private/funding/prev-funding-rate', params); + return this.requestWrapper.get('v2/public/funding/prev-funding-rate', params); } getMyLastFundingFee(params: {