@reyaxyz/api-v2-sdk 0.301.2 → 0.301.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rest/apis/MarketDataApi.js +1 -1
- package/dist/rest/apis/MarketDataApi.js.map +1 -1
- package/dist/rest/apis/OrderEntryApi.js +1 -1
- package/dist/rest/apis/OrderEntryApi.js.map +1 -1
- package/dist/rest/apis/ReferenceDataApi.js +1 -1
- package/dist/rest/apis/ReferenceDataApi.js.map +1 -1
- package/dist/rest/apis/SpecsApi.js +189 -0
- package/dist/rest/apis/SpecsApi.js.map +1 -0
- package/dist/rest/apis/WalletDataApi.js +1 -1
- package/dist/rest/apis/WalletDataApi.js.map +1 -1
- package/dist/rest/apis/index.js +1 -0
- package/dist/rest/apis/index.js.map +1 -1
- package/dist/rest/models/index.js.map +1 -1
- package/dist/rest/runtime.js +1 -1
- package/dist/rest/runtime.js.map +1 -1
- package/dist/types/rest/apis/MarketDataApi.d.ts +1 -1
- package/dist/types/rest/apis/OrderEntryApi.d.ts +1 -1
- package/dist/types/rest/apis/ReferenceDataApi.d.ts +1 -1
- package/dist/types/rest/apis/SpecsApi.d.ts +38 -0
- package/dist/types/rest/apis/SpecsApi.d.ts.map +1 -0
- package/dist/types/rest/apis/WalletDataApi.d.ts +1 -1
- package/dist/types/rest/apis/index.d.ts +1 -0
- package/dist/types/rest/apis/index.d.ts.map +1 -1
- package/dist/types/rest/models/index.d.ts +2 -2
- package/dist/types/rest/models/index.d.ts.map +1 -1
- package/dist/types/rest/runtime.d.ts +1 -1
- package/dist/types/websocket/types.d.ts +2 -2
- package/dist/types/websocket/types.d.ts.map +1 -1
- package/dist/websocket/types.js.map +1 -1
- package/package.json +2 -2
- package/rest/apis/MarketDataApi.ts +1 -1
- package/rest/apis/OrderEntryApi.ts +1 -1
- package/rest/apis/ReferenceDataApi.ts +1 -1
- package/rest/apis/SpecsApi.ts +82 -0
- package/rest/apis/WalletDataApi.ts +1 -1
- package/rest/apis/index.ts +1 -0
- package/rest/models/index.ts +2 -2
- package/rest/runtime.ts +1 -1
- package/websocket/types.ts +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Reya DEX Trading API v2
|
|
5
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
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
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
ServerError,
|
|
19
|
+
} from '../models/index';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export class SpecsApi extends runtime.BaseAPI {
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Returns the complete AsyncAPI specification for WebSocket API in YAML format
|
|
28
|
+
* Get AsyncAPI specification
|
|
29
|
+
*/
|
|
30
|
+
async getAsyncApiSpecRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
31
|
+
const queryParameters: any = {};
|
|
32
|
+
|
|
33
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
34
|
+
|
|
35
|
+
const response = await this.request({
|
|
36
|
+
path: `/asyncapi-spec.yaml`,
|
|
37
|
+
method: 'GET',
|
|
38
|
+
headers: headerParameters,
|
|
39
|
+
query: queryParameters,
|
|
40
|
+
}, initOverrides);
|
|
41
|
+
|
|
42
|
+
return new runtime.BlobApiResponse(response);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Returns the complete AsyncAPI specification for WebSocket API in YAML format
|
|
47
|
+
* Get AsyncAPI specification
|
|
48
|
+
*/
|
|
49
|
+
async getAsyncApiSpec(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
50
|
+
const response = await this.getAsyncApiSpecRaw(initOverrides);
|
|
51
|
+
return await response.value();
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Returns the complete OpenAPI specification for this API in YAML format
|
|
56
|
+
* Get OpenAPI specification
|
|
57
|
+
*/
|
|
58
|
+
async getOpenApiSpecRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Blob>> {
|
|
59
|
+
const queryParameters: any = {};
|
|
60
|
+
|
|
61
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
62
|
+
|
|
63
|
+
const response = await this.request({
|
|
64
|
+
path: `/openapi-spec.yaml`,
|
|
65
|
+
method: 'GET',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
}, initOverrides);
|
|
69
|
+
|
|
70
|
+
return new runtime.BlobApiResponse(response);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Returns the complete OpenAPI specification for this API in YAML format
|
|
75
|
+
* Get OpenAPI specification
|
|
76
|
+
*/
|
|
77
|
+
async getOpenApiSpec(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Blob> {
|
|
78
|
+
const response = await this.getOpenApiSpecRaw(initOverrides);
|
|
79
|
+
return await response.value();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/rest/apis/index.ts
CHANGED
package/rest/models/index.ts
CHANGED
|
@@ -616,7 +616,7 @@ export interface Order {
|
|
|
616
616
|
* @type {string}
|
|
617
617
|
* @memberof Order
|
|
618
618
|
*/
|
|
619
|
-
orderId
|
|
619
|
+
orderId: string;
|
|
620
620
|
/**
|
|
621
621
|
*
|
|
622
622
|
* @type {string}
|
|
@@ -1090,7 +1090,7 @@ export interface Price {
|
|
|
1090
1090
|
* @type {string}
|
|
1091
1091
|
* @memberof Price
|
|
1092
1092
|
*/
|
|
1093
|
-
oraclePrice
|
|
1093
|
+
oraclePrice: string;
|
|
1094
1094
|
/**
|
|
1095
1095
|
* The price currently quoted by the AMM for zero volume, from which trades are priced (equivalent to mid price in an order book); a trade of any size will be move this price up or down depending on the direction.
|
|
1096
1096
|
* @type {string}
|
package/rest/runtime.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Reya DEX Trading API v2
|
|
5
5
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 2.0.
|
|
7
|
+
* The version of the OpenAPI document: 2.0.3
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/websocket/types.ts
CHANGED
|
@@ -69,7 +69,7 @@ export interface Order {
|
|
|
69
69
|
exchangeId: number;
|
|
70
70
|
symbol: string;
|
|
71
71
|
accountId: number;
|
|
72
|
-
orderId
|
|
72
|
+
orderId: string;
|
|
73
73
|
qty?: string;
|
|
74
74
|
execQty?: string;
|
|
75
75
|
side: Side;
|
|
@@ -156,7 +156,7 @@ export interface PositionUpdatePayload {
|
|
|
156
156
|
|
|
157
157
|
export interface Price {
|
|
158
158
|
symbol: string;
|
|
159
|
-
oraclePrice
|
|
159
|
+
oraclePrice: string;
|
|
160
160
|
poolPrice?: string;
|
|
161
161
|
updatedAt: number;
|
|
162
162
|
additionalProperties?: Map<string, any>;
|