@monaco-protocol/client-v2 0.0.2-dev.2 → 0.0.2-dev.4

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 (114) hide show
  1. package/README.md +13 -3
  2. package/dist/apis/APIKeyManagementApi.d.ts +3 -3
  3. package/dist/apis/APIKeyManagementApi.js +5 -5
  4. package/dist/apis/AppManagementApi.d.ts +6 -6
  5. package/dist/apis/AppManagementApi.js +9 -9
  6. package/dist/apis/CurrenciesApi.d.ts +3 -3
  7. package/dist/apis/CurrenciesApi.js +5 -5
  8. package/dist/apis/EventCategoriesApi.d.ts +9 -9
  9. package/dist/apis/EventCategoriesApi.js +14 -14
  10. package/dist/apis/EventGroupsApi.d.ts +11 -11
  11. package/dist/apis/EventGroupsApi.js +16 -16
  12. package/dist/apis/EventSubcategoriesApi.d.ts +67 -16
  13. package/dist/apis/EventSubcategoriesApi.js +170 -20
  14. package/dist/apis/EventsApi.d.ts +42 -2
  15. package/dist/apis/EventsApi.js +118 -0
  16. package/dist/apis/MarketPricesApi.d.ts +30 -0
  17. package/dist/apis/MarketPricesApi.js +70 -0
  18. package/dist/apis/MarketsApi.d.ts +7 -3
  19. package/dist/apis/MarketsApi.js +14 -2
  20. package/dist/apis/OrdersApi.d.ts +15 -10
  21. package/dist/apis/OrdersApi.js +24 -8
  22. package/dist/apis/SessionManagementApi.d.ts +10 -10
  23. package/dist/apis/SessionManagementApi.js +12 -12
  24. package/dist/apis/TradesApi.d.ts +4 -2
  25. package/dist/apis/TradesApi.js +6 -0
  26. package/dist/apis/WalletsApi.d.ts +7 -3
  27. package/dist/apis/WalletsApi.js +12 -0
  28. package/dist/apis/index.d.ts +1 -0
  29. package/dist/apis/index.js +1 -0
  30. package/dist/models/APIKeyResponse.d.ts +1 -1
  31. package/dist/models/APIKeyResponse.js +2 -2
  32. package/dist/models/AddParticipantRequest.d.ts +52 -0
  33. package/dist/models/AddParticipantRequest.js +60 -0
  34. package/dist/models/AddParticipantsRequest.d.ts +33 -0
  35. package/dist/models/AddParticipantsRequest.js +49 -0
  36. package/dist/models/AppResponse.d.ts +1 -1
  37. package/dist/models/AppResponse.js +2 -2
  38. package/dist/models/AppStatusResponse.d.ts +1 -1
  39. package/dist/models/AppStatusResponse.js +2 -2
  40. package/dist/models/CategoryResponse.d.ts +1 -1
  41. package/dist/models/CategoryResponse.js +2 -2
  42. package/dist/models/ChunkOrderResponse.d.ts +67 -0
  43. package/dist/models/ChunkOrderResponse.js +63 -0
  44. package/dist/models/CommissionRateResponse.d.ts +1 -1
  45. package/dist/models/CommissionRateResponse.js +2 -2
  46. package/dist/models/CreateEventRequest.d.ts +5 -5
  47. package/dist/models/CreateEventRequest.js +16 -6
  48. package/dist/models/CreateOrderRequest.d.ts +9 -0
  49. package/dist/models/CreateOrderRequest.js +2 -0
  50. package/dist/models/CreateSessionRequest.d.ts +2 -2
  51. package/dist/models/CreateSessionRequest.js +6 -2
  52. package/dist/models/CurrencyResponse.d.ts +1 -1
  53. package/dist/models/CurrencyResponse.js +2 -2
  54. package/dist/models/DocumentReference.js +4 -4
  55. package/dist/models/EventGroupResponse.d.ts +1 -1
  56. package/dist/models/EventGroupResponse.js +2 -2
  57. package/dist/models/EventParticipant.d.ts +52 -0
  58. package/dist/models/EventParticipant.js +60 -0
  59. package/dist/models/EventParticipantsResponse.d.ts +40 -0
  60. package/dist/models/EventParticipantsResponse.js +52 -0
  61. package/dist/models/EventResponse.d.ts +1 -1
  62. package/dist/models/EventResponse.js +2 -2
  63. package/dist/models/MarketLiquidities.d.ts +39 -0
  64. package/dist/models/MarketLiquidities.js +51 -0
  65. package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
  66. package/dist/models/MarketLiquiditiesResponse.js +52 -0
  67. package/dist/models/MarketLiquidityResponse.d.ts +1 -1
  68. package/dist/models/MarketLiquidityResponse.js +2 -2
  69. package/dist/models/MarketResponse.d.ts +1 -1
  70. package/dist/models/MarketResponse.js +2 -2
  71. package/dist/models/MarketTypeResponse.d.ts +1 -1
  72. package/dist/models/MarketTypeResponse.js +2 -2
  73. package/dist/models/Meta.d.ts +34 -1
  74. package/dist/models/Meta.js +29 -0
  75. package/dist/models/ModifyParticipantsRequest.d.ts +32 -0
  76. package/dist/models/ModifyParticipantsRequest.js +48 -0
  77. package/dist/models/Order.d.ts +16 -0
  78. package/dist/models/Order.js +12 -1
  79. package/dist/models/OrderResponse.d.ts +8 -1
  80. package/dist/models/OrderResponse.js +5 -2
  81. package/dist/models/PageMeta.d.ts +50 -0
  82. package/dist/models/PageMeta.js +54 -0
  83. package/dist/models/PagedEventResponse.d.ts +1 -25
  84. package/dist/models/PagedEventResponse.js +2 -10
  85. package/dist/models/PagedMarketPositionResponse.d.ts +1 -25
  86. package/dist/models/PagedMarketPositionResponse.js +2 -10
  87. package/dist/models/PagedOrderResponse.d.ts +4 -21
  88. package/dist/models/PagedOrderResponse.js +5 -10
  89. package/dist/models/PagedTradeResponse.d.ts +1 -25
  90. package/dist/models/PagedTradeResponse.js +2 -10
  91. package/dist/models/PagedTransactionResponse.d.ts +1 -25
  92. package/dist/models/PagedTransactionResponse.js +2 -10
  93. package/dist/models/Participant.d.ts +58 -0
  94. package/dist/models/Participant.js +62 -0
  95. package/dist/models/ParticipantsResponse.d.ts +40 -0
  96. package/dist/models/ParticipantsResponse.js +52 -0
  97. package/dist/models/SessionResponse.d.ts +1 -1
  98. package/dist/models/SessionResponse.js +2 -2
  99. package/dist/models/SubcategoryResponse.d.ts +1 -1
  100. package/dist/models/SubcategoryResponse.js +2 -2
  101. package/dist/models/TradeResponse.d.ts +1 -1
  102. package/dist/models/TradeResponse.js +2 -2
  103. package/dist/models/TradeSummary.d.ts +44 -0
  104. package/dist/models/TradeSummary.js +52 -0
  105. package/dist/models/Transaction.d.ts +1 -0
  106. package/dist/models/Transaction.js +2 -1
  107. package/dist/models/TransferResponse.d.ts +1 -1
  108. package/dist/models/TransferResponse.js +2 -2
  109. package/dist/models/WalletResponse.d.ts +1 -1
  110. package/dist/models/WalletResponse.js +2 -2
  111. package/dist/models/index.d.ts +12 -1
  112. package/dist/models/index.js +12 -1
  113. package/dist/runtime.js +1 -1
  114. package/package.json +1 -1
