@monaco-protocol/client-v2 0.0.2-dev.0 → 0.0.2-dev.10

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 (145) hide show
  1. package/README.md +32 -26
  2. package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +4 -4
  3. package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +8 -8
  4. package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +7 -7
  5. package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +12 -12
  6. package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +5 -5
  7. package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +8 -8
  8. package/dist/apis/EventCategoriesApi.d.ts +53 -0
  9. package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +17 -17
  10. package/dist/apis/EventGroupsApi.d.ts +54 -0
  11. package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +19 -19
  12. package/dist/apis/EventSubcategoriesApi.d.ts +105 -0
  13. package/dist/apis/EventSubcategoriesApi.js +287 -0
  14. package/dist/apis/EventsApi.d.ts +175 -0
  15. package/dist/apis/EventsApi.js +477 -0
  16. package/dist/apis/HeartbeatManagementApi.d.ts +52 -0
  17. package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → HeartbeatManagementApi.js} +35 -41
  18. package/dist/apis/MarketPricesApi.d.ts +41 -0
  19. package/dist/apis/MarketPricesApi.js +101 -0
  20. package/dist/apis/{MonacoAPIMarketTypesApi.d.ts → MarketTypesApi.d.ts} +1 -1
  21. package/dist/apis/{MonacoAPIMarketTypesApi.js → MarketTypesApi.js} +3 -3
  22. package/dist/apis/{MonacoAPIMarketsApi.d.ts → MarketsApi.d.ts} +79 -25
  23. package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +158 -16
  24. package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +53 -19
  25. package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +110 -11
  26. package/dist/apis/SessionManagementApi.d.ts +40 -0
  27. package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +15 -15
  28. package/dist/apis/{MonacoAPIAPIStatusApi.d.ts → StatusApi.d.ts} +1 -1
  29. package/dist/apis/{MonacoAPIAPIStatusApi.js → StatusApi.js} +3 -3
  30. package/dist/apis/{MonacoAPITradesApi.d.ts → TradesApi.d.ts} +9 -6
  31. package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +15 -3
  32. package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +24 -5
  33. package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +57 -3
  34. package/dist/apis/index.d.ts +16 -14
  35. package/dist/apis/index.js +16 -14
  36. package/dist/models/AddMarketOutcomeRequest.d.ts +1 -1
  37. package/dist/models/AddMarketOutcomeRequest.js +2 -2
  38. package/dist/models/AddParticipantRequest.d.ts +52 -0
  39. package/dist/models/AddParticipantRequest.js +60 -0
  40. package/dist/models/AddParticipantsRequest.d.ts +33 -0
  41. package/dist/models/AddParticipantsRequest.js +49 -0
  42. package/dist/models/ChunkOrderResponse.d.ts +67 -0
  43. package/dist/models/ChunkOrderResponse.js +63 -0
  44. package/dist/models/CommissionRate.d.ts +2 -2
  45. package/dist/models/CreateEventRequest.d.ts +5 -5
  46. package/dist/models/CreateEventRequest.js +16 -6
  47. package/dist/models/CreateMarketRequest.d.ts +2 -2
  48. package/dist/models/CreateOrderRequest.d.ts +13 -4
  49. package/dist/models/CreateOrderRequest.js +4 -2
  50. package/dist/models/CreateSessionRequest.d.ts +2 -2
  51. package/dist/models/CreateSessionRequest.js +6 -2
  52. package/dist/models/CreateWalletRequest.d.ts +0 -16
  53. package/dist/models/CreateWalletRequest.js +0 -12
  54. package/dist/models/Currency.d.ts +2 -2
  55. package/dist/models/DocumentReference.js +4 -4
  56. package/dist/models/Event.d.ts +8 -2
  57. package/dist/models/Event.js +2 -0
  58. package/dist/models/EventParticipant.d.ts +52 -0
  59. package/dist/models/EventParticipant.js +60 -0
  60. package/dist/models/EventParticipantsResponse.d.ts +40 -0
  61. package/dist/models/EventParticipantsResponse.js +52 -0
  62. package/dist/models/EventResponse.d.ts +7 -0
  63. package/dist/models/EventResponse.js +3 -0
  64. package/dist/models/EventSummary.d.ts +2 -2
  65. package/dist/models/EventUpdateResponse.d.ts +40 -0
  66. package/dist/models/EventUpdateResponse.js +52 -0
  67. package/dist/models/Heartbeat.d.ts +50 -0
  68. package/dist/models/Heartbeat.js +54 -0
  69. package/dist/models/HeartbeatResponse.d.ts +40 -0
  70. package/dist/models/HeartbeatResponse.js +52 -0
  71. package/dist/models/Market.d.ts +21 -12
  72. package/dist/models/Market.js +13 -5
  73. package/dist/models/MarketLiquidities.d.ts +39 -0
  74. package/dist/models/MarketLiquidities.js +51 -0
  75. package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
  76. package/dist/models/MarketLiquiditiesResponse.js +52 -0
  77. package/dist/models/MarketLiquidity.d.ts +2 -2
  78. package/dist/models/MarketLiquidity.js +2 -2
  79. package/dist/models/MarketOutcomeResult.d.ts +38 -0
  80. package/dist/models/MarketOutcomeResult.js +50 -0
  81. package/dist/models/MarketOutcomeSummary.d.ts +9 -3
  82. package/dist/models/MarketOutcomeSummary.js +4 -2
  83. package/dist/models/MarketPosition.d.ts +4 -2
  84. package/dist/models/MarketPriceLadder.d.ts +32 -0
  85. package/dist/models/MarketPriceLadder.js +48 -0
  86. package/dist/models/MarketPriceLadderResponse.d.ts +40 -0
  87. package/dist/models/MarketPriceLadderResponse.js +52 -0
  88. package/dist/models/MarketResultRequest.d.ts +3 -3
  89. package/dist/models/MarketResultRequest.js +3 -3
  90. package/dist/models/MarketSummary.d.ts +32 -4
  91. package/dist/models/MarketSummary.js +18 -3
  92. package/dist/models/MarketUpdateResponse.d.ts +40 -0
  93. package/dist/models/MarketUpdateResponse.js +52 -0
  94. package/dist/models/Meta.d.ts +36 -1
  95. package/dist/models/Meta.js +31 -0
  96. package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
  97. package/dist/models/ModifyParticipantsRequest.js +48 -0
  98. package/dist/models/Order.d.ts +35 -6
  99. package/dist/models/Order.js +17 -3
  100. package/dist/models/OrderResponse.d.ts +7 -0
  101. package/dist/models/OrderResponse.js +3 -0
  102. package/dist/models/OrderSummary.d.ts +33 -4
  103. package/dist/models/OrderSummary.js +17 -3
  104. package/dist/models/OutcomeResult.d.ts +2 -2
  105. package/dist/models/PageMeta.d.ts +50 -0
  106. package/dist/models/PageMeta.js +54 -0
  107. package/dist/models/Pageable.d.ts +44 -0
  108. package/dist/models/Pageable.js +52 -0
  109. package/dist/models/PagedEventResponse.d.ts +3 -20
  110. package/dist/models/PagedEventResponse.js +3 -8
  111. package/dist/models/PagedMarketPositionResponse.d.ts +0 -24
  112. package/dist/models/PagedMarketPositionResponse.js +0 -8
  113. package/dist/models/PagedOrderResponse.d.ts +3 -20
  114. package/dist/models/PagedOrderResponse.js +3 -8
  115. package/dist/models/PagedTradeResponse.d.ts +0 -24
  116. package/dist/models/PagedTradeResponse.js +0 -8
  117. package/dist/models/PagedTransactionResponse.d.ts +0 -24
  118. package/dist/models/PagedTransactionResponse.js +0 -8
  119. package/dist/models/Participant.d.ts +58 -0
  120. package/dist/models/Participant.js +62 -0
  121. package/dist/models/ParticipantsResponse.d.ts +40 -0
  122. package/dist/models/ParticipantsResponse.js +52 -0
  123. package/dist/models/ToggleActionRequest.d.ts +1 -1
  124. package/dist/models/Trade.d.ts +4 -4
  125. package/dist/models/Trade.js +2 -2
  126. package/dist/models/TradeSummary.d.ts +44 -0
  127. package/dist/models/TradeSummary.js +52 -0
  128. package/dist/models/Transaction.d.ts +3 -2
  129. package/dist/models/Transaction.js +2 -1
  130. package/dist/models/UpdateDateRequest.d.ts +32 -0
  131. package/dist/models/UpdateDateRequest.js +50 -0
  132. package/dist/models/UpdateHeartbeatRequest.d.ts +38 -0
  133. package/dist/models/UpdateHeartbeatRequest.js +52 -0
  134. package/dist/models/UpdateNameRequest.d.ts +32 -0
  135. package/dist/models/UpdateNameRequest.js +50 -0
  136. package/dist/models/WalletBalance.d.ts +2 -2
  137. package/dist/models/index.d.ts +22 -2
  138. package/dist/models/index.js +22 -2
  139. package/package.json +6 -2
  140. package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +0 -53
  141. package/dist/apis/MonacoAPIEventGroupsApi.d.ts +0 -54
  142. package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +0 -54
  143. package/dist/apis/MonacoAPIEventsApi.d.ts +0 -68
  144. package/dist/apis/MonacoAPIEventsApi.js +0 -158
  145. package/dist/apis/MonacoAPISessionManagementApi.d.ts +0 -40
