@monaco-protocol/client-v2 0.0.2-dev.8 → 0.0.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/dist/apis/AppManagementApi.d.ts +1 -0
- package/dist/apis/AppManagementApi.js +6 -0
- package/dist/apis/EventsApi.d.ts +69 -1
- package/dist/apis/EventsApi.js +204 -0
- package/dist/apis/HeartbeatManagementApi.d.ts +52 -0
- package/dist/apis/HeartbeatManagementApi.js +131 -0
- package/dist/apis/MarketPricesApi.d.ts +1 -0
- package/dist/apis/MarketPricesApi.js +3 -0
- package/dist/apis/MarketsApi.d.ts +46 -3
- package/dist/apis/MarketsApi.js +128 -1
- package/dist/apis/OrdersApi.d.ts +28 -0
- package/dist/apis/OrdersApi.js +72 -1
- package/dist/apis/TradesApi.d.ts +2 -0
- package/dist/apis/TradesApi.js +6 -0
- package/dist/apis/WalletsApi.d.ts +25 -20
- package/dist/apis/WalletsApi.js +56 -49
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/ChunkOrderResponse.d.ts +22 -0
- package/dist/models/ChunkOrderResponse.js +9 -0
- package/dist/models/CreateMarketRequest.d.ts +8 -2
- package/dist/models/CreateMarketRequest.js +2 -0
- package/dist/models/CreateOrderRequest.d.ts +12 -7
- package/dist/models/CreateOrderRequest.js +21 -7
- package/dist/models/Currency.d.ts +2 -2
- package/dist/models/EventSummary.d.ts +6 -0
- package/dist/models/EventSummary.js +2 -0
- package/dist/models/EventUpdateResponse.d.ts +40 -0
- package/dist/models/EventUpdateResponse.js +52 -0
- package/dist/models/Heartbeat.d.ts +50 -0
- package/dist/models/Heartbeat.js +54 -0
- package/dist/models/HeartbeatResponse.d.ts +40 -0
- package/dist/models/HeartbeatResponse.js +52 -0
- package/dist/models/Market.d.ts +6 -0
- package/dist/models/Market.js +2 -0
- package/dist/models/MarketLiquidities.d.ts +12 -0
- package/dist/models/MarketLiquidities.js +4 -0
- package/dist/models/MarketLiquidity.d.ts +1 -0
- package/dist/models/MarketSummary.d.ts +7 -0
- package/dist/models/MarketSummary.js +3 -0
- package/dist/models/MarketUpdateResponse.d.ts +40 -0
- package/dist/models/MarketUpdateResponse.js +52 -0
- package/dist/models/Meta.d.ts +1 -0
- package/dist/models/Meta.js +1 -0
- package/dist/models/Order.d.ts +29 -0
- package/dist/models/Order.js +10 -1
- package/dist/models/OrderResponse.d.ts +21 -0
- package/dist/models/OrderResponse.js +9 -0
- package/dist/models/OrderSummary.d.ts +29 -0
- package/dist/models/OrderSummary.js +15 -1
- package/dist/models/PagedMarketResponse.d.ts +82 -0
- package/dist/models/PagedMarketResponse.js +70 -0
- package/dist/models/PagedOrderResponse.d.ts +21 -0
- package/dist/models/PagedOrderResponse.js +9 -0
- package/dist/models/PagedTradeResponse.d.ts +21 -0
- package/dist/models/PagedTradeResponse.js +9 -0
- package/dist/models/PagedWalletResponse.d.ts +40 -0
- package/dist/models/PagedWalletResponse.js +52 -0
- package/dist/models/TradeResponse.d.ts +21 -0
- package/dist/models/TradeResponse.js +9 -0
- package/dist/models/TradeSummary.d.ts +15 -2
- package/dist/models/TradeSummary.js +7 -2
- package/dist/models/UpdateDateRequest.d.ts +32 -0
- package/dist/models/UpdateDateRequest.js +50 -0
- package/dist/models/UpdateHeartbeatRequest.d.ts +38 -0
- package/dist/models/UpdateHeartbeatRequest.js +52 -0
- package/dist/models/UpdateNameRequest.d.ts +32 -0
- package/dist/models/UpdateNameRequest.js +50 -0
- package/dist/models/Wallet.d.ts +2 -4
- package/dist/models/Wallet.js +2 -3
- package/dist/models/index.d.ts +9 -1
- package/dist/models/index.js +9 -1
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,10 @@ const Order_1 = require("./Order");
|
|
|
22
22
|
const Meta_1 = require("./Meta");
|
|
23
23
|
const MarketSummary_1 = require("./MarketSummary");
|
|
24
24
|
const TradeSummary_1 = require("./TradeSummary");
|
|
25
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
25
26
|
const EventSummary_1 = require("./EventSummary");
|
|
27
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
28
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
26
29
|
/**
|
|
27
30
|
* Check if a given object implements the ChunkOrderResponse interface.
|
|
28
31
|
*/
|
|
@@ -42,6 +45,9 @@ function ChunkOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
45
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
43
46
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
44
47
|
'trades': json['trades'] == null ? undefined : (json['trades'].map(TradeSummary_1.TradeSummaryFromJSON)),
|
|
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)),
|
|
45
51
|
'totalElements': json['totalElements'] == null ? undefined : json['totalElements'],
|
|
46
52
|
};
|
|
47
53
|
}
|
|
@@ -58,6 +64,9 @@ function ChunkOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
64
|
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
59
65
|
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
60
66
|
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
67
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
68
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
69
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
61
70
|
'totalElements': value['totalElements'],
|
|
62
71
|
};
|
|
63
72
|
}
|
|
@@ -47,10 +47,10 @@ export interface CreateMarketRequest {
|
|
|
47
47
|
marketDiscriminator?: string;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
51
51
|
* @memberof CreateMarketRequest
|
|
52
52
|
*/
|
|
53
|
-
currencyId?:
|
|
53
|
+
currencyId?: string;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {boolean}
|
|
@@ -63,6 +63,12 @@ export interface CreateMarketRequest {
|
|
|
63
63
|
* @memberof CreateMarketRequest
|
|
64
64
|
*/
|
|
65
65
|
inPlayDelay?: number;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {boolean}
|
|
69
|
+
* @memberof CreateMarketRequest
|
|
70
|
+
*/
|
|
71
|
+
crossMatchingEnabled?: boolean;
|
|
66
72
|
/**
|
|
67
73
|
*
|
|
68
74
|
* @type {Date}
|
|
@@ -55,6 +55,7 @@ function CreateMarketRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
56
56
|
'inPlayEnabled': json['inPlayEnabled'] == null ? undefined : json['inPlayEnabled'],
|
|
57
57
|
'inPlayDelay': json['inPlayDelay'] == null ? undefined : json['inPlayDelay'],
|
|
58
|
+
'crossMatchingEnabled': json['crossMatchingEnabled'] == null ? undefined : json['crossMatchingEnabled'],
|
|
58
59
|
'lockAt': json['lockAt'] == null ? undefined : (new Date(json['lockAt'])),
|
|
59
60
|
'marketLockAction': json['marketLockAction'] == null ? undefined : json['marketLockAction'],
|
|
60
61
|
'eventStartAction': json['eventStartAction'] == null ? undefined : json['eventStartAction'],
|
|
@@ -77,6 +78,7 @@ function CreateMarketRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
77
78
|
'currencyId': value['currencyId'],
|
|
78
79
|
'inPlayEnabled': value['inPlayEnabled'],
|
|
79
80
|
'inPlayDelay': value['inPlayDelay'],
|
|
81
|
+
'crossMatchingEnabled': value['crossMatchingEnabled'],
|
|
80
82
|
'lockAt': value['lockAt'] == null ? undefined : ((value['lockAt']).toISOString()),
|
|
81
83
|
'marketLockAction': value['marketLockAction'],
|
|
82
84
|
'eventStartAction': value['eventStartAction'],
|
|
@@ -20,44 +20,49 @@ export interface CreateOrderRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateOrderRequest
|
|
22
22
|
*/
|
|
23
|
-
walletId
|
|
23
|
+
walletId: string;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateOrderRequest
|
|
28
28
|
*/
|
|
29
|
-
marketId
|
|
29
|
+
marketId: string;
|
|
30
30
|
/**
|
|
31
31
|
*
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateOrderRequest
|
|
34
34
|
*/
|
|
35
|
-
side
|
|
35
|
+
side: CreateOrderRequestSideEnum;
|
|
36
36
|
/**
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateOrderRequest
|
|
40
40
|
*/
|
|
41
|
-
outcomeId
|
|
41
|
+
outcomeId: string;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
44
|
* @type {number}
|
|
45
45
|
* @memberof CreateOrderRequest
|
|
46
46
|
*/
|
|
47
|
-
price
|
|
47
|
+
price: number;
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @type {number}
|
|
51
51
|
* @memberof CreateOrderRequest
|
|
52
52
|
*/
|
|
53
|
-
stake
|
|
53
|
+
stake: number;
|
|
54
54
|
/**
|
|
55
55
|
*
|
|
56
56
|
* @type {boolean}
|
|
57
57
|
* @memberof CreateOrderRequest
|
|
58
58
|
*/
|
|
59
|
-
keepWhenInPlay
|
|
59
|
+
keepWhenInPlay: boolean;
|
|
60
60
|
/**
|
|
61
|
+
* Optional - How any unmatched portion of an order is treated:
|
|
62
|
+
* <ul>
|
|
63
|
+
* <li>RetainUnmatched - unmatched portion persists as an offer (default)</li>
|
|
64
|
+
* <li>CancelUnmatched - unmatched portion is cancelled</li>
|
|
65
|
+
* </ul>
|
|
61
66
|
*
|
|
62
67
|
* @type {string}
|
|
63
68
|
* @memberof CreateOrderRequest
|
|
@@ -37,6 +37,20 @@ exports.CreateOrderRequestMatchBehaviorEnum = {
|
|
|
37
37
|
* Check if a given object implements the CreateOrderRequest interface.
|
|
38
38
|
*/
|
|
39
39
|
function instanceOfCreateOrderRequest(value) {
|
|
40
|
+
if (!('walletId' in value) || value['walletId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('marketId' in value) || value['marketId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('side' in value) || value['side'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('outcomeId' in value) || value['outcomeId'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('stake' in value) || value['stake'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('keepWhenInPlay' in value) || value['keepWhenInPlay'] === undefined)
|
|
53
|
+
return false;
|
|
40
54
|
return true;
|
|
41
55
|
}
|
|
42
56
|
function CreateOrderRequestFromJSON(json) {
|
|
@@ -47,13 +61,13 @@ function CreateOrderRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
47
61
|
return json;
|
|
48
62
|
}
|
|
49
63
|
return {
|
|
50
|
-
'walletId': json['walletId']
|
|
51
|
-
'marketId': json['marketId']
|
|
52
|
-
'side': json['side']
|
|
53
|
-
'outcomeId': json['outcomeId']
|
|
54
|
-
'price': json['price']
|
|
55
|
-
'stake': json['stake']
|
|
56
|
-
'keepWhenInPlay': json['keepWhenInPlay']
|
|
64
|
+
'walletId': json['walletId'],
|
|
65
|
+
'marketId': json['marketId'],
|
|
66
|
+
'side': json['side'],
|
|
67
|
+
'outcomeId': json['outcomeId'],
|
|
68
|
+
'price': json['price'],
|
|
69
|
+
'stake': json['stake'],
|
|
70
|
+
'keepWhenInPlay': json['keepWhenInPlay'],
|
|
57
71
|
'matchBehavior': json['matchBehavior'] == null ? undefined : json['matchBehavior'],
|
|
58
72
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
59
73
|
'commissionRateId': json['commissionRateId'] == null ? undefined : json['commissionRateId'],
|
|
@@ -46,6 +46,12 @@ export interface EventSummary {
|
|
|
46
46
|
* @memberof EventSummary
|
|
47
47
|
*/
|
|
48
48
|
expectedStartTime?: Date;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof EventSummary
|
|
53
|
+
*/
|
|
54
|
+
active?: boolean;
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
57
|
* Check if a given object implements the EventSummary interface.
|
|
@@ -38,6 +38,7 @@ function EventSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
38
38
|
'name': json['name'] == null ? undefined : json['name'],
|
|
39
39
|
'code': json['code'] == null ? undefined : json['code'],
|
|
40
40
|
'expectedStartTime': json['expectedStartTime'] == null ? undefined : (new Date(json['expectedStartTime'])),
|
|
41
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
41
42
|
};
|
|
42
43
|
}
|
|
43
44
|
function EventSummaryToJSON(json) {
|
|
@@ -53,5 +54,6 @@ function EventSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
54
|
'name': value['name'],
|
|
54
55
|
'code': value['code'],
|
|
55
56
|
'expectedStartTime': value['expectedStartTime'] == null ? undefined : ((value['expectedStartTime']).toISOString()),
|
|
57
|
+
'active': value['active'],
|
|
56
58
|
};
|
|
57
59
|
}
|
|
@@ -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 { EventSummary } from './EventSummary';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface EventUpdateResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface EventUpdateResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof EventUpdateResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<EventSummary>}
|
|
29
|
+
* @memberof EventUpdateResponse
|
|
30
|
+
*/
|
|
31
|
+
events?: Array<EventSummary>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the EventUpdateResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfEventUpdateResponse(value: object): value is EventUpdateResponse;
|
|
37
|
+
export declare function EventUpdateResponseFromJSON(json: any): EventUpdateResponse;
|
|
38
|
+
export declare function EventUpdateResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventUpdateResponse;
|
|
39
|
+
export declare function EventUpdateResponseToJSON(json: any): EventUpdateResponse;
|
|
40
|
+
export declare function EventUpdateResponseToJSONTyped(value?: EventUpdateResponse | 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.instanceOfEventUpdateResponse = instanceOfEventUpdateResponse;
|
|
17
|
+
exports.EventUpdateResponseFromJSON = EventUpdateResponseFromJSON;
|
|
18
|
+
exports.EventUpdateResponseFromJSONTyped = EventUpdateResponseFromJSONTyped;
|
|
19
|
+
exports.EventUpdateResponseToJSON = EventUpdateResponseToJSON;
|
|
20
|
+
exports.EventUpdateResponseToJSONTyped = EventUpdateResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const EventSummary_1 = require("./EventSummary");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the EventUpdateResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfEventUpdateResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function EventUpdateResponseFromJSON(json) {
|
|
30
|
+
return EventUpdateResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function EventUpdateResponseFromJSONTyped(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
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function EventUpdateResponseToJSON(json) {
|
|
42
|
+
return EventUpdateResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function EventUpdateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 Heartbeat
|
|
16
|
+
*/
|
|
17
|
+
export interface Heartbeat {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Heartbeat
|
|
22
|
+
*/
|
|
23
|
+
appId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof Heartbeat
|
|
28
|
+
*/
|
|
29
|
+
active?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Heartbeat
|
|
34
|
+
*/
|
|
35
|
+
checkInterval?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Date}
|
|
39
|
+
* @memberof Heartbeat
|
|
40
|
+
*/
|
|
41
|
+
lastReceived?: Date;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the Heartbeat interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfHeartbeat(value: object): value is Heartbeat;
|
|
47
|
+
export declare function HeartbeatFromJSON(json: any): Heartbeat;
|
|
48
|
+
export declare function HeartbeatFromJSONTyped(json: any, ignoreDiscriminator: boolean): Heartbeat;
|
|
49
|
+
export declare function HeartbeatToJSON(json: any): Heartbeat;
|
|
50
|
+
export declare function HeartbeatToJSONTyped(value?: Heartbeat | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfHeartbeat = instanceOfHeartbeat;
|
|
17
|
+
exports.HeartbeatFromJSON = HeartbeatFromJSON;
|
|
18
|
+
exports.HeartbeatFromJSONTyped = HeartbeatFromJSONTyped;
|
|
19
|
+
exports.HeartbeatToJSON = HeartbeatToJSON;
|
|
20
|
+
exports.HeartbeatToJSONTyped = HeartbeatToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Heartbeat interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfHeartbeat(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function HeartbeatFromJSON(json) {
|
|
28
|
+
return HeartbeatFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function HeartbeatFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'appId': json['appId'] == null ? undefined : json['appId'],
|
|
36
|
+
'active': json['active'] == null ? undefined : json['active'],
|
|
37
|
+
'checkInterval': json['checkInterval'] == null ? undefined : json['checkInterval'],
|
|
38
|
+
'lastReceived': json['lastReceived'] == null ? undefined : (new Date(json['lastReceived'])),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function HeartbeatToJSON(json) {
|
|
42
|
+
return HeartbeatToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function HeartbeatToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'appId': value['appId'],
|
|
50
|
+
'active': value['active'],
|
|
51
|
+
'checkInterval': value['checkInterval'],
|
|
52
|
+
'lastReceived': value['lastReceived'] == null ? undefined : ((value['lastReceived']).toISOString()),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -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 { Heartbeat } from './Heartbeat';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface HeartbeatResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface HeartbeatResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof HeartbeatResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Heartbeat>}
|
|
29
|
+
* @memberof HeartbeatResponse
|
|
30
|
+
*/
|
|
31
|
+
heartbeats?: Array<Heartbeat>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the HeartbeatResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfHeartbeatResponse(value: object): value is HeartbeatResponse;
|
|
37
|
+
export declare function HeartbeatResponseFromJSON(json: any): HeartbeatResponse;
|
|
38
|
+
export declare function HeartbeatResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): HeartbeatResponse;
|
|
39
|
+
export declare function HeartbeatResponseToJSON(json: any): HeartbeatResponse;
|
|
40
|
+
export declare function HeartbeatResponseToJSONTyped(value?: HeartbeatResponse | 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.instanceOfHeartbeatResponse = instanceOfHeartbeatResponse;
|
|
17
|
+
exports.HeartbeatResponseFromJSON = HeartbeatResponseFromJSON;
|
|
18
|
+
exports.HeartbeatResponseFromJSONTyped = HeartbeatResponseFromJSONTyped;
|
|
19
|
+
exports.HeartbeatResponseToJSON = HeartbeatResponseToJSON;
|
|
20
|
+
exports.HeartbeatResponseToJSONTyped = HeartbeatResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Heartbeat_1 = require("./Heartbeat");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the HeartbeatResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfHeartbeatResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function HeartbeatResponseFromJSON(json) {
|
|
30
|
+
return HeartbeatResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function HeartbeatResponseFromJSONTyped(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
|
+
'heartbeats': json['heartbeats'] == null ? undefined : (json['heartbeats'].map(Heartbeat_1.HeartbeatFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function HeartbeatResponseToJSON(json) {
|
|
42
|
+
return HeartbeatResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function HeartbeatResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'heartbeats': value['heartbeats'] == null ? undefined : (value['heartbeats'].map(Heartbeat_1.HeartbeatToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Market.d.ts
CHANGED
package/dist/models/Market.js
CHANGED
|
@@ -79,6 +79,7 @@ function MarketFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
80
80
|
'inPlayStatus': json['inPlayStatus'] == null ? undefined : json['inPlayStatus'],
|
|
81
81
|
'inPlayDelay': json['inPlayDelay'] == null ? undefined : json['inPlayDelay'],
|
|
82
|
+
'crossMatchingEnabled': json['crossMatchingEnabled'] == null ? undefined : json['crossMatchingEnabled'],
|
|
82
83
|
'published': json['published'] == null ? undefined : json['published'],
|
|
83
84
|
'suspended': json['suspended'] == null ? undefined : json['suspended'],
|
|
84
85
|
'lockAt': json['lockAt'] == null ? undefined : (new Date(json['lockAt'])),
|
|
@@ -109,6 +110,7 @@ function MarketToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
109
110
|
'currencyId': value['currencyId'],
|
|
110
111
|
'inPlayStatus': value['inPlayStatus'],
|
|
111
112
|
'inPlayDelay': value['inPlayDelay'],
|
|
113
|
+
'crossMatchingEnabled': value['crossMatchingEnabled'],
|
|
112
114
|
'published': value['published'],
|
|
113
115
|
'suspended': value['suspended'],
|
|
114
116
|
'lockAt': value['lockAt'] == null ? undefined : ((value['lockAt']).toISOString()),
|
|
@@ -22,6 +22,18 @@ export interface MarketLiquidities {
|
|
|
22
22
|
* @memberof MarketLiquidities
|
|
23
23
|
*/
|
|
24
24
|
marketId?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof MarketLiquidities
|
|
29
|
+
*/
|
|
30
|
+
liquidity?: number;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof MarketLiquidities
|
|
35
|
+
*/
|
|
36
|
+
traded?: number;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {Array<MarketLiquidity>}
|
|
@@ -34,6 +34,8 @@ function MarketLiquiditiesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
}
|
|
35
35
|
return {
|
|
36
36
|
'marketId': json['marketId'] == null ? undefined : json['marketId'],
|
|
37
|
+
'liquidity': json['liquidity'] == null ? undefined : json['liquidity'],
|
|
38
|
+
'traded': json['traded'] == null ? undefined : json['traded'],
|
|
37
39
|
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidity_1.MarketLiquidityFromJSON)),
|
|
38
40
|
};
|
|
39
41
|
}
|
|
@@ -46,6 +48,8 @@ function MarketLiquiditiesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
46
48
|
}
|
|
47
49
|
return {
|
|
48
50
|
'marketId': value['marketId'],
|
|
51
|
+
'liquidity': value['liquidity'],
|
|
52
|
+
'traded': value['traded'],
|
|
49
53
|
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidity_1.MarketLiquidityToJSON)),
|
|
50
54
|
};
|
|
51
55
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { DocumentReference } from './DocumentReference';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -63,6 +64,12 @@ export interface MarketSummary {
|
|
|
63
64
|
* @memberof MarketSummary
|
|
64
65
|
*/
|
|
65
66
|
settledAt?: Date;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {DocumentReference}
|
|
70
|
+
* @memberof MarketSummary
|
|
71
|
+
*/
|
|
72
|
+
event?: DocumentReference;
|
|
66
73
|
}
|
|
67
74
|
/**
|
|
68
75
|
* @export
|
|
@@ -19,6 +19,7 @@ exports.MarketSummaryFromJSON = MarketSummaryFromJSON;
|
|
|
19
19
|
exports.MarketSummaryFromJSONTyped = MarketSummaryFromJSONTyped;
|
|
20
20
|
exports.MarketSummaryToJSON = MarketSummaryToJSON;
|
|
21
21
|
exports.MarketSummaryToJSONTyped = MarketSummaryToJSONTyped;
|
|
22
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -62,6 +63,7 @@ function MarketSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
62
63
|
'status': json['status'] == null ? undefined : json['status'],
|
|
63
64
|
'lockAt': json['lockAt'] == null ? undefined : (new Date(json['lockAt'])),
|
|
64
65
|
'settledAt': json['settledAt'] == null ? undefined : (new Date(json['settledAt'])),
|
|
66
|
+
'event': json['event'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['event']),
|
|
65
67
|
};
|
|
66
68
|
}
|
|
67
69
|
function MarketSummaryToJSON(json) {
|
|
@@ -80,5 +82,6 @@ function MarketSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
80
82
|
'status': value['status'],
|
|
81
83
|
'lockAt': value['lockAt'] == null ? undefined : ((value['lockAt']).toISOString()),
|
|
82
84
|
'settledAt': value['settledAt'] == null ? undefined : ((value['settledAt']).toISOString()),
|
|
85
|
+
'event': (0, DocumentReference_1.DocumentReferenceToJSON)(value['event']),
|
|
83
86
|
};
|
|
84
87
|
}
|