@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,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 { WithdrawalRequest } from './WithdrawalRequest';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface WithdrawalRequestResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface WithdrawalRequestResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Meta}
|
|
23
|
+
* @memberof WithdrawalRequestResponse
|
|
24
|
+
*/
|
|
25
|
+
meta?: Meta;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<WithdrawalRequest>}
|
|
29
|
+
* @memberof WithdrawalRequestResponse
|
|
30
|
+
*/
|
|
31
|
+
withdrawalRequests?: Array<WithdrawalRequest>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the WithdrawalRequestResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfWithdrawalRequestResponse(value: object): value is WithdrawalRequestResponse;
|
|
37
|
+
export declare function WithdrawalRequestResponseFromJSON(json: any): WithdrawalRequestResponse;
|
|
38
|
+
export declare function WithdrawalRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawalRequestResponse;
|
|
39
|
+
export declare function WithdrawalRequestResponseToJSON(json: any): WithdrawalRequestResponse;
|
|
40
|
+
export declare function WithdrawalRequestResponseToJSONTyped(value?: WithdrawalRequestResponse | 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.instanceOfWithdrawalRequestResponse = instanceOfWithdrawalRequestResponse;
|
|
17
|
+
exports.WithdrawalRequestResponseFromJSON = WithdrawalRequestResponseFromJSON;
|
|
18
|
+
exports.WithdrawalRequestResponseFromJSONTyped = WithdrawalRequestResponseFromJSONTyped;
|
|
19
|
+
exports.WithdrawalRequestResponseToJSON = WithdrawalRequestResponseToJSON;
|
|
20
|
+
exports.WithdrawalRequestResponseToJSONTyped = WithdrawalRequestResponseToJSONTyped;
|
|
21
|
+
const Meta_1 = require("./Meta");
|
|
22
|
+
const WithdrawalRequest_1 = require("./WithdrawalRequest");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the WithdrawalRequestResponse interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfWithdrawalRequestResponse(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function WithdrawalRequestResponseFromJSON(json) {
|
|
30
|
+
return WithdrawalRequestResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function WithdrawalRequestResponseFromJSONTyped(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
|
+
'withdrawalRequests': json['withdrawalRequests'] == null ? undefined : (json['withdrawalRequests'].map(WithdrawalRequest_1.WithdrawalRequestFromJSON)),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function WithdrawalRequestResponseToJSON(json) {
|
|
42
|
+
return WithdrawalRequestResponseToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function WithdrawalRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'_meta': (0, Meta_1.MetaToJSON)(value['meta']),
|
|
50
|
+
'withdrawalRequests': value['withdrawalRequests'] == null ? undefined : (value['withdrawalRequests'].map(WithdrawalRequest_1.WithdrawalRequestToJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -7,6 +7,9 @@ export * from './App';
|
|
|
7
7
|
export * from './AppResponse';
|
|
8
8
|
export * from './AppStatus';
|
|
9
9
|
export * from './AppStatusResponse';
|
|
10
|
+
export * from './BatchCreateOrderRequest';
|
|
11
|
+
export * from './BatchOrderResponse';
|
|
12
|
+
export * from './BatchOrderResponseOrdersInner';
|
|
10
13
|
export * from './Category';
|
|
11
14
|
export * from './CategoryResponse';
|
|
12
15
|
export * from './CategorySummary';
|
|
@@ -27,6 +30,11 @@ export * from './CreateWalletRequest';
|
|
|
27
30
|
export * from './Currency';
|
|
28
31
|
export * from './CurrencyResponse';
|
|
29
32
|
export * from './DeactivateAPIKeyRequest';
|
|
33
|
+
export * from './DepositAddress';
|
|
34
|
+
export * from './DepositAddressResponse';
|
|
35
|
+
export * from './DepositRequest';
|
|
36
|
+
export * from './DepositRequestRequest';
|
|
37
|
+
export * from './DepositRequestResponse';
|
|
30
38
|
export * from './DocumentReference';
|
|
31
39
|
export * from './Event';
|
|
32
40
|
export * from './EventGroup';
|
|
@@ -57,6 +65,7 @@ export * from './MarketTypeResponse';
|
|
|
57
65
|
export * from './MarketTypeSummary';
|
|
58
66
|
export * from './MarketUpdateResponse';
|
|
59
67
|
export * from './Meta';
|
|
68
|
+
export * from './ModelError';
|
|
60
69
|
export * from './ModifyParticipantsRequest';
|
|
61
70
|
export * from './Order';
|
|
62
71
|
export * from './OrderResponse';
|
|
@@ -95,3 +104,6 @@ export * from './WalletMetric';
|
|
|
95
104
|
export * from './WalletMetrics';
|
|
96
105
|
export * from './WalletMetricsResponse';
|
|
97
106
|
export * from './WalletResponse';
|
|
107
|
+
export * from './WithdrawalRequest';
|
|
108
|
+
export * from './WithdrawalRequestRequest';
|
|
109
|
+
export * from './WithdrawalRequestResponse';
|
package/dist/models/index.js
CHANGED
|
@@ -25,6 +25,9 @@ __exportStar(require("./App"), exports);
|
|
|
25
25
|
__exportStar(require("./AppResponse"), exports);
|
|
26
26
|
__exportStar(require("./AppStatus"), exports);
|
|
27
27
|
__exportStar(require("./AppStatusResponse"), exports);
|
|
28
|
+
__exportStar(require("./BatchCreateOrderRequest"), exports);
|
|
29
|
+
__exportStar(require("./BatchOrderResponse"), exports);
|
|
30
|
+
__exportStar(require("./BatchOrderResponseOrdersInner"), exports);
|
|
28
31
|
__exportStar(require("./Category"), exports);
|
|
29
32
|
__exportStar(require("./CategoryResponse"), exports);
|
|
30
33
|
__exportStar(require("./CategorySummary"), exports);
|
|
@@ -45,6 +48,11 @@ __exportStar(require("./CreateWalletRequest"), exports);
|
|
|
45
48
|
__exportStar(require("./Currency"), exports);
|
|
46
49
|
__exportStar(require("./CurrencyResponse"), exports);
|
|
47
50
|
__exportStar(require("./DeactivateAPIKeyRequest"), exports);
|
|
51
|
+
__exportStar(require("./DepositAddress"), exports);
|
|
52
|
+
__exportStar(require("./DepositAddressResponse"), exports);
|
|
53
|
+
__exportStar(require("./DepositRequest"), exports);
|
|
54
|
+
__exportStar(require("./DepositRequestRequest"), exports);
|
|
55
|
+
__exportStar(require("./DepositRequestResponse"), exports);
|
|
48
56
|
__exportStar(require("./DocumentReference"), exports);
|
|
49
57
|
__exportStar(require("./Event"), exports);
|
|
50
58
|
__exportStar(require("./EventGroup"), exports);
|
|
@@ -75,6 +83,7 @@ __exportStar(require("./MarketTypeResponse"), exports);
|
|
|
75
83
|
__exportStar(require("./MarketTypeSummary"), exports);
|
|
76
84
|
__exportStar(require("./MarketUpdateResponse"), exports);
|
|
77
85
|
__exportStar(require("./Meta"), exports);
|
|
86
|
+
__exportStar(require("./ModelError"), exports);
|
|
78
87
|
__exportStar(require("./ModifyParticipantsRequest"), exports);
|
|
79
88
|
__exportStar(require("./Order"), exports);
|
|
80
89
|
__exportStar(require("./OrderResponse"), exports);
|
|
@@ -113,3 +122,6 @@ __exportStar(require("./WalletMetric"), exports);
|
|
|
113
122
|
__exportStar(require("./WalletMetrics"), exports);
|
|
114
123
|
__exportStar(require("./WalletMetricsResponse"), exports);
|
|
115
124
|
__exportStar(require("./WalletResponse"), exports);
|
|
125
|
+
__exportStar(require("./WithdrawalRequest"), exports);
|
|
126
|
+
__exportStar(require("./WithdrawalRequestRequest"), exports);
|
|
127
|
+
__exportStar(require("./WithdrawalRequestResponse"), exports);
|