@@ -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.instanceOfMarketLiquiditiesResponse = instanceOfMarketLiquiditiesResponse;
17
+ exports.MarketLiquiditiesResponseFromJSON = MarketLiquiditiesResponseFromJSON;
18
+ exports.MarketLiquiditiesResponseFromJSONTyped = MarketLiquiditiesResponseFromJSONTyped;
19
+ exports.MarketLiquiditiesResponseToJSON = MarketLiquiditiesResponseToJSON;
20
+ exports.MarketLiquiditiesResponseToJSONTyped = MarketLiquiditiesResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const MarketLiquidities_1 = require("./MarketLiquidities");
23
+ /**
24
+ * Check if a given object implements the MarketLiquiditiesResponse interface.
25
+ */
26
+ function instanceOfMarketLiquiditiesResponse(value) {
27
+ return true;
28
+ }
29
+ function MarketLiquiditiesResponseFromJSON(json) {
30
+ return MarketLiquiditiesResponseFromJSONTyped(json, false);
31
+ }
32
+ function MarketLiquiditiesResponseFromJSONTyped(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
+ 'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidities_1.MarketLiquiditiesFromJSON)),
39
+ };
40
+ }
41
+ function MarketLiquiditiesResponseToJSON(json) {
42
+ return MarketLiquiditiesResponseToJSONTyped(json, false);
43
+ }
44
+ function MarketLiquiditiesResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidities_1.MarketLiquiditiesToJSON)),
51
+ };
52
+ }
@@ -23,10 +23,10 @@ export interface MarketLiquidity {
23
23
  side?: MarketLiquiditySideEnum;
24
24
  /**
25
25
  *
26
- * @type {number}
26
+ * @type {string}
27
27
  * @memberof MarketLiquidity
28
28
  */
29
- outcome?: number;
29
+ outcomeId?: string;
30
30
  /**
31
31
  *
32
32
  * @type {number}
@@ -41,7 +41,7 @@ function MarketLiquidityFromJSONTyped(json, ignoreDiscriminator) {
41
41
  }
42
42
  return {
43
43
  'side': json['side'] == null ? undefined : json['side'],
44
- 'outcome': json['outcome'] == null ? undefined : json['outcome'],
44
+ 'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
45
45
  'price': json['price'] == null ? undefined : json['price'],
46
46
  'amount': json['amount'] == null ? undefined : json['amount'],
47
47
  'matched': json['matched'] == null ? undefined : json['matched'],
@@ -56,7 +56,7 @@ function MarketLiquidityToJSONTyped(value, ignoreDiscriminator = false) {
56
56
  }
57
57
  return {
58
58
  'side': value['side'],
59
- 'outcome': value['outcome'],
59
+ 'outcomeId': value['outcomeId'],
60
60
  'price': value['price'],
61
61
  'amount': value['amount'],
62
62
  'matched': value['matched'],
@@ -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 MarketOutcomeResult
16
+ */
17
+ export interface MarketOutcomeResult {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MarketOutcomeResult
22
+ */
23
+ outcomeId?: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof MarketOutcomeResult
28
+ */
29
+ winner?: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MarketOutcomeResult interface.
33
+ */
34
+ export declare function instanceOfMarketOutcomeResult(value: object): value is MarketOutcomeResult;
35
+ export declare function MarketOutcomeResultFromJSON(json: any): MarketOutcomeResult;
36
+ export declare function MarketOutcomeResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketOutcomeResult;
37
+ export declare function MarketOutcomeResultToJSON(json: any): MarketOutcomeResult;
38
+ export declare function MarketOutcomeResultToJSONTyped(value?: MarketOutcomeResult | 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.instanceOfMarketOutcomeResult = instanceOfMarketOutcomeResult;
17
+ exports.MarketOutcomeResultFromJSON = MarketOutcomeResultFromJSON;
18
+ exports.MarketOutcomeResultFromJSONTyped = MarketOutcomeResultFromJSONTyped;
19
+ exports.MarketOutcomeResultToJSON = MarketOutcomeResultToJSON;
20
+ exports.MarketOutcomeResultToJSONTyped = MarketOutcomeResultToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MarketOutcomeResult interface.
23
+ */
24
+ function instanceOfMarketOutcomeResult(value) {
25
+ return true;
26
+ }
27
+ function MarketOutcomeResultFromJSON(json) {
28
+ return MarketOutcomeResultFromJSONTyped(json, false);
29
+ }
30
+ function MarketOutcomeResultFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'outcomeId': json['outcomeId'] == null ? undefined : json['outcomeId'],
36
+ 'winner': json['winner'] == null ? undefined : json['winner'],
37
+ };
38
+ }
39
+ function MarketOutcomeResultToJSON(json) {
40
+ return MarketOutcomeResultToJSONTyped(json, false);
41
+ }
42
+ function MarketOutcomeResultToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'outcomeId': value['outcomeId'],
48
+ 'winner': value['winner'],
49
+ };
50
+ }
@@ -17,16 +17,22 @@
17
17
  export interface MarketOutcomeSummary {
18
18
  /**
19
19
  *
20
- * @type {number}
20
+ * @type {string}
21
21
  * @memberof MarketOutcomeSummary
22
22
  */
23
- id?: number;
23
+ id?: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof MarketOutcomeSummary
28
28
  */
29
- name?: string;
29
+ title?: string;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof MarketOutcomeSummary
34
+ */
35
+ ordering?: number;
30
36
  /**
31
37
  *
32
38
  * @type {boolean}
@@ -33,7 +33,8 @@ function MarketOutcomeSummaryFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'id': json['id'] == null ? undefined : json['id'],
36
- 'name': json['name'] == null ? undefined : json['name'],
36
+ 'title': json['title'] == null ? undefined : json['title'],
37
+ 'ordering': json['ordering'] == null ? undefined : json['ordering'],
37
38
  'winner': json['winner'] == null ? undefined : json['winner'],
38
39
  };
39
40
  }
@@ -46,7 +47,8 @@ function MarketOutcomeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
46
47
  }
47
48
  return {
48
49
  'id': value['id'],
49
- 'name': value['name'],
50
+ 'title': value['title'],
51
+ 'ordering': value['ordering'],
50
52
  'winner': value['winner'],
51
53
  };
52
54
  }
@@ -30,10 +30,12 @@ export interface MarketPosition {
30
30
  walletId?: string;
31
31
  /**
32
32
  *
33
- * @type {Array<number>}
33
+ * @type {{ [key: string]: number; }}
34
34
  * @memberof MarketPosition
35
35
  */
36
- exposures?: Array<number>;
36
+ exposures?: {
37
+ [key: string]: number;
38
+ };
37
39
  }
