fix spot post api call
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"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.",
|
"description": "Node.js connector for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -167,11 +167,6 @@ export default abstract class BaseRestClient {
|
|||||||
|
|
||||||
if (method === 'GET' || this.isSpotClient()) {
|
if (method === 'GET' || this.isSpotClient()) {
|
||||||
options.params = signResult.paramsWithSign;
|
options.params = signResult.paramsWithSign;
|
||||||
if (options.params?.agentSource) {
|
|
||||||
options.data = {
|
|
||||||
agentSource: agentSource,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
options.data = signResult.paramsWithSign;
|
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
|
// 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(
|
expect(
|
||||||
await api.submitOrder({
|
await api.submitOrder({
|
||||||
side: 'Buy',
|
side: 'Buy',
|
||||||
|
|||||||
Reference in New Issue
Block a user