bybit-api 3.7.4 → 3.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,43 +5,43 @@ export interface OrderResultV5 {
|
|
|
5
5
|
}
|
|
6
6
|
export interface AccountOrderV5 {
|
|
7
7
|
orderId: string;
|
|
8
|
-
orderLinkId
|
|
9
|
-
blockTradeId
|
|
8
|
+
orderLinkId: string;
|
|
9
|
+
blockTradeId: string;
|
|
10
10
|
symbol: string;
|
|
11
11
|
price: string;
|
|
12
12
|
qty: string;
|
|
13
13
|
side: OrderSideV5;
|
|
14
|
-
isLeverage
|
|
15
|
-
positionIdx
|
|
14
|
+
isLeverage: string;
|
|
15
|
+
positionIdx: PositionIdx;
|
|
16
16
|
orderStatus: OrderStatusV5;
|
|
17
|
-
cancelType
|
|
18
|
-
rejectReason
|
|
17
|
+
cancelType: OrderCancelTypeV5;
|
|
18
|
+
rejectReason: OrderRejectReasonV5;
|
|
19
19
|
avgPrice: string;
|
|
20
20
|
leavesQty: string;
|
|
21
21
|
leavesValue: string;
|
|
22
22
|
cumExecQty: string;
|
|
23
23
|
cumExecValue: string;
|
|
24
24
|
cumExecFee: string;
|
|
25
|
-
timeInForce
|
|
26
|
-
orderType
|
|
27
|
-
stopOrderType
|
|
28
|
-
orderIv
|
|
29
|
-
triggerPrice
|
|
30
|
-
takeProfit
|
|
31
|
-
stopLoss
|
|
25
|
+
timeInForce: OrderTimeInForceV5;
|
|
26
|
+
orderType: OrderTypeV5;
|
|
27
|
+
stopOrderType: StopOrderTypeV5;
|
|
28
|
+
orderIv: string;
|
|
29
|
+
triggerPrice: string;
|
|
30
|
+
takeProfit: string;
|
|
31
|
+
stopLoss: string;
|
|
32
32
|
tpslMode: 'Full' | 'Partial' | '';
|
|
33
33
|
tpLimitPrice: string;
|
|
34
34
|
slLimitPrice: string;
|
|
35
|
-
tpTriggerBy
|
|
36
|
-
slTriggerBy
|
|
37
|
-
triggerDirection
|
|
38
|
-
triggerBy
|
|
39
|
-
lastPriceOnCreated
|
|
40
|
-
reduceOnly
|
|
41
|
-
closeOnTrigger
|
|
35
|
+
tpTriggerBy: OrderTriggerByV5;
|
|
36
|
+
slTriggerBy: OrderTriggerByV5;
|
|
37
|
+
triggerDirection: number;
|
|
38
|
+
triggerBy: OrderTriggerByV5;
|
|
39
|
+
lastPriceOnCreated: string;
|
|
40
|
+
reduceOnly: boolean;
|
|
41
|
+
closeOnTrigger: boolean;
|
|
42
42
|
placeType: 'iv' | 'price' | '';
|
|
43
43
|
smpType: string;
|
|
44
|
-
smpGroup:
|
|
44
|
+
smpGroup: number;
|
|
45
45
|
smpOrderId: string;
|
|
46
46
|
createdTime: string;
|
|
47
47
|
updatedTime: string;
|
package/lib/types/v5-shared.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare type OrderTimeInForceV5 = 'GTC' | 'IOC' | 'FOK' | 'PostOnly';
|
|
|
8
8
|
export declare type OrderTriggerByV5 = 'LastPrice' | 'IndexPrice' | 'MarkPrice';
|
|
9
9
|
export declare type OrderSMPTypeV5 = 'None' | 'CancelMaker' | 'CancelTaker' | 'CancelBoth';
|
|
10
10
|
export declare type OrderStatusV5 = 'Created' | 'New' | 'Rejected' | 'PartiallyFilled' | 'PartiallyFilledCanceled' | 'Filled' | 'Cancelled' | 'Untriggered' | 'Triggered' | 'Deactivated' | 'Active';
|
|
11
|
-
export declare type OrderCancelTypeV5 = 'CancelByUser' | 'CancelByReduceOnly' | 'CancelByPrepareLiq' | 'CancelAllBeforeLiq' | 'CancelByPrepareAdl' | 'CancelAllBeforeAdl' | 'CancelByAdmin' | 'CancelByTpSlTsClear' | 'CancelByPzSideCh';
|
|
11
|
+
export declare type OrderCancelTypeV5 = 'CancelByUser' | 'CancelByReduceOnly' | 'CancelByPrepareLiq' | 'CancelAllBeforeLiq' | 'CancelByPrepareAdl' | 'CancelAllBeforeAdl' | 'CancelByAdmin' | 'CancelByTpSlTsClear' | 'CancelByPzSideCh' | 'UNKNOWN';
|
|
12
12
|
export declare type OrderRejectReasonV5 = 'EC_NoError' | 'EC_Others' | 'EC_UnknownMessageType' | 'EC_MissingClOrdID' | 'EC_MissingOrigClOrdID' | 'EC_ClOrdIDOrigClOrdIDAreTheSame' | 'EC_DuplicatedClOrdID' | 'EC_OrigClOrdIDDoesNotExist' | 'EC_TooLateToCancel' | 'EC_UnknownOrderType' | 'EC_UnknownSide' | 'EC_UnknownTimeInForce' | 'EC_WronglyRouted' | 'EC_MarketOrderPriceIsNotZero' | 'EC_LimitOrderInvalidPrice' | 'EC_NoEnoughQtyToFill' | 'EC_NoImmediateQtyToFill' | 'EC_PerCancelRequest' | 'EC_MarketOrderCannotBePostOnly' | 'EC_PostOnlyWillTakeLiquidity' | 'EC_CancelReplaceOrder' | 'EC_InvalidSymbolStatus';
|
|
13
13
|
export declare type StopOrderTypeV5 = 'TakeProfit' | 'StopLoss' | 'TrailingStop' | 'Stop' | 'PartialTakeProfit' | 'PartialStopLoss' | 'tpslOrder';
|
|
14
14
|
/**
|
package/package.json
CHANGED