forked from singlesly/bingx-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbingx-user-history-orders-response.ts
More file actions
49 lines (48 loc) · 1.06 KB
/
Copy pathbingx-user-history-orders-response.ts
File metadata and controls
49 lines (48 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import {
OrderPositionSideEnum,
OrderSideEnum,
OrderStatusEnum,
OrderTypeEnum,
} from 'bingx-api/bingx';
export interface BingxUserHistoryOrdersResponse {
orders: {
symbol: string;
orderId: number;
side: OrderSideEnum;
positionSide: OrderPositionSideEnum;
type: OrderTypeEnum;
origQty: string;
price: string;
executedQty: string;
avgPrice: string;
cumQuote: string;
stopPrice: string;
profit: string;
commission: string;
status: OrderStatusEnum;
time: number;
updateTime: number;
clientOrderId: string;
leverage: string;
takeProfit?: {
type: 'TAKE_PROFIT';
quantity: number;
stopPrice: number;
price: number;
workingType: string;
};
stopLoss?: {
type: 'STOP';
quantity: number;
stopPrice: number;
price: number;
workingType: string;
};
advanceAttr: number;
positionID: number;
takeProfitEntrustPrice: number;
stopLossEntrustPrice: number;
orderType: OrderTypeEnum;
workingType: 'MARK_PRICE';
}[];
}