@@ -37,7 +37,7 @@ function EventResponseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return json;
38
38
  }
39
39
  return {
40
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
40
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
41
41
  'events': json['events'] == null ? undefined : (json['events'].map(Event_1.EventFromJSON)),
42
42
  'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroup_1.EventGroupFromJSON)),
43
43
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
@@ -52,7 +52,7 @@ function EventResponseToJSONTyped(value, ignoreDiscriminator = false) {
52
52
  return value;
53
53
  }
54
54
  return {
55
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
55
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
56
56
  'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
57
57
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
58
58
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
@@ -0,0 +1,39 @@
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 { MarketLiquidity } from './MarketLiquidity';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MarketLiquidities
17
+ */
18
+ export interface MarketLiquidities {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof MarketLiquidities
23
+ */
24
+ marketId?: string;
25
+ /**
26
+ *
27
+ * @type {Array<MarketLiquidity>}
28
+ * @memberof MarketLiquidities
29
+ */
30
+ prices?: Array<MarketLiquidity>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the MarketLiquidities interface.
34
+ */
35
+ export declare function instanceOfMarketLiquidities(value: object): value is MarketLiquidities;
36
+ export declare function MarketLiquiditiesFromJSON(json: any): MarketLiquidities;
37
+ export declare function MarketLiquiditiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketLiquidities;
38
+ export declare function MarketLiquiditiesToJSON(json: any): MarketLiquidities;
39
+ export declare function MarketLiquiditiesToJSONTyped(value?: MarketLiquidities | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfMarketLiquidities = instanceOfMarketLiquidities;
17
+ exports.MarketLiquiditiesFromJSON = MarketLiquiditiesFromJSON;
18
+ exports.MarketLiquiditiesFromJSONTyped = MarketLiquiditiesFromJSONTyped;
19
+ exports.MarketLiquiditiesToJSON = MarketLiquiditiesToJSON;
20
+ exports.MarketLiquiditiesToJSONTyped = MarketLiquiditiesToJSONTyped;
21
+ const MarketLiquidity_1 = require("./MarketLiquidity");
22
+ /**
23
+ * Check if a given object implements the MarketLiquidities interface.
24
+ */
25
+ function instanceOfMarketLiquidities(value) {
26
+ return true;
27
+ }
28
+ function MarketLiquiditiesFromJSON(json) {
29
+ return MarketLiquiditiesFromJSONTyped(json, false);
30
+ }
31
+ function MarketLiquiditiesFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'marketId': json['marketId'] == null ? undefined : json['marketId'],
37
+ 'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidity_1.MarketLiquidityFromJSON)),
38
+ };
39
+ }
40
+ function MarketLiquiditiesToJSON(json) {
41
+ return MarketLiquiditiesToJSONTyped(json, false);
42
+ }
43
+ function MarketLiquiditiesToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'marketId': value['marketId'],
49
+ 'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidity_1.MarketLiquidityToJSON)),
50
+ };
51
+ }
@@ -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 { MarketLiquidities } from './MarketLiquidities';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MarketLiquiditiesResponse
18
+ */
19
+ export interface MarketLiquiditiesResponse {
20
+ /**
21
+ *
22
+ * @type {Meta}
23
+ * @memberof MarketLiquiditiesResponse
24
+ */
25
+ meta?: Meta;
26
+ /**
27
+ *
28
+ * @type {Array<MarketLiquidities>}
29
+ * @memberof MarketLiquiditiesResponse
30
+ */
31
+ prices?: Array<MarketLiquidities>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the MarketLiquiditiesResponse interface.
35
+ */
36
+ export declare function instanceOfMarketLiquiditiesResponse(value: object): value is MarketLiquiditiesResponse;
37
+ export declare function MarketLiquiditiesResponseFromJSON(json: any): MarketLiquiditiesResponse;
38
+ export declare function MarketLiquiditiesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): MarketLiquiditiesResponse;
39
+ export declare function MarketLiquiditiesResponseToJSON(json: any): MarketLiquiditiesResponse;
40
+ export declare function MarketLiquiditiesResponseToJSONTyped(value?: MarketLiquiditiesResponse | 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.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
+ }
@@ -22,7 +22,7 @@ export interface MarketLiquidityResponse {
22
22
  * @type {Meta}
23
23
  * @memberof MarketLiquidityResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<MarketLiquidity>}
