@monaco-protocol/client-v2 0.0.54 → 0.0.56
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 +2 -2
- package/dist/apis/OrdersApi.js +2 -2
- package/dist/apis/WalletsApi.d.ts +18 -1
- package/dist/apis/WalletsApi.js +54 -0
- package/dist/models/Meta.d.ts +1 -0
- package/dist/models/Meta.js +2 -1
- package/dist/models/WalletMetric.d.ts +38 -0
- package/dist/models/WalletMetric.js +50 -0
- package/dist/models/WalletMetrics.d.ts +57 -0
- package/dist/models/WalletMetrics.js +57 -0
- package/dist/models/WalletMetricsResponse.d.ts +40 -0
- package/dist/models/WalletMetricsResponse.js +52 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
package/dist/apis/OrdersApi.d.ts
CHANGED
|
@@ -113,11 +113,11 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
113
113
|
*/
|
|
114
114
|
getOrderByReference(requestParameters: GetOrderByReferenceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse>;
|
|
115
115
|
/**
|
|
116
|
-
* Fetch orders by filters
|
|
116
|
+
* Fetch orders by filters. At least one of the following filter parameters must be supplied: ids, appIds, eventIds, marketIds, walletIds, references.
|
|
117
117
|
*/
|
|
118
118
|
getOrdersRaw(requestParameters: GetOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedOrderResponse>>;
|
|
119
119
|
/**
|
|
120
|
-
* Fetch orders by filters
|
|
120
|
+
* Fetch orders by filters. At least one of the following filter parameters must be supplied: ids, appIds, eventIds, marketIds, walletIds, references.
|
|
121
121
|
*/
|
|
122
122
|
getOrders(requestParameters: GetOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedOrderResponse>;
|
|
123
123
|
/**
|
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -211,7 +211,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
211
211
|
});
|
|
212
212
|
}
|
|
213
213
|
/**
|
|
214
|
-
* Fetch orders by filters
|
|
214
|
+
* Fetch orders by filters. At least one of the following filter parameters must be supplied: ids, appIds, eventIds, marketIds, walletIds, references.
|
|
215
215
|
*/
|
|
216
216
|
getOrdersRaw(requestParameters, initOverrides) {
|
|
217
217
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -278,7 +278,7 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
* Fetch orders by filters
|
|
281
|
+
* Fetch orders by filters. At least one of the following filter parameters must be supplied: ids, appIds, eventIds, marketIds, walletIds, references.
|
|
282
282
|
*/
|
|
283
283
|
getOrders(requestParameters, initOverrides) {
|
|
284
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateWalletRequest, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, WalletResponse } from '../models/index';
|
|
13
|
+
import type { CreateWalletRequest, PagedMarketPositionResponse, PagedTransactionResponse, PagedWalletResponse, TransferResponse, WalletMetricsResponse, WalletResponse } from '../models/index';
|
|
14
14
|
export interface CreateWalletOperationRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
createWalletRequest: CreateWalletRequest;
|
|
@@ -25,6 +25,13 @@ export interface GetMarketPositionsRequest {
|
|
|
25
25
|
id: string;
|
|
26
26
|
marketIds: Array<string>;
|
|
27
27
|
}
|
|
28
|
+
export interface GetMetricsRequest {
|
|
29
|
+
authorization: string;
|
|
30
|
+
id: string;
|
|
31
|
+
currencyId: string;
|
|
32
|
+
fromDateTime: Date;
|
|
33
|
+
toDateTime: Date;
|
|
34
|
+
}
|
|
28
35
|
export interface GetWalletRequest {
|
|
29
36
|
authorization: string;
|
|
30
37
|
id: string;
|
|
@@ -81,6 +88,16 @@ export declare class WalletsApi extends runtime.BaseAPI {
|
|
|
81
88
|
* Get Market Positions
|
|
82
89
|
*/
|
|
83
90
|
getMarketPositions(requestParameters: GetMarketPositionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedMarketPositionResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Fetch a set of wallet account metrics for given wallet-id and currency-id
|
|
93
|
+
* Get Wallet Account Metrics
|
|
94
|
+
*/
|
|
95
|
+
getMetricsRaw(requestParameters: GetMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WalletMetricsResponse>>;
|
|
96
|
+
/**
|
|
97
|
+
* Fetch a set of wallet account metrics for given wallet-id and currency-id
|
|
98
|
+
* Get Wallet Account Metrics
|
|
99
|
+
*/
|
|
100
|
+
getMetrics(requestParameters: GetMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WalletMetricsResponse>;
|
|
84
101
|
/**
|
|
85
102
|
* Fetch a wallet by id
|
|
86
103
|
* Fetch a wallet by id
|
package/dist/apis/WalletsApi.js
CHANGED
|
@@ -152,6 +152,60 @@ class WalletsApi extends runtime.BaseAPI {
|
|
|
152
152
|
return yield response.value();
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Fetch a set of wallet account metrics for given wallet-id and currency-id
|
|
157
|
+
* Get Wallet Account Metrics
|
|
158
|
+
*/
|
|
159
|
+
getMetricsRaw(requestParameters, initOverrides) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
if (requestParameters['authorization'] == null) {
|
|
162
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getMetrics().');
|
|
163
|
+
}
|
|
164
|
+
if (requestParameters['id'] == null) {
|
|
165
|
+
throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getMetrics().');
|
|
166
|
+
}
|
|
167
|
+
if (requestParameters['currencyId'] == null) {
|
|
168
|
+
throw new runtime.RequiredError('currencyId', 'Required parameter "currencyId" was null or undefined when calling getMetrics().');
|
|
169
|
+
}
|
|
170
|
+
if (requestParameters['fromDateTime'] == null) {
|
|
171
|
+
throw new runtime.RequiredError('fromDateTime', 'Required parameter "fromDateTime" was null or undefined when calling getMetrics().');
|
|
172
|
+
}
|
|
173
|
+
if (requestParameters['toDateTime'] == null) {
|
|
174
|
+
throw new runtime.RequiredError('toDateTime', 'Required parameter "toDateTime" was null or undefined when calling getMetrics().');
|
|
175
|
+
}
|
|
176
|
+
const queryParameters = {};
|
|
177
|
+
if (requestParameters['currencyId'] != null) {
|
|
178
|
+
queryParameters['currencyId'] = requestParameters['currencyId'];
|
|
179
|
+
}
|
|
180
|
+
if (requestParameters['fromDateTime'] != null) {
|
|
181
|
+
queryParameters['fromDateTime'] = requestParameters['fromDateTime'].toISOString();
|
|
182
|
+
}
|
|
183
|
+
if (requestParameters['toDateTime'] != null) {
|
|
184
|
+
queryParameters['toDateTime'] = requestParameters['toDateTime'].toISOString();
|
|
185
|
+
}
|
|
186
|
+
const headerParameters = {};
|
|
187
|
+
if (requestParameters['authorization'] != null) {
|
|
188
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
189
|
+
}
|
|
190
|
+
const response = yield this.request({
|
|
191
|
+
path: `/wallets/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
192
|
+
method: 'POST',
|
|
193
|
+
headers: headerParameters,
|
|
194
|
+
query: queryParameters,
|
|
195
|
+
}, initOverrides);
|
|
196
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletMetricsResponseFromJSON)(jsonValue));
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Fetch a set of wallet account metrics for given wallet-id and currency-id
|
|
201
|
+
* Get Wallet Account Metrics
|
|
202
|
+
*/
|
|
203
|
+
getMetrics(requestParameters, initOverrides) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
const response = yield this.getMetricsRaw(requestParameters, initOverrides);
|
|
206
|
+
return yield response.value();
|
|
207
|
+
});
|
|
208
|
+
}
|
|
155
209
|
/**
|
|
156
210
|
* Fetch a wallet by id
|
|
157
211
|
* Fetch a wallet by id
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -61,6 +61,7 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
61
61
|
readonly Trades: "trades";
|
|
62
62
|
readonly Transactions: "transactions";
|
|
63
63
|
readonly Wallets: "wallets";
|
|
64
|
+
readonly WalletMetrics: "walletMetrics";
|
|
64
65
|
};
|
|
65
66
|
export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
|
|
66
67
|
/**
|
package/dist/models/Meta.js
CHANGED
|
@@ -45,7 +45,8 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
45
45
|
Subcategories: 'subcategories',
|
|
46
46
|
Trades: 'trades',
|
|
47
47
|
Transactions: 'transactions',
|
|
48
|
-
Wallets: 'wallets'
|
|
48
|
+
Wallets: 'wallets',
|
|
49
|
+
WalletMetrics: 'walletMetrics'
|
|
49
50
|
};
|
|
50
51
|
/**
|
|
51
52
|
* Check if a given object implements the Meta interface.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WalletMetric
|
|
16
|
+
*/
|
|
17
|
+
export interface WalletMetric {
|
|
18
|
+
/**
|
|
19
|
+
* orders total risked ('stake' for backers and 'stake * (price - 1)' for layers
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof WalletMetric
|
|
22
|
+
*/
|
|
23
|
+
total?: number;
|
|
24
|
+
/**
|
|
25
|
+
* orders count
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof WalletMetric
|
|
28
|
+
*/
|
|
29
|
+
count?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the WalletMetric interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfWalletMetric(value: object): value is WalletMetric;
|
|
35
|
+
export declare function WalletMetricFromJSON(json: any): WalletMetric;
|
|
36
|
+
export declare function WalletMetricFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletMetric;
|
|
37
|
+
export declare function WalletMetricToJSON(json: any): WalletMetric;
|
|
38
|
+
export declare function WalletMetricToJSONTyped(value?: WalletMetric | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWalletMetric = instanceOfWalletMetric;
|
|
17
|
+
exports.WalletMetricFromJSON = WalletMetricFromJSON;
|
|
18
|
+
exports.WalletMetricFromJSONTyped = WalletMetricFromJSONTyped;
|
|
19
|
+
exports.WalletMetricToJSON = WalletMetricToJSON;
|
|
20
|
+
exports.WalletMetricToJSONTyped = WalletMetricToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WalletMetric interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWalletMetric(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function WalletMetricFromJSON(json) {
|
|
28
|
+
return WalletMetricFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function WalletMetricFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'total': json['total'] == null ? undefined : json['total'],
|
|
36
|
+
'count': json['count'] == null ? undefined : json['count'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function WalletMetricToJSON(json) {
|
|
40
|
+
return WalletMetricToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function WalletMetricToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'total': value['total'],
|
|
48
|
+
'count': value['count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { WalletMetric } from './WalletMetric';
|
|
13
|
+
/**
|
|
14
|
+
* wallet metric
|
|
15
|
+
* @export
|
|
16
|
+
* @interface WalletMetrics
|
|
17
|
+
*/
|
|
18
|
+
export interface WalletMetrics {
|
|
19
|
+
/**
|
|
20
|
+
* metrics for open orders: total equals to a unmatched stake for all orders, count equals to a number all 'Unmatched' and 'PartiallyMatched' orders
|
|
21
|
+
* @type {WalletMetric}
|
|
22
|
+
* @memberof WalletMetrics
|
|
23
|
+
*/
|
|
24
|
+
open?: WalletMetric;
|
|
25
|
+
/**
|
|
26
|
+
* metrics for matched orders: total equals to a matched stake for all 'Matched' orders, count equals to a number all 'Matched' orders
|
|
27
|
+
* @type {WalletMetric}
|
|
28
|
+
* @memberof WalletMetrics
|
|
29
|
+
*/
|
|
30
|
+
matched?: WalletMetric;
|
|
31
|
+
/**
|
|
32
|
+
* metrics for cancelled orders: total equals to a voided stake for all 'Cancelled' orders, count equals to a number all 'Cancelled' orders
|
|
33
|
+
* @type {WalletMetric}
|
|
34
|
+
* @memberof WalletMetrics
|
|
35
|
+
*/
|
|
36
|
+
cancelled?: WalletMetric;
|
|
37
|
+
/**
|
|
38
|
+
* metrics for settled orders: total equals to a matched stake for all 'Matched' orders, count equals to a number all 'Won' or 'Lost' orders
|
|
39
|
+
* @type {WalletMetric}
|
|
40
|
+
* @memberof WalletMetrics
|
|
41
|
+
*/
|
|
42
|
+
settled?: WalletMetric;
|
|
43
|
+
/**
|
|
44
|
+
* metrics for voided orders: total equals to a voided stake for all 'Voided' orders, count equals to a number all 'Voided' orders
|
|
45
|
+
* @type {WalletMetric}
|
|
46
|
+
* @memberof WalletMetrics
|
|
47
|
+
*/
|
|
48
|
+
voided?: WalletMetric;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the WalletMetrics interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfWalletMetrics(value: object): value is WalletMetrics;
|
|
54
|
+
export declare function WalletMetricsFromJSON(json: any): WalletMetrics;
|
|
55
|
+
export declare function WalletMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletMetrics;
|
|
56
|
+
export declare function WalletMetricsToJSON(json: any): WalletMetrics;
|
|
57
|
+
export declare function WalletMetricsToJSONTyped(value?: WalletMetrics | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWalletMetrics = instanceOfWalletMetrics;
|
|
17
|
+
exports.WalletMetricsFromJSON = WalletMetricsFromJSON;
|
|
18
|
+
exports.WalletMetricsFromJSONTyped = WalletMetricsFromJSONTyped;
|
|
19
|
+
exports.WalletMetricsToJSON = WalletMetricsToJSON;
|
|
20
|
+
exports.WalletMetricsToJSONTyped = WalletMetricsToJSONTyped;
|
|
21
|
+
const WalletMetric_1 = require("./WalletMetric");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the WalletMetrics interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfWalletMetrics(value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
function WalletMetricsFromJSON(json) {
|
|
29
|
+
return WalletMetricsFromJSONTyped(json, false);
|
|
30
|
+
}
|
|
31
|
+
function WalletMetricsFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'open': json['open'] == null ? undefined : (0, WalletMetric_1.WalletMetricFromJSON)(json['open']),
|
|
37
|
+
'matched': json['matched'] == null ? undefined : (0, WalletMetric_1.WalletMetricFromJSON)(json['matched']),
|
|
38
|
+
'cancelled': json['cancelled'] == null ? undefined : (0, WalletMetric_1.WalletMetricFromJSON)(json['cancelled']),
|
|
39
|
+
'settled': json['settled'] == null ? undefined : (0, WalletMetric_1.WalletMetricFromJSON)(json['settled']),
|
|
40
|
+
'voided': json['voided'] == null ? undefined : (0, WalletMetric_1.WalletMetricFromJSON)(json['voided']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function WalletMetricsToJSON(json) {
|
|
44
|
+
return WalletMetricsToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function WalletMetricsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'open': (0, WalletMetric_1.WalletMetricToJSON)(value['open']),
|
|
52
|
+
'matched': (0, WalletMetric_1.WalletMetricToJSON)(value['matched']),
|
|
53
|
+
'cancelled': (0, WalletMetric_1.WalletMetricToJSON)(value['cancelled']),
|
|
54
|
+
'settled': (0, WalletMetric_1.WalletMetricToJSON)(value['settled']),
|
|
55
|
+
'voided': (0, WalletMetric_1.WalletMetricToJSON)(value['voided']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monaco API
|
|
3
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.1
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { Meta } from './Meta';
|
|
13
|
+
import type { WalletMetrics } from './WalletMetrics';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WalletMetricsResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface WalletMetricsResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof WalletMetricsResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
* collection of wallet metrics
|
|
28
|
+
* @type {WalletMetrics}
|
|
29
|
+
* @memberof WalletMetricsResponse
|
|
30
|
+
*/
|
|
31
|
+
walletMetrics?: WalletMetrics;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the WalletMetricsResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfWalletMetricsResponse(value: object): value is WalletMetricsResponse;
|
|
37
|
+
export declare function WalletMetricsResponseFromJSON(json: any): WalletMetricsResponse;
|
|
38
|
+
export declare function WalletMetricsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletMetricsResponse;
|
|
39
|
+
export declare function WalletMetricsResponseToJSON(json: any): WalletMetricsResponse;
|
|
40
|
+
export declare function WalletMetricsResponseToJSONTyped(value?: WalletMetricsResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfWalletMetricsResponse = instanceOfWalletMetricsResponse;
|
|
17
|
+
exports.WalletMetricsResponseFromJSON = WalletMetricsResponseFromJSON;
|
|
18
|
+
exports.WalletMetricsResponseFromJSONTyped = WalletMetricsResponseFromJSONTyped;
|
|
19
|
+
exports.WalletMetricsResponseToJSON = WalletMetricsResponseToJSON;
|
|
20
|
+
exports.WalletMetricsResponseToJSONTyped = WalletMetricsResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const WalletMetrics_1 = require("./WalletMetrics");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the WalletMetricsResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWalletMetricsResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function WalletMetricsResponseFromJSON(json) {
|
|
30
|
+
return WalletMetricsResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function WalletMetricsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
38
|
+
'walletMetrics': json['walletMetrics'] == null ? undefined : (0, WalletMetrics_1.WalletMetricsFromJSON)(json['walletMetrics']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WalletMetricsResponseToJSON(json) {
|
|
42
|
+
return WalletMetricsResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WalletMetricsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'walletMetrics': (0, WalletMetrics_1.WalletMetricsToJSON)(value['walletMetrics']),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -91,4 +91,7 @@ export * from './UpdateHeartbeatRequest';
|
|
|
91
91
|
export * from './UpdateNameRequest';
|
|
92
92
|
export * from './Wallet';
|
|
93
93
|
export * from './WalletBalance';
|
|
94
|
+
export * from './WalletMetric';
|
|
95
|
+
export * from './WalletMetrics';
|
|
96
|
+
export * from './WalletMetricsResponse';
|
|
94
97
|
export * from './WalletResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -109,4 +109,7 @@ __exportStar(require("./UpdateHeartbeatRequest"), exports);
|
|
|
109
109
|
__exportStar(require("./UpdateNameRequest"), exports);
|
|
110
110
|
__exportStar(require("./Wallet"), exports);
|
|
111
111
|
__exportStar(require("./WalletBalance"), exports);
|
|
112
|
+
__exportStar(require("./WalletMetric"), exports);
|
|
113
|
+
__exportStar(require("./WalletMetrics"), exports);
|
|
114
|
+
__exportStar(require("./WalletMetricsResponse"), exports);
|
|
112
115
|
__exportStar(require("./WalletResponse"), exports);
|