@monaco-protocol/client-v2 0.0.2-dev.0 → 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.
- package/README.md +32 -26
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.d.ts → APIKeyManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAPIKeyManagementApi.js → APIKeyManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPIAppManagementApi.d.ts → AppManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAppManagementApi.js → AppManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPICurrenciesApi.d.ts → CurrenciesApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPICurrenciesApi.js → CurrenciesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventCategoriesApi.d.ts → EventCategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventCategoriesApi.js → EventCategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventGroupsApi.d.ts → EventGroupsApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventGroupsApi.js → EventGroupsApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.d.ts → EventSubcategoriesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIEventSubcategoriesApi.js → EventSubcategoriesApi.js} +3 -3
- package/dist/apis/{MonacoAPIEventsApi.d.ts → EventsApi.d.ts} +5 -3
- package/dist/apis/{MonacoAPIEventsApi.js → EventsApi.js} +9 -3
- package/dist/apis/MarketPricesApi.d.ts +30 -0
- package/dist/apis/MarketPricesApi.js +70 -0
- package/dist/apis/{MonacoAPIMarketTypesApi.d.ts → MarketTypesApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIMarketTypesApi.js → MarketTypesApi.js} +3 -3
- package/dist/apis/{MonacoAPIMarketsApi.d.ts → MarketsApi.d.ts} +31 -16
- package/dist/apis/{MonacoAPIMarketsApi.js → MarketsApi.js} +49 -5
- package/dist/apis/{MonacoAPIOrdersApi.d.ts → OrdersApi.d.ts} +18 -17
- package/dist/apis/{MonacoAPIOrdersApi.js → OrdersApi.js} +14 -10
- package/dist/apis/{MonacoAPISessionManagementApi.d.ts → SessionManagementApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPISessionManagementApi.js → SessionManagementApi.js} +3 -3
- package/dist/apis/{MonacoAPIAPIStatusApi.d.ts → StatusApi.d.ts} +1 -1
- package/dist/apis/{MonacoAPIAPIStatusApi.js → StatusApi.js} +3 -3
- package/dist/apis/{MonacoAPITradesApi.d.ts → TradesApi.d.ts} +5 -4
- package/dist/apis/{MonacoAPITradesApi.js → TradesApi.js} +9 -3
- package/dist/apis/{MonacoAPIWalletsApi.d.ts → WalletsApi.d.ts} +2 -2
- package/dist/apis/{MonacoAPIWalletsApi.js → WalletsApi.js} +3 -3
- package/dist/apis/index.d.ts +15 -14
- package/dist/apis/index.js +15 -14
- package/dist/models/ChunkOrderResponse.d.ts +60 -0
- package/dist/models/ChunkOrderResponse.js +60 -0
- package/dist/models/CommissionRate.d.ts +2 -2
- package/dist/models/CreateMarketRequest.d.ts +2 -2
- package/dist/models/CreateOrderRequest.d.ts +2 -2
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/Event.d.ts +2 -2
- package/dist/models/EventSummary.d.ts +2 -2
- package/dist/models/Market.d.ts +4 -4
- package/dist/models/MarketLiquidities.d.ts +39 -0
- package/dist/models/MarketLiquidities.js +51 -0
- package/dist/models/MarketLiquiditiesResponse.d.ts +40 -0
- package/dist/models/MarketLiquiditiesResponse.js +52 -0
- package/dist/models/MarketOutcomeSummary.d.ts +2 -2
- package/dist/models/MarketSummary.d.ts +2 -2
- package/dist/models/Order.d.ts +20 -4
- package/dist/models/Order.js +12 -1
- package/dist/models/OrderSummary.d.ts +2 -2
- package/dist/models/OutcomeResult.d.ts +2 -2
- package/dist/models/ToggleActionRequest.d.ts +1 -1
- package/dist/models/Trade.d.ts +2 -2
- package/dist/models/Transaction.d.ts +3 -2
- package/dist/models/Transaction.js +2 -1
- package/dist/models/WalletBalance.d.ts +2 -2
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/package.json +6 -2
package/dist/models/Event.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface EventSummary {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof EventSummary
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {DocumentReference}
|
package/dist/models/Market.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface Market {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof Market
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -60,10 +60,10 @@ export interface Market {
|
|
|
60
60
|
marketDiscriminator?: string;
|
|
61
61
|
/**
|
|
62
62
|
*
|
|
63
|
-
* @type {
|
|
63
|
+
* @type {string}
|
|
64
64
|
* @memberof Market
|
|
65
65
|
*/
|
|
66
|
-
currencyId?:
|
|
66
|
+
currencyId?: string;
|
|
67
67
|
/**
|
|
68
68
|
*
|
|
69
69
|
* @type {boolean}
|
|
@@ -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
|
+
}
|
package/dist/models/Order.d.ts
CHANGED
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface Order {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof Order
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {string}
|
|
@@ -96,16 +96,22 @@ export interface Order {
|
|
|
96
96
|
modifiedAt?: Date;
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
99
|
-
* @type {
|
|
99
|
+
* @type {string}
|
|
100
100
|
* @memberof Order
|
|
101
101
|
*/
|
|
102
|
-
commissionRateId?:
|
|
102
|
+
commissionRateId?: string;
|
|
103
103
|
/**
|
|
104
104
|
*
|
|
105
105
|
* @type {string}
|
|
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
|
*/
|
package/dist/models/Order.js
CHANGED
|
@@ -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
|
}
|
|
@@ -18,10 +18,10 @@ import type { DocumentReference } from './DocumentReference';
|
|
|
18
18
|
export interface OrderSummary {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {
|
|
21
|
+
* @type {string}
|
|
22
22
|
* @memberof OrderSummary
|
|
23
23
|
*/
|
|
24
|
-
id?:
|
|
24
|
+
id?: string;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
* @type {DocumentReference}
|
package/dist/models/Trade.d.ts
CHANGED
|
@@ -35,10 +35,10 @@ export interface Transaction {
|
|
|
35
35
|
walletId?: string;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
|
-
* @type {
|
|
38
|
+
* @type {string}
|
|
39
39
|
* @memberof Transaction
|
|
40
40
|
*/
|
|
41
|
-
currencyId?:
|
|
41
|
+
currencyId?: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
@@ -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.
|
package/dist/models/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './AppStatusResponse';
|
|
|
8
8
|
export * from './Category';
|
|
9
9
|
export * from './CategoryResponse';
|
|
10
10
|
export * from './CategorySummary';
|
|
11
|
+
export * from './ChunkOrderResponse';
|
|
11
12
|
export * from './CommissionRate';
|
|
12
13
|
export * from './CommissionRateResponse';
|
|
13
14
|
export * from './CreateAPIKeyRequest';
|
|
@@ -32,6 +33,8 @@ export * from './EventGroupSummary';
|
|
|
32
33
|
export * from './EventResponse';
|
|
33
34
|
export * from './EventSummary';
|
|
34
35
|
export * from './Market';
|
|
36
|
+
export * from './MarketLiquidities';
|
|
37
|
+
export * from './MarketLiquiditiesResponse';
|
|
35
38
|
export * from './MarketLiquidity';
|
|
36
39
|
export * from './MarketLiquidityResponse';
|
|
37
40
|
export * from './MarketOutcomeSummary';
|
package/dist/models/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __exportStar(require("./AppStatusResponse"), exports);
|
|
|
26
26
|
__exportStar(require("./Category"), exports);
|
|
27
27
|
__exportStar(require("./CategoryResponse"), exports);
|
|
28
28
|
__exportStar(require("./CategorySummary"), exports);
|
|
29
|
+
__exportStar(require("./ChunkOrderResponse"), exports);
|
|
29
30
|
__exportStar(require("./CommissionRate"), exports);
|
|
30
31
|
__exportStar(require("./CommissionRateResponse"), exports);
|
|
31
32
|
__exportStar(require("./CreateAPIKeyRequest"), exports);
|
|
@@ -50,6 +51,8 @@ __exportStar(require("./EventGroupSummary"), exports);
|
|
|
50
51
|
__exportStar(require("./EventResponse"), exports);
|
|
51
52
|
__exportStar(require("./EventSummary"), exports);
|
|
52
53
|
__exportStar(require("./Market"), exports);
|
|
54
|
+
__exportStar(require("./MarketLiquidities"), exports);
|
|
55
|
+
__exportStar(require("./MarketLiquiditiesResponse"), exports);
|
|
53
56
|
__exportStar(require("./MarketLiquidity"), exports);
|
|
54
57
|
__exportStar(require("./MarketLiquidityResponse"), exports);
|
|
55
58
|
__exportStar(require("./MarketOutcomeSummary"), exports);
|
package/dist/runtime.js
CHANGED
|
@@ -27,7 +27,7 @@ exports.querystring = querystring;
|
|
|
27
27
|
exports.exists = exists;
|
|
28
28
|
exports.mapValues = mapValues;
|
|
29
29
|
exports.canConsumeForm = canConsumeForm;
|
|
30
|
-
exports.BASE_PATH = "
|
|
30
|
+
exports.BASE_PATH = "http://sandbox-exchange-env.eba-mgipnma5.eu-west-2.elasticbeanstalk.com".replace(/\/+$/, "");
|
|
31
31
|
class Configuration {
|
|
32
32
|
constructor(configuration = {}) {
|
|
33
33
|
this.configuration = configuration;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monaco-protocol/client-v2",
|
|
3
|
-
"version": "0.0.2-dev.
|
|
3
|
+
"version": "0.0.2-dev.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"build": "tsc",
|
|
24
24
|
"clean": "rm -rf dist spec.json src",
|
|
25
25
|
"version:dev": "yarn version --prerelease --preid dev",
|
|
26
|
-
"
|
|
26
|
+
"version:prod": "yarn version",
|
|
27
|
+
"publish:dev": "yarn build && npm publish --tag dev --access public --registry=https://registry.npmjs.org",
|
|
28
|
+
"publish:prod": "yarn build && npm publish --access public --registry=https://registry.npmjs.org",
|
|
29
|
+
"release:dev": "yarn version:dev && yarn publish:dev",
|
|
30
|
+
"release:prod": "yarn version && yarn publish:prod"
|
|
27
31
|
}
|
|
28
32
|
}
|