@monaco-protocol/client-v2 0.0.2-dev.15 → 0.0.2-dev.17
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.
package/dist/apis/OrdersApi.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export interface GetOrdersRequest {
|
|
|
45
45
|
toStake?: number;
|
|
46
46
|
fromCreatedAt?: Date;
|
|
47
47
|
toCreatedAt?: Date;
|
|
48
|
+
matchBehavior?: GetOrdersMatchBehaviorEnum;
|
|
48
49
|
page?: number;
|
|
49
50
|
size?: number;
|
|
50
51
|
sort?: Array<string>;
|
|
@@ -147,3 +148,11 @@ export declare const GetOrdersStatusesEnum: {
|
|
|
147
148
|
readonly Voided: "Voided";
|
|
148
149
|
};
|
|
149
150
|
export type GetOrdersStatusesEnum = typeof GetOrdersStatusesEnum[keyof typeof GetOrdersStatusesEnum];
|
|
151
|
+
/**
|
|
152
|
+
* @export
|
|
153
|
+
*/
|
|
154
|
+
export declare const GetOrdersMatchBehaviorEnum: {
|
|
155
|
+
readonly RetainUnmatched: "RetainUnmatched";
|
|
156
|
+
readonly CancelUnmatched: "CancelUnmatched";
|
|
157
|
+
};
|
|
158
|
+
export type GetOrdersMatchBehaviorEnum = typeof GetOrdersMatchBehaviorEnum[keyof typeof GetOrdersMatchBehaviorEnum];
|
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetOrdersStatusesEnum = exports.OrdersApi = void 0;
|
|
25
|
+
exports.GetOrdersMatchBehaviorEnum = exports.GetOrdersStatusesEnum = exports.OrdersApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -246,6 +246,9 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
246
246
|
if (requestParameters['toCreatedAt'] != null) {
|
|
247
247
|
queryParameters['toCreatedAt'] = requestParameters['toCreatedAt'].toISOString();
|
|
248
248
|
}
|
|
249
|
+
if (requestParameters['matchBehavior'] != null) {
|
|
250
|
+
queryParameters['matchBehavior'] = requestParameters['matchBehavior'];
|
|
251
|
+
}
|
|
249
252
|
if (requestParameters['page'] != null) {
|
|
250
253
|
queryParameters['page'] = requestParameters['page'];
|
|
251
254
|
}
|
|
@@ -389,3 +392,10 @@ exports.GetOrdersStatusesEnum = {
|
|
|
389
392
|
Lost: 'Lost',
|
|
390
393
|
Voided: 'Voided'
|
|
391
394
|
};
|
|
395
|
+
/**
|
|
396
|
+
* @export
|
|
397
|
+
*/
|
|
398
|
+
exports.GetOrdersMatchBehaviorEnum = {
|
|
399
|
+
RetainUnmatched: 'RetainUnmatched',
|
|
400
|
+
CancelUnmatched: 'CancelUnmatched'
|
|
401
|
+
};
|
|
@@ -22,6 +22,12 @@ export interface TradeSummary {
|
|
|
22
22
|
* @memberof TradeSummary
|
|
23
23
|
*/
|
|
24
24
|
order?: DocumentReference;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof TradeSummary
|
|
29
|
+
*/
|
|
30
|
+
id?: string;
|
|
25
31
|
/**
|
|
26
32
|
*
|
|
27
33
|
* @type {number}
|
|
@@ -34,6 +40,12 @@ export interface TradeSummary {
|
|
|
34
40
|
* @memberof TradeSummary
|
|
35
41
|
*/
|
|
36
42
|
stake?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof TradeSummary
|
|
47
|
+
*/
|
|
48
|
+
createdAt?: Date;
|
|
37
49
|
}
|
|
38
50
|
/**
|
|
39
51
|
* Check if a given object implements the TradeSummary interface.
|
|
@@ -34,8 +34,10 @@ function TradeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'order': json['order'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['order']),
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
37
38
|
'price': json['price'] == null ? undefined : json['price'],
|
|
38
39
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
40
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
39
41
|
};
|
|
40
42
|
}
|
|
41
43
|
function TradeSummaryToJSON(json) {
|
|
@@ -47,7 +49,9 @@ function TradeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
'order': (0, DocumentReference_1.DocumentReferenceToJSON)(value['order']),
|
|
52
|
+
'id': value['id'],
|
|
50
53
|
'price': value['price'],
|
|
51
54
|
'stake': value['stake'],
|
|
55
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
52
56
|
};
|
|
53
57
|
}
|