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

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 (182) hide show
  1. package/README.md +46 -0
  2. package/dist/apis/MonacoAPIAPIKeyManagementApi.d.ts +54 -0
  3. package/dist/apis/MonacoAPIAPIKeyManagementApi.js +141 -0
  4. package/dist/apis/MonacoAPIAPIStatusApi.d.ts +26 -0
  5. package/dist/apis/MonacoAPIAPIStatusApi.js +58 -0
  6. package/dist/apis/MonacoAPIAppManagementApi.d.ts +66 -0
  7. package/dist/apis/MonacoAPIAppManagementApi.js +170 -0
  8. package/dist/apis/MonacoAPICurrenciesApi.d.ts +45 -0
  9. package/dist/apis/MonacoAPICurrenciesApi.js +102 -0
  10. package/dist/apis/MonacoAPIEventCategoriesApi.d.ts +53 -0
  11. package/dist/apis/MonacoAPIEventCategoriesApi.js +134 -0
  12. package/dist/apis/MonacoAPIEventGroupsApi.d.ts +54 -0
  13. package/dist/apis/MonacoAPIEventGroupsApi.js +137 -0
  14. package/dist/apis/MonacoAPIEventSubcategoriesApi.d.ts +54 -0
  15. package/dist/apis/MonacoAPIEventSubcategoriesApi.js +137 -0
  16. package/dist/apis/MonacoAPIEventsApi.d.ts +68 -0
  17. package/dist/apis/MonacoAPIEventsApi.js +158 -0
  18. package/dist/apis/MonacoAPIMarketTypesApi.d.ts +53 -0
  19. package/dist/apis/MonacoAPIMarketTypesApi.js +134 -0
  20. package/dist/apis/MonacoAPIMarketsApi.d.ts +214 -0
  21. package/dist/apis/MonacoAPIMarketsApi.js +566 -0
  22. package/dist/apis/MonacoAPIOrdersApi.d.ts +112 -0
  23. package/dist/apis/MonacoAPIOrdersApi.js +283 -0
  24. package/dist/apis/MonacoAPISessionManagementApi.d.ts +40 -0
  25. package/dist/apis/MonacoAPISessionManagementApi.js +93 -0
  26. package/dist/apis/MonacoAPITradesApi.d.ts +44 -0
  27. package/dist/apis/MonacoAPITradesApi.js +104 -0
  28. package/dist/apis/MonacoAPIWalletsApi.d.ts +103 -0
  29. package/dist/apis/MonacoAPIWalletsApi.js +262 -0
  30. package/dist/apis/index.d.ts +14 -0
  31. package/dist/apis/index.js +32 -0
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.js +21 -0
  34. package/dist/models/APIKey.d.ts +62 -0
  35. package/dist/models/APIKey.js +58 -0
  36. package/dist/models/APIKeyResponse.d.ts +40 -0
  37. package/dist/models/APIKeyResponse.js +52 -0
  38. package/dist/models/AddMarketOutcomeRequest.d.ts +32 -0
  39. package/dist/models/AddMarketOutcomeRequest.js +48 -0
  40. package/dist/models/App.d.ts +69 -0
  41. package/dist/models/App.js +61 -0
  42. package/dist/models/AppResponse.d.ts +47 -0
  43. package/dist/models/AppResponse.js +55 -0
  44. package/dist/models/AppStatus.d.ts +44 -0
  45. package/dist/models/AppStatus.js +52 -0
  46. package/dist/models/AppStatusResponse.d.ts +40 -0
  47. package/dist/models/AppStatusResponse.js +52 -0
  48. package/dist/models/Category.d.ts +50 -0
  49. package/dist/models/Category.js +54 -0
  50. package/dist/models/CategoryResponse.d.ts +40 -0
  51. package/dist/models/CategoryResponse.js +52 -0
  52. package/dist/models/CategorySummary.d.ts +38 -0
  53. package/dist/models/CategorySummary.js +50 -0
  54. package/dist/models/CommissionRate.d.ts +44 -0
  55. package/dist/models/CommissionRate.js +52 -0
  56. package/dist/models/CommissionRateResponse.d.ts +40 -0
  57. package/dist/models/CommissionRateResponse.js +52 -0
  58. package/dist/models/CreateAPIKeyRequest.d.ts +32 -0
  59. package/dist/models/CreateAPIKeyRequest.js +48 -0
  60. package/dist/models/CreateAppRequest.d.ts +38 -0
  61. package/dist/models/CreateAppRequest.js +50 -0
  62. package/dist/models/CreateCategoryRequest.d.ts +38 -0
  63. package/dist/models/CreateCategoryRequest.js +50 -0
  64. package/dist/models/CreateEventGroupRequest.d.ts +44 -0
  65. package/dist/models/CreateEventGroupRequest.js +52 -0
  66. package/dist/models/CreateEventRequest.d.ts +56 -0
  67. package/dist/models/CreateEventRequest.js +56 -0
  68. package/dist/models/CreateMarketRequest.d.ts +114 -0
  69. package/dist/models/CreateMarketRequest.js +85 -0
  70. package/dist/models/CreateMarketTypeRequest.d.ts +45 -0
  71. package/dist/models/CreateMarketTypeRequest.js +53 -0
  72. package/dist/models/CreateOrderRequest.d.ts +96 -0
  73. package/dist/models/CreateOrderRequest.js +79 -0
  74. package/dist/models/CreateSessionRequest.d.ts +38 -0
  75. package/dist/models/CreateSessionRequest.js +50 -0
  76. package/dist/models/CreateSubcategoryRequest.d.ts +44 -0
  77. package/dist/models/CreateSubcategoryRequest.js +52 -0
  78. package/dist/models/CreateWalletRequest.d.ts +54 -0
  79. package/dist/models/CreateWalletRequest.js +62 -0
  80. package/dist/models/Currency.d.ts +70 -0
  81. package/dist/models/Currency.js +66 -0
  82. package/dist/models/CurrencyResponse.d.ts +40 -0
  83. package/dist/models/CurrencyResponse.js +52 -0
  84. package/dist/models/DeactivateAPIKeyRequest.d.ts +38 -0
  85. package/dist/models/DeactivateAPIKeyRequest.js +50 -0
  86. package/dist/models/DocumentReference.d.ts +38 -0
  87. package/dist/models/DocumentReference.js +50 -0
  88. package/dist/models/Event.d.ts +93 -0
  89. package/dist/models/Event.js +69 -0
  90. package/dist/models/EventGroup.d.ts +57 -0
  91. package/dist/models/EventGroup.js +57 -0
  92. package/dist/models/EventGroupResponse.d.ts +54 -0
  93. package/dist/models/EventGroupResponse.js +58 -0
  94. package/dist/models/EventGroupSummary.d.ts +45 -0
  95. package/dist/models/EventGroupSummary.js +53 -0
  96. package/dist/models/EventResponse.d.ts +61 -0
  97. package/dist/models/EventResponse.js +61 -0
  98. package/dist/models/EventSummary.d.ts +57 -0
  99. package/dist/models/EventSummary.js +57 -0
  100. package/dist/models/Market.d.ts +177 -0
  101. package/dist/models/Market.js +115 -0
  102. package/dist/models/MarketLiquidity.d.ts +64 -0
  103. package/dist/models/MarketLiquidity.js +64 -0
  104. package/dist/models/MarketLiquidityResponse.d.ts +40 -0
  105. package/dist/models/MarketLiquidityResponse.js +52 -0
  106. package/dist/models/MarketOutcomeSummary.d.ts +44 -0
  107. package/dist/models/MarketOutcomeSummary.js +52 -0
  108. package/dist/models/MarketPosition.d.ts +45 -0
  109. package/dist/models/MarketPosition.js +53 -0
  110. package/dist/models/MarketResponse.d.ts +82 -0
  111. package/dist/models/MarketResponse.js +70 -0
  112. package/dist/models/MarketResultRequest.d.ts +33 -0
  113. package/dist/models/MarketResultRequest.js +49 -0
  114. package/dist/models/MarketSummary.d.ts +76 -0
  115. package/dist/models/MarketSummary.js +72 -0
  116. package/dist/models/MarketType.d.ts +57 -0
  117. package/dist/models/MarketType.js +57 -0
  118. package/dist/models/MarketTypeResponse.d.ts +40 -0
  119. package/dist/models/MarketTypeResponse.js +52 -0
  120. package/dist/models/MarketTypeSummary.d.ts +45 -0
  121. package/dist/models/MarketTypeSummary.js +53 -0
  122. package/dist/models/Meta.d.ts +38 -0
  123. package/dist/models/Meta.js +50 -0
  124. package/dist/models/Order.d.ts +125 -0
  125. package/dist/models/Order.js +85 -0
  126. package/dist/models/OrderResponse.d.ts +54 -0
  127. package/dist/models/OrderResponse.js +58 -0
  128. package/dist/models/OrderSummary.d.ts +89 -0
  129. package/dist/models/OrderSummary.js +73 -0
  130. package/dist/models/OutcomeResult.d.ts +38 -0
  131. package/dist/models/OutcomeResult.js +50 -0
  132. package/dist/models/PageRequest.d.ts +50 -0
  133. package/dist/models/PageRequest.js +54 -0
  134. package/dist/models/PagedEventResponse.d.ts +85 -0
  135. package/dist/models/PagedEventResponse.js +69 -0
  136. package/dist/models/PagedMarketPositionResponse.d.ts +71 -0
  137. package/dist/models/PagedMarketPositionResponse.js +63 -0
  138. package/dist/models/PagedOrderResponse.d.ts +78 -0
  139. package/dist/models/PagedOrderResponse.js +66 -0
  140. package/dist/models/PagedTradeResponse.d.ts +85 -0
  141. package/dist/models/PagedTradeResponse.js +69 -0
  142. package/dist/models/PagedTransactionResponse.d.ts +64 -0
  143. package/dist/models/PagedTransactionResponse.js +60 -0
  144. package/dist/models/Range.d.ts +38 -0
  145. package/dist/models/Range.js +50 -0
  146. package/dist/models/RefreshSessionRequest.d.ts +32 -0
  147. package/dist/models/RefreshSessionRequest.js +48 -0
  148. package/dist/models/RenameAPIKeyRequest.d.ts +44 -0
  149. package/dist/models/RenameAPIKeyRequest.js +52 -0
  150. package/dist/models/Session.d.ts +50 -0
  151. package/dist/models/Session.js +54 -0
  152. package/dist/models/SessionResponse.d.ts +40 -0
  153. package/dist/models/SessionResponse.js +52 -0
  154. package/dist/models/Subcategory.d.ts +57 -0
  155. package/dist/models/Subcategory.js +57 -0
  156. package/dist/models/SubcategoryResponse.d.ts +47 -0
  157. package/dist/models/SubcategoryResponse.js +55 -0
  158. package/dist/models/SubcategorySummary.d.ts +45 -0
  159. package/dist/models/SubcategorySummary.js +53 -0
  160. package/dist/models/ToggleActionRequest.d.ts +32 -0
  161. package/dist/models/ToggleActionRequest.js +48 -0
  162. package/dist/models/Trade.d.ts +95 -0
  163. package/dist/models/Trade.js +75 -0
  164. package/dist/models/TradeResponse.d.ts +61 -0
  165. package/dist/models/TradeResponse.js +61 -0
  166. package/dist/models/Transaction.d.ts +81 -0
  167. package/dist/models/Transaction.js +73 -0
  168. package/dist/models/TransferResponse.d.ts +46 -0
  169. package/dist/models/TransferResponse.js +54 -0
  170. package/dist/models/UpdateAppCommissionRateRequest.d.ts +32 -0
  171. package/dist/models/UpdateAppCommissionRateRequest.js +48 -0
  172. package/dist/models/Wallet.d.ts +75 -0
  173. package/dist/models/Wallet.js +70 -0
  174. package/dist/models/WalletBalance.d.ts +44 -0
  175. package/dist/models/WalletBalance.js +52 -0
  176. package/dist/models/WalletResponse.d.ts +40 -0
  177. package/dist/models/WalletResponse.js +52 -0
  178. package/dist/models/index.d.ts +72 -0
  179. package/dist/models/index.js +90 -0
  180. package/dist/runtime.d.ts +182 -0
  181. package/dist/runtime.js +346 -0
  182. package/package.json +28 -0
