From 84f9d618913f24dc9084e7a6650414ab29365d9f Mon Sep 17 00:00:00 2001 From: tiagosiebler Date: Thu, 18 Aug 2022 19:04:24 +0100 Subject: [PATCH] fix spot post api call --- package.json | 2 +- src/util/BaseRestClient.ts | 5 ----- test/spot/private.write.test.ts | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f3c1f23..d150478 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bybit-api", - "version": "2.3.1", + "version": "2.3.2", "description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/util/BaseRestClient.ts b/src/util/BaseRestClient.ts index bd00855..022c23e 100644 --- a/src/util/BaseRestClient.ts +++ b/src/util/BaseRestClient.ts @@ -167,11 +167,6 @@ export default abstract class BaseRestClient { if (method === 'GET' || this.isSpotClient()) { options.params = signResult.paramsWithSign; - if (options.params?.agentSource) { - options.data = { - agentSource: agentSource, - }; - } } else { options.data = signResult.paramsWithSign; } diff --git a/test/spot/private.write.test.ts b/test/spot/private.write.test.ts index e1b1b60..4f3ef5e 100644 --- a/test/spot/private.write.test.ts +++ b/test/spot/private.write.test.ts @@ -18,7 +18,7 @@ describe('Private Inverse-Futures REST API POST Endpoints', () => { // These tests are primarily check auth is working by expecting balance or order not found style errors - it.skip('submitOrder()', async () => { + it('submitOrder()', async () => { expect( await api.submitOrder({ side: 'Buy',