@monaco-protocol/client-v2 0.0.96-develop → 0.0.98-dev-wak

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.
Files changed (31) hide show
  1. package/dist/apis/APIKeyManagementApi.d.ts +6 -6
  2. package/dist/apis/APIKeyManagementApi.js +10 -10
  3. package/dist/apis/AppManagementApi.d.ts +15 -0
  4. package/dist/apis/AppManagementApi.js +41 -0
  5. package/dist/apis/WalletAPIKeyManagementApi.d.ts +55 -0
  6. package/dist/apis/WalletAPIKeyManagementApi.js +140 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AppPermissionRequest.d.ts +7 -6
  10. package/dist/models/AppPermissionRequest.js +8 -7
  11. package/dist/models/BalanceUpdateRequest.d.ts +1 -1
  12. package/dist/models/BalanceUpdateRequest.js +3 -1
  13. package/dist/models/CreateAPIKeyRequest.d.ts +2 -2
  14. package/dist/models/CreateAPIKeyRequest.js +3 -1
  15. package/dist/models/CreateWalletAPIKeyRequest.d.ts +32 -0
  16. package/dist/models/CreateWalletAPIKeyRequest.js +50 -0
  17. package/dist/models/DeactivateWalletAPIKeyRequest.d.ts +32 -0
  18. package/dist/models/DeactivateWalletAPIKeyRequest.js +50 -0
  19. package/dist/models/UpdateAppCommissionRateRequest.d.ts +1 -1
  20. package/dist/models/UpdateAppCommissionRateRequest.js +3 -1
  21. package/dist/models/WalletAPIKey.d.ts +68 -0
  22. package/dist/models/WalletAPIKey.js +60 -0
  23. package/dist/models/WalletAPIKeyResponse.d.ts +40 -0
  24. package/dist/models/WalletAPIKeyResponse.js +52 -0
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/dist/apis/PricesApi.d.ts +0 -61
  29. package/dist/apis/PricesApi.js +0 -110
  30. package/dist/models/PagedMarketWithPricesResponse.d.ts +0 -96
  31. package/dist/models/PagedMarketWithPricesResponse.js +0 -76
@@ -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.instanceOfDeactivateWalletAPIKeyRequest = instanceOfDeactivateWalletAPIKeyRequest;
17
+ exports.DeactivateWalletAPIKeyRequestFromJSON = DeactivateWalletAPIKeyRequestFromJSON;
18
+ exports.DeactivateWalletAPIKeyRequestFromJSONTyped = DeactivateWalletAPIKeyRequestFromJSONTyped;
19
+ exports.DeactivateWalletAPIKeyRequestToJSON = DeactivateWalletAPIKeyRequestToJSON;
20
+ exports.DeactivateWalletAPIKeyRequestToJSONTyped = DeactivateWalletAPIKeyRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeactivateWalletAPIKeyRequest interface.
23
+ */
24
+ function instanceOfDeactivateWalletAPIKeyRequest(value) {
25
+ if (!('apiKey' in value) || value['apiKey'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function DeactivateWalletAPIKeyRequestFromJSON(json) {
30
+ return DeactivateWalletAPIKeyRequestFromJSONTyped(json, false);
31
+ }
32
+ function DeactivateWalletAPIKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'apiKey': json['apiKey'],
38
+ };
39
+ }
40
+ function DeactivateWalletAPIKeyRequestToJSON(json) {
41
+ return DeactivateWalletAPIKeyRequestToJSONTyped(json, false);
42
+ }
43
+ function DeactivateWalletAPIKeyRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'apiKey': value['apiKey'],
49
+ };
50
+ }
@@ -20,7 +20,7 @@ export interface UpdateAppCommissionRateRequest {
20
20
  * @type {number}
21
21
  * @memberof UpdateAppCommissionRateRequest
22
22
  */
23
- commissionRate?: number;
23
+ commissionRate: number;
24
24
  }
25
25
  /**
26
26
  * Check if a given object implements the UpdateAppCommissionRateRequest interface.
@@ -22,6 +22,8 @@ exports.UpdateAppCommissionRateRequestToJSONTyped = UpdateAppCommissionRateReque
22
22
  * Check if a given object implements the UpdateAppCommissionRateRequest interface.
23
23
  */
