fix spot post api call
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user