Update PositionV5 and AddOrReduceMarginResultV5
This commit is contained in:
@@ -4,6 +4,8 @@ import {
|
|||||||
OrderSideV5,
|
OrderSideV5,
|
||||||
OrderTypeV5,
|
OrderTypeV5,
|
||||||
PositionIdx,
|
PositionIdx,
|
||||||
|
PositionSideV5,
|
||||||
|
PositionStatusV5,
|
||||||
StopOrderTypeV5,
|
StopOrderTypeV5,
|
||||||
TPSLModeV5,
|
TPSLModeV5,
|
||||||
TradeModeV5,
|
TradeModeV5,
|
||||||
@@ -14,16 +16,16 @@ export interface PositionV5 {
|
|||||||
riskId: number;
|
riskId: number;
|
||||||
riskLimitValue: string;
|
riskLimitValue: string;
|
||||||
symbol: string;
|
symbol: string;
|
||||||
side: 'Buy' | 'Sell' | 'None';
|
side: PositionSideV5;
|
||||||
size: string;
|
size: string;
|
||||||
avgPrice: string;
|
avgPrice: string;
|
||||||
positionValue: string;
|
positionValue: string;
|
||||||
tradeMode: TradeModeV5;
|
tradeMode: TradeModeV5;
|
||||||
autoAddMargin?: number;
|
autoAddMargin?: number;
|
||||||
positionStatus: 'Normal' | 'Liq' | 'Adl';
|
positionStatus: PositionStatusV5;
|
||||||
leverage?: string;
|
leverage?: string;
|
||||||
markPrice: string;
|
markPrice: string;
|
||||||
liqPrice: string;
|
liqPrice: string | '';
|
||||||
bustPrice?: string;
|
bustPrice?: string;
|
||||||
positionIM?: string;
|
positionIM?: string;
|
||||||
positionMM?: string;
|
positionMM?: string;
|
||||||
@@ -31,10 +33,21 @@ export interface PositionV5 {
|
|||||||
takeProfit?: string;
|
takeProfit?: string;
|
||||||
stopLoss?: string;
|
stopLoss?: string;
|
||||||
trailingStop?: string;
|
trailingStop?: string;
|
||||||
|
sessionAvgPrice: string | '';
|
||||||
|
delta?: string;
|
||||||
|
gamma?: string;
|
||||||
|
vega?: string;
|
||||||
|
theta?: string;
|
||||||
unrealisedPnl: string;
|
unrealisedPnl: string;
|
||||||
|
curRealisedPnl: string;
|
||||||
cumRealisedPnl: string;
|
cumRealisedPnl: string;
|
||||||
|
adlRankIndicator: number;
|
||||||
|
isReduceOnly: boolean;
|
||||||
|
mmrSysUpdatedTime: string | '';
|
||||||
|
leverageSysUpdatedTime: string | '';
|
||||||
createdTime: string;
|
createdTime: string;
|
||||||
updatedTime: string;
|
updatedTime: string;
|
||||||
|
seq: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SetRiskLimitResultV5 {
|
export interface SetRiskLimitResultV5 {
|
||||||
@@ -57,7 +70,7 @@ export interface AddOrReduceMarginResultV5 {
|
|||||||
positionValue: string;
|
positionValue: string;
|
||||||
leverage: string;
|
leverage: string;
|
||||||
autoAddMargin: 0 | 1;
|
autoAddMargin: 0 | 1;
|
||||||
positionStatus: 'Normal' | 'Liq' | 'Adl';
|
positionStatus: PositionStatusV5;
|
||||||
positionIM: string;
|
positionIM: string;
|
||||||
positionMM: string;
|
positionMM: string;
|
||||||
takeProfit: string;
|
takeProfit: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user