24
24
  function instanceOfUpdateAppCommissionRateRequest(value) {
25
+ if (!('commissionRate' in value) || value['commissionRate'] === undefined)
26
+ return false;
25
27
  return true;
26
28
  }
27
29
  function UpdateAppCommissionRateRequestFromJSON(json) {
@@ -32,7 +34,7 @@ function UpdateAppCommissionRateRequestFromJSONTyped(json, ignoreDiscriminator)
32
34
  return json;
33
35
  }
34
36
  return {
35
- 'commissionRate': json['commissionRate'] == null ? undefined : json['commissionRate'],
37
+ 'commissionRate': json['commissionRate'],
36
38
  };
37
39
  }
38
40
  function UpdateAppCommissionRateRequestToJSON(json) {
@@ -0,0 +1,68 @@
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 WalletAPIKey
16
+ */
17
+ export interface WalletAPIKey {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WalletAPIKey
22
+ */
23
+ appId?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WalletAPIKey
28
+ */
29
+ walletId?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof WalletAPIKey
34
+ */
35
+ name?: string;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof WalletAPIKey
40
+ */
41
+ active?: boolean;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof WalletAPIKey
46
+ */
47
+ secret?: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof WalletAPIKey
52
+ */
53
+ createdAt?: Date;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof WalletAPIKey
58
+ */
59
+ modifiedAt?: Date;
60
+ }
61
+ /**
62
+ * Check if a given object implements the WalletAPIKey interface.
63
+ */
64
+ export declare function instanceOfWalletAPIKey(value: object): value is WalletAPIKey;
65
+ export declare function WalletAPIKeyFromJSON(json: any): WalletAPIKey;
66
+ export declare function WalletAPIKeyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletAPIKey;
67
+ export declare function WalletAPIKeyToJSON(json: any): WalletAPIKey;
68
+ export declare function WalletAPIKeyToJSONTyped(value?: WalletAPIKey | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfWalletAPIKey = instanceOfWalletAPIKey;
17
+ exports.WalletAPIKeyFromJSON = WalletAPIKeyFromJSON;
18
+ exports.WalletAPIKeyFromJSONTyped = WalletAPIKeyFromJSONTyped;
19
+ exports.WalletAPIKeyToJSON = WalletAPIKeyToJSON;
20
+ exports.WalletAPIKeyToJSONTyped = WalletAPIKeyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the WalletAPIKey interface.
23
+ */
24
+ function instanceOfWalletAPIKey(value) {
25
+ return true;
26
+ }
27
+ function WalletAPIKeyFromJSON(json) {
28
+ return WalletAPIKeyFromJSONTyped(json, false);
29
+ }
30
+ function WalletAPIKeyFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'appId': json['appId'] == null ? undefined : json['appId'],
36
+ 'walletId': json['walletId'] == null ? undefined : json['walletId'],
37
+ 'name': json['name'] == null ? undefined : json['name'],
38
+ 'active': json['active'] == null ? undefined : json['active'],
39
+ 'secret': json['secret'] == null ? undefined : json['secret'],
40
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
41
+ 'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
42
+ };
43
+ }
44
+ function WalletAPIKeyToJSON(json) {
45
+ return WalletAPIKeyToJSONTyped(json, false);
46
+ }
47
+ function WalletAPIKeyToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'appId': value['appId'],
53
+ 'walletId': value['walletId'],
54
+ 'name': value['name'],
55
+ 'active': value['active'],
56
+ 'secret': value['secret'],
57
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
58
+ 'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
59
+ };
60
+ }
@@ -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 { WalletAPIKey } from './WalletAPIKey';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WalletAPIKeyResponse
18
+ */
19
+ export interface WalletAPIKeyResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof WalletAPIKeyResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<WalletAPIKey>}
29
+ * @memberof WalletAPIKeyResponse
30
+ */
31
+ apiKeys?: Array<WalletAPIKey>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the WalletAPIKeyResponse interface.
35
+ */
36
+ export declare function instanceOfWalletAPIKeyResponse(value: object): value is WalletAPIKeyResponse;
37
+ export declare function WalletAPIKeyResponseFromJSON(json: any): WalletAPIKeyResponse;
38
+ export declare function WalletAPIKeyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletAPIKeyResponse;
39
+ export declare function WalletAPIKeyResponseToJSON(json: any): WalletAPIKeyResponse;
40
+ export declare function WalletAPIKeyResponseToJSONTyped(value?: WalletAPIKeyResponse | 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.instanceOfWalletAPIKeyResponse = instanceOfWalletAPIKeyResponse;
17
+ exports.WalletAPIKeyResponseFromJSON = WalletAPIKeyResponseFromJSON;
18
+ exports.WalletAPIKeyResponseFromJSONTyped = WalletAPIKeyResponseFromJSONTyped;
19
+ exports.WalletAPIKeyResponseToJSON = WalletAPIKeyResponseToJSON;
20
+ exports.WalletAPIKeyResponseToJSONTyped = WalletAPIKeyResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const WalletAPIKey_1 = require("./WalletAPIKey");
23
+ /**
24
+ * Check if a given object implements the WalletAPIKeyResponse interface.
25
+ */
26
+ function instanceOfWalletAPIKeyResponse(value) {
27
+ return true;
28
+ }
29
+ function WalletAPIKeyResponseFromJSON(json) {
30
+ return WalletAPIKeyResponseFromJSONTyped(json, false);
31
+ }
32
+ function WalletAPIKeyResponseFromJSONTyped(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
+ 'apiKeys': json['apiKeys'] == null ? undefined : (json['apiKeys'].map(WalletAPIKey_1.WalletAPIKeyFromJSON)),
39
+ };
40
+ }
41
+ function WalletAPIKeyResponseToJSON(json) {
42
+ return WalletAPIKeyResponseToJSONTyped(json, false);
43
+ }
44
+ function WalletAPIKeyResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'apiKeys': value['apiKeys'] == null ? undefined : (value['apiKeys'].map(WalletAPIKey_1.WalletAPIKeyToJSON)),
51
+ };
52
+ }
@@ -38,6 +38,7 @@ export * from './CreateWalletRequest';
38
38
  export * from './Currency';