@@ -34,7 +34,7 @@ function MarketLiquidityResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
37
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
38
38
  'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidity_1.MarketLiquidityFromJSON)),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function MarketLiquidityResponseToJSONTyped(value, ignoreDiscriminator = false)
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
50
  'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidity_1.MarketLiquidityToJSON)),
51
51
  };
52
52
  }
@@ -28,7 +28,7 @@ export interface MarketResponse {
28
28
  * @type {Meta}
29
29
  * @memberof MarketResponse
30
30
  */
31
- getMeta?: Meta;
31
+ meta?: Meta;
32
32
  /**
33
33
  *
34
34
  * @type {Array<Market>}
@@ -40,7 +40,7 @@ function MarketResponseFromJSONTyped(json, ignoreDiscriminator) {
40
40
  return json;
41
41
  }
42
42
  return {
43
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
43
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
44
44
  'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
45
45
  'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
46
46
  'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
@@ -58,7 +58,7 @@ function MarketResponseToJSONTyped(value, ignoreDiscriminator = false) {
58
58
  return value;
59
59
  }
60
60
  return {
61
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
61
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
62
62
  'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
63
63
  'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
64
64
  'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
@@ -22,7 +22,7 @@ export interface MarketTypeResponse {
22
22
  * @type {Meta}
23
23
  * @memberof MarketTypeResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<MarketType>}
@@ -34,7 +34,7 @@ function MarketTypeResponseFromJSONTyped(json, ignoreDiscriminator) {
34
34
  return json;
35
35
  }
36
36
  return {
37
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
37
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
38
38
  'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketType_1.MarketTypeFromJSON)),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function MarketTypeResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
46
  return value;
47
47
  }
48
48
  return {
49
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
49
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
50
50
  'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketType_1.MarketTypeToJSON)),
51
51
  };
52
52
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { PageMeta } from './PageMeta';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -20,14 +21,46 @@ export interface Meta {
20
21
  * @type {string}
21
22
  * @memberof Meta
22
23
  */
23
- primaryDocument?: string;
24
+ primaryDocument?: MetaPrimaryDocumentEnum;
24
25
  /**
25
26
  *
26
27
  * @type {number}
27
28
  * @memberof Meta
28
29
  */
29
30
  count?: number;
31
+ /**
32
+ *
33
+ * @type {PageMeta}
34
+ * @memberof Meta
35
+ */
36
+ page?: PageMeta;
30
37
  }
