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:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
||||
@@ -163,6 +163,7 @@ export interface LinearSetTradingStopRequest {
|
||||
sl_trigger_by?: string;
|
||||
sl_size?: number;
|
||||
tp_size?: number;
|
||||
position_idx?: 0 | 1 | 2;
|
||||
}
|
||||
|
||||
export interface LinearGetTradeRecordsRequest {
|
||||
|
||||
@@ -30,7 +30,8 @@ describe('Private Contract REST API GET Endpoints', () => {
|
||||
expect(
|
||||
await api.getHistoricOrders({ symbol, cursor, limit: 1 })
|
||||
).toMatchObject({
|
||||
retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR,
|
||||
...successResponseObjectV3(),
|
||||
// retCode: API_ERROR_CODE.DB_ERROR_WRONG_CURSOR,
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user