39
39
  export * from './CurrencyResponse';
40
40
  export * from './DeactivateAPIKeyRequest';
41
+ export * from './DeactivateWalletAPIKeyRequest';
41
42
  export * from './DepositAddress';
42
43
  export * from './DepositAddressResponse';
43
44
  export * from './DepositRequest';
@@ -118,6 +119,8 @@ export * from './UpdateReferenceRequest';
118
119
  export * from './UpdateReferencesRequest';
119
120
  export * from './UpdateWalletOverdraftRequest';
120
121
  export * from './Wallet';
122
+ export * from './WalletAPIKey';
123
+ export * from './WalletAPIKeyResponse';
121
124
  export * from './WalletBalance';
122
125
  export * from './WalletMetric';
123
126
  export * from './WalletMetrics';
@@ -56,6 +56,7 @@ __exportStar(require("./CreateWalletRequest"), exports);
56
56
  __exportStar(require("./Currency"), exports);
57
57
  __exportStar(require("./CurrencyResponse"), exports);
58
58
  __exportStar(require("./DeactivateAPIKeyRequest"), exports);
59
+ __exportStar(require("./DeactivateWalletAPIKeyRequest"), exports);
59
60
  __exportStar(require("./DepositAddress"), exports);
60
61
  __exportStar(require("./DepositAddressResponse"), exports);
61
62
  __exportStar(require("./DepositRequest"), exports);
@@ -136,6 +137,8 @@ __exportStar(require("./UpdateReferenceRequest"), exports);
136
137
  __exportStar(require("./UpdateReferencesRequest"), exports);
137
138
  __exportStar(require("./UpdateWalletOverdraftRequest"), exports);
138
139
  __exportStar(require("./Wallet"), exports);
140
+ __exportStar(require("./WalletAPIKey"), exports);
141
+ __exportStar(require("./WalletAPIKeyResponse"), exports);
139
142
  __exportStar(require("./WalletBalance"), exports);
140
143
  __exportStar(require("./WalletMetric"), exports);
141
144
  __exportStar(require("./WalletMetrics"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@monaco-protocol/client-v2",
3
- "version": "0.0.96-develop",
3
+ "version": "0.0.98-dev-wak",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -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];
@@ -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;