38
+ /**
39
+ * @export
40
+ */
41
+ export declare const MetaPrimaryDocumentEnum: {
42
+ readonly ApiKeys: "apiKeys";
43
+ readonly Apps: "apps";
44
+ readonly Categories: "categories";
45
+ readonly CommissionRates: "commissionRates";
46
+ readonly Currencies: "currencies";
47
+ readonly Events: "events";
48
+ readonly EventGroups: "eventGroups";
49
+ readonly Markets: "markets";
50
+ readonly MarketOutcomes: "marketOutcomes";
51
+ readonly MarketPositions: "marketPositions";
52
+ readonly MarketTypes: "marketTypes";
53
+ readonly Orders: "orders";
54
+ readonly Participants: "participants";
55
+ readonly Prices: "prices";
56
+ readonly Sessions: "sessions";
57
+ readonly Statuses: "statuses";
58
+ readonly Subcategories: "subcategories";
59
+ readonly Trades: "trades";
60
+ readonly Transactions: "transactions";
61
+ readonly Wallets: "wallets";
62
+ };
63
+ export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
31
64
  /**
32
65
  * Check if a given object implements the Meta interface.
33
66
  */
@@ -13,11 +13,38 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MetaPrimaryDocumentEnum = void 0;
16
17
  exports.instanceOfMeta = instanceOfMeta;
17
18
  exports.MetaFromJSON = MetaFromJSON;
18
19
  exports.MetaFromJSONTyped = MetaFromJSONTyped;
19
20
  exports.MetaToJSON = MetaToJSON;
20
21
  exports.MetaToJSONTyped = MetaToJSONTyped;
22
+ const PageMeta_1 = require("./PageMeta");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.MetaPrimaryDocumentEnum = {
27
+ ApiKeys: 'apiKeys',
28
+ Apps: 'apps',
29
+ Categories: 'categories',
30
+ CommissionRates: 'commissionRates',
31
+ Currencies: 'currencies',
32
+ Events: 'events',
33
+ EventGroups: 'eventGroups',
34
+ Markets: 'markets',
35
+ MarketOutcomes: 'marketOutcomes',
36
+ MarketPositions: 'marketPositions',
37
+ MarketTypes: 'marketTypes',
38
+ Orders: 'orders',
39
+ Participants: 'participants',
40
+ Prices: 'prices',
41
+ Sessions: 'sessions',
42
+ Statuses: 'statuses',
43
+ Subcategories: 'subcategories',
44
+ Trades: 'trades',
45
+ Transactions: 'transactions',
46
+ Wallets: 'wallets'
47
+ };
21
48
  /**
22
49
  * Check if a given object implements the Meta interface.
23
50
  */