38
40
  /**
39
41
  * Check if a given object implements the MarketPosition interface.
@@ -0,0 +1,32 @@
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 MarketPriceLadder
16
+ */
17
+ export interface MarketPriceLadder {
18
+ /**
19
+ *
20
+ * @type {Array<number>}
21
+ * @memberof MarketPriceLadder
22
+ */
23
+ prices?: Array<number>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the MarketPriceLadder interface.
27
+ */
28
+ export declare function instanceOfMarketPriceLadder(value: object): value is MarketPriceLadder;
29
+ export declare function MarketPriceLadderFromJSON(json: any): MarketPriceLadder;
30
+ export declare function MarketPriceLadderFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketPriceLadder;
31
+ export declare function MarketPriceLadderToJSON(json: any): MarketPriceLadder;
32
+ export declare function MarketPriceLadderToJSONTyped(value?: MarketPriceLadder | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
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.instanceOfMarketPriceLadder = instanceOfMarketPriceLadder;
17
+ exports.MarketPriceLadderFromJSON = MarketPriceLadderFromJSON;
18
+ exports.MarketPriceLadderFromJSONTyped = MarketPriceLadderFromJSONTyped;
19
+ exports.MarketPriceLadderToJSON = MarketPriceLadderToJSON;
20
+ exports.MarketPriceLadderToJSONTyped = MarketPriceLadderToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the MarketPriceLadder interface.
23
+ */
24
+ function instanceOfMarketPriceLadder(value) {
25
+ return true;
26
+ }
27
+ function MarketPriceLadderFromJSON(json) {
28
+ return MarketPriceLadderFromJSONTyped(json, false);
29
+ }
30
+ function MarketPriceLadderFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'prices': json['prices'] == null ? undefined : json['prices'],
36
+ };
37
+ }
38
+ function MarketPriceLadderToJSON(json) {
39
+ return MarketPriceLadderToJSONTyped(json, false);
40
+ }
41
+ function MarketPriceLadderToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'prices': value['prices'],
47
+ };
48
+ }
@@ -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 { MarketPriceLadder } from './MarketPriceLadder';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MarketPriceLadderResponse
18
+ */
19
+ export interface MarketPriceLadderResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof MarketPriceLadderResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<MarketPriceLadder>}
29
+ * @memberof MarketPriceLadderResponse
30
+ */
31
+ marketPriceLadders?: Array<MarketPriceLadder>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the MarketPriceLadderResponse interface.
35
+ */
36
+ export declare function instanceOfMarketPriceLadderResponse(value: object): value is MarketPriceLadderResponse;
37
+ export declare function MarketPriceLadderResponseFromJSON(json: any): MarketPriceLadderResponse;
38
+ export declare function MarketPriceLadderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketPriceLadderResponse;
39
+ export declare function MarketPriceLadderResponseToJSON(json: any): MarketPriceLadderResponse;
40
+ export declare function MarketPriceLadderResponseToJSONTyped(value?: MarketPriceLadderResponse | 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.instanceOfMarketPriceLadderResponse = instanceOfMarketPriceLadderResponse;
17
+ exports.MarketPriceLadderResponseFromJSON = MarketPriceLadderResponseFromJSON;
18
+ exports.MarketPriceLadderResponseFromJSONTyped = MarketPriceLadderResponseFromJSONTyped;
19
+ exports.MarketPriceLadderResponseToJSON = MarketPriceLadderResponseToJSON;
20
+ exports.MarketPriceLadderResponseToJSONTyped = MarketPriceLadderResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const MarketPriceLadder_1 = require("./MarketPriceLadder");
23
+ /**
24
+ * Check if a given object implements the MarketPriceLadderResponse interface.
25
+ */
26
+ function instanceOfMarketPriceLadderResponse(value) {
27
+ return true;
28
+ }
29
+ function MarketPriceLadderResponseFromJSON(json) {
30
+ return MarketPriceLadderResponseFromJSONTyped(json, false);
31
+ }
32
+ function MarketPriceLadderResponseFromJSONTyped(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
+ 'marketPriceLadders': json['marketPriceLadders'] == null ? undefined : (json['marketPriceLadders'].map(MarketPriceLadder_1.MarketPriceLadderFromJSON)),
39
+ };
40
+ }
41
+ function MarketPriceLadderResponseToJSON(json) {
42
+ return MarketPriceLadderResponseToJSONTyped(json, false);
43
+ }
44
+ function MarketPriceLadderResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'marketPriceLadders': value['marketPriceLadders'] == null ? undefined : (value['marketPriceLadders'].map(MarketPriceLadder_1.MarketPriceLadderToJSON)),
51
+ };
52
+ }
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { OutcomeResult } from './OutcomeResult';
12
+ import type { MarketOutcomeResult } from './MarketOutcomeResult';
13
13
  /**
14
14
  *
15
15
  * @export
@@ -18,10 +18,10 @@ import type { OutcomeResult } from './OutcomeResult';
18
18
  export interface MarketResultRequest {
19
19
  /**
20
20
  *
21
- * @type {Array<OutcomeResult>}
21
+ * @type {Array<MarketOutcomeResult>}
22
22
  * @memberof MarketResultRequest
23
23
  */
