v1.0.4: feat(#6) add futures trailing stop endpoint, add missing types for new order endpoint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user