@@ -34,6 +61,7 @@ function MetaFromJSONTyped(json, ignoreDiscriminator) {
34
61
  return {
35
62
  'primaryDocument': json['_primary_document'] == null ? undefined : json['_primary_document'],
36
63
  'count': json['_count'] == null ? undefined : json['_count'],
64
+ 'page': json['_page'] == null ? undefined : (0, PageMeta_1.PageMetaFromJSON)(json['_page']),
37
65
  };
38
66
  }
39
67
  function MetaToJSON(json) {
@@ -46,5 +74,6 @@ function MetaToJSONTyped(value, ignoreDiscriminator = false) {
46
74
  return {
47
75
  '_primary_document': value['primaryDocument'],
48
76
  '_count': value['count'],
77
+ '_page': (0, PageMeta_1.PageMetaToJSON)(value['page']),
49
78
  };
50
79
  }
@@ -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 ModifyParticipantsRequest
16
+ */
17
+ export interface ModifyParticipantsRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof ModifyParticipantsRequest
22
+ */
23
+ participantCodes?: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the ModifyParticipantsRequest interface.
27
+ */
28
+ export declare function instanceOfModifyParticipantsRequest(value: object): value is ModifyParticipantsRequest;
29
+ export declare function ModifyParticipantsRequestFromJSON(json: any): ModifyParticipantsRequest;
30
+ export declare function ModifyParticipantsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModifyParticipantsRequest;
31
+ export declare function ModifyParticipantsRequestToJSON(json: any): ModifyParticipantsRequest;
32
+ export declare function ModifyParticipantsRequestToJSONTyped(value?: ModifyParticipantsRequest | 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.instanceOfModifyParticipantsRequest = instanceOfModifyParticipantsRequest;
17
+ exports.ModifyParticipantsRequestFromJSON = ModifyParticipantsRequestFromJSON;
18
+ exports.ModifyParticipantsRequestFromJSONTyped = ModifyParticipantsRequestFromJSONTyped;
19
+ exports.ModifyParticipantsRequestToJSON = ModifyParticipantsRequestToJSON;
20
+ exports.ModifyParticipantsRequestToJSONTyped = ModifyParticipantsRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ModifyParticipantsRequest interface.
23
+ */
24
+ function instanceOfModifyParticipantsRequest(value) {
25
+ return true;
26
+ }
27
+ function ModifyParticipantsRequestFromJSON(json) {
28
+ return ModifyParticipantsRequestFromJSONTyped(json, false);
29
+ }
30
+ function ModifyParticipantsRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'participantCodes': json['participantCodes'] == null ? undefined : json['participantCodes'],
36
+ };
37
+ }
38
+ function ModifyParticipantsRequestToJSON(json) {
39
+ return ModifyParticipantsRequestToJSONTyped(json, false);
40
+ }
41
+ function ModifyParticipantsRequestToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'participantCodes': value['participantCodes'],
47
+ };
48
+ }
@@ -106,6 +106,12 @@ export interface Order {
106
106
  * @memberof Order
107
107
  */
108
108
  reference?: string;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof Order
113
+ */
114
+ status?: OrderStatusEnum;
109
115
  }
110
116
  /**
111
117
  * @export
@@ -115,6 +121,16 @@ export declare const OrderSideEnum: {
115
121
  readonly Against: "Against";
116
122
  };
117
123
  export type OrderSideEnum = typeof OrderSideEnum[keyof typeof OrderSideEnum];
124
+ /**
125
+ * @export
126
+ */
127
+ export declare const OrderStatusEnum: {
128
+ readonly Cancelled: "Cancelled";
129
+ readonly Matched: "Matched";
130
+ readonly PartiallyMatched: "PartiallyMatched";
131
+ readonly Unmatched: "Unmatched";
132
+ };
133
+ export type OrderStatusEnum = typeof OrderStatusEnum[keyof typeof OrderStatusEnum];
118
134
  /**
119
135
  * Check if a given object implements the Order interface.
120
136
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.OrderSideEnum = void 0;
16
+ exports.OrderStatusEnum = exports.OrderSideEnum = void 0;
17
17
  exports.instanceOfOrder = instanceOfOrder;
18
18
  exports.OrderFromJSON = OrderFromJSON;
19
19
  exports.OrderFromJSONTyped = OrderFromJSONTyped;
@@ -27,6 +27,15 @@ exports.OrderSideEnum = {
27
27
  For: 'For',
28
28
  Against: 'Against'
29
29
  };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.OrderStatusEnum = {
34
+ Cancelled: 'Cancelled',
35
+ Matched: 'Matched',
36
+ PartiallyMatched: 'PartiallyMatched',
37
+ Unmatched: 'Unmatched'
38
+ };
30
39
  /**
31
40
  * Check if a given object implements the Order interface.
32
41
  */
