v1.0.4: feat(#6) add futures trailing stop endpoint, add missing types for new order endpoint

This commit is contained in:
Tiago Siebler
2023-02-10 18:26:55 +00:00
parent eb1f7ae4c2
commit 6f9981db15
4 changed files with 27 additions and 4 deletions

View File

@@ -19,6 +19,7 @@ import {
FuturesSymbolRule,
FuturesMarginMode,
FuturesPosition,
NewFuturesPlanTrailingStopOrder,
} from './types';
import { REST_CLIENT_TYPE_ENUM } from './util';
import BaseRestClient from './util/BaseRestClient';
@@ -417,6 +418,13 @@ export class FuturesClient extends BaseRestClient {
return this.postPrivate('/api/mix/v1/plan/placeTPSL', params);
}
/** Place Trailing Stop order */
submitTrailingStopOrder(
params: NewFuturesPlanTrailingStopOrder
): Promise<APIResponse<any>> {
return this.postPrivate('/api/mix/v1/plan/placeTrailStop', params);
}
/** Place Position TPSL */
submitPositionTPSL(
params: NewFuturesPlanPositionTPSL