feat(#261): add tpsl params missing from position endpoints. add new endpoint for add/reduce margin. add doc examples

This commit is contained in:
tiagosiebler
2023-06-07 16:56:36 +01:00
parent 4f563a65a5
commit 05d63839da
15 changed files with 289 additions and 1 deletions

View File

@@ -43,6 +43,32 @@ export interface SetRiskLimitResultV5 {
riskLimitValue: string;
}
export interface AddOrReduceMarginResultV5 {
category: CategoryV5;
symbol: string;
positionIdx: PositionIdx;
riskId: number;
riskLimitValue: string;
size: string;
avgPrice: string;
liqPrice: string;
bustPrice: string;
markPrice: string;
positionValue: string;
leverage: string;
autoAddMargin: 0 | 1;
positionStatus: 'Normal' | 'Liq' | 'Adl';
positionIM: string;
positionMM: string;
takeProfit: string;
stopLoss: string;
trailingStop: string;
unrealisedPnl: string;
cumRealisedPnl: string;
createdTime: string;
updatedTime: string;
}
export interface ExecutionV5 {
symbol: string;
orderId: string;