@evedex/exchange-api 1.0.36 → 1.0.38
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.
|
@@ -84,6 +84,7 @@ class ExchangeWsGateway {
|
|
|
84
84
|
}
|
|
85
85
|
listenRecentTrades(query) {
|
|
86
86
|
this.listenChannel(`recent-trade-${query.instrument}`, false, ({ data }) => this.onRecentTrade({
|
|
87
|
+
executionId: data.executionId,
|
|
87
88
|
instrument: data.instrument,
|
|
88
89
|
side: data.side,
|
|
89
90
|
fillQuantity: data.fillQuantity,
|
|
@@ -112,6 +112,7 @@ export interface Order {
|
|
|
112
112
|
side: cryptoUtils.Side;
|
|
113
113
|
type: OrderType;
|
|
114
114
|
quantity: number;
|
|
115
|
+
cashQuantity: number;
|
|
115
116
|
limitPrice: number;
|
|
116
117
|
stopPrice: number | null;
|
|
117
118
|
status: OrderStatus;
|
|
@@ -126,7 +127,7 @@ export interface Order {
|
|
|
126
127
|
group: OrderGroup;
|
|
127
128
|
}
|
|
128
129
|
export type OrderList = ListOf<Order>;
|
|
129
|
-
export type OpenedOrder = Pick<Order, "id" | "user" | "instrument" | "side" | "type" | "status" | "quantity" | "limitPrice" | "unFilledQuantity" | "fee" | "updatedAt">;
|
|
130
|
+
export type OpenedOrder = Pick<Order, "id" | "user" | "instrument" | "side" | "type" | "status" | "quantity" | "limitPrice" | "unFilledQuantity" | "fee" | "updatedAt" | "cashQuantity">;
|
|
130
131
|
export type OpenedOrdersList = OpenedOrder[];
|
|
131
132
|
export declare enum OrderFillFeeType {
|
|
132
133
|
Liquidation = "liquidation",
|
|
@@ -299,6 +300,7 @@ export interface Trade {
|
|
|
299
300
|
createdAt: string;
|
|
300
301
|
}
|
|
301
302
|
export interface RecentTrade {
|
|
303
|
+
executionId: string;
|
|
302
304
|
instrument: string;
|
|
303
305
|
side: cryptoUtils.Side;
|
|
304
306
|
fillQuantity: number;
|
|
@@ -74,6 +74,7 @@ export class ExchangeWsGateway {
|
|
|
74
74
|
onRecentTrade = signal();
|
|
75
75
|
listenRecentTrades(query) {
|
|
76
76
|
this.listenChannel(`recent-trade-${query.instrument}`, false, ({ data }) => this.onRecentTrade({
|
|
77
|
+
executionId: data.executionId,
|
|
77
78
|
instrument: data.instrument,
|
|
78
79
|
side: data.side,
|
|
79
80
|
fillQuantity: data.fillQuantity,
|
|
@@ -112,6 +112,7 @@ export interface Order {
|
|
|
112
112
|
side: cryptoUtils.Side;
|
|
113
113
|
type: OrderType;
|
|
114
114
|
quantity: number;
|
|
115
|
+
cashQuantity: number;
|
|
115
116
|
limitPrice: number;
|
|
116
117
|
stopPrice: number | null;
|
|
117
118
|
status: OrderStatus;
|
|
@@ -126,7 +127,7 @@ export interface Order {
|
|
|
126
127
|
group: OrderGroup;
|
|
127
128
|
}
|
|
128
129
|
export type OrderList = ListOf<Order>;
|
|
129
|
-
export type OpenedOrder = Pick<Order, "id" | "user" | "instrument" | "side" | "type" | "status" | "quantity" | "limitPrice" | "unFilledQuantity" | "fee" | "updatedAt">;
|
|
130
|
+
export type OpenedOrder = Pick<Order, "id" | "user" | "instrument" | "side" | "type" | "status" | "quantity" | "limitPrice" | "unFilledQuantity" | "fee" | "updatedAt" | "cashQuantity">;
|
|
130
131
|
export type OpenedOrdersList = OpenedOrder[];
|
|
131
132
|
export declare enum OrderFillFeeType {
|
|
132
133
|
Liquidation = "liquidation",
|
|
@@ -299,6 +300,7 @@ export interface Trade {
|
|
|
299
300
|
createdAt: string;
|
|
300
301
|
}
|
|
301
302
|
export interface RecentTrade {
|
|
303
|
+
executionId: string;
|
|
302
304
|
instrument: string;
|
|
303
305
|
side: cryptoUtils.Side;
|
|
304
306
|
fillQuantity: number;
|