24
- results?: Array<OutcomeResult>;
24
+ results?: Array<MarketOutcomeResult>;
25
25
  }
26
26
  /**
27
27
  * Check if a given object implements the MarketResultRequest interface.
@@ -18,7 +18,7 @@ exports.MarketResultRequestFromJSON = MarketResultRequestFromJSON;
18
18
  exports.MarketResultRequestFromJSONTyped = MarketResultRequestFromJSONTyped;
19
19
  exports.MarketResultRequestToJSON = MarketResultRequestToJSON;
20
20
  exports.MarketResultRequestToJSONTyped = MarketResultRequestToJSONTyped;
21
- const OutcomeResult_1 = require("./OutcomeResult");
21
+ const MarketOutcomeResult_1 = require("./MarketOutcomeResult");
22
22
  /**
23
23
  * Check if a given object implements the MarketResultRequest interface.
24
24
  */
@@ -33,7 +33,7 @@ function MarketResultRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  return json;
34
34
  }
35
35
  return {
36
- 'results': json['results'] == null ? undefined : (json['results'].map(OutcomeResult_1.OutcomeResultFromJSON)),
36
+ 'results': json['results'] == null ? undefined : (json['results'].map(MarketOutcomeResult_1.MarketOutcomeResultFromJSON)),
37
37
  };
