@monaco-protocol/client-v2 0.0.59-dev.2 → 0.0.64
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 +13 -1
- package/dist/apis/OrdersApi.js +36 -0
- package/dist/apis/index.d.ts +0 -1
- package/dist/apis/index.js +0 -1
- package/dist/models/index.d.ts +4 -1
- package/dist/models/index.js +4 -1
- package/package.json +1 -1
- package/dist/apis/PricesApi.d.ts +0 -61
- package/dist/apis/PricesApi.js +0 -110
- package/dist/models/PagedMarketWithPricesResponse.d.ts +0 -96
- package/dist/models/PagedMarketWithPricesResponse.js +0 -76
package/dist/apis/OrdersApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
|
|
13
|
+
import type { BatchCreateOrderRequest, BatchOrderResponse, ChunkOrderResponse, CreateOrderRequest, OrderResponse, PagedOrderResponse, TradeResponse } from '../models/index';
|
|
14
14
|
export interface CancelOrderRequest {
|
|
15
15
|
authorization: string;
|
|
16
16
|
id: string;
|
|
@@ -26,6 +26,10 @@ export interface CreateOrderOperationRequest {
|
|
|
26
26
|
authorization: string;
|
|
27
27
|
createOrderRequest: CreateOrderRequest;
|
|
28
28
|
}
|
|
29
|
+
export interface CreateOrdersRequest {
|
|
30
|
+
authorization: string;
|
|
31
|
+
batchCreateOrderRequest: BatchCreateOrderRequest;
|
|
32
|
+
}
|
|
29
33
|
export interface GetOrderRequest {
|
|
30
34
|
authorization: string;
|
|
31
35
|
id: string;
|
|
@@ -96,6 +100,14 @@ export declare class OrdersApi extends runtime.BaseAPI {
|
|
|
96
100
|
* Create order
|
|
97
101
|
*/
|
|
98
102
|
createOrder(requestParameters: CreateOrderOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrderResponse>;
|
|
103
|
+
/**
|
|
104
|
+
* Create multiple orders
|
|
105
|
+
*/
|
|
106
|
+
createOrdersRaw(requestParameters: CreateOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BatchOrderResponse>>;
|
|
107
|
+
/**
|
|
108
|
+
* Create multiple orders
|
|
109
|
+
*/
|
|
110
|
+
createOrders(requestParameters: CreateOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BatchOrderResponse>;
|
|
99
111
|
/**
|
|
100
112
|
* Fetch order by id
|
|
101
113
|
*/
|
package/dist/apis/OrdersApi.js
CHANGED
|
@@ -142,6 +142,42 @@ class OrdersApi extends runtime.BaseAPI {
|
|
|
142
142
|
return yield response.value();
|
|
143
143
|
});
|
|
144
144
|
}
|
|
145
|
+
/**
|
|
146
|
+
* Create multiple orders
|
|
147
|
+
*/
|
|
148
|
+
createOrdersRaw(requestParameters, initOverrides) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
if (requestParameters['authorization'] == null) {
|
|
151
|
+
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling createOrders().');
|
|
152
|
+
}
|
|
153
|
+
if (requestParameters['batchCreateOrderRequest'] == null) {
|
|
154
|
+
throw new runtime.RequiredError('batchCreateOrderRequest', 'Required parameter "batchCreateOrderRequest" was null or undefined when calling createOrders().');
|
|
155
|
+
}
|
|
156
|
+
const queryParameters = {};
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
159
|
+
if (requestParameters['authorization'] != null) {
|
|
160
|
+
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
161
|
+
}
|
|
162
|
+
const response = yield this.request({
|
|
163
|
+
path: `/orders/batch`,
|
|
164
|
+
method: 'POST',
|
|
165
|
+
headers: headerParameters,
|
|
166
|
+
query: queryParameters,
|
|
167
|
+
body: (0, index_1.BatchCreateOrderRequestToJSON)(requestParameters['batchCreateOrderRequest']),
|
|
168
|
+
}, initOverrides);
|
|
169
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BatchOrderResponseFromJSON)(jsonValue));
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Create multiple orders
|
|
174
|
+
*/
|
|
175
|
+
createOrders(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const response = yield this.createOrdersRaw(requestParameters, initOverrides);
|
|
178
|
+
return yield response.value();
|
|
179
|
+
});
|
|
180
|
+
}
|
|
145
181
|
/**
|
|
146
182
|
* Fetch order by id
|
|
147
183
|
*/
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './MarketPricesApi';
|
|
|
10
10
|
export * from './MarketTypesApi';
|
|
11
11
|
export * from './MarketsApi';
|
|
12
12
|
export * from './OrdersApi';
|
|
13
|
-
export * from './PricesApi';
|
|
14
13
|
export * from './SessionManagementApi';
|
|
15
14
|
export * from './StatusApi';
|
|
16
15
|
export * from './TradesApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -28,7 +28,6 @@ __exportStar(require("./MarketPricesApi"), exports);
|
|
|
28
28
|
__exportStar(require("./MarketTypesApi"), exports);
|
|
29
29
|
__exportStar(require("./MarketsApi"), exports);
|
|
30
30
|
__exportStar(require("./OrdersApi"), exports);
|
|
31
|
-
__exportStar(require("./PricesApi"), exports);
|
|
32
31
|
__exportStar(require("./SessionManagementApi"), exports);
|
|
33
32
|
__exportStar(require("./StatusApi"), exports);
|
|
34
33
|
__exportStar(require("./TradesApi"), exports);
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export * from './App';
|
|
|
7
7
|
export * from './AppResponse';
|
|
8
8
|
export * from './AppStatus';
|
|
9
9
|
export * from './AppStatusResponse';
|
|
10
|
+
export * from './BatchCreateOrderRequest';
|
|
11
|
+
export * from './BatchOrderResponse';
|
|
12
|
+
export * from './BatchOrderResponseOrdersInner';
|
|
10
13
|
export * from './Category';
|
|
11
14
|
export * from './CategoryResponse';
|
|
12
15
|
export * from './CategorySummary';
|
|
@@ -57,6 +60,7 @@ export * from './MarketTypeResponse';
|
|
|
57
60
|
export * from './MarketTypeSummary';
|
|
58
61
|
export * from './MarketUpdateResponse';
|
|
59
62
|
export * from './Meta';
|
|
63
|
+
export * from './ModelError';
|
|
60
64
|
export * from './ModifyParticipantsRequest';
|
|
61
65
|
export * from './Order';
|
|
62
66
|
export * from './OrderResponse';
|
|
@@ -65,7 +69,6 @@ export * from './PageMeta';
|
|
|
65
69
|
export * from './PagedEventResponse';
|
|
66
70
|
export * from './PagedMarketPositionResponse';
|
|
67
71
|
export * from './PagedMarketResponse';
|
|
68
|
-
export * from './PagedMarketWithPricesResponse';
|
|
69
72
|
export * from './PagedOrderResponse';
|
|
70
73
|
export * from './PagedTradeResponse';
|
|
71
74
|
export * from './PagedTransactionResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,9 @@ __exportStar(require("./App"), exports);
|
|
|
25
25
|
__exportStar(require("./AppResponse"), exports);
|
|
26
26
|
__exportStar(require("./AppStatus"), exports);
|
|
27
27
|
__exportStar(require("./AppStatusResponse"), exports);
|
|
28
|
+
__exportStar(require("./BatchCreateOrderRequest"), exports);
|
|
29
|
+
__exportStar(require("./BatchOrderResponse"), exports);
|
|
30
|
+
__exportStar(require("./BatchOrderResponseOrdersInner"), exports);
|
|
28
31
|
__exportStar(require("./Category"), exports);
|
|
29
32
|
__exportStar(require("./CategoryResponse"), exports);
|
|
30
33
|
__exportStar(require("./CategorySummary"), exports);
|
|
@@ -75,6 +78,7 @@ __exportStar(require("./MarketTypeResponse"), exports);
|
|
|
75
78
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
76
79
|
__exportStar(require("./MarketUpdateResponse"), exports);
|
|
77
80
|
__exportStar(require("./Meta"), exports);
|
|
81
|
+
__exportStar(require("./ModelError"), exports);
|
|
78
82
|
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
79
83
|
__exportStar(require("./Order"), exports);
|
|
80
84
|
__exportStar(require("./OrderResponse"), exports);
|
|
@@ -83,7 +87,6 @@ __exportStar(require("./PageMeta"), exports);
|
|
|
83
87
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
84
88
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
85
89
|
__exportStar(require("./PagedMarketResponse"), exports);
|
|
86
|
-
__exportStar(require("./PagedMarketWithPricesResponse"), exports);
|
|
87
90
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
88
91
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
89
92
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
package/package.json
CHANGED
package/dist/apis/PricesApi.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { PagedMarketWithPricesResponse } from '../models/index';
|
|
14
|
-
export interface GetPricesRequest {
|
|
15
|
-
authorization: string;
|
|
16
|
-
eventStarting?: GetPricesEventStartingEnum;
|
|
17
|
-
fromDateTime?: Date;
|
|
18
|
-
toDateTime?: Date;
|
|
19
|
-
marketStatuses?: Set<GetPricesMarketStatusesEnum>;
|
|
20
|
-
marketIds?: Set<string>;
|
|
21
|
-
page?: number;
|
|
22
|
-
size?: number;
|
|
23
|
-
sort?: Array<string>;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare class PricesApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
31
|
-
*/
|
|
32
|
-
getPricesRaw(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PagedMarketWithPricesResponse>>;
|
|
33
|
-
/**
|
|
34
|
-
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
35
|
-
*/
|
|
36
|
-
getPrices(requestParameters: GetPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PagedMarketWithPricesResponse>;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @export
|
|
40
|
-
*/
|
|
41
|
-
export declare const GetPricesEventStartingEnum: {
|
|
42
|
-
readonly Live: "Live";
|
|
43
|
-
readonly Today: "Today";
|
|
44
|
-
readonly Later: "Later";
|
|
45
|
-
readonly Range: "Range";
|
|
46
|
-
};
|
|
47
|
-
export type GetPricesEventStartingEnum = typeof GetPricesEventStartingEnum[keyof typeof GetPricesEventStartingEnum];
|
|
48
|
-
/**
|
|
49
|
-
* @export
|
|
50
|
-
*/
|
|
51
|
-
export declare const GetPricesMarketStatusesEnum: {
|
|
52
|
-
readonly Initializing: "Initializing";
|
|
53
|
-
readonly Open: "Open";
|
|
54
|
-
readonly Locked: "Locked";
|
|
55
|
-
readonly Settling: "Settling";
|
|
56
|
-
readonly Settled: "Settled";
|
|
57
|
-
readonly Voiding: "Voiding";
|
|
58
|
-
readonly Voided: "Voided";
|
|
59
|
-
readonly Closed: "Closed";
|
|
60
|
-
};
|
|
61
|
-
export type GetPricesMarketStatusesEnum = typeof GetPricesMarketStatusesEnum[keyof typeof GetPricesMarketStatusesEnum];
|
package/dist/apis/PricesApi.js
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
-
});
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.GetPricesMarketStatusesEnum = exports.GetPricesEventStartingEnum = exports.PricesApi = void 0;
|
|
26
|
-
const runtime = require("../runtime");
|
|
27
|
-
const index_1 = require("../models/index");
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
class PricesApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
34
|
-
*/
|
|
35
|
-
getPricesRaw(requestParameters, initOverrides) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
if (requestParameters['authorization'] == null) {
|
|
38
|
-
throw new runtime.RequiredError('authorization', 'Required parameter "authorization" was null or undefined when calling getPrices().');
|
|
39
|
-
}
|
|
40
|
-
const queryParameters = {};
|
|
41
|
-
if (requestParameters['eventStarting'] != null) {
|
|
42
|
-
queryParameters['eventStarting'] = requestParameters['eventStarting'];
|
|
43
|
-
}
|
|
44
|
-
if (requestParameters['fromDateTime'] != null) {
|
|
45
|
-
queryParameters['fromDateTime'] = requestParameters['fromDateTime'].toISOString();
|
|
46
|
-
}
|
|
47
|
-
if (requestParameters['toDateTime'] != null) {
|
|
48
|
-
queryParameters['toDateTime'] = requestParameters['toDateTime'].toISOString();
|
|
49
|
-
}
|
|
50
|
-
if (requestParameters['marketStatuses'] != null) {
|
|
51
|
-
queryParameters['marketStatuses'] = requestParameters['marketStatuses'];
|
|
52
|
-
}
|
|
53
|
-
if (requestParameters['marketIds'] != null) {
|
|
54
|
-
queryParameters['marketIds'] = requestParameters['marketIds'];
|
|
55
|
-
}
|
|
56
|
-
if (requestParameters['page'] != null) {
|
|
57
|
-
queryParameters['page'] = requestParameters['page'];
|
|
58
|
-
}
|
|
59
|
-
if (requestParameters['size'] != null) {
|
|
60
|
-
queryParameters['size'] = requestParameters['size'];
|
|
61
|
-
}
|
|
62
|
-
if (requestParameters['sort'] != null) {
|
|
63
|
-
queryParameters['sort'] = requestParameters['sort'];
|
|
64
|
-
}
|
|
65
|
-
const headerParameters = {};
|
|
66
|
-
if (requestParameters['authorization'] != null) {
|
|
67
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
68
|
-
}
|
|
69
|
-
const response = yield this.request({
|
|
70
|
-
path: `/prices`,
|
|
71
|
-
method: 'GET',
|
|
72
|
-
headers: headerParameters,
|
|
73
|
-
query: queryParameters,
|
|
74
|
-
}, initOverrides);
|
|
75
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PagedMarketWithPricesResponseFromJSON)(jsonValue));
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Fetch market prices, filtered by either provided market ids, or event start time - with optional filtering on market status. Paginated by number of markets.
|
|
80
|
-
*/
|
|
81
|
-
getPrices(requestParameters, initOverrides) {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
const response = yield this.getPricesRaw(requestParameters, initOverrides);
|
|
84
|
-
return yield response.value();
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.PricesApi = PricesApi;
|
|
89
|
-
/**
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
exports.GetPricesEventStartingEnum = {
|
|
93
|
-
Live: 'Live',
|
|
94
|
-
Today: 'Today',
|
|
95
|
-
Later: 'Later',
|
|
96
|
-
Range: 'Range'
|
|
97
|
-
};
|
|
98
|
-
/**
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
exports.GetPricesMarketStatusesEnum = {
|
|
102
|
-
Initializing: 'Initializing',
|
|
103
|
-
Open: 'Open',
|
|
104
|
-
Locked: 'Locked',
|
|
105
|
-
Settling: 'Settling',
|
|
106
|
-
Settled: 'Settled',
|
|
107
|
-
Voiding: 'Voiding',
|
|
108
|
-
Voided: 'Voided',
|
|
109
|
-
Closed: 'Closed'
|
|
110
|
-
};
|
|
@@ -1,96 +0,0 @@
|
|
|
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 { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
|
-
import type { Meta } from './Meta';
|
|
14
|
-
import type { CategorySummary } from './CategorySummary';
|
|
15
|
-
import type { EventSummary } from './EventSummary';
|
|
16
|
-
import type { SubcategorySummary } from './SubcategorySummary';
|
|
17
|
-
import type { Market } from './Market';
|
|
18
|
-
import type { MarketLiquidities } from './MarketLiquidities';
|
|
19
|
-
import type { MarketTypeSummary } from './MarketTypeSummary';
|
|
20
|
-
import type { EventGroupSummary } from './EventGroupSummary';
|
|
21
|
-
import type { EventParticipant } from './EventParticipant';
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @export
|
|
25
|
-
* @interface PagedMarketWithPricesResponse
|
|
26
|
-
*/
|
|
27
|
-
export interface PagedMarketWithPricesResponse {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {Meta}
|
|
31
|
-
* @memberof PagedMarketWithPricesResponse
|
|
32
|
-
*/
|
|
33
|
-
meta?: Meta;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<Market>}
|
|
37
|
-
* @memberof PagedMarketWithPricesResponse
|
|
38
|
-
*/
|
|
39
|
-
markets?: Array<Market>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {Array<MarketTypeSummary>}
|
|
43
|
-
* @memberof PagedMarketWithPricesResponse
|
|
44
|
-
*/
|
|
45
|
-
marketTypes?: Array<MarketTypeSummary>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {Array<MarketOutcomeSummary>}
|
|
49
|
-
* @memberof PagedMarketWithPricesResponse
|
|
50
|
-
*/
|
|
51
|
-
marketOutcomes?: Array<MarketOutcomeSummary>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {Array<EventSummary>}
|
|
55
|
-
* @memberof PagedMarketWithPricesResponse
|
|
56
|
-
*/
|
|
57
|
-
events?: Array<EventSummary>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {Array<EventGroupSummary>}
|
|
61
|
-
* @memberof PagedMarketWithPricesResponse
|
|
62
|
-
*/
|
|
63
|
-
eventGroups?: Array<EventGroupSummary>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {Array<SubcategorySummary>}
|
|
67
|
-
* @memberof PagedMarketWithPricesResponse
|
|
68
|
-
*/
|
|
69
|
-
subcategories?: Array<SubcategorySummary>;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {Array<CategorySummary>}
|
|
73
|
-
* @memberof PagedMarketWithPricesResponse
|
|
74
|
-
*/
|
|
75
|
-
categories?: Array<CategorySummary>;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<MarketLiquidities>}
|
|
79
|
-
* @memberof PagedMarketWithPricesResponse
|
|
80
|
-
*/
|
|
81
|
-
prices?: Array<MarketLiquidities>;
|
|
82
|
-
/**
|
|
83
|
-
*
|
|
84
|
-
* @type {Array<EventParticipant>}
|
|
85
|
-
* @memberof PagedMarketWithPricesResponse
|
|
86
|
-
*/
|
|
87
|
-
participants?: Array<EventParticipant>;
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
91
|
-
*/
|
|
92
|
-
export declare function instanceOfPagedMarketWithPricesResponse(value: object): value is PagedMarketWithPricesResponse;
|
|
93
|
-
export declare function PagedMarketWithPricesResponseFromJSON(json: any): PagedMarketWithPricesResponse;
|
|
94
|
-
export declare function PagedMarketWithPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedMarketWithPricesResponse;
|
|
95
|
-
export declare function PagedMarketWithPricesResponseToJSON(json: any): PagedMarketWithPricesResponse;
|
|
96
|
-
export declare function PagedMarketWithPricesResponseToJSONTyped(value?: PagedMarketWithPricesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -1,76 +0,0 @@
|
|
|
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.instanceOfPagedMarketWithPricesResponse = instanceOfPagedMarketWithPricesResponse;
|
|
17
|
-
exports.PagedMarketWithPricesResponseFromJSON = PagedMarketWithPricesResponseFromJSON;
|
|
18
|
-
exports.PagedMarketWithPricesResponseFromJSONTyped = PagedMarketWithPricesResponseFromJSONTyped;
|
|
19
|
-
exports.PagedMarketWithPricesResponseToJSON = PagedMarketWithPricesResponseToJSON;
|
|
20
|
-
exports.PagedMarketWithPricesResponseToJSONTyped = PagedMarketWithPricesResponseToJSONTyped;
|
|
21
|
-
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
|
-
const Meta_1 = require("./Meta");
|
|
23
|
-
const CategorySummary_1 = require("./CategorySummary");
|
|
24
|
-
const EventSummary_1 = require("./EventSummary");
|
|
25
|
-
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
26
|
-
const Market_1 = require("./Market");
|
|
27
|
-
const MarketLiquidities_1 = require("./MarketLiquidities");
|
|
28
|
-
const MarketTypeSummary_1 = require("./MarketTypeSummary");
|
|
29
|
-
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
30
|
-
const EventParticipant_1 = require("./EventParticipant");
|
|
31
|
-
/**
|
|
32
|
-
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
33
|
-
*/
|
|
34
|
-
function instanceOfPagedMarketWithPricesResponse(value) {
|
|
35
|
-
return true;
|
|
36
|
-
}
|
|
37
|
-
function PagedMarketWithPricesResponseFromJSON(json) {
|
|
38
|
-
return PagedMarketWithPricesResponseFromJSONTyped(json, false);
|
|
39
|
-
}
|
|
40
|
-
function PagedMarketWithPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
-
if (json == null) {
|
|
42
|
-
return json;
|
|
43
|
-
}
|
|
44
|
-
return {
|
|
45
|
-
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
46
|
-
'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
|
|
47
|
-
'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
|
|
48
|
-
'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
|
|
49
|
-
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
50
|
-
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
|
|
51
|
-
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
52
|
-
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
53
|
-
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidities_1.MarketLiquiditiesFromJSON)),
|
|
54
|
-
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
function PagedMarketWithPricesResponseToJSON(json) {
|
|
58
|
-
return PagedMarketWithPricesResponseToJSONTyped(json, false);
|
|
59
|
-
}
|
|
60
|
-
function PagedMarketWithPricesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
-
if (value == null) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
66
|
-
'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
|
|
67
|
-
'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
|
|
68
|
-
'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
|
|
69
|
-
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
70
|
-
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
71
|
-
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
72
|
-
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
73
|
-
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidities_1.MarketLiquiditiesToJSON)),
|
|
74
|
-
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
75
|
-
};
|
|
76
|
-
}
|