Merge pull request #229 from tiagosiebler/linearfix

v3.4.2: fix() missing property from linear client set trading stop method
This commit is contained in:
Tiago
2023-02-18 17:25:41 +00:00
committed by GitHub
3 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "bybit-api", "name": "bybit-api",
"version": "3.4.1", "version": "3.4.2",
"description": "Complete & robust node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & integration tests.", "description": "Complete & robust node.js SDK 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",

View File

@@ -163,6 +163,7 @@ export interface LinearSetTradingStopRequest {
sl_trigger_by?: string; sl_trigger_by?: string;
sl_size?: number; sl_size?: number;
tp_size?: number; tp_size?: number;
position_idx?: 0 | 1 | 2;
} }
export interface LinearGetTradeRecordsRequest { export interface LinearGetTradeRecordsRequest {

View File

@@ -30,7 +30,8 @@ describe('Private Contract REST API GET Endpoints', () => {
expect( expect(
await api.getHistoricOrders({ symbol, cursor, limit: 1 }) await api.getHistoricOrders({ symbol, cursor, limit: 1 })
).toMatchObject({ ).toMatchObject({
retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR, ...successResponseObjectV3(),
// retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR,
}); });
}); });