add position v5 rest apis
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
import { CategoryV5 } from '../v5-shared';
|
||||
import {
|
||||
CategoryV5,
|
||||
OrderSideV5,
|
||||
OrderTypeV5,
|
||||
PositionIdx,
|
||||
TPSLModeV5,
|
||||
TradeModeV5,
|
||||
} from '../v5-shared';
|
||||
|
||||
export interface PositionV5 {
|
||||
positionIdx: number;
|
||||
positionIdx: PositionIdx;
|
||||
riskId: number;
|
||||
riskLimitValue: string;
|
||||
symbol: string;
|
||||
@@ -9,7 +16,7 @@ export interface PositionV5 {
|
||||
size: string;
|
||||
avgPrice: string;
|
||||
positionValue: string;
|
||||
tradeMode: number;
|
||||
tradeMode: TradeModeV5;
|
||||
autoAddMargin?: number;
|
||||
positionStatus: 'Normal' | 'Liq' | 'Adl';
|
||||
leverage?: string;
|
||||
@@ -18,7 +25,7 @@ export interface PositionV5 {
|
||||
bustPrice?: string;
|
||||
positionIM?: string;
|
||||
positionMM?: string;
|
||||
tpslMode?: 'Full' | 'Partial';
|
||||
tpslMode?: TPSLModeV5;
|
||||
takeProfit?: string;
|
||||
stopLoss?: string;
|
||||
trailingStop?: string;
|
||||
@@ -27,3 +34,56 @@ export interface PositionV5 {
|
||||
createdTime: string;
|
||||
updatedTime: string;
|
||||
}
|
||||
|
||||
export interface SetRiskLimitResultV5 {
|
||||
category: CategoryV5;
|
||||
riskId: number;
|
||||
riskLimitValue: string;
|
||||
}
|
||||
|
||||
export interface ExecutionV5 {
|
||||
symbol: string;
|
||||
orderId: string;
|
||||
orderLinkId: string;
|
||||
side: OrderSideV5;
|
||||
orderPrice: string;
|
||||
orderQty: string;
|
||||
leavesQty: string;
|
||||
orderType: OrderTypeV5;
|
||||
stopOrderType?: string;
|
||||
execFee: string;
|
||||
execId: string;
|
||||
execPrice: string;
|
||||
execQty: string;
|
||||
execType: string;
|
||||
execValue: string;
|
||||
execTime: string;
|
||||
isMaker: boolean;
|
||||
feeRate: string;
|
||||
tradeIv?: string;
|
||||
markIv?: string;
|
||||
markPrice: string;
|
||||
indexPrice: string;
|
||||
underlyingPrice?: string;
|
||||
blockTradeId?: string;
|
||||
}
|
||||
|
||||
export interface ClosedPnLV5 {
|
||||
symbol: string;
|
||||
orderId: string;
|
||||
side: string;
|
||||
qty: string;
|
||||
orderPrice: string;
|
||||
orderType: string;
|
||||
execType: string;
|
||||
closedSize: string;
|
||||
cumEntryValue: string;
|
||||
avgEntryPrice: string;
|
||||
cumExitValue: string;
|
||||
avgExitPrice: string;
|
||||
closedPnl: string;
|
||||
fillCount: string;
|
||||
leverage: string;
|
||||
createdTime: string;
|
||||
updatedTime: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user