@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
|
@@ -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 { Wallet } from './Wallet';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PagedWalletResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface PagedWalletResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof PagedWalletResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<Wallet>}
|
|
29
|
+
* @memberof PagedWalletResponse
|
|
30
|
+
*/
|
|
31
|
+
wallets?: Array<Wallet>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the PagedWalletResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfPagedWalletResponse(value: object): value is PagedWalletResponse;
|
|
37
|
+
export declare function PagedWalletResponseFromJSON(json: any): PagedWalletResponse;
|
|
38
|
+
export declare function PagedWalletResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedWalletResponse;
|
|
39
|
+
export declare function PagedWalletResponseToJSON(json: any): PagedWalletResponse;
|
|
40
|
+
export declare function PagedWalletResponseToJSONTyped(value?: PagedWalletResponse | 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.instanceOfPagedWalletResponse = instanceOfPagedWalletResponse;
|
|
17
|
+
exports.PagedWalletResponseFromJSON = PagedWalletResponseFromJSON;
|
|
18
|
+
exports.PagedWalletResponseFromJSONTyped = PagedWalletResponseFromJSONTyped;
|
|
19
|
+
exports.PagedWalletResponseToJSON = PagedWalletResponseToJSON;
|
|
20
|
+
exports.PagedWalletResponseToJSONTyped = PagedWalletResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const Wallet_1 = require("./Wallet");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the PagedWalletResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfPagedWalletResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PagedWalletResponseFromJSON(json) {
|
|
30
|
+
return PagedWalletResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PagedWalletResponseFromJSONTyped(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
|
+
'wallets': json['wallets'] == null ? undefined : (json['wallets'].map(Wallet_1.WalletFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PagedWalletResponseToJSON(json) {
|
|
42
|
+
return PagedWalletResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PagedWalletResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'wallets': value['wallets'] == null ? undefined : (value['wallets'].map(Wallet_1.WalletToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -12,8 +12,11 @@
|
|
|
12
12
|
import type { Meta } from './Meta';
|
|
13
13
|
import type { Trade } from './Trade';
|
|
14
14
|
import type { MarketSummary } from './MarketSummary';
|
|
15
|
+
import type { CategorySummary } from './CategorySummary';
|
|
15
16
|
import type { OrderSummary } from './OrderSummary';
|
|
16
17
|
import type { EventSummary } from './EventSummary';
|
|
18
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
19
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
19
22
|
* @export
|
|
@@ -50,6 +53,24 @@ export interface TradeResponse {
|
|
|
50
53
|
* @memberof TradeResponse
|
|
51
54
|
*/
|
|
52
55
|
events?: Array<EventSummary>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<EventGroupSummary>}
|
|
59
|
+
* @memberof TradeResponse
|
|
60
|
+
*/
|
|
61
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<SubcategorySummary>}
|
|
65
|
+
* @memberof TradeResponse
|
|
66
|
+
*/
|
|
67
|
+
subcategories?: Array<SubcategorySummary>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<CategorySummary>}
|
|
71
|
+
* @memberof TradeResponse
|
|
72
|
+
*/
|
|
73
|
+
categories?: Array<CategorySummary>;
|
|
53
74
|
}
|
|
54
75
|
/**
|
|
55
76
|
* Check if a given object implements the TradeResponse interface.
|
|
@@ -21,8 +21,11 @@ exports.TradeResponseToJSONTyped = TradeResponseToJSONTyped;
|
|
|
21
21
|
const Meta_1 = require("./Meta");
|
|
22
22
|
const Trade_1 = require("./Trade");
|
|
23
23
|
const MarketSummary_1 = require("./MarketSummary");
|
|
24
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
24
25
|
const OrderSummary_1 = require("./OrderSummary");
|
|
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 TradeResponse interface.
|
|
28
31
|
*/
|
|
@@ -42,6 +45,9 @@ function TradeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
45
|
'orders': json['orders'] == null ? undefined : (json['orders'].map(OrderSummary_1.OrderSummaryFromJSON)),
|
|
43
46
|
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
44
47
|
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
48
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
|
|
49
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
50
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
45
51
|
};
|
|
46
52
|
}
|
|
47
53
|
function TradeResponseToJSON(json) {
|
|
@@ -57,5 +63,8 @@ function TradeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
63
|
'orders': value['orders'] == null ? undefined : (value['orders'].map(OrderSummary_1.OrderSummaryToJSON)),
|
|
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)),
|
|
66
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
67
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
68
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
60
69
|
};
|
|
61
70
|
}
|
|
@@ -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
|
|
@@ -17,10 +18,16 @@
|
|
|
17
18
|
export interface TradeSummary {
|
|
18
19
|
/**
|
|
19
20
|
*
|
|
20
|
-
* @type {
|
|
21
|
+
* @type {DocumentReference}
|
|
22
|
+
* @memberof TradeSummary
|
|
23
|
+
*/
|
|
24
|
+
order?: DocumentReference;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
21
28
|
* @memberof TradeSummary
|
|
22
29
|
*/
|
|
23
|
-
|
|
30
|
+
id?: string;
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
26
33
|
* @type {number}
|
|
@@ -33,6 +40,12 @@ export interface TradeSummary {
|
|
|
33
40
|
* @memberof TradeSummary
|
|
34
41
|
*/
|
|
35
42
|
stake?: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Date}
|
|
46
|
+
* @memberof TradeSummary
|
|
47
|
+
*/
|
|
48
|
+
createdAt?: Date;
|
|
36
49
|
}
|
|
37
50
|
/**
|
|
38
51
|
* Check if a given object implements the TradeSummary interface.
|
|
@@ -18,6 +18,7 @@ exports.TradeSummaryFromJSON = TradeSummaryFromJSON;
|
|
|
18
18
|
exports.TradeSummaryFromJSONTyped = TradeSummaryFromJSONTyped;
|
|
19
19
|
exports.TradeSummaryToJSON = TradeSummaryToJSON;
|
|
20
20
|
exports.TradeSummaryToJSONTyped = TradeSummaryToJSONTyped;
|
|
21
|
+
const DocumentReference_1 = require("./DocumentReference");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the TradeSummary interface.
|
|
23
24
|
*/
|
|
@@ -32,9 +33,11 @@ function TradeSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
33
|
return json;
|
|
33
34
|
}
|
|
34
35
|
return {
|
|
35
|
-
'
|
|
36
|
+
'order': json['order'] == null ? undefined : (0, DocumentReference_1.DocumentReferenceFromJSON)(json['order']),
|
|
37
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
38
|
'price': json['price'] == null ? undefined : json['price'],
|
|
37
39
|
'stake': json['stake'] == null ? undefined : json['stake'],
|
|
40
|
+
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
38
41
|
};
|
|
39
42
|
}
|
|
40
43
|
function TradeSummaryToJSON(json) {
|
|
@@ -45,8 +48,10 @@ function TradeSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
45
48
|
return value;
|
|
46
49
|
}
|
|
47
50
|
return {
|
|
48
|
-
'
|
|
51
|
+
'order': (0, DocumentReference_1.DocumentReferenceToJSON)(value['order']),
|
|
52
|
+
'id': value['id'],
|
|
49
53
|
'price': value['price'],
|
|
50
54
|
'stake': value['stake'],
|
|
55
|
+
'createdAt': value['createdAt'] == null ? undefined : ((value['createdAt']).toISOString()),
|
|
51
56
|
};
|
|
52
57
|
}
|
|
@@ -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
|
+
* request body containing a date field with the new value (cannot be null)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateDateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateDateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof UpdateDateRequest
|
|
22
|
+
*/
|
|
23
|
+
date: Date;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateDateRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateDateRequest(value: object): value is UpdateDateRequest;
|
|
29
|
+
export declare function UpdateDateRequestFromJSON(json: any): UpdateDateRequest;
|
|
30
|
+
export declare function UpdateDateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDateRequest;
|
|
31
|
+
export declare function UpdateDateRequestToJSON(json: any): UpdateDateRequest;
|
|
32
|
+
export declare function UpdateDateRequestToJSONTyped(value?: UpdateDateRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfUpdateDateRequest = instanceOfUpdateDateRequest;
|
|
17
|
+
exports.UpdateDateRequestFromJSON = UpdateDateRequestFromJSON;
|
|
18
|
+
exports.UpdateDateRequestFromJSONTyped = UpdateDateRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateDateRequestToJSON = UpdateDateRequestToJSON;
|
|
20
|
+
exports.UpdateDateRequestToJSONTyped = UpdateDateRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateDateRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateDateRequest(value) {
|
|
25
|
+
if (!('date' in value) || value['date'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateDateRequestFromJSON(json) {
|
|
30
|
+
return UpdateDateRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateDateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'date': (new Date(json['date'])),
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateDateRequestToJSON(json) {
|
|
41
|
+
return UpdateDateRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateDateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'date': ((value['date']).toISOString()),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 UpdateHeartbeatRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateHeartbeatRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UpdateHeartbeatRequest
|
|
22
|
+
*/
|
|
23
|
+
active: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof UpdateHeartbeatRequest
|
|
28
|
+
*/
|
|
29
|
+
checkIntervalSeconds?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UpdateHeartbeatRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUpdateHeartbeatRequest(value: object): value is UpdateHeartbeatRequest;
|
|
35
|
+
export declare function UpdateHeartbeatRequestFromJSON(json: any): UpdateHeartbeatRequest;
|
|
36
|
+
export declare function UpdateHeartbeatRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateHeartbeatRequest;
|
|
37
|
+
export declare function UpdateHeartbeatRequestToJSON(json: any): UpdateHeartbeatRequest;
|
|
38
|
+
export declare function UpdateHeartbeatRequestToJSONTyped(value?: UpdateHeartbeatRequest | 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.instanceOfUpdateHeartbeatRequest = instanceOfUpdateHeartbeatRequest;
|
|
17
|
+
exports.UpdateHeartbeatRequestFromJSON = UpdateHeartbeatRequestFromJSON;
|
|
18
|
+
exports.UpdateHeartbeatRequestFromJSONTyped = UpdateHeartbeatRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateHeartbeatRequestToJSON = UpdateHeartbeatRequestToJSON;
|
|
20
|
+
exports.UpdateHeartbeatRequestToJSONTyped = UpdateHeartbeatRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateHeartbeatRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateHeartbeatRequest(value) {
|
|
25
|
+
if (!('active' in value) || value['active'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateHeartbeatRequestFromJSON(json) {
|
|
30
|
+
return UpdateHeartbeatRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateHeartbeatRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'active': json['active'],
|
|
38
|
+
'checkIntervalSeconds': json['checkIntervalSeconds'] == null ? undefined : json['checkIntervalSeconds'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UpdateHeartbeatRequestToJSON(json) {
|
|
42
|
+
return UpdateHeartbeatRequestToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UpdateHeartbeatRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'active': value['active'],
|
|
50
|
+
'checkIntervalSeconds': value['checkIntervalSeconds'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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
|
+
* request body containing a name field with the new value (cannot be null or blank)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UpdateNameRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UpdateNameRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UpdateNameRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UpdateNameRequest interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUpdateNameRequest(value: object): value is UpdateNameRequest;
|
|
29
|
+
export declare function UpdateNameRequestFromJSON(json: any): UpdateNameRequest;
|
|
30
|
+
export declare function UpdateNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateNameRequest;
|
|
31
|
+
export declare function UpdateNameRequestToJSON(json: any): UpdateNameRequest;
|
|
32
|
+
export declare function UpdateNameRequestToJSONTyped(value?: UpdateNameRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfUpdateNameRequest = instanceOfUpdateNameRequest;
|
|
17
|
+
exports.UpdateNameRequestFromJSON = UpdateNameRequestFromJSON;
|
|
18
|
+
exports.UpdateNameRequestFromJSONTyped = UpdateNameRequestFromJSONTyped;
|
|
19
|
+
exports.UpdateNameRequestToJSON = UpdateNameRequestToJSON;
|
|
20
|
+
exports.UpdateNameRequestToJSONTyped = UpdateNameRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UpdateNameRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUpdateNameRequest(value) {
|
|
25
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UpdateNameRequestFromJSON(json) {
|
|
30
|
+
return UpdateNameRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UpdateNameRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'name': json['name'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function UpdateNameRequestToJSON(json) {
|
|
41
|
+
return UpdateNameRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function UpdateNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'name': value['name'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/Wallet.d.ts
CHANGED
|
@@ -48,12 +48,10 @@ export interface Wallet {
|
|
|
48
48
|
description?: string;
|
|
49
49
|
/**
|
|
50
50
|
*
|
|
51
|
-
* @type {
|
|
51
|
+
* @type {Array<WalletBalance>}
|
|
52
52
|
* @memberof Wallet
|
|
53
53
|
*/
|
|
54
|
-
balances?:
|
|
55
|
-
[key: string]: WalletBalance;
|
|
56
|
-
};
|
|
54
|
+
balances?: Array<WalletBalance>;
|
|
57
55
|
}
|
|
58
56
|
/**
|
|
59
57
|
* @export
|
package/dist/models/Wallet.js
CHANGED
|
@@ -19,7 +19,6 @@ exports.WalletFromJSON = WalletFromJSON;
|
|
|
19
19
|
exports.WalletFromJSONTyped = WalletFromJSONTyped;
|
|
20
20
|
exports.WalletToJSON = WalletToJSON;
|
|
21
21
|
exports.WalletToJSONTyped = WalletToJSONTyped;
|
|
22
|
-
const runtime_1 = require("../runtime");
|
|
23
22
|
const WalletBalance_1 = require("./WalletBalance");
|
|
24
23
|
/**
|
|
25
24
|
* @export
|
|
@@ -49,7 +48,7 @@ function WalletFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
48
|
'type': json['type'] == null ? undefined : json['type'],
|
|
50
49
|
'reference': json['reference'] == null ? undefined : json['reference'],
|
|
51
50
|
'description': json['description'] == null ? undefined : json['description'],
|
|
52
|
-
'balances': json['balances'] == null ? undefined : (
|
|
51
|
+
'balances': json['balances'] == null ? undefined : (json['balances'].map(WalletBalance_1.WalletBalanceFromJSON)),
|
|
53
52
|
};
|
|
54
53
|
}
|
|
55
54
|
function WalletToJSON(json) {
|
|
@@ -65,6 +64,6 @@ function WalletToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
64
|
'type': value['type'],
|
|
66
65
|
'reference': value['reference'],
|
|
67
66
|
'description': value['description'],
|
|
68
|
-
'balances': value['balances'] == null ? undefined : (
|
|
67
|
+
'balances': value['balances'] == null ? undefined : (value['balances'].map(WalletBalance_1.WalletBalanceToJSON)),
|
|
69
68
|
};
|
|
70
69
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -36,6 +36,9 @@ export * from './EventParticipant';
|
|
|
36
36
|
export * from './EventParticipantsResponse';
|
|
37
37
|
export * from './EventResponse';
|
|
38
38
|
export * from './EventSummary';
|
|
39
|
+
export * from './EventUpdateResponse';
|
|
40
|
+
export * from './Heartbeat';
|
|
41
|
+
export * from './HeartbeatResponse';
|
|
39
42
|
export * from './Market';
|
|
40
43
|
export * from './MarketLiquidities';
|
|
41
44
|
export * from './MarketLiquiditiesResponse';
|
|
@@ -52,18 +55,20 @@ export * from './MarketSummary';
|
|
|
52
55
|
export * from './MarketType';
|
|
53
56
|
export * from './MarketTypeResponse';
|
|
54
57
|
export * from './MarketTypeSummary';
|
|
58
|
+
export * from './MarketUpdateResponse';
|
|
55
59
|
export * from './Meta';
|
|
56
60
|
export * from './ModifyParticipantsRequest';
|
|
57
61
|
export * from './Order';
|
|
58
62
|
export * from './OrderResponse';
|
|
59
63
|
export * from './OrderSummary';
|
|
60
64
|
export * from './PageMeta';
|
|
61
|
-
export * from './Pageable';
|
|
62
65
|
export * from './PagedEventResponse';
|
|
63
66
|
export * from './PagedMarketPositionResponse';
|
|
67
|
+
export * from './PagedMarketResponse';
|
|
64
68
|
export * from './PagedOrderResponse';
|
|
65
69
|
export * from './PagedTradeResponse';
|
|
66
70
|
export * from './PagedTransactionResponse';
|
|
71
|
+
export * from './PagedWalletResponse';
|
|
67
72
|
export * from './Participant';
|
|
68
73
|
export * from './ParticipantsResponse';
|
|
69
74
|
export * from './Range';
|
|
@@ -81,6 +86,9 @@ export * from './TradeSummary';
|
|
|
81
86
|
export * from './Transaction';
|
|
82
87
|
export * from './TransferResponse';
|
|
83
88
|
export * from './UpdateAppCommissionRateRequest';
|
|
89
|
+
export * from './UpdateDateRequest';
|
|
90
|
+
export * from './UpdateHeartbeatRequest';
|
|
91
|
+
export * from './UpdateNameRequest';
|
|
84
92
|
export * from './Wallet';
|
|
85
93
|
export * from './WalletBalance';
|
|
86
94
|
export * from './WalletResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -54,6 +54,9 @@ __exportStar(require("./EventParticipant"), exports);
|
|
|
54
54
|
__exportStar(require("./EventParticipantsResponse"), exports);
|
|
55
55
|
__exportStar(require("./EventResponse"), exports);
|
|
56
56
|
__exportStar(require("./EventSummary"), exports);
|
|
57
|
+
__exportStar(require("./EventUpdateResponse"), exports);
|
|
58
|
+
__exportStar(require("./Heartbeat"), exports);
|
|
59
|
+
__exportStar(require("./HeartbeatResponse"), exports);
|
|
57
60
|
__exportStar(require("./Market"), exports);
|
|
58
61
|
__exportStar(require("./MarketLiquidities"), exports);
|
|
59
62
|
__exportStar(require("./MarketLiquiditiesResponse"), exports);
|
|
@@ -70,18 +73,20 @@ __exportStar(require("./MarketSummary"), exports);
|
|
|
70
73
|
__exportStar(require("./MarketType"), exports);
|
|
71
74
|
__exportStar(require("./MarketTypeResponse"), exports);
|
|
72
75
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
76
|
+
__exportStar(require("./MarketUpdateResponse"), exports);
|
|
73
77
|
__exportStar(require("./Meta"), exports);
|
|
74
78
|
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
75
79
|
__exportStar(require("./Order"), exports);
|
|
76
80
|
__exportStar(require("./OrderResponse"), exports);
|
|
77
81
|
__exportStar(require("./OrderSummary"), exports);
|
|
78
82
|
__exportStar(require("./PageMeta"), exports);
|
|
79
|
-
__exportStar(require("./Pageable"), exports);
|
|
80
83
|
__exportStar(require("./PagedEventResponse"), exports);
|
|
81
84
|
__exportStar(require("./PagedMarketPositionResponse"), exports);
|
|
85
|
+
__exportStar(require("./PagedMarketResponse"), exports);
|
|
82
86
|
__exportStar(require("./PagedOrderResponse"), exports);
|
|
83
87
|
__exportStar(require("./PagedTradeResponse"), exports);
|
|
84
88
|
__exportStar(require("./PagedTransactionResponse"), exports);
|
|
89
|
+
__exportStar(require("./PagedWalletResponse"), exports);
|
|
85
90
|
__exportStar(require("./Participant"), exports);
|
|
86
91
|
__exportStar(require("./ParticipantsResponse"), exports);
|
|
87
92
|
__exportStar(require("./Range"), exports);
|
|
@@ -99,6 +104,9 @@ __exportStar(require("./TradeSummary"), exports);
|
|
|
99
104
|
__exportStar(require("./Transaction"), exports);
|
|
100
105
|
__exportStar(require("./TransferResponse"), exports);
|
|
101
106
|
__exportStar(require("./UpdateAppCommissionRateRequest"), exports);
|
|
107
|
+
__exportStar(require("./UpdateDateRequest"), exports);
|
|
108
|
+
__exportStar(require("./UpdateHeartbeatRequest"), exports);
|
|
109
|
+
__exportStar(require("./UpdateNameRequest"), exports);
|
|
102
110
|
__exportStar(require("./Wallet"), exports);
|
|
103
111
|
__exportStar(require("./WalletBalance"), exports);
|
|
104
112
|
__exportStar(require("./WalletResponse"), 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 = "https://sandbox.api.monacoprotocol.xyz".replace(/\/+$/, "");
|
|
31
31
|
class Configuration {
|
|
32
32
|
constructor(configuration = {}) {
|
|
33
33
|
this.configuration = configuration;
|