@monaco-protocol/client-v2 0.0.59 → 0.0.65-dev.1
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/OrdersApi.d.ts +13 -1
- package/dist/apis/OrdersApi.js +36 -0
- package/dist/apis/PricesApi.d.ts +61 -0
- package/dist/apis/PricesApi.js +110 -0
- package/dist/apis/WalletsApi.d.ts +53 -11
- package/dist/apis/WalletsApi.js +112 -12
- package/dist/models/BatchCreateOrderRequest.d.ts +33 -0
- package/dist/models/BatchCreateOrderRequest.js +49 -0
- package/dist/models/BatchOrderResponse.d.ts +82 -0
- package/dist/models/BatchOrderResponse.js +70 -0
- package/dist/models/BatchOrderResponseOrdersInner.d.ts +23 -0
- package/dist/models/BatchOrderResponseOrdersInner.js +51 -0
- package/dist/models/DepositAddress.d.ts +44 -0
- package/dist/models/DepositAddress.js +52 -0
- package/dist/models/DepositAddressResponse.d.ts +40 -0
- package/dist/models/DepositAddressResponse.js +52 -0
- package/dist/models/DepositRequest.d.ts +44 -0
- package/dist/models/DepositRequest.js +52 -0
- package/dist/models/DepositRequestRequest.d.ts +38 -0
- package/dist/models/DepositRequestRequest.js +54 -0
- package/dist/models/DepositRequestResponse.d.ts +40 -0
- package/dist/models/DepositRequestResponse.js +52 -0
- package/dist/models/Meta.d.ts +3 -0
- package/dist/models/Meta.js +4 -1
- package/dist/models/ModelError.d.ts +51 -0
- package/dist/models/ModelError.js +50 -0
- package/dist/models/PagedMarketWithPricesResponse.d.ts +96 -0
- package/dist/models/PagedMarketWithPricesResponse.js +76 -0
- package/dist/models/WithdrawalRequest.d.ts +92 -0
- package/dist/models/WithdrawalRequest.js +83 -0
- package/dist/models/WithdrawalRequestRequest.d.ts +44 -0
- package/dist/models/WithdrawalRequestRequest.js +56 -0
- package/dist/models/WithdrawalRequestResponse.d.ts +40 -0
- package/dist/models/WithdrawalRequestResponse.js +52 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/package.json +1 -1
|
@@ -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.instanceOfDepositRequestResponse = instanceOfDepositRequestResponse;
|
|
17
|
+
exports.DepositRequestResponseFromJSON = DepositRequestResponseFromJSON;
|
|
18
|
+
exports.DepositRequestResponseFromJSONTyped = DepositRequestResponseFromJSONTyped;
|
|
19
|
+
exports.DepositRequestResponseToJSON = DepositRequestResponseToJSON;
|
|
20
|
+
exports.DepositRequestResponseToJSONTyped = DepositRequestResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const DepositRequest_1 = require("./DepositRequest");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DepositRequestResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDepositRequestResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DepositRequestResponseFromJSON(json) {
|
|
30
|
+
return DepositRequestResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DepositRequestResponseFromJSONTyped(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
|
+
'depositRequests': json['depositRequests'] == null ? undefined : (json['depositRequests'].map(DepositRequest_1.DepositRequestFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function DepositRequestResponseToJSON(json) {
|
|
42
|
+
return DepositRequestResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DepositRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'depositRequests': value['depositRequests'] == null ? undefined : (value['depositRequests'].map(DepositRequest_1.DepositRequestToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/Meta.d.ts
CHANGED
|
@@ -44,6 +44,8 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
44
44
|
readonly Categories: "categories";
|
|
45
45
|
readonly CommissionRates: "commissionRates";
|
|
46
46
|
readonly Currencies: "currencies";
|
|
47
|
+
readonly DepositAddresses: "depositAddresses";
|
|
48
|
+
readonly DepositRequests: "depositRequests";
|
|
47
49
|
readonly Events: "events";
|
|
48
50
|
readonly EventGroups: "eventGroups";
|
|
49
51
|
readonly Heartbeats: "heartbeats";
|
|
@@ -62,6 +64,7 @@ export declare const MetaPrimaryDocumentEnum: {
|
|
|
62
64
|
readonly Transactions: "transactions";
|
|
63
65
|
readonly Wallets: "wallets";
|
|
64
66
|
readonly WalletMetrics: "walletMetrics";
|
|
67
|
+
readonly WithdrawalRequests: "withdrawalRequests";
|
|
65
68
|
};
|
|
66
69
|
export type MetaPrimaryDocumentEnum = typeof MetaPrimaryDocumentEnum[keyof typeof MetaPrimaryDocumentEnum];
|
|
67
70
|
/**
|
package/dist/models/Meta.js
CHANGED
|
@@ -29,6 +29,8 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
29
29
|
Categories: 'categories',
|
|
30
30
|
CommissionRates: 'commissionRates',
|
|
31
31
|
Currencies: 'currencies',
|
|
32
|
+
DepositAddresses: 'depositAddresses',
|
|
33
|
+
DepositRequests: 'depositRequests',
|
|
32
34
|
Events: 'events',
|
|
33
35
|
EventGroups: 'eventGroups',
|
|
34
36
|
Heartbeats: 'heartbeats',
|
|
@@ -46,7 +48,8 @@ exports.MetaPrimaryDocumentEnum = {
|
|
|
46
48
|
Trades: 'trades',
|
|
47
49
|
Transactions: 'transactions',
|
|
48
50
|
Wallets: 'wallets',
|
|
49
|
-
WalletMetrics: 'walletMetrics'
|
|
51
|
+
WalletMetrics: 'walletMetrics',
|
|
52
|
+
WithdrawalRequests: 'withdrawalRequests'
|
|
50
53
|
};
|
|
51
54
|
/**
|
|
52
55
|
* Check if a given object implements the Meta interface.
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
* Order operation error
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* Order operation error code describing type of an error. Possible values:
|
|
20
|
+
* MARKET_NOT_FOUND,
|
|
21
|
+
* INVALID_MARKET_STATUS,
|
|
22
|
+
* SUSPENDED_MARKET,
|
|
23
|
+
* MARKET_OUTCOME_NOT_FOUND,
|
|
24
|
+
* COMMISSION_RATE_NOT_FOUND,
|
|
25
|
+
* WALLET_NOT_FOUND,
|
|
26
|
+
* WALLET_INSUFFICIENT_CREDIT,
|
|
27
|
+
* WALLET_ACCOUNT_NOT_FOUND,
|
|
28
|
+
* WALLET_ACCOUNT_INSUFFICIENT_CREDIT,
|
|
29
|
+
* MARKET_POSITION_NOT_FOUND,
|
|
30
|
+
* ORDER_ALREADY_EXISTS,
|
|
31
|
+
* INTERRUPTED
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ModelError
|
|
35
|
+
*/
|
|
36
|
+
errorCode?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Order operation error detailed message
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof ModelError
|
|
41
|
+
*/
|
|
42
|
+
errorMessage?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ModelError interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfModelError(value: object): value is ModelError;
|
|
48
|
+
export declare function ModelErrorFromJSON(json: any): ModelError;
|
|
49
|
+
export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
|
|
50
|
+
export declare function ModelErrorToJSON(json: any): ModelError;
|
|
51
|
+
export declare function ModelErrorToJSONTyped(value?: ModelError | 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.instanceOfModelError = instanceOfModelError;
|
|
17
|
+
exports.ModelErrorFromJSON = ModelErrorFromJSON;
|
|
18
|
+
exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
|
|
19
|
+
exports.ModelErrorToJSON = ModelErrorToJSON;
|
|
20
|
+
exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the ModelError interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfModelError(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function ModelErrorFromJSON(json) {
|
|
28
|
+
return ModelErrorFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'errorCode': json['errorCode'] == null ? undefined : json['errorCode'],
|
|
36
|
+
'errorMessage': json['errorMessage'] == null ? undefined : json['errorMessage'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function ModelErrorToJSON(json) {
|
|
40
|
+
return ModelErrorToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'errorCode': value['errorCode'],
|
|
48
|
+
'errorMessage': value['errorMessage'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { MarketOutcomeSummary } from './MarketOutcomeSummary';
|
|
13
|
+
import type { Meta } from './Meta';
|
|
14
|
+
import type { CategorySummary } from './CategorySummary';
|
|
15
|
+
import type { EventSummary } from './EventSummary';
|
|
16
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
17
|
+
import type { Market } from './Market';
|
|
18
|
+
import type { MarketLiquidities } from './MarketLiquidities';
|
|
19
|
+
import type { MarketTypeSummary } from './MarketTypeSummary';
|
|
20
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
21
|
+
import type { EventParticipant } from './EventParticipant';
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @interface PagedMarketWithPricesResponse
|
|
26
|
+
*/
|
|
27
|
+
export interface PagedMarketWithPricesResponse {
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Meta}
|
|
31
|
+
* @memberof PagedMarketWithPricesResponse
|
|
32
|
+
*/
|
|
33
|
+
meta?: Meta;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<Market>}
|
|
37
|
+
* @memberof PagedMarketWithPricesResponse
|
|
38
|
+
*/
|
|
39
|
+
markets?: Array<Market>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<MarketTypeSummary>}
|
|
43
|
+
* @memberof PagedMarketWithPricesResponse
|
|
44
|
+
*/
|
|
45
|
+
marketTypes?: Array<MarketTypeSummary>;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<MarketOutcomeSummary>}
|
|
49
|
+
* @memberof PagedMarketWithPricesResponse
|
|
50
|
+
*/
|
|
51
|
+
marketOutcomes?: Array<MarketOutcomeSummary>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {Array<EventSummary>}
|
|
55
|
+
* @memberof PagedMarketWithPricesResponse
|
|
56
|
+
*/
|
|
57
|
+
events?: Array<EventSummary>;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<EventGroupSummary>}
|
|
61
|
+
* @memberof PagedMarketWithPricesResponse
|
|
62
|
+
*/
|
|
63
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<SubcategorySummary>}
|
|
67
|
+
* @memberof PagedMarketWithPricesResponse
|
|
68
|
+
*/
|
|
69
|
+
subcategories?: Array<SubcategorySummary>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {Array<CategorySummary>}
|
|
73
|
+
* @memberof PagedMarketWithPricesResponse
|
|
74
|
+
*/
|
|
75
|
+
categories?: Array<CategorySummary>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Array<MarketLiquidities>}
|
|
79
|
+
* @memberof PagedMarketWithPricesResponse
|
|
80
|
+
*/
|
|
81
|
+
prices?: Array<MarketLiquidities>;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Array<EventParticipant>}
|
|
85
|
+
* @memberof PagedMarketWithPricesResponse
|
|
86
|
+
*/
|
|
87
|
+
participants?: Array<EventParticipant>;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
91
|
+
*/
|
|
92
|
+
export declare function instanceOfPagedMarketWithPricesResponse(value: object): value is PagedMarketWithPricesResponse;
|
|
93
|
+
export declare function PagedMarketWithPricesResponseFromJSON(json: any): PagedMarketWithPricesResponse;
|
|
94
|
+
export declare function PagedMarketWithPricesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagedMarketWithPricesResponse;
|
|
95
|
+
export declare function PagedMarketWithPricesResponseToJSON(json: any): PagedMarketWithPricesResponse;
|
|
96
|
+
export declare function PagedMarketWithPricesResponseToJSONTyped(value?: PagedMarketWithPricesResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfPagedMarketWithPricesResponse = instanceOfPagedMarketWithPricesResponse;
|
|
17
|
+
exports.PagedMarketWithPricesResponseFromJSON = PagedMarketWithPricesResponseFromJSON;
|
|
18
|
+
exports.PagedMarketWithPricesResponseFromJSONTyped = PagedMarketWithPricesResponseFromJSONTyped;
|
|
19
|
+
exports.PagedMarketWithPricesResponseToJSON = PagedMarketWithPricesResponseToJSON;
|
|
20
|
+
exports.PagedMarketWithPricesResponseToJSONTyped = PagedMarketWithPricesResponseToJSONTyped;
|
|
21
|
+
const MarketOutcomeSummary_1 = require("./MarketOutcomeSummary");
|
|
22
|
+
const Meta_1 = require("./Meta");
|
|
23
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
24
|
+
const EventSummary_1 = require("./EventSummary");
|
|
25
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
26
|
+
const Market_1 = require("./Market");
|
|
27
|
+
const MarketLiquidities_1 = require("./MarketLiquidities");
|
|
28
|
+
const MarketTypeSummary_1 = require("./MarketTypeSummary");
|
|
29
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
30
|
+
const EventParticipant_1 = require("./EventParticipant");
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PagedMarketWithPricesResponse interface.
|
|
33
|
+
*/
|
|
34
|
+
function instanceOfPagedMarketWithPricesResponse(value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function PagedMarketWithPricesResponseFromJSON(json) {
|
|
38
|
+
return PagedMarketWithPricesResponseFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function PagedMarketWithPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
46
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(Market_1.MarketFromJSON)),
|
|
47
|
+
'marketTypes': json['marketTypes'] == null ? undefined : (json['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryFromJSON)),
|
|
48
|
+
'marketOutcomes': json['marketOutcomes'] == null ? undefined : (json['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryFromJSON)),
|
|
49
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
50
|
+
'eventGroups': json['eventGroups'] == null ? undefined : (json['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryFromJSON)),
|
|
51
|
+
'subcategories': json['subcategories'] == null ? undefined : (json['subcategories'].map(SubcategorySummary_1.SubcategorySummaryFromJSON)),
|
|
52
|
+
'categories': json['categories'] == null ? undefined : (json['categories'].map(CategorySummary_1.CategorySummaryFromJSON)),
|
|
53
|
+
'prices': json['prices'] == null ? undefined : (json['prices'].map(MarketLiquidities_1.MarketLiquiditiesFromJSON)),
|
|
54
|
+
'participants': json['participants'] == null ? undefined : (json['participants'].map(EventParticipant_1.EventParticipantFromJSON)),
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function PagedMarketWithPricesResponseToJSON(json) {
|
|
58
|
+
return PagedMarketWithPricesResponseToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function PagedMarketWithPricesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
66
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(Market_1.MarketToJSON)),
|
|
67
|
+
'marketTypes': value['marketTypes'] == null ? undefined : (value['marketTypes'].map(MarketTypeSummary_1.MarketTypeSummaryToJSON)),
|
|
68
|
+
'marketOutcomes': value['marketOutcomes'] == null ? undefined : (value['marketOutcomes'].map(MarketOutcomeSummary_1.MarketOutcomeSummaryToJSON)),
|
|
69
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
70
|
+
'eventGroups': value['eventGroups'] == null ? undefined : (value['eventGroups'].map(EventGroupSummary_1.EventGroupSummaryToJSON)),
|
|
71
|
+
'subcategories': value['subcategories'] == null ? undefined : (value['subcategories'].map(SubcategorySummary_1.SubcategorySummaryToJSON)),
|
|
72
|
+
'categories': value['categories'] == null ? undefined : (value['categories'].map(CategorySummary_1.CategorySummaryToJSON)),
|
|
73
|
+
'prices': value['prices'] == null ? undefined : (value['prices'].map(MarketLiquidities_1.MarketLiquiditiesToJSON)),
|
|
74
|
+
'participants': value['participants'] == null ? undefined : (value['participants'].map(EventParticipant_1.EventParticipantToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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 WithdrawalRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WithdrawalRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WithdrawalRequest
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof WithdrawalRequest
|
|
28
|
+
*/
|
|
29
|
+
walletId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WithdrawalRequest
|
|
34
|
+
*/
|
|
35
|
+
currencyId?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof WithdrawalRequest
|
|
40
|
+
*/
|
|
41
|
+
amount?: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof WithdrawalRequest
|
|
46
|
+
*/
|
|
47
|
+
destinationAddress?: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof WithdrawalRequest
|
|
52
|
+
*/
|
|
53
|
+
internalStatus?: WithdrawalRequestInternalStatusEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof WithdrawalRequest
|
|
58
|
+
*/
|
|
59
|
+
externalStatus?: WithdrawalRequestExternalStatusEnum;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export declare const WithdrawalRequestInternalStatusEnum: {
|
|
65
|
+
readonly Pending: "Pending";
|
|
66
|
+
readonly InProgress: "InProgress";
|
|
67
|
+
readonly ToBeConfirmed: "ToBeConfirmed";
|
|
68
|
+
readonly Confirming: "Confirming";
|
|
69
|
+
readonly Confirmed: "Confirmed";
|
|
70
|
+
readonly Failed: "Failed";
|
|
71
|
+
};
|
|
72
|
+
export type WithdrawalRequestInternalStatusEnum = typeof WithdrawalRequestInternalStatusEnum[keyof typeof WithdrawalRequestInternalStatusEnum];
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const WithdrawalRequestExternalStatusEnum: {
|
|
77
|
+
readonly Pending: "Pending";
|
|
78
|
+
readonly InProgress: "InProgress";
|
|
79
|
+
readonly ToBeConfirmed: "ToBeConfirmed";
|
|
80
|
+
readonly Confirming: "Confirming";
|
|
81
|
+
readonly Confirmed: "Confirmed";
|
|
82
|
+
readonly Failed: "Failed";
|
|
83
|
+
};
|
|
84
|
+
export type WithdrawalRequestExternalStatusEnum = typeof WithdrawalRequestExternalStatusEnum[keyof typeof WithdrawalRequestExternalStatusEnum];
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the WithdrawalRequest interface.
|
|
87
|
+
*/
|
|
88
|
+
export declare function instanceOfWithdrawalRequest(value: object): value is WithdrawalRequest;
|
|
89
|
+
export declare function WithdrawalRequestFromJSON(json: any): WithdrawalRequest;
|
|
90
|
+
export declare function WithdrawalRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequest;
|
|
91
|
+
export declare function WithdrawalRequestToJSON(json: any): WithdrawalRequest;
|
|
92
|
+
export declare function WithdrawalRequestToJSONTyped(value?: WithdrawalRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,83 @@
|
|
|
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.WithdrawalRequestExternalStatusEnum = exports.WithdrawalRequestInternalStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfWithdrawalRequest = instanceOfWithdrawalRequest;
|
|
18
|
+
exports.WithdrawalRequestFromJSON = WithdrawalRequestFromJSON;
|
|
19
|
+
exports.WithdrawalRequestFromJSONTyped = WithdrawalRequestFromJSONTyped;
|
|
20
|
+
exports.WithdrawalRequestToJSON = WithdrawalRequestToJSON;
|
|
21
|
+
exports.WithdrawalRequestToJSONTyped = WithdrawalRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.WithdrawalRequestInternalStatusEnum = {
|
|
26
|
+
Pending: 'Pending',
|
|
27
|
+
InProgress: 'InProgress',
|
|
28
|
+
ToBeConfirmed: 'ToBeConfirmed',
|
|
29
|
+
Confirming: 'Confirming',
|
|
30
|
+
Confirmed: 'Confirmed',
|
|
31
|
+
Failed: 'Failed'
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @export
|
|
35
|
+
*/
|
|
36
|
+
exports.WithdrawalRequestExternalStatusEnum = {
|
|
37
|
+
Pending: 'Pending',
|
|
38
|
+
InProgress: 'InProgress',
|
|
39
|
+
ToBeConfirmed: 'ToBeConfirmed',
|
|
40
|
+
Confirming: 'Confirming',
|
|
41
|
+
Confirmed: 'Confirmed',
|
|
42
|
+
Failed: 'Failed'
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the WithdrawalRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
function instanceOfWithdrawalRequest(value) {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
function WithdrawalRequestFromJSON(json) {
|
|
51
|
+
return WithdrawalRequestFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
function WithdrawalRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
59
|
+
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
60
|
+
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
61
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
62
|
+
'destinationAddress': json['destinationAddress'] == null ? undefined : json['destinationAddress'],
|
|
63
|
+
'internalStatus': json['internalStatus'] == null ? undefined : json['internalStatus'],
|
|
64
|
+
'externalStatus': json['externalStatus'] == null ? undefined : json['externalStatus'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
function WithdrawalRequestToJSON(json) {
|
|
68
|
+
return WithdrawalRequestToJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function WithdrawalRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': value['id'],
|
|
76
|
+
'walletId': value['walletId'],
|
|
77
|
+
'currencyId': value['currencyId'],
|
|
78
|
+
'amount': value['amount'],
|
|
79
|
+
'destinationAddress': value['destinationAddress'],
|
|
80
|
+
'internalStatus': value['internalStatus'],
|
|
81
|
+
'externalStatus': value['externalStatus'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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 WithdrawalRequestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface WithdrawalRequestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof WithdrawalRequestRequest
|
|
22
|
+
*/
|
|
23
|
+
currencyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof WithdrawalRequestRequest
|
|
28
|
+
*/
|
|
29
|
+
amount?: number;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof WithdrawalRequestRequest
|
|
34
|
+
*/
|
|
35
|
+
toAddress: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the WithdrawalRequestRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfWithdrawalRequestRequest(value: object): value is WithdrawalRequestRequest;
|
|
41
|
+
export declare function WithdrawalRequestRequestFromJSON(json: any): WithdrawalRequestRequest;
|
|
42
|
+
export declare function WithdrawalRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequestRequest;
|
|
43
|
+
export declare function WithdrawalRequestRequestToJSON(json: any): WithdrawalRequestRequest;
|
|
44
|
+
export declare function WithdrawalRequestRequestToJSONTyped(value?: WithdrawalRequestRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,56 @@
|
|
|
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.instanceOfWithdrawalRequestRequest = instanceOfWithdrawalRequestRequest;
|
|
17
|
+
exports.WithdrawalRequestRequestFromJSON = WithdrawalRequestRequestFromJSON;
|
|
18
|
+
exports.WithdrawalRequestRequestFromJSONTyped = WithdrawalRequestRequestFromJSONTyped;
|
|
19
|
+
exports.WithdrawalRequestRequestToJSON = WithdrawalRequestRequestToJSON;
|
|
20
|
+
exports.WithdrawalRequestRequestToJSONTyped = WithdrawalRequestRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the WithdrawalRequestRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfWithdrawalRequestRequest(value) {
|
|
25
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('toAddress' in value) || value['toAddress'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function WithdrawalRequestRequestFromJSON(json) {
|
|
32
|
+
return WithdrawalRequestRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function WithdrawalRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'currencyId': json['currencyId'],
|
|
40
|
+
'amount': json['amount'] == null ? undefined : json['amount'],
|
|
41
|
+
'toAddress': json['toAddress'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function WithdrawalRequestRequestToJSON(json) {
|
|
45
|
+
return WithdrawalRequestRequestToJSONTyped(json, false);
|
|
46
|
+
}
|
|
47
|
+
function WithdrawalRequestRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'currencyId': value['currencyId'],
|
|
53
|
+
'amount': value['amount'],
|
|
54
|
+
'toAddress': value['toAddress'],
|
|
55
|
+
};
|
|
56
|
+
}
|