@@ -0,0 +1,53 @@
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.instanceOfMarketPosition = instanceOfMarketPosition;
17
+ exports.MarketPositionFromJSON = MarketPositionFromJSON;
18
+ exports.MarketPositionFromJSONTyped = MarketPositionFromJSONTyped;
19
+ exports.MarketPositionToJSON = MarketPositionToJSON;
20
+ exports.MarketPositionToJSONTyped = MarketPositionToJSONTyped;
21
+ const DocumentReference_1 = require("./DocumentReference");
22
+ /**
23
+ * Check if a given object implements the MarketPosition interface.
24
+ */
25
+ function instanceOfMarketPosition(value) {
26
+ return true;
27
+ }
28
+ function MarketPositionFromJSON(json) {
29
+ return MarketPositionFromJSONTyped(json, false);
30
+ }
31
+ function MarketPositionFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'market': json['market'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['market']),
37
+ 'walletId': json['walletId'] == null ? undefined : json['walletId'],
38
+ 'exposures': json['exposures'] == null ? undefined : json['exposures'],
39
+ };
40
+ }
41
+ function MarketPositionToJSON(json) {
42
+ return MarketPositionToJSONTyped(json, false);
43
+ }
44
+ function MarketPositionToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'market': (0, DocumentReference_1.DocumentReferenceToJSON)(value['market']),
50
+ 'walletId': value['walletId'],
51
+ 'exposures': value['exposures'],
52
+ };
53
+ }
@@ -0,0 +1,82 @@
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 { MarketTypeSummary } from './MarketTypeSummary';
19
+ import type { EventGroupSummary } from './EventGroupSummary';
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface MarketResponse
24
+ */
25
+ export interface MarketResponse {
26
+ /**
27
+ *
28
+ * @type {Meta}
29
+ * @memberof MarketResponse
30
+ */
31
+ meta?: Meta;
32
+ /**
33
+ *
34
+ * @type {Array<Market>}
35
+ * @memberof MarketResponse
36
+ */
37
+ markets?: Array<Market>;
38
+ /**
39
+ *
40
+ * @type {Array<MarketTypeSummary>}
41
+ * @memberof MarketResponse
42
+ */
43
+ marketTypes?: Array<MarketTypeSummary>;
44
+ /**
45
+ *
46
+ * @type {Array<MarketOutcomeSummary>}
47
+ * @memberof MarketResponse
48
+ */
49
+ marketOutcomes?: Array<MarketOutcomeSummary>;
50
+ /**
51
+ *
52
+ * @type {Array<EventSummary>}
53
+ * @memberof MarketResponse
54
+ */
55
+ events?: Array<EventSummary>;
56
+ /**
57
+ *
58
+ * @type {Array<EventGroupSummary>}
59
+ * @memberof MarketResponse
60
+ */
61
+ eventGroups?: Array<EventGroupSummary>;
62
+ /**
63
+ *
64
+ * @type {Array<SubcategorySummary>}
65
+ * @memberof MarketResponse
66
+ */
67
+ subcategories?: Array<SubcategorySummary>;
68
+ /**
69
+ *
70
+ * @type {Array<CategorySummary>}
71
+ * @memberof MarketResponse
72
+ */
73
+ categories?: Array<CategorySummary>;
74
+ }
75
+ /**
76
+ * Check if a given object implements the MarketResponse interface.
77
+ */
78
+ export declare function instanceOfMarketResponse(value: object): value is MarketResponse;
79
+ export declare function MarketResponseFromJSON(json: any): MarketResponse;
80
+ export declare function MarketResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketResponse;
81
+ export declare function MarketResponseToJSON(json: any): MarketResponse;
82
+ export declare function MarketResponseToJSONTyped(value?: MarketResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfMarketResponse = instanceOfMarketResponse;
17
+ exports.MarketResponseFromJSON = MarketResponseFromJSON;
18
+ exports.MarketResponseFromJSONTyped = MarketResponseFromJSONTyped;
19
+ exports.MarketResponseToJSON = MarketResponseToJSON;
20
+ exports.MarketResponseToJSONTyped = MarketResponseToJSONTyped;
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 MarketTypeSummary_1 = require("./MarketTypeSummary");
28
+ const EventGroupSummary_1 = require("./EventGroupSummary");
29
+ /**
30
+ * Check if a given object implements the MarketResponse interface.
31
+ */
32
+ function instanceOfMarketResponse(value) {
33
+ return true;
34
+ }
35
+ function MarketResponseFromJSON(json) {
36
+ return MarketResponseFromJSONTyped(json, false);
37
+ }
38
+ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
44
+ 'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
45
+ 'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
46
+ 'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
47
+ 'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
48
+ 'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
49
+ 'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
50
+ 'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
51
+ };
52
+ }
53
+ function MarketResponseToJSON(json) {
54
+ return MarketResponseToJSONTyped(json, false);
55
+ }
56
+ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
62
+ 'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
63
+ 'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
64
+ 'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
65
+ 'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
66
+ 'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
67
+ 'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
68
+ 'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
69
+ };
70
+ }
@@ -0,0 +1,33 @@
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 { OutcomeResult } from './OutcomeResult';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MarketResultRequest
17
+ */
18
+ export interface MarketResultRequest {
19
+ /**
20
+ *
21
+ * @type {Array<OutcomeResult>}
22
+ * @memberof MarketResultRequest
23
+ */
24
+ results?: Array<OutcomeResult>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the MarketResultRequest interface.
28
+ */
29
+ export declare function instanceOfMarketResultRequest(value: object): value is MarketResultRequest;
30
+ export declare function MarketResultRequestFromJSON(json: any): MarketResultRequest;
31
+ export declare function MarketResultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketResultRequest;
32
+ export declare function MarketResultRequestToJSON(json: any): MarketResultRequest;
33
+ export declare function MarketResultRequestToJSONTyped(value?: MarketResultRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,49 @@
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.instanceOfMarketResultRequest = instanceOfMarketResultRequest;
17
+ exports.MarketResultRequestFromJSON = MarketResultRequestFromJSON;
18
+ exports.MarketResultRequestFromJSONTyped = MarketResultRequestFromJSONTyped;
19
+ exports.MarketResultRequestToJSON = MarketResultRequestToJSON;
20
+ exports.MarketResultRequestToJSONTyped = MarketResultRequestToJSONTyped;
21
+ const OutcomeResult_1 = require("./OutcomeResult");
22
+ /**
23
+ * Check if a given object implements the MarketResultRequest interface.
24
+ */
25
+ function instanceOfMarketResultRequest(value) {
26
+ return true;
27
+ }
28
+ function MarketResultRequestFromJSON(json) {
29
+ return MarketResultRequestFromJSONTyped(json, false);
30
+ }
31
+ function MarketResultRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'results': json['results'] == null ? undefined : (json['results'].map(OutcomeResult_1.OutcomeResultFromJSON)),
37
+ };
38
+ }
39
+ function MarketResultRequestToJSON(json) {
40
+ return MarketResultRequestToJSONTyped(json, false);
41
+ }
42
+ function MarketResultRequestToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'results': value['results'] == null ? undefined : (value['results'].map(OutcomeResult_1.OutcomeResultToJSON)),
48
+ };
49
+ }
@@ -0,0 +1,76 @@
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 MarketSummary
16
+ */
17
+ export interface MarketSummary {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof MarketSummary
22
+ */
23
+ id?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MarketSummary
28
+ */
29
+ name?: string;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof MarketSummary
34
+ */
35
+ inPlay?: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof MarketSummary
40
+ */
41
+ published?: boolean;
42
+ /**
43
+ *
44
+ * @type {boolean}
45
+ * @memberof MarketSummary
46
+ */
47
+ suspended?: boolean;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof MarketSummary
52
+ */
53
+ status?: MarketSummaryStatusEnum;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const MarketSummaryStatusEnum: {
59
+ readonly Initializing: "Initializing";
60
+ readonly Open: "Open";
61
+ readonly Locked: "Locked";
62
+ readonly Settling: "Settling";
63
+ readonly Settled: "Settled";
64
+ readonly Voiding: "Voiding";
65
+ readonly Voided: "Voided";
66
+ readonly Closed: "Closed";
67
+ };
68
+ export type MarketSummaryStatusEnum = typeof MarketSummaryStatusEnum[keyof typeof MarketSummaryStatusEnum];
69
+ /**
70
+ * Check if a given object implements the MarketSummary interface.
71
+ */
72
+ export declare function instanceOfMarketSummary(value: object): value is MarketSummary;
73
+ export declare function MarketSummaryFromJSON(json: any): MarketSummary;
74
+ export declare function MarketSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketSummary;
75
+ export declare function MarketSummaryToJSON(json: any): MarketSummary;
76
+ export declare function MarketSummaryToJSONTyped(value?: MarketSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.MarketSummaryStatusEnum = void 0;
17
+ exports.instanceOfMarketSummary = instanceOfMarketSummary;
18
+ exports.MarketSummaryFromJSON = MarketSummaryFromJSON;
19
+ exports.MarketSummaryFromJSONTyped = MarketSummaryFromJSONTyped;
20
+ exports.MarketSummaryToJSON = MarketSummaryToJSON;
21
+ exports.MarketSummaryToJSONTyped = MarketSummaryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.MarketSummaryStatusEnum = {
26
+ Initializing: 'Initializing',
27
+ Open: 'Open',
28
+ Locked: 'Locked',
29
+ Settling: 'Settling',
30
+ Settled: 'Settled',
31
+ Voiding: 'Voiding',
32
+ Voided: 'Voided',
33
+ Closed: 'Closed'
34
+ };
35
+ /**
36
+ * Check if a given object implements the MarketSummary interface.
37
+ */
38
+ function instanceOfMarketSummary(value) {
39
+ return true;
40
+ }
41
+ function MarketSummaryFromJSON(json) {
42
+ return MarketSummaryFromJSONTyped(json, false);
43
+ }
44
+ function MarketSummaryFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'] == null ? undefined : json['id'],
50
+ 'name': json['name'] == null ? undefined : json['name'],
51
+ 'inPlay': json['inPlay'] == null ? undefined : json['inPlay'],
52
+ 'published': json['published'] == null ? undefined : json['published'],
53
+ 'suspended': json['suspended'] == null ? undefined : json['suspended'],
54
+ 'status': json['status'] == null ? undefined : json['status'],
55
+ };
56
+ }
57
+ function MarketSummaryToJSON(json) {
58
+ return MarketSummaryToJSONTyped(json, false);
59
+ }
60
+ function MarketSummaryToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'id': value['id'],
66
+ 'name': value['name'],
67
+ 'inPlay': value['inPlay'],
68
+ 'published': value['published'],
69
+ 'suspended': value['suspended'],
70
+ 'status': value['status'],
71
+ };
72
+ }
@@ -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 { Range } from './Range';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MarketType
17
+ */
18
+ export interface MarketType {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof MarketType
23
+ */
24
+ id?: string;
25
+ /**
26
+ *
27
+ * @type {Range}
28
+ * @memberof MarketType
29
+ */
30
+ outcomesRange?: Range;
31
+ /**
32
+ *
33
+ * @type {Range}
34
+ * @memberof MarketType
35
+ */
36
+ winnersRange?: Range;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof MarketType
41
+ */
42
+ createdAt?: Date;
43
+ /**
44
+ *
45
+ * @type {Date}
46
+ * @memberof MarketType
47
+ */
48
+ modifiedAt?: Date;
49
+ }
50
+ /**
51
+ * Check if a given object implements the MarketType interface.
52
+ */
53
+ export declare function instanceOfMarketType(value: object): value is MarketType;
54
+ export declare function MarketTypeFromJSON(json: any): MarketType;
55
+ export declare function MarketTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketType;
56
+ export declare function MarketTypeToJSON(json: any): MarketType;
57
+ export declare function MarketTypeToJSONTyped(value?: MarketType | 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.instanceOfMarketType = instanceOfMarketType;
17
+ exports.MarketTypeFromJSON = MarketTypeFromJSON;
18
+ exports.MarketTypeFromJSONTyped = MarketTypeFromJSONTyped;
19
+ exports.MarketTypeToJSON = MarketTypeToJSON;
20
+ exports.MarketTypeToJSONTyped = MarketTypeToJSONTyped;
21
+ const Range_1 = require("./Range");
22
+ /**
23
+ * Check if a given object implements the MarketType interface.
24
+ */
25
+ function instanceOfMarketType(value) {
26
+ return true;
27
+ }
28
+ function MarketTypeFromJSON(json) {
29
+ return MarketTypeFromJSONTyped(json, false);
30
+ }
31
+ function MarketTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'] == null ? undefined : json['id'],
37
+ 'outcomesRange': json['outcomesRange'] == null ? undefined : (0, Range_1.RangeFromJSON)(json['outcomesRange']),
38
+ 'winnersRange': json['winnersRange'] == null ? undefined : (0, Range_1.RangeFromJSON)(json['winnersRange']),
39
+ 'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
40
+ 'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
41
+ };
42
+ }
43
+ function MarketTypeToJSON(json) {
44
+ return MarketTypeToJSONTyped(json, false);
45
+ }
46
+ function MarketTypeToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'outcomesRange': (0, Range_1.RangeToJSON)(value['outcomesRange']),
53
+ 'winnersRange': (0, Range_1.RangeToJSON)(value['winnersRange']),
54
+ 'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
55
+ 'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
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 { MarketType } from './MarketType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MarketTypeResponse
18
+ */
19
+ export interface MarketTypeResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof MarketTypeResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<MarketType>}
29
+ * @memberof MarketTypeResponse
30
+ */
31
+ marketTypes?: Array<MarketType>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the MarketTypeResponse interface.
35
+ */
36
+ export declare function instanceOfMarketTypeResponse(value: object): value is MarketTypeResponse;
37
+ export declare function MarketTypeResponseFromJSON(json: any): MarketTypeResponse;
38
+ export declare function MarketTypeResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketTypeResponse;
39
+ export declare function MarketTypeResponseToJSON(json: any): MarketTypeResponse;
40
+ export declare function MarketTypeResponseToJSONTyped(value?: MarketTypeResponse | 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.instanceOfMarketTypeResponse = instanceOfMarketTypeResponse;
17
+ exports.MarketTypeResponseFromJSON = MarketTypeResponseFromJSON;
18
+ exports.MarketTypeResponseFromJSONTyped = MarketTypeResponseFromJSONTyped;
19
+ exports.MarketTypeResponseToJSON = MarketTypeResponseToJSON;
20
+ exports.MarketTypeResponseToJSONTyped = MarketTypeResponseToJSONTyped;
21
+ const Meta_1 = require("./Meta");
22
+ const MarketType_1 = require("./MarketType");
23
+ /**
24
+ * Check if a given object implements the MarketTypeResponse interface.
25
+ */
26
+ function instanceOfMarketTypeResponse(value) {
27
+ return true;
28
+ }
29
+ function MarketTypeResponseFromJSON(json) {
30
+ return MarketTypeResponseFromJSONTyped(json, false);
31
+ }
32
+ function MarketTypeResponseFromJSONTyped(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
+ 'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketType_1.MarketTypeFromJSON)),
39
+ };
40
+ }
41
+ function MarketTypeResponseToJSON(json) {
42
+ return MarketTypeResponseToJSONTyped(json, false);
43
+ }
44
+ function MarketTypeResponseToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
+ 'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketType_1.MarketTypeToJSON)),
51
+ };
52
+ }