38
38
  }
39
39
  function MarketResultRequestToJSON(json) {
@@ -44,6 +44,6 @@ function MarketResultRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
44
  return value;
45
45
  }
46
46
  return {
47
- 'results': value['results'] == null ? undefined : (value['results'].map(OutcomeResult_1.OutcomeResultToJSON)),
47
+ 'results': value['results'] == null ? undefined : (value['results'].map(MarketOutcomeResult_1.MarketOutcomeResultToJSON)),
48
48
  };
49
49
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { DocumentReference } from './DocumentReference';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -17,10 +18,10 @@
17
18
  export interface MarketSummary {
18
19
  /**
19
20
  *
20
- * @type {number}
21
+ * @type {string}
21
22
  * @memberof MarketSummary
22
23
  */
23
- id?: number;
24
+ id?: string;
24
25
  /**
25
26
  *
26
27
  * @type {string}
@@ -29,10 +30,10 @@ export interface MarketSummary {
29
30
  name?: string;
30
31
  /**
31
32
  *
32
- * @type {boolean}
33
+ * @type {string}
33
34
  * @memberof MarketSummary
34
35
  */
35
- inPlay?: boolean;
36
+ inPlayStatus?: MarketSummaryInPlayStatusEnum;
36
37
  /**
37
38
  *
38
39
  * @type {boolean}
@@ -51,7 +52,34 @@ export interface MarketSummary {
51
52
  * @memberof MarketSummary
52
53
  */
53
54
  status?: MarketSummaryStatusEnum;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof MarketSummary
59
+ */
60
+ lockAt?: Date;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof MarketSummary
65
+ */
66
+ settledAt?: Date;
67
+ /**
68
+ *
69
+ * @type {DocumentReference}
70
+ * @memberof MarketSummary
71
+ */
72
+ event?: DocumentReference;
54
73
  }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const MarketSummaryInPlayStatusEnum: {
78
+ readonly NotApplicable: "NotApplicable";
79
+ readonly PrePlay: "PrePlay";
80
+ readonly InPlay: "InPlay";
81
+ };
82
+ export type MarketSummaryInPlayStatusEnum = typeof MarketSummaryInPlayStatusEnum[keyof typeof MarketSummaryInPlayStatusEnum];
55
83
  /**
56
84
  * @export
57
85
  */
