expand test coverage to linear endpoints

This commit is contained in:
tiagosiebler
2022-05-11 18:12:44 +01:00
parent 07ec505407
commit 61c278c318
4 changed files with 311 additions and 82 deletions

View File

@@ -386,14 +386,6 @@ export class LinearClient extends BaseRestClient {
);
}
/** @deprecated use setPositionTpSlMode() instead */
setSwitchMode(params?: {
symbol: string;
tp_sl_mode: typeof positionTpSlModeEnum[keyof typeof positionTpSlModeEnum];
}): GenericAPIResponse {
return this.requestWrapper.post('private/linear/tpsl/switch-mode', params);
}
/**
* Switch TP/SL mode between full or partial. When set to Partial, TP/SL orders may have a quantity less than the position size.
* This is set with the setTradingStop() method. Use `positionTpSlModeEnum` for the tp_sl_mode parameter.
@@ -477,7 +469,7 @@ export class LinearClient extends BaseRestClient {
setRiskLimit(params: {
symbol: string;
side: string;
risk_id: string;
risk_id: number;
}): GenericAPIResponse {
return this.requestWrapper.post('private/linear/position/set-risk', params);
}