@@ -56,6 +65,7 @@ function OrderFromJSONTyped(json, ignoreDiscriminator) {
56
65
  'modifiedAt': json['modifiedAt'] == null ? undefined : (new Date(json['modifiedAt'])),
57
66
  'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
58
67
  'reference': json['reference'] == null ? undefined : json['reference'],
68
+ 'status': json['status'] == null ? undefined : json['status'],
59
69
  };
60
70
  }
61
71
  function OrderToJSON(json) {
@@ -81,5 +91,6 @@ function OrderToJSONTyped(value, ignoreDiscriminator = false) {
81
91
  'modifiedAt': value['modifiedAt'] == null ? undefined : ((value['modifiedAt']).toISOString()),
82
92
  'commissionRateId': value['commissionRateId'],
83
93
  'reference': value['reference'],
94
+ 'status': value['status'],
84
95
  };
85
96
  }
@@ -12,6 +12,7 @@
12
12
  import type { Order } from './Order';
13
13
  import type { Meta } from './Meta';
14
14
  import type { MarketSummary } from './MarketSummary';
15
+ import type { TradeSummary } from './TradeSummary';
15
16
  import type { EventSummary } from './EventSummary';
16
17
  /**
17
18
  *
@@ -24,7 +25,7 @@ export interface OrderResponse {
24
25
  * @type {Meta}
25
26
  * @memberof OrderResponse
26
27
  */
27
- getMeta?: Meta;
28
+ meta?: Meta;
28
29
  /**
29
30
  *
30
31
  * @type {Array<Order>}
@@ -43,6 +44,12 @@ export interface OrderResponse {
43
44
  * @memberof OrderResponse
44
45
  */
45
46
  events?: Array<EventSummary>;
47
+ /**
48
+ *
49
+ * @type {Array<TradeSummary>}
50
+ * @memberof OrderResponse
51
+ */
52
+ trades?: Array<TradeSummary>;
46
53
  }
47
54
  /**
48
55
  * Check if a given object implements the OrderResponse interface.
@@ -21,6 +21,7 @@ exports.OrderResponseToJSONTyped = OrderResponseToJSONTyped;
21
21
  const Order_1 = require("./Order");
22
22
  const Meta_1 = require("./Meta");
23
23
  const MarketSummary_1 = require("./MarketSummary");
24
+ const TradeSummary_1 = require("./TradeSummary");
24
25
  const EventSummary_1 = require("./EventSummary");
25
26
  /**
26
27
  * Check if a given object implements the OrderResponse interface.
@@ -36,10 +37,11 @@ function OrderResponseFromJSONTyped(json, ignoreDiscriminator) {
36
37
  return json;
37
38
  }
38
39
  return {
39
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
40
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
40
41
  'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
41
42
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
42
43
  'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
44
+ 'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
43
45
  };
44
46
  }
45
47
  function OrderResponseToJSON(json) {
@@ -50,9 +52,10 @@ function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
52
  return value;
51
53
  }
52
54
  return {
53
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
55
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
54
56
  'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
55
57
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
56
58
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
59
+ 'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
57
60
  };
58
61
  }
@@ -0,0 +1,50 @@
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 PageMeta
16
+ */
17
+ export interface PageMeta {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PageMeta
22
+ */
23
+ pageNumber?: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PageMeta
28
+ */
29
+ pageSize?: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PageMeta
34
+ */
35
+ totalElements?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PageMeta
40
+ */
41
+ totalPages?: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PageMeta interface.
45
+ */
46
+ export declare function instanceOfPageMeta(value: object): value is PageMeta;
47
+ export declare function PageMetaFromJSON(json: any): PageMeta;
48
+ export declare function PageMetaFromJSONTyped(json: any, ignoreDiscriminator: boolean): PageMeta;
49
+ export declare function PageMetaToJSON(json: any): PageMeta;
50
+ export declare function PageMetaToJSONTyped(value?: PageMeta | null, ignoreDiscriminator?: boolean): any;