ADD: missing API (Modify Order)
This commit is contained in:
@@ -25,6 +25,7 @@ import {
|
|||||||
FuturesPlanType,
|
FuturesPlanType,
|
||||||
FuturesKlineInterval,
|
FuturesKlineInterval,
|
||||||
FuturesHistoricPositions,
|
FuturesHistoricPositions,
|
||||||
|
ModifyFuturesOrder,
|
||||||
} from './types';
|
} from './types';
|
||||||
import { REST_CLIENT_TYPE_ENUM } from './util';
|
import { REST_CLIENT_TYPE_ENUM } from './util';
|
||||||
import BaseRestClient from './util/BaseRestClient';
|
import BaseRestClient from './util/BaseRestClient';
|
||||||
@@ -388,6 +389,11 @@ export class FuturesClient extends BaseRestClient {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Modify Order */
|
||||||
|
modifyOrder(params: ModifyFuturesOrder): Promise<APIResponse<any>> {
|
||||||
|
return this.postPrivate('/api/mix/v1/order/modifyOrder', params);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancel all futures orders for a symbol
|
* Cancel all futures orders for a symbol
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -88,6 +88,17 @@ export interface NewBatchFuturesOrder {
|
|||||||
clientOid?: string;
|
clientOid?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ModifyFuturesOrder {
|
||||||
|
symbol: string;
|
||||||
|
orderId?: string;
|
||||||
|
clientOid?: string;
|
||||||
|
newClientOid?: string;
|
||||||
|
size?: string;
|
||||||
|
price?: string;
|
||||||
|
presetTakeProfitPrice?: string;
|
||||||
|
presetStopLossPrice?: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface FuturesHistoricPositions {
|
export interface FuturesHistoricPositions {
|
||||||
startTime: string;
|
startTime: string;
|
||||||
endTime: string;
|
endTime: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user