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

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 (65) hide show
  1. package/README.md +13 -3
  2. package/dist/apis/MarketPricesApi.d.ts +30 -0
  3. package/dist/apis/MarketPricesApi.js +70 -0
  4. package/dist/apis/OrdersApi.d.ts +9 -8
  5. package/dist/apis/OrdersApi.js +12 -8
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/models/APIKeyResponse.d.ts +1 -1
  9. package/dist/models/APIKeyResponse.js +2 -2
  10. package/dist/models/AppResponse.d.ts +1 -1
  11. package/dist/models/AppResponse.js +2 -2
  12. package/dist/models/AppStatusResponse.d.ts +1 -1
  13. package/dist/models/AppStatusResponse.js +2 -2
  14. package/dist/models/CategoryResponse.d.ts +1 -1
  15. package/dist/models/CategoryResponse.js +2 -2
  16. package/dist/models/ChunkOrderResponse.d.ts +60 -0
  17. package/dist/models/ChunkOrderResponse.js +60 -0
  18. package/dist/models/CommissionRateResponse.d.ts +1 -1
  19. package/dist/models/CommissionRateResponse.js +2 -2
  20. package/dist/models/CurrencyResponse.d.ts +1 -1
  21. package/dist/models/CurrencyResponse.js +2 -2
  22. package/dist/models/EventGroupResponse.d.ts +1 -1
  23. package/dist/models/EventGroupResponse.js +2 -2
  24. package/dist/models/EventResponse.d.ts +1 -1
  25. package/dist/models/EventResponse.js +2 -2
  26. package/dist/models/MarketLiquidities.d.ts +39 -0
  27. package/dist/models/MarketLiquidities.js +51 -0
  28. package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
  29. package/dist/models/MarketLiquiditiesResponse.js +52 -0
  30. package/dist/models/MarketLiquidityResponse.d.ts +1 -1
  31. package/dist/models/MarketLiquidityResponse.js +2 -2
  32. package/dist/models/MarketResponse.d.ts +1 -1
  33. package/dist/models/MarketResponse.js +2 -2
  34. package/dist/models/MarketTypeResponse.d.ts +1 -1
  35. package/dist/models/MarketTypeResponse.js +2 -2
  36. package/dist/models/Order.d.ts +16 -0
  37. package/dist/models/Order.js +12 -1
  38. package/dist/models/OrderResponse.d.ts +1 -1
  39. package/dist/models/OrderResponse.js +2 -2
  40. package/dist/models/PagedEventResponse.d.ts +1 -1
  41. package/dist/models/PagedEventResponse.js +2 -2
  42. package/dist/models/PagedMarketPositionResponse.d.ts +1 -1
  43. package/dist/models/PagedMarketPositionResponse.js +2 -2
  44. package/dist/models/PagedOrderResponse.d.ts +1 -1
  45. package/dist/models/PagedOrderResponse.js +2 -2
  46. package/dist/models/PagedTradeResponse.d.ts +1 -1
  47. package/dist/models/PagedTradeResponse.js +2 -2
  48. package/dist/models/PagedTransactionResponse.d.ts +1 -1
  49. package/dist/models/PagedTransactionResponse.js +2 -2
  50. package/dist/models/SessionResponse.d.ts +1 -1
  51. package/dist/models/SessionResponse.js +2 -2
  52. package/dist/models/SubcategoryResponse.d.ts +1 -1
  53. package/dist/models/SubcategoryResponse.js +2 -2
  54. package/dist/models/TradeResponse.d.ts +1 -1
  55. package/dist/models/TradeResponse.js +2 -2
  56. package/dist/models/Transaction.d.ts +1 -0
  57. package/dist/models/Transaction.js +2 -1
  58. package/dist/models/TransferResponse.d.ts +1 -1
  59. package/dist/models/TransferResponse.js +2 -2
  60. package/dist/models/WalletResponse.d.ts +1 -1
  61. package/dist/models/WalletResponse.js +2 -2
  62. package/dist/models/index.d.ts +3 -0
  63. package/dist/models/index.js +3 -0
  64. package/dist/runtime.js +1 -1
  65. package/package.json +1 -1
@@ -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
  }
@@ -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
  }
