@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,82 @@
|
|
|
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 { MarketSummary } from './MarketSummary';
|
|
14
|
+
import type { TradeSummary } from './TradeSummary';
|
|
15
|
+
import type { CategorySummary } from './CategorySummary';
|
|
16
|
+
import type { BatchOrderResponseOrdersInner } from './BatchOrderResponseOrdersInner';
|
|
17
|
+
import type { EventSummary } from './EventSummary';
|
|
18
|
+
import type { SubcategorySummary } from './SubcategorySummary';
|
|
19
|
+
import type { EventGroupSummary } from './EventGroupSummary';
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface BatchOrderResponse
|
|
24
|
+
*/
|
|
25
|
+
export interface BatchOrderResponse {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Meta}
|
|
29
|
+
* @memberof BatchOrderResponse
|
|
30
|
+
*/
|
|
31
|
+
meta?: Meta;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {Array<BatchOrderResponseOrdersInner>}
|
|
35
|
+
* @memberof BatchOrderResponse
|
|
36
|
+
*/
|
|
37
|
+
orders?: Array<BatchOrderResponseOrdersInner>;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {Array<MarketSummary>}
|
|
41
|
+
* @memberof BatchOrderResponse
|
|
42
|
+
*/
|
|
43
|
+
markets?: Array<MarketSummary>;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {Array<EventSummary>}
|
|
47
|
+
* @memberof BatchOrderResponse
|
|
48
|
+
*/
|
|
49
|
+
events?: Array<EventSummary>;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {Array<TradeSummary>}
|
|
53
|
+
* @memberof BatchOrderResponse
|
|
54
|
+
*/
|
|
55
|
+
trades?: Array<TradeSummary>;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {Array<EventGroupSummary>}
|
|
59
|
+
* @memberof BatchOrderResponse
|
|
60
|
+
*/
|
|
61
|
+
eventGroups?: Array<EventGroupSummary>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<SubcategorySummary>}
|
|
65
|
+
* @memberof BatchOrderResponse
|
|
66
|
+
*/
|
|
67
|
+
subcategories?: Array<SubcategorySummary>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<CategorySummary>}
|
|
71
|
+
* @memberof BatchOrderResponse
|
|
72
|
+
*/
|
|
73
|
+
categories?: Array<CategorySummary>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Check if a given object implements the BatchOrderResponse interface.
|
|
77
|
+
*/
|
|
78
|
+
export declare function instanceOfBatchOrderResponse(value: object): value is BatchOrderResponse;
|
|
79
|
+
export declare function BatchOrderResponseFromJSON(json: any): BatchOrderResponse;
|
|
80
|
+
export declare function BatchOrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponse;
|
|
81
|
+
export declare function BatchOrderResponseToJSON(json: any): BatchOrderResponse;
|
|
82
|
+
export declare function BatchOrderResponseToJSONTyped(value?: BatchOrderResponse | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,70 @@
|
|
|
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.instanceOfBatchOrderResponse = instanceOfBatchOrderResponse;
|
|
17
|
+
exports.BatchOrderResponseFromJSON = BatchOrderResponseFromJSON;
|
|
18
|
+
exports.BatchOrderResponseFromJSONTyped = BatchOrderResponseFromJSONTyped;
|
|
19
|
+
exports.BatchOrderResponseToJSON = BatchOrderResponseToJSON;
|
|
20
|
+
exports.BatchOrderResponseToJSONTyped = BatchOrderResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const MarketSummary_1 = require("./MarketSummary");
|
|
23
|
+
const TradeSummary_1 = require("./TradeSummary");
|
|
24
|
+
const CategorySummary_1 = require("./CategorySummary");
|
|
25
|
+
const BatchOrderResponseOrdersInner_1 = require("./BatchOrderResponseOrdersInner");
|
|
26
|
+
const EventSummary_1 = require("./EventSummary");
|
|
27
|
+
const SubcategorySummary_1 = require("./SubcategorySummary");
|
|
28
|
+
const EventGroupSummary_1 = require("./EventGroupSummary");
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the BatchOrderResponse interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfBatchOrderResponse(value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function BatchOrderResponseFromJSON(json) {
|
|
36
|
+
return BatchOrderResponseFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function BatchOrderResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'meta': json['_meta'] == null ? undefined : (0, Meta_1.MetaFromJSON)(json['_meta']),
|
|
44
|
+
'orders': json['orders'] == null ? undefined : (json['orders'].map(BatchOrderResponseOrdersInner_1.BatchOrderResponseOrdersInnerFromJSON)),
|
|
45
|
+
'markets': json['markets'] == null ? undefined : (json['markets'].map(MarketSummary_1.MarketSummaryFromJSON)),
|
|
46
|
+
'events': json['events'] == null ? undefined : (json['events'].map(EventSummary_1.EventSummaryFromJSON)),
|
|
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)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function BatchOrderResponseToJSON(json) {
|
|
54
|
+
return BatchOrderResponseToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function BatchOrderResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
62
|
+
'orders': value['orders'] == null ? undefined : (value['orders'].map(BatchOrderResponseOrdersInner_1.BatchOrderResponseOrdersInnerToJSON)),
|
|
63
|
+
'markets': value['markets'] == null ? undefined : (value['markets'].map(MarketSummary_1.MarketSummaryToJSON)),
|
|
64
|
+
'events': value['events'] == null ? undefined : (value['events'].map(EventSummary_1.EventSummaryToJSON)),
|
|
65
|
+
'trades': value['trades'] == null ? undefined : (value['trades'].map(TradeSummary_1.TradeSummaryToJSON)),
|
|
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)),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { ModelError } from './ModelError';
|
|
13
|
+
import type { Order } from './Order';
|
|
14
|
+
/**
|
|
15
|
+
* @type BatchOrderResponseOrdersInner
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
*/
|
|
19
|
+
export type BatchOrderResponseOrdersInner = ModelError | Order;
|
|
20
|
+
export declare function BatchOrderResponseOrdersInnerFromJSON(json: any): BatchOrderResponseOrdersInner;
|
|
21
|
+
export declare function BatchOrderResponseOrdersInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): BatchOrderResponseOrdersInner;
|
|
22
|
+
export declare function BatchOrderResponseOrdersInnerToJSON(json: any): any;
|
|
23
|
+
export declare function BatchOrderResponseOrdersInnerToJSONTyped(value?: BatchOrderResponseOrdersInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Monaco API
|
|
6
|
+
* A RESTful API that allows you to interact with the Monaco Exchange. Provides endpoints for managing Events, Markets, Sessions, Wallets and Orders. To interact with the API, a client must have an App Id and an API Key to authenticate and create a session.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.BatchOrderResponseOrdersInnerFromJSON = BatchOrderResponseOrdersInnerFromJSON;
|
|
17
|
+
exports.BatchOrderResponseOrdersInnerFromJSONTyped = BatchOrderResponseOrdersInnerFromJSONTyped;
|
|
18
|
+
exports.BatchOrderResponseOrdersInnerToJSON = BatchOrderResponseOrdersInnerToJSON;
|
|
19
|
+
exports.BatchOrderResponseOrdersInnerToJSONTyped = BatchOrderResponseOrdersInnerToJSONTyped;
|
|
20
|
+
const ModelError_1 = require("./ModelError");
|
|
21
|
+
const Order_1 = require("./Order");
|
|
22
|
+
function BatchOrderResponseOrdersInnerFromJSON(json) {
|
|
23
|
+
return BatchOrderResponseOrdersInnerFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
function BatchOrderResponseOrdersInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
if ((0, ModelError_1.instanceOfModelError)(json)) {
|
|
30
|
+
return (0, ModelError_1.ModelErrorFromJSONTyped)(json, true);
|
|
31
|
+
}
|
|
32
|
+
if ((0, Order_1.instanceOfOrder)(json)) {
|
|
33
|
+
return (0, Order_1.OrderFromJSONTyped)(json, true);
|
|
34
|
+
}
|
|
35
|
+
return {};
|
|
36
|
+
}
|
|
37
|
+
function BatchOrderResponseOrdersInnerToJSON(json) {
|
|
38
|
+
return BatchOrderResponseOrdersInnerToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function BatchOrderResponseOrdersInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
if ((0, ModelError_1.instanceOfModelError)(value)) {
|
|
45
|
+
return (0, ModelError_1.ModelErrorToJSON)(value);
|
|
46
|
+
}
|
|
47
|
+
if ((0, Order_1.instanceOfOrder)(value)) {
|
|
48
|
+
return (0, Order_1.OrderToJSON)(value);
|
|
49
|
+
}
|
|
50
|
+
return {};
|
|
51
|
+
}
|
|
@@ -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 DepositAddress
|
|
16
|
+
*/
|
|
17
|
+
export interface DepositAddress {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DepositAddress
|
|
22
|
+
*/
|
|
23
|
+
networkId?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DepositAddress
|
|
28
|
+
*/
|
|
29
|
+
walletId?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DepositAddress
|
|
34
|
+
*/
|
|
35
|
+
address?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DepositAddress interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfDepositAddress(value: object): value is DepositAddress;
|
|
41
|
+
export declare function DepositAddressFromJSON(json: any): DepositAddress;
|
|
42
|
+
export declare function DepositAddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositAddress;
|
|
43
|
+
export declare function DepositAddressToJSON(json: any): DepositAddress;
|
|
44
|
+
export declare function DepositAddressToJSONTyped(value?: DepositAddress | 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.instanceOfDepositAddress = instanceOfDepositAddress;
|
|
17
|
+
exports.DepositAddressFromJSON = DepositAddressFromJSON;
|
|
18
|
+
exports.DepositAddressFromJSONTyped = DepositAddressFromJSONTyped;
|
|
19
|
+
exports.DepositAddressToJSON = DepositAddressToJSON;
|
|
20
|
+
exports.DepositAddressToJSONTyped = DepositAddressToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DepositAddress interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDepositAddress(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DepositAddressFromJSON(json) {
|
|
28
|
+
return DepositAddressFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DepositAddressFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'networkId': json['networkId'] == null ? undefined : json['networkId'],
|
|
36
|
+
'walletId': json['walletId'] == null ? undefined : json['walletId'],
|
|
37
|
+
'address': json['address'] == null ? undefined : json['address'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DepositAddressToJSON(json) {
|
|
41
|
+
return DepositAddressToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DepositAddressToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'networkId': value['networkId'],
|
|
49
|
+
'walletId': value['walletId'],
|
|
50
|
+
'address': value['address'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 { DepositAddress } from './DepositAddress';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DepositAddressResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface DepositAddressResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof DepositAddressResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DepositAddress>}
|
|
29
|
+
* @memberof DepositAddressResponse
|
|
30
|
+
*/
|
|
31
|
+
depositAddresses?: Array<DepositAddress>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DepositAddressResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDepositAddressResponse(value: object): value is DepositAddressResponse;
|
|
37
|
+
export declare function DepositAddressResponseFromJSON(json: any): DepositAddressResponse;
|
|
38
|
+
export declare function DepositAddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositAddressResponse;
|
|
39
|
+
export declare function DepositAddressResponseToJSON(json: any): DepositAddressResponse;
|
|
40
|
+
export declare function DepositAddressResponseToJSONTyped(value?: DepositAddressResponse | 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.instanceOfDepositAddressResponse = instanceOfDepositAddressResponse;
|
|
17
|
+
exports.DepositAddressResponseFromJSON = DepositAddressResponseFromJSON;
|
|
18
|
+
exports.DepositAddressResponseFromJSONTyped = DepositAddressResponseFromJSONTyped;
|
|
19
|
+
exports.DepositAddressResponseToJSON = DepositAddressResponseToJSON;
|
|
20
|
+
exports.DepositAddressResponseToJSONTyped = DepositAddressResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const DepositAddress_1 = require("./DepositAddress");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the DepositAddressResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfDepositAddressResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function DepositAddressResponseFromJSON(json) {
|
|
30
|
+
return DepositAddressResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function DepositAddressResponseFromJSONTyped(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
|
+
'depositAddresses': json['depositAddresses'] == null ? undefined : (json['depositAddresses'].map(DepositAddress_1.DepositAddressFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function DepositAddressResponseToJSON(json) {
|
|
42
|
+
return DepositAddressResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function DepositAddressResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'depositAddresses': value['depositAddresses'] == null ? undefined : (value['depositAddresses'].map(DepositAddress_1.DepositAddressToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 DepositRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DepositRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DepositRequest
|
|
22
|
+
*/
|
|
23
|
+
id?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DepositRequest
|
|
28
|
+
*/
|
|
29
|
+
ownerAddress?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof DepositRequest
|
|
34
|
+
*/
|
|
35
|
+
currencyId?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the DepositRequest interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfDepositRequest(value: object): value is DepositRequest;
|
|
41
|
+
export declare function DepositRequestFromJSON(json: any): DepositRequest;
|
|
42
|
+
export declare function DepositRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositRequest;
|
|
43
|
+
export declare function DepositRequestToJSON(json: any): DepositRequest;
|
|
44
|
+
export declare function DepositRequestToJSONTyped(value?: DepositRequest | 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.instanceOfDepositRequest = instanceOfDepositRequest;
|
|
17
|
+
exports.DepositRequestFromJSON = DepositRequestFromJSON;
|
|
18
|
+
exports.DepositRequestFromJSONTyped = DepositRequestFromJSONTyped;
|
|
19
|
+
exports.DepositRequestToJSON = DepositRequestToJSON;
|
|
20
|
+
exports.DepositRequestToJSONTyped = DepositRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DepositRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDepositRequest(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function DepositRequestFromJSON(json) {
|
|
28
|
+
return DepositRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function DepositRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
36
|
+
'ownerAddress': json['ownerAddress'] == null ? undefined : json['ownerAddress'],
|
|
37
|
+
'currencyId': json['currencyId'] == null ? undefined : json['currencyId'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function DepositRequestToJSON(json) {
|
|
41
|
+
return DepositRequestToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function DepositRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'id': value['id'],
|
|
49
|
+
'ownerAddress': value['ownerAddress'],
|
|
50
|
+
'currencyId': value['currencyId'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -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 DepositRequestRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DepositRequestRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DepositRequestRequest
|
|
22
|
+
*/
|
|
23
|
+
currencyId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DepositRequestRequest
|
|
28
|
+
*/
|
|
29
|
+
externalAddress: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the DepositRequestRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfDepositRequestRequest(value: object): value is DepositRequestRequest;
|
|
35
|
+
export declare function DepositRequestRequestFromJSON(json: any): DepositRequestRequest;
|
|
36
|
+
export declare function DepositRequestRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositRequestRequest;
|
|
37
|
+
export declare function DepositRequestRequestToJSON(json: any): DepositRequestRequest;
|
|
38
|
+
export declare function DepositRequestRequestToJSONTyped(value?: DepositRequestRequest | 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.instanceOfDepositRequestRequest = instanceOfDepositRequestRequest;
|
|
17
|
+
exports.DepositRequestRequestFromJSON = DepositRequestRequestFromJSON;
|
|
18
|
+
exports.DepositRequestRequestFromJSONTyped = DepositRequestRequestFromJSONTyped;
|
|
19
|
+
exports.DepositRequestRequestToJSON = DepositRequestRequestToJSON;
|
|
20
|
+
exports.DepositRequestRequestToJSONTyped = DepositRequestRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the DepositRequestRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfDepositRequestRequest(value) {
|
|
25
|
+
if (!('currencyId' in value) || value['currencyId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('externalAddress' in value) || value['externalAddress'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function DepositRequestRequestFromJSON(json) {
|
|
32
|
+
return DepositRequestRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function DepositRequestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'currencyId': json['currencyId'],
|
|
40
|
+
'externalAddress': json['externalAddress'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function DepositRequestRequestToJSON(json) {
|
|
44
|
+
return DepositRequestRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function DepositRequestRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'currencyId': value['currencyId'],
|
|
52
|
+
'externalAddress': value['externalAddress'],
|
|
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 { DepositRequest } from './DepositRequest';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface DepositRequestResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface DepositRequestResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof DepositRequestResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<DepositRequest>}
|
|
29
|
+
* @memberof DepositRequestResponse
|
|
30
|
+
*/
|
|
31
|
+
depositRequests?: Array<DepositRequest>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the DepositRequestResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfDepositRequestResponse(value: object): value is DepositRequestResponse;
|
|
37
|
+
export declare function DepositRequestResponseFromJSON(json: any): DepositRequestResponse;
|
|
38
|
+
export declare function DepositRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositRequestResponse;
|
|
39
|
+
export declare function DepositRequestResponseToJSON(json: any): DepositRequestResponse;
|
|
40
|
+
export declare function DepositRequestResponseToJSONTyped(value?: DepositRequestResponse | null, ignoreDiscriminator?: boolean): any;
|