Merge pull request #164 from tiagosiebler/spot

fix spot post api call
This commit is contained in:
Tiago
2022-08-18 19:06:07 +01:00
committed by GitHub
3 changed files with 2 additions and 7 deletions

View File

@@ -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",

View File

@@ -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;
}

View File

@@ -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',