@@ -13,12 +13,21 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MarketSummaryStatusEnum = void 0;
16
+ exports.MarketSummaryStatusEnum = exports.MarketSummaryInPlayStatusEnum = void 0;
17
17
  exports.instanceOfMarketSummary = instanceOfMarketSummary;
18
18
  exports.MarketSummaryFromJSON = MarketSummaryFromJSON;
19
19
  exports.MarketSummaryFromJSONTyped = MarketSummaryFromJSONTyped;
20
20
  exports.MarketSummaryToJSON = MarketSummaryToJSON;
21
21
  exports.MarketSummaryToJSONTyped = MarketSummaryToJSONTyped;
22
+ const DocumentReference_1 = require("./DocumentReference");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.MarketSummaryInPlayStatusEnum = {
27
+ NotApplicable: 'NotApplicable',
28
+ PrePlay: 'PrePlay',
29
+ InPlay: 'InPlay'
30
+ };
22
31
  /**
23
32
  * @export
24
33
  */
@@ -48,10 +57,13 @@ function MarketSummaryFromJSONTyped(json, ignoreDiscriminator) {
48
57
  return {
49
58
  'id': json['id'] == null ? undefined : json['id'],
50
59
  'name': json['name'] == null ? undefined : json['name'],
51
- 'inPlay': json['inPlay'] == null ? undefined : json['inPlay'],
60
+ 'inPlayStatus': json['inPlayStatus'] == null ? undefined : json['inPlayStatus'],
52
61
  'published': json['published'] == null ? undefined : json['published'],
53
62
  'suspended': json['suspended'] == null ? undefined : json['suspended'],
54
63
  'status': json['status'] == null ? undefined : json['status'],
64
+ 'lockAt': json['lockAt'] == null ? undefined : (new Date(json['lockAt'])),
65
+ 'settledAt': json['settledAt'] == null ? undefined : (new Date(json['settledAt'])),
66
+ 'event': json['event'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['event']),
55
67
  };
56
68
  }