@@ -24,7 +24,7 @@ export interface OrderResponse {
24
24
  * @type {Meta}
25
25
  * @memberof OrderResponse
26
26
  */
27
- getMeta?: Meta;
27
+ meta?: Meta;
28
28
  /**
29
29
  *
30
30
  * @type {Array<Order>}
@@ -36,7 +36,7 @@ function OrderResponseFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
39
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
40
40
  'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
41
41
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
42
42
  'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
@@ -50,7 +50,7 @@ function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
50
50
  return value;
51
51
  }
52
52
  return {
53
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
53
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
54
54
  'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
55
55
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
56
56
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
@@ -25,7 +25,7 @@ export interface PagedEventResponse {
25
25
  * @type {Meta}
26
26
  * @memberof PagedEventResponse
27
27
  */
28
- getMeta?: Meta;
28
+ meta?: Meta;
29
29
  /**
30
30
  *
31
31
  * @type {Array<Event>}
@@ -37,7 +37,7 @@ function PagedEventResponseFromJSONTyped(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)),
@@ -56,7 +56,7 @@ function PagedEventResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
59
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
60
60
  'events': value['events'] == null ? undefined : (value['events'].map(Event_1.EventToJSON)),
61
61
  'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroup_1.EventGroupToJSON)),
62
62
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
@@ -23,7 +23,7 @@ export interface PagedMarketPositionResponse {
23
23
  * @type {Meta}
24
24
  * @memberof PagedMarketPositionResponse
25
25
  */
26
- getMeta?: Meta;
26
+ meta?: Meta;
27
27
  /**
28
28
  *
29
29
  * @type {Array<MarketPosition>}
@@ -35,7 +35,7 @@ function PagedMarketPositionResponseFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
38
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
39
39
  'positions': json['positions'] == null ? undefined : (json['positions'].map(MarketPosition_1.MarketPositionFromJSON)),
40
40
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
41
41
  'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
@@ -52,7 +52,7 @@ function PagedMarketPositionResponseToJSONTyped(value, ignoreDiscriminator = fal
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
  'positions': value['positions'] == null ? undefined : (value['positions'].map(MarketPosition_1.MarketPositionToJSON)),
57
57
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
58
58
  'pageNumber': value['pageNumber'],
@@ -24,7 +24,7 @@ export interface PagedOrderResponse {
24
24
  * @type {Meta}
25
25
  * @memberof PagedOrderResponse
26
26
  */
27
- getMeta?: Meta;
27
+ meta?: Meta;
28
28
  /**
29
29
  *
30
30
  * @type {Array<Order>}
@@ -36,7 +36,7 @@ function PagedOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
36
36
  return json;
37
37
  }
38
38
  return {
39
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
39
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
40
40
  'orders': json['orders'] == null ? undefined : (json['orders'].map(Order_1.OrderFromJSON)),
41
41
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
42
42
  'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
@@ -54,7 +54,7 @@ function PagedOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
54
54
  return value;
55
55
  }
56
56
  return {
57
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
57
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
58
58
  'orders': value['orders'] == null ? undefined : (value['orders'].map(Order_1.OrderToJSON)),
59
59
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
60
60
  'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
@@ -25,7 +25,7 @@ export interface PagedTradeResponse {
25
25
  * @type {Meta}
26
26
  * @memberof PagedTradeResponse
27
27
  */
28
- getMeta?: Meta;
28
+ meta?: Meta;
29
29
  /**
30
30
  *
31
31
  * @type {Array<Trade>}
@@ -37,7 +37,7 @@ function PagedTradeResponseFromJSONTyped(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
  'trades': json['trades'] == null ? undefined : (json['trades'].map(Trade_1.TradeFromJSON)),
42
42
  'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
43
43
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
@@ -56,7 +56,7 @@ function PagedTradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
56
56
  return value;
57
57
  }
58
58
  return {
59
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
59
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
60
60
  'trades': value['trades'] == null ? undefined : (value['trades'].map(Trade_1.TradeToJSON)),
61
61
  'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
62
62
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
@@ -22,7 +22,7 @@ export interface PagedTransactionResponse {
22
22
  * @type {Meta}
23
23
  * @memberof PagedTransactionResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<Transaction>}
@@ -34,7 +34,7 @@ function PagedTransactionResponseFromJSONTyped(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
  'transactions': json['transactions'] == null ? undefined : (json['transactions'].map(Transaction_1.TransactionFromJSON)),
39
39
  'pageNumber': json['pageNumber'] == null ? undefined : json['pageNumber'],
40
40
  'resultsPerPage': json['resultsPerPage'] == null ? undefined : json['resultsPerPage'],
@@ -50,7 +50,7 @@ function PagedTransactionResponseToJSONTyped(value, ignoreDiscriminator = false)
50
50
  return value;
51
51
  }
52
52
  return {
53
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
53
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
54
54
  'transactions': value['transactions'] == null ? undefined : (value['transactions'].map(Transaction_1.TransactionToJSON)),
55
55
  'pageNumber': value['pageNumber'],
56
56
  'resultsPerPage': value['resultsPerPage'],
@@ -22,7 +22,7 @@ export interface SessionResponse {
22
22
  * @type {Meta}
23
23
  * @memberof SessionResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {Array<Session>}
@@ -34,7 +34,7 @@ function SessionResponseFromJSONTyped(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
  'sessions': json['sessions'] == null ? undefined : (json['sessions'].map(Session_1.SessionFromJSON)),
39
39
  };
40
40
  }
@@ -46,7 +46,7 @@ function SessionResponseToJSONTyped(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
  'sessions': value['sessions'] == null ? undefined : (value['sessions'].map(Session_1.SessionToJSON)),
51
51
  };
52
52
  }
@@ -23,7 +23,7 @@ export interface SubcategoryResponse {
23
23
  * @type {Meta}
24
24
  * @memberof SubcategoryResponse
25
25
  */
26
- getMeta?: Meta;
26
+ meta?: Meta;
27
27
  /**
28
28
  *
29
29
  * @type {Array<Subcategory>}
@@ -35,7 +35,7 @@ function SubcategoryResponseFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return json;
36
36
  }
37
37
  return {
38
- 'getMeta': json['get_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['get_meta']),
38
+ 'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
39
39
  'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(Subcategory_1.SubcategoryFromJSON)),
40
40
  'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
41
41
  };
@@ -48,7 +48,7 @@ function SubcategoryResponseToJSONTyped(value, ignoreDiscriminator = false) {
48
48
  return value;
49
49
  }
50
50
  return {
51
- 'get_meta': (0, Meta_1.MetaToJSON)(value['getMeta']),
51
+ '_meta': (0, Meta_1.MetaToJSON)(value['meta']),
52
52
  'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(Subcategory_1.SubcategoryToJSON)),
53
53
  'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
54
54
  };
@@ -25,7 +25,7 @@ export interface TradeResponse {
25
25
  * @type {Meta}
26
26
  * @memberof TradeResponse
27
27
  */
28
- getMeta?: Meta;
28
+ meta?: Meta;
29
29
  /**
30
30
  *
31
31
  * @type {Array<Trade>}
@@ -37,7 +37,7 @@ function TradeResponseFromJSONTyped(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
  'trades': json['trades'] == null ? undefined : (json['trades'].map(Trade_1.TradeFromJSON)),
42
42
  'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
43
43
  'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
@@ -52,7 +52,7 @@ function TradeResponseToJSONTyped(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
  'trades': value['trades'] == null ? undefined : (value['trades'].map(Trade_1.TradeToJSON)),
57
57
  'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
58
58
  'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
@@ -69,6 +69,7 @@ export declare const TransactionCodeEnum: {
69
69
  readonly TradeWin: "TradeWin";
70
70
  readonly WalletToWallet: "WalletToWallet";
71
71
  readonly Commission: "Commission";
72
+ readonly MarketPositionVoid: "MarketPositionVoid";
72
73
  };
73
74
  export type TransactionCodeEnum = typeof TransactionCodeEnum[keyof typeof TransactionCodeEnum];
74
75
  /**
@@ -29,7 +29,8 @@ exports.TransactionCodeEnum = {
29
29
  TradeVoid: 'TradeVoid',
30
30
  TradeWin: 'TradeWin',
31
31
  WalletToWallet: 'WalletToWallet',
32
- Commission: 'Commission'
32
+ Commission: 'Commission',
33
+ MarketPositionVoid: 'MarketPositionVoid'
33
34
  };
34
35
  /**
35
36
  * Check if a given object implements the Transaction interface.
@@ -22,7 +22,7 @@ export interface TransferResponse {
22
22
  * @type {Meta}
23
23
  * @memberof TransferResponse
24
24
  */
25
- getMeta?: Meta;
25
+ meta?: Meta;
26
26
  /**
27
27
  *
28
28
  * @type {string}