zklighter-perps 1.0.233 → 1.0.235
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/.openapi-generator/FILES +1 -2
- package/apis/AccountApi.ts +0 -96
- package/models/AccountAsset.ts +29 -0
- package/models/Asset.ts +63 -0
- package/models/AssetStats.ts +70 -0
- package/models/MarketConfig.ts +0 -9
- package/models/RFQEntry.ts +0 -15
- package/models/RFQResponseEntry.ts +1 -13
- package/models/RespCreateRFQ.ts +0 -15
- package/models/RespGetRFQ.ts +0 -15
- package/models/RespRespondToRFQ.ts +0 -15
- package/models/index.ts +1 -2
- package/openapi.json +75 -196
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -37,6 +37,7 @@ models/ApiToken.ts
|
|
|
37
37
|
models/ApprovedIntegrator.ts
|
|
38
38
|
models/Asset.ts
|
|
39
39
|
models/AssetDetails.ts
|
|
40
|
+
models/AssetStats.ts
|
|
40
41
|
models/Auth.ts
|
|
41
42
|
models/Block.ts
|
|
42
43
|
models/Blocks.ts
|
|
@@ -107,7 +108,6 @@ models/PublicPoolMetadata.ts
|
|
|
107
108
|
models/PublicPoolShare.ts
|
|
108
109
|
models/PushNotifDeliveryResult.ts
|
|
109
110
|
models/RFQEntry.ts
|
|
110
|
-
models/RFQMetadata.ts
|
|
111
111
|
models/RFQResponseEntry.ts
|
|
112
112
|
models/Referral.ts
|
|
113
113
|
models/ReferralCode.ts
|
|
@@ -191,7 +191,6 @@ models/RespSendTx.ts
|
|
|
191
191
|
models/RespSendTxBatch.ts
|
|
192
192
|
models/RespSetMakerOnlyApiKeys.ts
|
|
193
193
|
models/RespUpdateKickback.ts
|
|
194
|
-
models/RespUpdateRFQ.ts
|
|
195
194
|
models/RespUpdateReferralCode.ts
|
|
196
195
|
models/RespWithdrawalDelay.ts
|
|
197
196
|
models/ResultCode.ts
|
package/apis/AccountApi.ts
CHANGED
|
@@ -39,7 +39,6 @@ import type {
|
|
|
39
39
|
RespRespondToRFQ,
|
|
40
40
|
RespRevokeApiToken,
|
|
41
41
|
RespSetMakerOnlyApiKeys,
|
|
42
|
-
RespUpdateRFQ,
|
|
43
42
|
ResultCode,
|
|
44
43
|
SubAccounts,
|
|
45
44
|
TxHash,
|
|
@@ -93,8 +92,6 @@ import {
|
|
|
93
92
|
RespRevokeApiTokenToJSON,
|
|
94
93
|
RespSetMakerOnlyApiKeysFromJSON,
|
|
95
94
|
RespSetMakerOnlyApiKeysToJSON,
|
|
96
|
-
RespUpdateRFQFromJSON,
|
|
97
|
-
RespUpdateRFQToJSON,
|
|
98
95
|
ResultCodeFromJSON,
|
|
99
96
|
ResultCodeToJSON,
|
|
100
97
|
SubAccountsFromJSON,
|
|
@@ -242,7 +239,6 @@ export interface RfqCreateRequest {
|
|
|
242
239
|
direction: number;
|
|
243
240
|
authorization?: string;
|
|
244
241
|
auth?: string;
|
|
245
|
-
metadata?: string;
|
|
246
242
|
}
|
|
247
243
|
|
|
248
244
|
export interface RfqGetRequest {
|
|
@@ -267,13 +263,6 @@ export interface RfqRespondRequest {
|
|
|
267
263
|
auth?: string;
|
|
268
264
|
}
|
|
269
265
|
|
|
270
|
-
export interface RfqUpdateRequest {
|
|
271
|
-
rfq_id: number;
|
|
272
|
-
status: RfqUpdateStatusEnum;
|
|
273
|
-
authorization?: string;
|
|
274
|
-
auth?: string;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
266
|
export interface SetMakerOnlyApiKeysRequest {
|
|
278
267
|
account_index: number;
|
|
279
268
|
api_key_indexes: string;
|
|
@@ -1524,10 +1513,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1524
1513
|
formParams.append('direction', requestParameters['direction'] as any);
|
|
1525
1514
|
}
|
|
1526
1515
|
|
|
1527
|
-
if (requestParameters['metadata'] != null) {
|
|
1528
|
-
formParams.append('metadata', requestParameters['metadata'] as any);
|
|
1529
|
-
}
|
|
1530
|
-
|
|
1531
1516
|
const response = await this.request({
|
|
1532
1517
|
path: `/api/v1/rfq/create`,
|
|
1533
1518
|
method: 'POST',
|
|
@@ -1720,79 +1705,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1720
1705
|
return await response.value();
|
|
1721
1706
|
}
|
|
1722
1707
|
|
|
1723
|
-
/**
|
|
1724
|
-
* Update RFQ status
|
|
1725
|
-
* rfq_update
|
|
1726
|
-
*/
|
|
1727
|
-
async rfqUpdateRaw(requestParameters: RfqUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespUpdateRFQ>> {
|
|
1728
|
-
if (requestParameters['rfq_id'] == null) {
|
|
1729
|
-
throw new runtime.RequiredError(
|
|
1730
|
-
'rfq_id',
|
|
1731
|
-
'Required parameter "rfq_id" was null or undefined when calling rfqUpdate().'
|
|
1732
|
-
);
|
|
1733
|
-
}
|
|
1734
|
-
|
|
1735
|
-
if (requestParameters['status'] == null) {
|
|
1736
|
-
throw new runtime.RequiredError(
|
|
1737
|
-
'status',
|
|
1738
|
-
'Required parameter "status" was null or undefined when calling rfqUpdate().'
|
|
1739
|
-
);
|
|
1740
|
-
}
|
|
1741
|
-
|
|
1742
|
-
const queryParameters: any = {};
|
|
1743
|
-
|
|
1744
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1745
|
-
|
|
1746
|
-
if (requestParameters['authorization'] != null) {
|
|
1747
|
-
headerParameters['authorization'] = String(requestParameters['authorization']);
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
const consumes: runtime.Consume[] = [
|
|
1751
|
-
{ contentType: 'multipart/form-data' },
|
|
1752
|
-
];
|
|
1753
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
1754
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1755
|
-
|
|
1756
|
-
let formParams: { append(param: string, value: any): any };
|
|
1757
|
-
let useForm = false;
|
|
1758
|
-
if (useForm) {
|
|
1759
|
-
formParams = new FormData();
|
|
1760
|
-
} else {
|
|
1761
|
-
formParams = new URLSearchParams();
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
if (requestParameters['auth'] != null) {
|
|
1765
|
-
formParams.append('auth', requestParameters['auth'] as any);
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
if (requestParameters['rfq_id'] != null) {
|
|
1769
|
-
formParams.append('rfq_id', requestParameters['rfq_id'] as any);
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
if (requestParameters['status'] != null) {
|
|
1773
|
-
formParams.append('status', requestParameters['status'] as any);
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
|
-
const response = await this.request({
|
|
1777
|
-
path: `/api/v1/rfq/update`,
|
|
1778
|
-
method: 'POST',
|
|
1779
|
-
headers: headerParameters,
|
|
1780
|
-
query: queryParameters,
|
|
1781
|
-
body: formParams,
|
|
1782
|
-
}, initOverrides);
|
|
1783
|
-
|
|
1784
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => RespUpdateRFQFromJSON(jsonValue));
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
/**
|
|
1788
|
-
* Update RFQ status
|
|
1789
|
-
* rfq_update
|
|
1790
|
-
*/
|
|
1791
|
-
async rfqUpdate(requestParameters: RfqUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespUpdateRFQ> {
|
|
1792
|
-
const response = await this.rfqUpdateRaw(requestParameters, initOverrides);
|
|
1793
|
-
return await response.value();
|
|
1794
|
-
}
|
|
1795
|
-
|
|
1796
1708
|
/**
|
|
1797
1709
|
* Set maker-only API key indexes
|
|
1798
1710
|
* setMakerOnlyApiKeys
|
|
@@ -2157,11 +2069,3 @@ export const RfqRespondStatusEnum = {
|
|
|
2157
2069
|
NotInterested: 'not_interested'
|
|
2158
2070
|
} as const;
|
|
2159
2071
|
export type RfqRespondStatusEnum = typeof RfqRespondStatusEnum[keyof typeof RfqRespondStatusEnum];
|
|
2160
|
-
/**
|
|
2161
|
-
* @export
|
|
2162
|
-
*/
|
|
2163
|
-
export const RfqUpdateStatusEnum = {
|
|
2164
|
-
OrderCreated: 'order_created',
|
|
2165
|
-
Closed: 'closed'
|
|
2166
|
-
} as const;
|
|
2167
|
-
export type RfqUpdateStatusEnum = typeof RfqUpdateStatusEnum[keyof typeof RfqUpdateStatusEnum];
|
package/models/AccountAsset.ts
CHANGED
|
@@ -43,8 +43,31 @@ export interface AccountAsset {
|
|
|
43
43
|
* @memberof AccountAsset
|
|
44
44
|
*/
|
|
45
45
|
locked_balance: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof AccountAsset
|
|
50
|
+
*/
|
|
51
|
+
margin_mode: AccountAssetMarginModeEnum;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof AccountAsset
|
|
56
|
+
*/
|
|
57
|
+
margin_balance: string;
|
|
46
58
|
}
|
|
47
59
|
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @export
|
|
63
|
+
*/
|
|
64
|
+
export const AccountAssetMarginModeEnum = {
|
|
65
|
+
Enabled: 'enabled',
|
|
66
|
+
Disabled: 'disabled'
|
|
67
|
+
} as const;
|
|
68
|
+
export type AccountAssetMarginModeEnum = typeof AccountAssetMarginModeEnum[keyof typeof AccountAssetMarginModeEnum];
|
|
69
|
+
|
|
70
|
+
|
|
48
71
|
/**
|
|
49
72
|
* Check if a given object implements the AccountAsset interface.
|
|
50
73
|
*/
|
|
@@ -53,6 +76,8 @@ export function instanceOfAccountAsset(value: object): value is AccountAsset {
|
|
|
53
76
|
if (!('asset_id' in value) || value['asset_id'] === undefined) return false;
|
|
54
77
|
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
55
78
|
if (!('locked_balance' in value) || value['locked_balance'] === undefined) return false;
|
|
79
|
+
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
80
|
+
if (!('margin_balance' in value) || value['margin_balance'] === undefined) return false;
|
|
56
81
|
return true;
|
|
57
82
|
}
|
|
58
83
|
|
|
@@ -70,6 +95,8 @@ export function AccountAssetFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
70
95
|
'asset_id': json['asset_id'],
|
|
71
96
|
'balance': json['balance'],
|
|
72
97
|
'locked_balance': json['locked_balance'],
|
|
98
|
+
'margin_mode': json['margin_mode'],
|
|
99
|
+
'margin_balance': json['margin_balance'],
|
|
73
100
|
};
|
|
74
101
|
}
|
|
75
102
|
|
|
@@ -83,6 +110,8 @@ export function AccountAssetToJSON(value?: AccountAsset | null): any {
|
|
|
83
110
|
'asset_id': value['asset_id'],
|
|
84
111
|
'balance': value['balance'],
|
|
85
112
|
'locked_balance': value['locked_balance'],
|
|
113
|
+
'margin_mode': value['margin_mode'],
|
|
114
|
+
'margin_balance': value['margin_balance'],
|
|
86
115
|
};
|
|
87
116
|
}
|
|
88
117
|
|
package/models/Asset.ts
CHANGED
|
@@ -67,12 +67,54 @@ export interface Asset {
|
|
|
67
67
|
* @memberof Asset
|
|
68
68
|
*/
|
|
69
69
|
index_price: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof Asset
|
|
74
|
+
*/
|
|
75
|
+
price_decimals: number;
|
|
70
76
|
/**
|
|
71
77
|
*
|
|
72
78
|
* @type {string}
|
|
73
79
|
* @memberof Asset
|
|
74
80
|
*/
|
|
75
81
|
l1_address: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof Asset
|
|
86
|
+
*/
|
|
87
|
+
loan_to_value: string;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {string}
|
|
91
|
+
* @memberof Asset
|
|
92
|
+
*/
|
|
93
|
+
liquidation_threshold: string;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @memberof Asset
|
|
98
|
+
*/
|
|
99
|
+
liquidation_fee: string;
|
|
100
|
+
/**
|
|
101
|
+
*
|
|
102
|
+
* @type {string}
|
|
103
|
+
* @memberof Asset
|
|
104
|
+
*/
|
|
105
|
+
global_supply_cap: string;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
* @type {string}
|
|
109
|
+
* @memberof Asset
|
|
110
|
+
*/
|
|
111
|
+
user_supply_cap: string;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @type {string}
|
|
115
|
+
* @memberof Asset
|
|
116
|
+
*/
|
|
117
|
+
total_supplied: string;
|
|
76
118
|
}
|
|
77
119
|
|
|
78
120
|
|
|
@@ -98,7 +140,14 @@ export function instanceOfAsset(value: object): value is Asset {
|
|
|
98
140
|
if (!('min_withdrawal_amount' in value) || value['min_withdrawal_amount'] === undefined) return false;
|
|
99
141
|
if (!('margin_mode' in value) || value['margin_mode'] === undefined) return false;
|
|
100
142
|
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
143
|
+
if (!('price_decimals' in value) || value['price_decimals'] === undefined) return false;
|
|
101
144
|
if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
|
|
145
|
+
if (!('loan_to_value' in value) || value['loan_to_value'] === undefined) return false;
|
|
146
|
+
if (!('liquidation_threshold' in value) || value['liquidation_threshold'] === undefined) return false;
|
|
147
|
+
if (!('liquidation_fee' in value) || value['liquidation_fee'] === undefined) return false;
|
|
148
|
+
if (!('global_supply_cap' in value) || value['global_supply_cap'] === undefined) return false;
|
|
149
|
+
if (!('user_supply_cap' in value) || value['user_supply_cap'] === undefined) return false;
|
|
150
|
+
if (!('total_supplied' in value) || value['total_supplied'] === undefined) return false;
|
|
102
151
|
return true;
|
|
103
152
|
}
|
|
104
153
|
|
|
@@ -120,7 +169,14 @@ export function AssetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ass
|
|
|
120
169
|
'min_withdrawal_amount': json['min_withdrawal_amount'],
|
|
121
170
|
'margin_mode': json['margin_mode'],
|
|
122
171
|
'index_price': json['index_price'],
|
|
172
|
+
'price_decimals': json['price_decimals'],
|
|
123
173
|
'l1_address': json['l1_address'],
|
|
174
|
+
'loan_to_value': json['loan_to_value'],
|
|
175
|
+
'liquidation_threshold': json['liquidation_threshold'],
|
|
176
|
+
'liquidation_fee': json['liquidation_fee'],
|
|
177
|
+
'global_supply_cap': json['global_supply_cap'],
|
|
178
|
+
'user_supply_cap': json['user_supply_cap'],
|
|
179
|
+
'total_supplied': json['total_supplied'],
|
|
124
180
|
};
|
|
125
181
|
}
|
|
126
182
|
|
|
@@ -138,7 +194,14 @@ export function AssetToJSON(value?: Asset | null): any {
|
|
|
138
194
|
'min_withdrawal_amount': value['min_withdrawal_amount'],
|
|
139
195
|
'margin_mode': value['margin_mode'],
|
|
140
196
|
'index_price': value['index_price'],
|
|
197
|
+
'price_decimals': value['price_decimals'],
|
|
141
198
|
'l1_address': value['l1_address'],
|
|
199
|
+
'loan_to_value': value['loan_to_value'],
|
|
200
|
+
'liquidation_threshold': value['liquidation_threshold'],
|
|
201
|
+
'liquidation_fee': value['liquidation_fee'],
|
|
202
|
+
'global_supply_cap': value['global_supply_cap'],
|
|
203
|
+
'user_supply_cap': value['user_supply_cap'],
|
|
204
|
+
'total_supplied': value['total_supplied'],
|
|
142
205
|
};
|
|
143
206
|
}
|
|
144
207
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document:
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AssetStats
|
|
20
|
+
*/
|
|
21
|
+
export interface AssetStats {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof AssetStats
|
|
26
|
+
*/
|
|
27
|
+
asset_id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AssetStats
|
|
32
|
+
*/
|
|
33
|
+
index_price: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AssetStats interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAssetStats(value: object): value is AssetStats {
|
|
40
|
+
if (!('asset_id' in value) || value['asset_id'] === undefined) return false;
|
|
41
|
+
if (!('index_price' in value) || value['index_price'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AssetStatsFromJSON(json: any): AssetStats {
|
|
46
|
+
return AssetStatsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AssetStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssetStats {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'asset_id': json['asset_id'],
|
|
56
|
+
'index_price': json['index_price'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AssetStatsToJSON(value?: AssetStats | null): any {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'asset_id': value['asset_id'],
|
|
67
|
+
'index_price': value['index_price'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
package/models/MarketConfig.ts
CHANGED
|
@@ -61,12 +61,6 @@ export interface MarketConfig {
|
|
|
61
61
|
* @memberof MarketConfig
|
|
62
62
|
*/
|
|
63
63
|
hidden?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
* @memberof MarketConfig
|
|
68
|
-
*/
|
|
69
|
-
rfq_enabled: boolean;
|
|
70
64
|
}
|
|
71
65
|
|
|
72
66
|
/**
|
|
@@ -78,7 +72,6 @@ export function instanceOfMarketConfig(value: object): value is MarketConfig {
|
|
|
78
72
|
if (!('liquidation_mode' in value) || value['liquidation_mode'] === undefined) return false;
|
|
79
73
|
if (!('force_reduce_only' in value) || value['force_reduce_only'] === undefined) return false;
|
|
80
74
|
if (!('trading_hours' in value) || value['trading_hours'] === undefined) return false;
|
|
81
|
-
if (!('rfq_enabled' in value) || value['rfq_enabled'] === undefined) return false;
|
|
82
75
|
return true;
|
|
83
76
|
}
|
|
84
77
|
|
|
@@ -99,7 +92,6 @@ export function MarketConfigFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
99
92
|
'trading_hours': json['trading_hours'],
|
|
100
93
|
'funding_fee_discounts_enabled': json['funding_fee_discounts_enabled'] == null ? undefined : json['funding_fee_discounts_enabled'],
|
|
101
94
|
'hidden': json['hidden'] == null ? undefined : json['hidden'],
|
|
102
|
-
'rfq_enabled': json['rfq_enabled'],
|
|
103
95
|
};
|
|
104
96
|
}
|
|
105
97
|
|
|
@@ -116,7 +108,6 @@ export function MarketConfigToJSON(value?: MarketConfig | null): any {
|
|
|
116
108
|
'trading_hours': value['trading_hours'],
|
|
117
109
|
'funding_fee_discounts_enabled': value['funding_fee_discounts_enabled'],
|
|
118
110
|
'hidden': value['hidden'],
|
|
119
|
-
'rfq_enabled': value['rfq_enabled'],
|
|
120
111
|
};
|
|
121
112
|
}
|
|
122
113
|
|
package/models/RFQEntry.ts
CHANGED
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
RFQResponseEntryFromJSONTyped,
|
|
20
20
|
RFQResponseEntryToJSON,
|
|
21
21
|
} from './RFQResponseEntry';
|
|
22
|
-
import type { RFQMetadata } from './RFQMetadata';
|
|
23
|
-
import {
|
|
24
|
-
RFQMetadataFromJSON,
|
|
25
|
-
RFQMetadataFromJSONTyped,
|
|
26
|
-
RFQMetadataToJSON,
|
|
27
|
-
} from './RFQMetadata';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
*
|
|
@@ -68,12 +62,6 @@ export interface RFQEntry {
|
|
|
68
62
|
* @memberof RFQEntry
|
|
69
63
|
*/
|
|
70
64
|
status: string;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @type {RFQMetadata}
|
|
74
|
-
* @memberof RFQEntry
|
|
75
|
-
*/
|
|
76
|
-
metadata: RFQMetadata;
|
|
77
65
|
/**
|
|
78
66
|
*
|
|
79
67
|
* @type {Array<RFQResponseEntry>}
|
|
@@ -104,7 +92,6 @@ export function instanceOfRFQEntry(value: object): value is RFQEntry {
|
|
|
104
92
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
105
93
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
106
94
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
107
|
-
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
108
95
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
109
96
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
110
97
|
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
@@ -127,7 +114,6 @@ export function RFQEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
127
114
|
'direction': json['direction'],
|
|
128
115
|
'base_amount': json['base_amount'],
|
|
129
116
|
'status': json['status'],
|
|
130
|
-
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
131
117
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
132
118
|
'created_at': json['created_at'],
|
|
133
119
|
'updated_at': json['updated_at'],
|
|
@@ -146,7 +132,6 @@ export function RFQEntryToJSON(value?: RFQEntry | null): any {
|
|
|
146
132
|
'direction': value['direction'],
|
|
147
133
|
'base_amount': value['base_amount'],
|
|
148
134
|
'status': value['status'],
|
|
149
|
-
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
150
135
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
|
151
136
|
'created_at': value['created_at'],
|
|
152
137
|
'updated_at': value['updated_at'],
|
|
@@ -30,7 +30,7 @@ export interface RFQResponseEntry {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof RFQResponseEntry
|
|
32
32
|
*/
|
|
33
|
-
status:
|
|
33
|
+
status: string;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {number}
|
|
@@ -45,18 +45,6 @@ export interface RFQResponseEntry {
|
|
|
45
45
|
updated_at: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @export
|
|
51
|
-
*/
|
|
52
|
-
export const RFQResponseEntryStatusEnum = {
|
|
53
|
-
Acknowledged: 'acknowledged',
|
|
54
|
-
LiquidityProvided: 'liquidity_provided',
|
|
55
|
-
NotInterested: 'not_interested'
|
|
56
|
-
} as const;
|
|
57
|
-
export type RFQResponseEntryStatusEnum = typeof RFQResponseEntryStatusEnum[keyof typeof RFQResponseEntryStatusEnum];
|
|
58
|
-
|
|
59
|
-
|
|
60
48
|
/**
|
|
61
49
|
* Check if a given object implements the RFQResponseEntry interface.
|
|
62
50
|
*/
|
package/models/RespCreateRFQ.ts
CHANGED
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
RFQResponseEntryFromJSONTyped,
|
|
20
20
|
RFQResponseEntryToJSON,
|
|
21
21
|
} from './RFQResponseEntry';
|
|
22
|
-
import type { RFQMetadata } from './RFQMetadata';
|
|
23
|
-
import {
|
|
24
|
-
RFQMetadataFromJSON,
|
|
25
|
-
RFQMetadataFromJSONTyped,
|
|
26
|
-
RFQMetadataToJSON,
|
|
27
|
-
} from './RFQMetadata';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
*
|
|
@@ -80,12 +74,6 @@ export interface RespCreateRFQ {
|
|
|
80
74
|
* @memberof RespCreateRFQ
|
|
81
75
|
*/
|
|
82
76
|
status: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {RFQMetadata}
|
|
86
|
-
* @memberof RespCreateRFQ
|
|
87
|
-
*/
|
|
88
|
-
metadata: RFQMetadata;
|
|
89
77
|
/**
|
|
90
78
|
*
|
|
91
79
|
* @type {Array<RFQResponseEntry>}
|
|
@@ -117,7 +105,6 @@ export function instanceOfRespCreateRFQ(value: object): value is RespCreateRFQ {
|
|
|
117
105
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
106
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
119
107
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
|
-
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
108
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
122
109
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
123
110
|
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
@@ -142,7 +129,6 @@ export function RespCreateRFQFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
142
129
|
'direction': json['direction'],
|
|
143
130
|
'base_amount': json['base_amount'],
|
|
144
131
|
'status': json['status'],
|
|
145
|
-
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
132
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
147
133
|
'created_at': json['created_at'],
|
|
148
134
|
'updated_at': json['updated_at'],
|
|
@@ -163,7 +149,6 @@ export function RespCreateRFQToJSON(value?: RespCreateRFQ | null): any {
|
|
|
163
149
|
'direction': value['direction'],
|
|
164
150
|
'base_amount': value['base_amount'],
|
|
165
151
|
'status': value['status'],
|
|
166
|
-
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
152
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
|
168
153
|
'created_at': value['created_at'],
|
|
169
154
|
'updated_at': value['updated_at'],
|
package/models/RespGetRFQ.ts
CHANGED
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
RFQResponseEntryFromJSONTyped,
|
|
20
20
|
RFQResponseEntryToJSON,
|
|
21
21
|
} from './RFQResponseEntry';
|
|
22
|
-
import type { RFQMetadata } from './RFQMetadata';
|
|
23
|
-
import {
|
|
24
|
-
RFQMetadataFromJSON,
|
|
25
|
-
RFQMetadataFromJSONTyped,
|
|
26
|
-
RFQMetadataToJSON,
|
|
27
|
-
} from './RFQMetadata';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
*
|
|
@@ -80,12 +74,6 @@ export interface RespGetRFQ {
|
|
|
80
74
|
* @memberof RespGetRFQ
|
|
81
75
|
*/
|
|
82
76
|
status: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {RFQMetadata}
|
|
86
|
-
* @memberof RespGetRFQ
|
|
87
|
-
*/
|
|
88
|
-
metadata: RFQMetadata;
|
|
89
77
|
/**
|
|
90
78
|
*
|
|
91
79
|
* @type {Array<RFQResponseEntry>}
|
|
@@ -117,7 +105,6 @@ export function instanceOfRespGetRFQ(value: object): value is RespGetRFQ {
|
|
|
117
105
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
106
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
119
107
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
|
-
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
108
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
122
109
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
123
110
|
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
@@ -142,7 +129,6 @@ export function RespGetRFQFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
142
129
|
'direction': json['direction'],
|
|
143
130
|
'base_amount': json['base_amount'],
|
|
144
131
|
'status': json['status'],
|
|
145
|
-
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
132
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
147
133
|
'created_at': json['created_at'],
|
|
148
134
|
'updated_at': json['updated_at'],
|
|
@@ -163,7 +149,6 @@ export function RespGetRFQToJSON(value?: RespGetRFQ | null): any {
|
|
|
163
149
|
'direction': value['direction'],
|
|
164
150
|
'base_amount': value['base_amount'],
|
|
165
151
|
'status': value['status'],
|
|
166
|
-
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
152
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
|
168
153
|
'created_at': value['created_at'],
|
|
169
154
|
'updated_at': value['updated_at'],
|
|
@@ -19,12 +19,6 @@ import {
|
|
|
19
19
|
RFQResponseEntryFromJSONTyped,
|
|
20
20
|
RFQResponseEntryToJSON,
|
|
21
21
|
} from './RFQResponseEntry';
|
|
22
|
-
import type { RFQMetadata } from './RFQMetadata';
|
|
23
|
-
import {
|
|
24
|
-
RFQMetadataFromJSON,
|
|
25
|
-
RFQMetadataFromJSONTyped,
|
|
26
|
-
RFQMetadataToJSON,
|
|
27
|
-
} from './RFQMetadata';
|
|
28
22
|
|
|
29
23
|
/**
|
|
30
24
|
*
|
|
@@ -80,12 +74,6 @@ export interface RespRespondToRFQ {
|
|
|
80
74
|
* @memberof RespRespondToRFQ
|
|
81
75
|
*/
|
|
82
76
|
status: string;
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @type {RFQMetadata}
|
|
86
|
-
* @memberof RespRespondToRFQ
|
|
87
|
-
*/
|
|
88
|
-
metadata: RFQMetadata;
|
|
89
77
|
/**
|
|
90
78
|
*
|
|
91
79
|
* @type {Array<RFQResponseEntry>}
|
|
@@ -117,7 +105,6 @@ export function instanceOfRespRespondToRFQ(value: object): value is RespRespondT
|
|
|
117
105
|
if (!('direction' in value) || value['direction'] === undefined) return false;
|
|
118
106
|
if (!('base_amount' in value) || value['base_amount'] === undefined) return false;
|
|
119
107
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
120
|
-
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
121
108
|
if (!('responses' in value) || value['responses'] === undefined) return false;
|
|
122
109
|
if (!('created_at' in value) || value['created_at'] === undefined) return false;
|
|
123
110
|
if (!('updated_at' in value) || value['updated_at'] === undefined) return false;
|
|
@@ -142,7 +129,6 @@ export function RespRespondToRFQFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
142
129
|
'direction': json['direction'],
|
|
143
130
|
'base_amount': json['base_amount'],
|
|
144
131
|
'status': json['status'],
|
|
145
|
-
'metadata': RFQMetadataFromJSON(json['metadata']),
|
|
146
132
|
'responses': ((json['responses'] as Array<any>).map(RFQResponseEntryFromJSON)),
|
|
147
133
|
'created_at': json['created_at'],
|
|
148
134
|
'updated_at': json['updated_at'],
|
|
@@ -163,7 +149,6 @@ export function RespRespondToRFQToJSON(value?: RespRespondToRFQ | null): any {
|
|
|
163
149
|
'direction': value['direction'],
|
|
164
150
|
'base_amount': value['base_amount'],
|
|
165
151
|
'status': value['status'],
|
|
166
|
-
'metadata': RFQMetadataToJSON(value['metadata']),
|
|
167
152
|
'responses': ((value['responses'] as Array<any>).map(RFQResponseEntryToJSON)),
|
|
168
153
|
'created_at': value['created_at'],
|
|
169
154
|
'updated_at': value['updated_at'],
|
package/models/index.ts
CHANGED
|
@@ -21,6 +21,7 @@ export * from './ApiToken';
|
|
|
21
21
|
export * from './ApprovedIntegrator';
|
|
22
22
|
export * from './Asset';
|
|
23
23
|
export * from './AssetDetails';
|
|
24
|
+
export * from './AssetStats';
|
|
24
25
|
export * from './Auth';
|
|
25
26
|
export * from './Block';
|
|
26
27
|
export * from './Blocks';
|
|
@@ -91,7 +92,6 @@ export * from './PublicPoolMetadata';
|
|
|
91
92
|
export * from './PublicPoolShare';
|
|
92
93
|
export * from './PushNotifDeliveryResult';
|
|
93
94
|
export * from './RFQEntry';
|
|
94
|
-
export * from './RFQMetadata';
|
|
95
95
|
export * from './RFQResponseEntry';
|
|
96
96
|
export * from './Referral';
|
|
97
97
|
export * from './ReferralCode';
|
|
@@ -175,7 +175,6 @@ export * from './RespSendTx';
|
|
|
175
175
|
export * from './RespSendTxBatch';
|
|
176
176
|
export * from './RespSetMakerOnlyApiKeys';
|
|
177
177
|
export * from './RespUpdateKickback';
|
|
178
|
-
export * from './RespUpdateRFQ';
|
|
179
178
|
export * from './RespUpdateReferralCode';
|
|
180
179
|
export * from './RespWithdrawalDelay';
|
|
181
180
|
export * from './ResultCode';
|
package/openapi.json
CHANGED
|
@@ -647,8 +647,7 @@
|
|
|
647
647
|
"in": "query",
|
|
648
648
|
"required": false,
|
|
649
649
|
"type": "integer",
|
|
650
|
-
"format": "int16"
|
|
651
|
-
"default": "0"
|
|
650
|
+
"format": "int16"
|
|
652
651
|
}
|
|
653
652
|
],
|
|
654
653
|
"tags": [
|
|
@@ -3629,49 +3628,6 @@
|
|
|
3629
3628
|
"description": "Respond to RFQ"
|
|
3630
3629
|
}
|
|
3631
3630
|
},
|
|
3632
|
-
"/api/v1/rfq/update": {
|
|
3633
|
-
"post": {
|
|
3634
|
-
"summary": "rfq_update",
|
|
3635
|
-
"operationId": "rfq_update",
|
|
3636
|
-
"responses": {
|
|
3637
|
-
"200": {
|
|
3638
|
-
"description": "A successful response.",
|
|
3639
|
-
"schema": {
|
|
3640
|
-
"$ref": "#/definitions/RespUpdateRFQ"
|
|
3641
|
-
}
|
|
3642
|
-
},
|
|
3643
|
-
"400": {
|
|
3644
|
-
"description": "Bad request",
|
|
3645
|
-
"schema": {
|
|
3646
|
-
"$ref": "#/definitions/ResultCode"
|
|
3647
|
-
}
|
|
3648
|
-
}
|
|
3649
|
-
},
|
|
3650
|
-
"parameters": [
|
|
3651
|
-
{
|
|
3652
|
-
"name": "authorization",
|
|
3653
|
-
"in": "header",
|
|
3654
|
-
"required": false,
|
|
3655
|
-
"type": "string"
|
|
3656
|
-
},
|
|
3657
|
-
{
|
|
3658
|
-
"name": "body",
|
|
3659
|
-
"in": "body",
|
|
3660
|
-
"required": true,
|
|
3661
|
-
"schema": {
|
|
3662
|
-
"$ref": "#/definitions/ReqUpdateRFQ"
|
|
3663
|
-
}
|
|
3664
|
-
}
|
|
3665
|
-
],
|
|
3666
|
-
"tags": [
|
|
3667
|
-
"account"
|
|
3668
|
-
],
|
|
3669
|
-
"consumes": [
|
|
3670
|
-
"multipart/form-data"
|
|
3671
|
-
],
|
|
3672
|
-
"description": "Update RFQ status"
|
|
3673
|
-
}
|
|
3674
|
-
},
|
|
3675
3631
|
"/api/v1/sendTx": {
|
|
3676
3632
|
"post": {
|
|
3677
3633
|
"summary": "sendTx",
|
|
@@ -4663,6 +4619,18 @@
|
|
|
4663
4619
|
"locked_balance": {
|
|
4664
4620
|
"type": "string",
|
|
4665
4621
|
"example": "1000"
|
|
4622
|
+
},
|
|
4623
|
+
"margin_mode": {
|
|
4624
|
+
"type": "string",
|
|
4625
|
+
"example": "enabled",
|
|
4626
|
+
"enum": [
|
|
4627
|
+
"enabled",
|
|
4628
|
+
"disabled"
|
|
4629
|
+
]
|
|
4630
|
+
},
|
|
4631
|
+
"margin_balance": {
|
|
4632
|
+
"type": "string",
|
|
4633
|
+
"example": "1000"
|
|
4666
4634
|
}
|
|
4667
4635
|
},
|
|
4668
4636
|
"title": "AccountAsset",
|
|
@@ -4670,7 +4638,9 @@
|
|
|
4670
4638
|
"symbol",
|
|
4671
4639
|
"asset_id",
|
|
4672
4640
|
"balance",
|
|
4673
|
-
"locked_balance"
|
|
4641
|
+
"locked_balance",
|
|
4642
|
+
"margin_mode",
|
|
4643
|
+
"margin_balance"
|
|
4674
4644
|
]
|
|
4675
4645
|
},
|
|
4676
4646
|
"AccountLimits": {
|
|
@@ -5419,9 +5389,38 @@
|
|
|
5419
5389
|
"type": "string",
|
|
5420
5390
|
"example": "3024.66"
|
|
5421
5391
|
},
|
|
5392
|
+
"price_decimals": {
|
|
5393
|
+
"type": "integer",
|
|
5394
|
+
"format": "uint8",
|
|
5395
|
+
"example": "4"
|
|
5396
|
+
},
|
|
5422
5397
|
"l1_address": {
|
|
5423
5398
|
"type": "string",
|
|
5424
5399
|
"example": "0x0000000000000000000000000000000000000000"
|
|
5400
|
+
},
|
|
5401
|
+
"loan_to_value": {
|
|
5402
|
+
"type": "string",
|
|
5403
|
+
"example": "0.5"
|
|
5404
|
+
},
|
|
5405
|
+
"liquidation_threshold": {
|
|
5406
|
+
"type": "string",
|
|
5407
|
+
"example": "0.8"
|
|
5408
|
+
},
|
|
5409
|
+
"liquidation_fee": {
|
|
5410
|
+
"type": "string",
|
|
5411
|
+
"example": "0.01"
|
|
5412
|
+
},
|
|
5413
|
+
"global_supply_cap": {
|
|
5414
|
+
"type": "string",
|
|
5415
|
+
"example": "1000000"
|
|
5416
|
+
},
|
|
5417
|
+
"user_supply_cap": {
|
|
5418
|
+
"type": "string",
|
|
5419
|
+
"example": "1000"
|
|
5420
|
+
},
|
|
5421
|
+
"total_supplied": {
|
|
5422
|
+
"type": "string",
|
|
5423
|
+
"example": "100"
|
|
5425
5424
|
}
|
|
5426
5425
|
},
|
|
5427
5426
|
"title": "Asset",
|
|
@@ -5434,7 +5433,14 @@
|
|
|
5434
5433
|
"min_withdrawal_amount",
|
|
5435
5434
|
"margin_mode",
|
|
5436
5435
|
"index_price",
|
|
5437
|
-
"
|
|
5436
|
+
"price_decimals",
|
|
5437
|
+
"l1_address",
|
|
5438
|
+
"loan_to_value",
|
|
5439
|
+
"liquidation_threshold",
|
|
5440
|
+
"liquidation_fee",
|
|
5441
|
+
"global_supply_cap",
|
|
5442
|
+
"user_supply_cap",
|
|
5443
|
+
"total_supplied"
|
|
5438
5444
|
]
|
|
5439
5445
|
},
|
|
5440
5446
|
"AssetDetails": {
|
|
@@ -5461,6 +5467,25 @@
|
|
|
5461
5467
|
"asset_details"
|
|
5462
5468
|
]
|
|
5463
5469
|
},
|
|
5470
|
+
"AssetStats": {
|
|
5471
|
+
"type": "object",
|
|
5472
|
+
"properties": {
|
|
5473
|
+
"asset_id": {
|
|
5474
|
+
"type": "integer",
|
|
5475
|
+
"format": "int16",
|
|
5476
|
+
"example": "1"
|
|
5477
|
+
},
|
|
5478
|
+
"index_price": {
|
|
5479
|
+
"type": "string",
|
|
5480
|
+
"example": "3024.66"
|
|
5481
|
+
}
|
|
5482
|
+
},
|
|
5483
|
+
"title": "AssetStats",
|
|
5484
|
+
"required": [
|
|
5485
|
+
"asset_id",
|
|
5486
|
+
"index_price"
|
|
5487
|
+
]
|
|
5488
|
+
},
|
|
5464
5489
|
"Auth": {
|
|
5465
5490
|
"type": "object",
|
|
5466
5491
|
"properties": {
|
|
@@ -7475,10 +7500,6 @@
|
|
|
7475
7500
|
"hidden": {
|
|
7476
7501
|
"type": "boolean",
|
|
7477
7502
|
"format": "boolean"
|
|
7478
|
-
},
|
|
7479
|
-
"rfq_enabled": {
|
|
7480
|
-
"type": "boolean",
|
|
7481
|
-
"format": "boolean"
|
|
7482
7503
|
}
|
|
7483
7504
|
},
|
|
7484
7505
|
"title": "MarketConfig",
|
|
@@ -7487,8 +7508,7 @@
|
|
|
7487
7508
|
"insurance_fund_account_index",
|
|
7488
7509
|
"liquidation_mode",
|
|
7489
7510
|
"force_reduce_only",
|
|
7490
|
-
"trading_hours"
|
|
7491
|
-
"rfq_enabled"
|
|
7511
|
+
"trading_hours"
|
|
7492
7512
|
]
|
|
7493
7513
|
},
|
|
7494
7514
|
"NextNonce": {
|
|
@@ -8917,9 +8937,6 @@
|
|
|
8917
8937
|
"status": {
|
|
8918
8938
|
"type": "string"
|
|
8919
8939
|
},
|
|
8920
|
-
"metadata": {
|
|
8921
|
-
"$ref": "#/definitions/RFQMetadata"
|
|
8922
|
-
},
|
|
8923
8940
|
"responses": {
|
|
8924
8941
|
"type": "array",
|
|
8925
8942
|
"items": {
|
|
@@ -8949,32 +8966,11 @@
|
|
|
8949
8966
|
"direction",
|
|
8950
8967
|
"base_amount",
|
|
8951
8968
|
"status",
|
|
8952
|
-
"metadata",
|
|
8953
8969
|
"responses",
|
|
8954
8970
|
"created_at",
|
|
8955
8971
|
"updated_at"
|
|
8956
8972
|
]
|
|
8957
8973
|
},
|
|
8958
|
-
"RFQMetadata": {
|
|
8959
|
-
"type": "object",
|
|
8960
|
-
"properties": {
|
|
8961
|
-
"requested_est_price": {
|
|
8962
|
-
"type": "string"
|
|
8963
|
-
},
|
|
8964
|
-
"requested_max_slippage": {
|
|
8965
|
-
"type": "string"
|
|
8966
|
-
},
|
|
8967
|
-
"requested_slippage": {
|
|
8968
|
-
"type": "string"
|
|
8969
|
-
}
|
|
8970
|
-
},
|
|
8971
|
-
"title": "RFQMetadata",
|
|
8972
|
-
"required": [
|
|
8973
|
-
"requested_est_price",
|
|
8974
|
-
"requested_max_slippage",
|
|
8975
|
-
"requested_slippage"
|
|
8976
|
-
]
|
|
8977
|
-
},
|
|
8978
8974
|
"RFQResponseEntry": {
|
|
8979
8975
|
"type": "object",
|
|
8980
8976
|
"properties": {
|
|
@@ -8983,12 +8979,7 @@
|
|
|
8983
8979
|
"format": "int64"
|
|
8984
8980
|
},
|
|
8985
8981
|
"status": {
|
|
8986
|
-
"type": "string"
|
|
8987
|
-
"enum": [
|
|
8988
|
-
"acknowledged",
|
|
8989
|
-
"liquidity_provided",
|
|
8990
|
-
"not_interested"
|
|
8991
|
-
]
|
|
8982
|
+
"type": "string"
|
|
8992
8983
|
},
|
|
8993
8984
|
"responded_at": {
|
|
8994
8985
|
"type": "integer",
|
|
@@ -9259,9 +9250,6 @@
|
|
|
9259
9250
|
"0",
|
|
9260
9251
|
"1"
|
|
9261
9252
|
]
|
|
9262
|
-
},
|
|
9263
|
-
"metadata": {
|
|
9264
|
-
"type": "string"
|
|
9265
9253
|
}
|
|
9266
9254
|
},
|
|
9267
9255
|
"title": "ReqCreateRFQ",
|
|
@@ -9680,8 +9668,7 @@
|
|
|
9680
9668
|
"properties": {
|
|
9681
9669
|
"asset_id": {
|
|
9682
9670
|
"type": "integer",
|
|
9683
|
-
"format": "int16"
|
|
9684
|
-
"default": "0"
|
|
9671
|
+
"format": "int16"
|
|
9685
9672
|
}
|
|
9686
9673
|
},
|
|
9687
9674
|
"title": "ReqGetAssetDetails"
|
|
@@ -11034,30 +11021,6 @@
|
|
|
11034
11021
|
"enabled"
|
|
11035
11022
|
]
|
|
11036
11023
|
},
|
|
11037
|
-
"ReqUpdateRFQ": {
|
|
11038
|
-
"type": "object",
|
|
11039
|
-
"properties": {
|
|
11040
|
-
"auth": {
|
|
11041
|
-
"type": "string"
|
|
11042
|
-
},
|
|
11043
|
-
"rfq_id": {
|
|
11044
|
-
"type": "integer",
|
|
11045
|
-
"format": "int64"
|
|
11046
|
-
},
|
|
11047
|
-
"status": {
|
|
11048
|
-
"type": "string",
|
|
11049
|
-
"enum": [
|
|
11050
|
-
"order_created",
|
|
11051
|
-
"closed"
|
|
11052
|
-
]
|
|
11053
|
-
}
|
|
11054
|
-
},
|
|
11055
|
-
"title": "ReqUpdateRFQ",
|
|
11056
|
-
"required": [
|
|
11057
|
-
"rfq_id",
|
|
11058
|
-
"status"
|
|
11059
|
-
]
|
|
11060
|
-
},
|
|
11061
11024
|
"ReqUpdateReferralCode": {
|
|
11062
11025
|
"type": "object",
|
|
11063
11026
|
"properties": {
|
|
@@ -11162,9 +11125,6 @@
|
|
|
11162
11125
|
"status": {
|
|
11163
11126
|
"type": "string"
|
|
11164
11127
|
},
|
|
11165
|
-
"metadata": {
|
|
11166
|
-
"$ref": "#/definitions/RFQMetadata"
|
|
11167
|
-
},
|
|
11168
11128
|
"responses": {
|
|
11169
11129
|
"type": "array",
|
|
11170
11130
|
"items": {
|
|
@@ -11195,7 +11155,6 @@
|
|
|
11195
11155
|
"direction",
|
|
11196
11156
|
"base_amount",
|
|
11197
11157
|
"status",
|
|
11198
|
-
"metadata",
|
|
11199
11158
|
"responses",
|
|
11200
11159
|
"created_at",
|
|
11201
11160
|
"updated_at"
|
|
@@ -11514,9 +11473,6 @@
|
|
|
11514
11473
|
"status": {
|
|
11515
11474
|
"type": "string"
|
|
11516
11475
|
},
|
|
11517
|
-
"metadata": {
|
|
11518
|
-
"$ref": "#/definitions/RFQMetadata"
|
|
11519
|
-
},
|
|
11520
11476
|
"responses": {
|
|
11521
11477
|
"type": "array",
|
|
11522
11478
|
"items": {
|
|
@@ -11547,7 +11503,6 @@
|
|
|
11547
11503
|
"direction",
|
|
11548
11504
|
"base_amount",
|
|
11549
11505
|
"status",
|
|
11550
|
-
"metadata",
|
|
11551
11506
|
"responses",
|
|
11552
11507
|
"created_at",
|
|
11553
11508
|
"updated_at"
|
|
@@ -11691,9 +11646,6 @@
|
|
|
11691
11646
|
"status": {
|
|
11692
11647
|
"type": "string"
|
|
11693
11648
|
},
|
|
11694
|
-
"metadata": {
|
|
11695
|
-
"$ref": "#/definitions/RFQMetadata"
|
|
11696
|
-
},
|
|
11697
11649
|
"responses": {
|
|
11698
11650
|
"type": "array",
|
|
11699
11651
|
"items": {
|
|
@@ -11724,7 +11676,6 @@
|
|
|
11724
11676
|
"direction",
|
|
11725
11677
|
"base_amount",
|
|
11726
11678
|
"status",
|
|
11727
|
-
"metadata",
|
|
11728
11679
|
"responses",
|
|
11729
11680
|
"created_at",
|
|
11730
11681
|
"updated_at"
|
|
@@ -11865,78 +11816,6 @@
|
|
|
11865
11816
|
"success"
|
|
11866
11817
|
]
|
|
11867
11818
|
},
|
|
11868
|
-
"RespUpdateRFQ": {
|
|
11869
|
-
"type": "object",
|
|
11870
|
-
"properties": {
|
|
11871
|
-
"code": {
|
|
11872
|
-
"type": "integer",
|
|
11873
|
-
"format": "int32",
|
|
11874
|
-
"example": "200"
|
|
11875
|
-
},
|
|
11876
|
-
"message": {
|
|
11877
|
-
"type": "string"
|
|
11878
|
-
},
|
|
11879
|
-
"id": {
|
|
11880
|
-
"type": "integer",
|
|
11881
|
-
"format": "int64"
|
|
11882
|
-
},
|
|
11883
|
-
"account_index": {
|
|
11884
|
-
"type": "integer",
|
|
11885
|
-
"format": "int64"
|
|
11886
|
-
},
|
|
11887
|
-
"market_index": {
|
|
11888
|
-
"type": "integer",
|
|
11889
|
-
"format": "int16"
|
|
11890
|
-
},
|
|
11891
|
-
"direction": {
|
|
11892
|
-
"type": "integer",
|
|
11893
|
-
"format": "int16"
|
|
11894
|
-
},
|
|
11895
|
-
"base_amount": {
|
|
11896
|
-
"type": "string"
|
|
11897
|
-
},
|
|
11898
|
-
"status": {
|
|
11899
|
-
"type": "string"
|
|
11900
|
-
},
|
|
11901
|
-
"metadata": {
|
|
11902
|
-
"$ref": "#/definitions/RFQMetadata"
|
|
11903
|
-
},
|
|
11904
|
-
"responses": {
|
|
11905
|
-
"type": "array",
|
|
11906
|
-
"items": {
|
|
11907
|
-
"$ref": "#/definitions/RFQResponseEntry"
|
|
11908
|
-
},
|
|
11909
|
-
"400": {
|
|
11910
|
-
"description": "Bad request",
|
|
11911
|
-
"schema": {
|
|
11912
|
-
"$ref": "#/definitions/ResultCode"
|
|
11913
|
-
}
|
|
11914
|
-
}
|
|
11915
|
-
},
|
|
11916
|
-
"created_at": {
|
|
11917
|
-
"type": "integer",
|
|
11918
|
-
"format": "int64"
|
|
11919
|
-
},
|
|
11920
|
-
"updated_at": {
|
|
11921
|
-
"type": "integer",
|
|
11922
|
-
"format": "int64"
|
|
11923
|
-
}
|
|
11924
|
-
},
|
|
11925
|
-
"title": "RespUpdateRFQ",
|
|
11926
|
-
"required": [
|
|
11927
|
-
"code",
|
|
11928
|
-
"id",
|
|
11929
|
-
"account_index",
|
|
11930
|
-
"market_index",
|
|
11931
|
-
"direction",
|
|
11932
|
-
"base_amount",
|
|
11933
|
-
"status",
|
|
11934
|
-
"metadata",
|
|
11935
|
-
"responses",
|
|
11936
|
-
"created_at",
|
|
11937
|
-
"updated_at"
|
|
11938
|
-
]
|
|
11939
|
-
},
|
|
11940
11819
|
"RespUpdateReferralCode": {
|
|
11941
11820
|
"type": "object",
|
|
11942
11821
|
"properties": {
|