57
69
  function MarketSummaryToJSON(json) {
@@ -64,9 +76,12 @@ function MarketSummaryToJSONTyped(value, ignoreDiscriminator = false) {
64
76
  return {
65
77
  'id': value['id'],
66
78
  'name': value['name'],
67
- 'inPlay': value['inPlay'],
79
+ 'inPlayStatus': value['inPlayStatus'],
68
80
  'published': value['published'],
69
81
  'suspended': value['suspended'],
70
82
  'status': value['status'],
83
+ 'lockAt': value['lockAt'] == null ? undefined : ((value['lockAt']).toISOString()),
84
+ 'settledAt': value['settledAt'] == null ? undefined : ((value['settledAt']).toISOString()),
85
+ 'event': (0, DocumentReference_1.DocumentReferenceToJSON)(value['event']),
71
86
  };
72
87
  }
@@ -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 { Market } from './Market';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MarketUpdateResponse
18
+ */
19
+ export interface MarketUpdateResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof MarketUpdateResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<Market>}
29
+ * @memberof MarketUpdateResponse
30
+ */
31
+ markets?: Array<Market>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the MarketUpdateResponse interface.
35
+ */
36
+ export declare function instanceOfMarketUpdateResponse(value: object): value is MarketUpdateResponse;
37
+ export declare function MarketUpdateResponseFromJSON(json: any): MarketUpdateResponse;
38
+ export declare function MarketUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketUpdateResponse;
39
+ export declare function MarketUpdateResponseToJSON(json: any): MarketUpdateResponse;
40
+ export declare function MarketUpdateResponseToJSONTyped(value?: MarketUpdateResponse | null, ignoreDiscriminator?: boolean): any;