zklighter-perps 1.0.346 → 1.0.348
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 +8 -0
- package/apis/OrderApi.ts +144 -0
- package/models/AggregatedTrade.ts +354 -0
- package/models/AggregatedTrades.ts +93 -0
- package/models/BOSideCost.ts +79 -0
- package/models/BOSizeCost.ts +140 -0
- package/models/BOSymbolCosts.ts +77 -0
- package/models/BOVenueCosts.ts +86 -0
- package/models/ReqGetAggregatedTrades.ts +157 -0
- package/models/RespGetBOExecuteStats.ts +95 -0
- package/models/index.ts +8 -0
- package/openapi.json +578 -0
- package/package.json +1 -1
|
@@ -0,0 +1,79 @@
|
|
|
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 BOSideCost
|
|
20
|
+
*/
|
|
21
|
+
export interface BOSideCost {
|
|
22
|
+
/**
|
|
23
|
+
* average price per share, in dollars
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof BOSideCost
|
|
26
|
+
*/
|
|
27
|
+
avg_price: number;
|
|
28
|
+
/**
|
|
29
|
+
* cents per share over the mid (for Down, over 1 - mid)
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof BOSideCost
|
|
32
|
+
*/
|
|
33
|
+
slippage_c: number;
|
|
34
|
+
/**
|
|
35
|
+
* taker fee, cents per share
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof BOSideCost
|
|
38
|
+
*/
|
|
39
|
+
fee_c: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the BOSideCost interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfBOSideCost(value: object): value is BOSideCost {
|
|
46
|
+
if (!('avg_price' in value) || value['avg_price'] === undefined) return false;
|
|
47
|
+
if (!('slippage_c' in value) || value['slippage_c'] === undefined) return false;
|
|
48
|
+
if (!('fee_c' in value) || value['fee_c'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BOSideCostFromJSON(json: any): BOSideCost {
|
|
53
|
+
return BOSideCostFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BOSideCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): BOSideCost {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'avg_price': json['avg_price'],
|
|
63
|
+
'slippage_c': json['slippage_c'],
|
|
64
|
+
'fee_c': json['fee_c'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function BOSideCostToJSON(value?: BOSideCost | null): any {
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
|
|
74
|
+
'avg_price': value['avg_price'],
|
|
75
|
+
'slippage_c': value['slippage_c'],
|
|
76
|
+
'fee_c': value['fee_c'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
@@ -0,0 +1,140 @@
|
|
|
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
|
+
import type { BOSideCost } from './BOSideCost';
|
|
17
|
+
import {
|
|
18
|
+
BOSideCostFromJSON,
|
|
19
|
+
BOSideCostFromJSONTyped,
|
|
20
|
+
BOSideCostToJSON,
|
|
21
|
+
} from './BOSideCost';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BOSizeCost
|
|
27
|
+
*/
|
|
28
|
+
export interface BOSizeCost {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof BOSizeCost
|
|
33
|
+
*/
|
|
34
|
+
size_usd: number;
|
|
35
|
+
/**
|
|
36
|
+
* ok, or not_enough_data: too few samples, show N/A
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BOSizeCost
|
|
39
|
+
*/
|
|
40
|
+
status: string;
|
|
41
|
+
/**
|
|
42
|
+
* 30s samples averaged: every served venue was valid at that moment
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof BOSizeCost
|
|
45
|
+
*/
|
|
46
|
+
samples: number;
|
|
47
|
+
/**
|
|
48
|
+
* share of the venue's in-band samples where the size filled; null without any
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof BOSizeCost
|
|
51
|
+
*/
|
|
52
|
+
fill_rate: number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {BOSideCost}
|
|
56
|
+
* @memberof BOSizeCost
|
|
57
|
+
*/
|
|
58
|
+
up: BOSideCost;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {BOSideCost}
|
|
62
|
+
* @memberof BOSizeCost
|
|
63
|
+
*/
|
|
64
|
+
down: BOSideCost;
|
|
65
|
+
/**
|
|
66
|
+
* cents per share, Up and Down averaged
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof BOSizeCost
|
|
69
|
+
*/
|
|
70
|
+
total_c: number;
|
|
71
|
+
/**
|
|
72
|
+
* % of the price paid, Up and Down averaged
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof BOSizeCost
|
|
75
|
+
*/
|
|
76
|
+
total_pct: number;
|
|
77
|
+
/**
|
|
78
|
+
* size_usd * total_pct / 100
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @memberof BOSizeCost
|
|
81
|
+
*/
|
|
82
|
+
cost_usd: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the BOSizeCost interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfBOSizeCost(value: object): value is BOSizeCost {
|
|
89
|
+
if (!('size_usd' in value) || value['size_usd'] === undefined) return false;
|
|
90
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
91
|
+
if (!('samples' in value) || value['samples'] === undefined) return false;
|
|
92
|
+
if (!('fill_rate' in value) || value['fill_rate'] === undefined) return false;
|
|
93
|
+
if (!('up' in value) || value['up'] === undefined) return false;
|
|
94
|
+
if (!('down' in value) || value['down'] === undefined) return false;
|
|
95
|
+
if (!('total_c' in value) || value['total_c'] === undefined) return false;
|
|
96
|
+
if (!('total_pct' in value) || value['total_pct'] === undefined) return false;
|
|
97
|
+
if (!('cost_usd' in value) || value['cost_usd'] === undefined) return false;
|
|
98
|
+
return true;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function BOSizeCostFromJSON(json: any): BOSizeCost {
|
|
102
|
+
return BOSizeCostFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function BOSizeCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): BOSizeCost {
|
|
106
|
+
if (json == null) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'size_usd': json['size_usd'],
|
|
112
|
+
'status': json['status'],
|
|
113
|
+
'samples': json['samples'],
|
|
114
|
+
'fill_rate': json['fill_rate'],
|
|
115
|
+
'up': BOSideCostFromJSON(json['up']),
|
|
116
|
+
'down': BOSideCostFromJSON(json['down']),
|
|
117
|
+
'total_c': json['total_c'],
|
|
118
|
+
'total_pct': json['total_pct'],
|
|
119
|
+
'cost_usd': json['cost_usd'],
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export function BOSizeCostToJSON(value?: BOSizeCost | null): any {
|
|
124
|
+
if (value == null) {
|
|
125
|
+
return value;
|
|
126
|
+
}
|
|
127
|
+
return {
|
|
128
|
+
|
|
129
|
+
'size_usd': value['size_usd'],
|
|
130
|
+
'status': value['status'],
|
|
131
|
+
'samples': value['samples'],
|
|
132
|
+
'fill_rate': value['fill_rate'],
|
|
133
|
+
'up': BOSideCostToJSON(value['up']),
|
|
134
|
+
'down': BOSideCostToJSON(value['down']),
|
|
135
|
+
'total_c': value['total_c'],
|
|
136
|
+
'total_pct': value['total_pct'],
|
|
137
|
+
'cost_usd': value['cost_usd'],
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
import type { BOVenueCosts } from './BOVenueCosts';
|
|
17
|
+
import {
|
|
18
|
+
BOVenueCostsFromJSON,
|
|
19
|
+
BOVenueCostsFromJSONTyped,
|
|
20
|
+
BOVenueCostsToJSON,
|
|
21
|
+
} from './BOVenueCosts';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BOSymbolCosts
|
|
27
|
+
*/
|
|
28
|
+
export interface BOSymbolCosts {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BOSymbolCosts
|
|
33
|
+
*/
|
|
34
|
+
symbol: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<BOVenueCosts>}
|
|
38
|
+
* @memberof BOSymbolCosts
|
|
39
|
+
*/
|
|
40
|
+
venues: Array<BOVenueCosts>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the BOSymbolCosts interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfBOSymbolCosts(value: object): value is BOSymbolCosts {
|
|
47
|
+
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
48
|
+
if (!('venues' in value) || value['venues'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function BOSymbolCostsFromJSON(json: any): BOSymbolCosts {
|
|
53
|
+
return BOSymbolCostsFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function BOSymbolCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BOSymbolCosts {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'symbol': json['symbol'],
|
|
63
|
+
'venues': ((json['venues'] as Array<any>).map(BOVenueCostsFromJSON)),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function BOSymbolCostsToJSON(value?: BOSymbolCosts | null): any {
|
|
68
|
+
if (value == null) {
|
|
69
|
+
return value;
|
|
70
|
+
}
|
|
71
|
+
return {
|
|
72
|
+
|
|
73
|
+
'symbol': value['symbol'],
|
|
74
|
+
'venues': ((value['venues'] as Array<any>).map(BOVenueCostsToJSON)),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import type { BOSizeCost } from './BOSizeCost';
|
|
17
|
+
import {
|
|
18
|
+
BOSizeCostFromJSON,
|
|
19
|
+
BOSizeCostFromJSONTyped,
|
|
20
|
+
BOSizeCostToJSON,
|
|
21
|
+
} from './BOSizeCost';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface BOVenueCosts
|
|
27
|
+
*/
|
|
28
|
+
export interface BOVenueCosts {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BOVenueCosts
|
|
33
|
+
*/
|
|
34
|
+
venue: string;
|
|
35
|
+
/**
|
|
36
|
+
* start_price, or fixed_threshold (Hyperliquid: not the same contract)
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BOVenueCosts
|
|
39
|
+
*/
|
|
40
|
+
strike_type: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Array<BOSizeCost>}
|
|
44
|
+
* @memberof BOVenueCosts
|
|
45
|
+
*/
|
|
46
|
+
sizes: Array<BOSizeCost>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the BOVenueCosts interface.
|
|
51
|
+
*/
|
|
52
|
+
export function instanceOfBOVenueCosts(value: object): value is BOVenueCosts {
|
|
53
|
+
if (!('venue' in value) || value['venue'] === undefined) return false;
|
|
54
|
+
if (!('strike_type' in value) || value['strike_type'] === undefined) return false;
|
|
55
|
+
if (!('sizes' in value) || value['sizes'] === undefined) return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function BOVenueCostsFromJSON(json: any): BOVenueCosts {
|
|
60
|
+
return BOVenueCostsFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function BOVenueCostsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BOVenueCosts {
|
|
64
|
+
if (json == null) {
|
|
65
|
+
return json;
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'venue': json['venue'],
|
|
70
|
+
'strike_type': json['strike_type'],
|
|
71
|
+
'sizes': ((json['sizes'] as Array<any>).map(BOSizeCostFromJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function BOVenueCostsToJSON(value?: BOVenueCosts | null): any {
|
|
76
|
+
if (value == null) {
|
|
77
|
+
return value;
|
|
78
|
+
}
|
|
79
|
+
return {
|
|
80
|
+
|
|
81
|
+
'venue': value['venue'],
|
|
82
|
+
'strike_type': value['strike_type'],
|
|
83
|
+
'sizes': ((value['sizes'] as Array<any>).map(BOSizeCostToJSON)),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,157 @@
|
|
|
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 ReqGetAggregatedTrades
|
|
20
|
+
*/
|
|
21
|
+
export interface ReqGetAggregatedTrades {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof ReqGetAggregatedTrades
|
|
26
|
+
*/
|
|
27
|
+
account_index: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof ReqGetAggregatedTrades
|
|
32
|
+
*/
|
|
33
|
+
market_id?: number;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof ReqGetAggregatedTrades
|
|
38
|
+
*/
|
|
39
|
+
market_type?: Array<ReqGetAggregatedTradesMarketTypeEnum>;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ReqGetAggregatedTrades
|
|
44
|
+
*/
|
|
45
|
+
order_index_str?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ReqGetAggregatedTrades
|
|
50
|
+
*/
|
|
51
|
+
cursor?: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof ReqGetAggregatedTrades
|
|
56
|
+
*/
|
|
57
|
+
ask_filter?: number;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {string}
|
|
61
|
+
* @memberof ReqGetAggregatedTrades
|
|
62
|
+
*/
|
|
63
|
+
role?: ReqGetAggregatedTradesRoleEnum;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ReqGetAggregatedTrades
|
|
68
|
+
*/
|
|
69
|
+
type?: ReqGetAggregatedTradesTypeEnum;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ReqGetAggregatedTrades
|
|
74
|
+
*/
|
|
75
|
+
limit?: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const ReqGetAggregatedTradesMarketTypeEnum = {
|
|
83
|
+
Spot: 'spot',
|
|
84
|
+
Perps: 'perps',
|
|
85
|
+
Bo: 'bo'
|
|
86
|
+
} as const;
|
|
87
|
+
export type ReqGetAggregatedTradesMarketTypeEnum = typeof ReqGetAggregatedTradesMarketTypeEnum[keyof typeof ReqGetAggregatedTradesMarketTypeEnum];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const ReqGetAggregatedTradesRoleEnum = {
|
|
93
|
+
Maker: 'maker',
|
|
94
|
+
Taker: 'taker'
|
|
95
|
+
} as const;
|
|
96
|
+
export type ReqGetAggregatedTradesRoleEnum = typeof ReqGetAggregatedTradesRoleEnum[keyof typeof ReqGetAggregatedTradesRoleEnum];
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @export
|
|
100
|
+
*/
|
|
101
|
+
export const ReqGetAggregatedTradesTypeEnum = {
|
|
102
|
+
Trade: 'trade',
|
|
103
|
+
Liquidation: 'liquidation',
|
|
104
|
+
Deleverage: 'deleverage',
|
|
105
|
+
MarketSettlement: 'market_settlement'
|
|
106
|
+
} as const;
|
|
107
|
+
export type ReqGetAggregatedTradesTypeEnum = typeof ReqGetAggregatedTradesTypeEnum[keyof typeof ReqGetAggregatedTradesTypeEnum];
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Check if a given object implements the ReqGetAggregatedTrades interface.
|
|
112
|
+
*/
|
|
113
|
+
export function instanceOfReqGetAggregatedTrades(value: object): value is ReqGetAggregatedTrades {
|
|
114
|
+
if (!('account_index' in value) || value['account_index'] === undefined) return false;
|
|
115
|
+
return true;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function ReqGetAggregatedTradesFromJSON(json: any): ReqGetAggregatedTrades {
|
|
119
|
+
return ReqGetAggregatedTradesFromJSONTyped(json, false);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function ReqGetAggregatedTradesFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetAggregatedTrades {
|
|
123
|
+
if (json == null) {
|
|
124
|
+
return json;
|
|
125
|
+
}
|
|
126
|
+
return {
|
|
127
|
+
|
|
128
|
+
'account_index': json['account_index'],
|
|
129
|
+
'market_id': json['market_id'] == null ? undefined : json['market_id'],
|
|
130
|
+
'market_type': json['market_type'] == null ? undefined : json['market_type'],
|
|
131
|
+
'order_index_str': json['order_index_str'] == null ? undefined : json['order_index_str'],
|
|
132
|
+
'cursor': json['cursor'] == null ? undefined : json['cursor'],
|
|
133
|
+
'ask_filter': json['ask_filter'] == null ? undefined : json['ask_filter'],
|
|
134
|
+
'role': json['role'] == null ? undefined : json['role'],
|
|
135
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
136
|
+
'limit': json['limit'] == null ? undefined : json['limit'],
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function ReqGetAggregatedTradesToJSON(value?: ReqGetAggregatedTrades | null): any {
|
|
141
|
+
if (value == null) {
|
|
142
|
+
return value;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'account_index': value['account_index'],
|
|
147
|
+
'market_id': value['market_id'],
|
|
148
|
+
'market_type': value['market_type'],
|
|
149
|
+
'order_index_str': value['order_index_str'],
|
|
150
|
+
'cursor': value['cursor'],
|
|
151
|
+
'ask_filter': value['ask_filter'],
|
|
152
|
+
'role': value['role'],
|
|
153
|
+
'type': value['type'],
|
|
154
|
+
'limit': value['limit'],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
import type { BOSymbolCosts } from './BOSymbolCosts';
|
|
17
|
+
import {
|
|
18
|
+
BOSymbolCostsFromJSON,
|
|
19
|
+
BOSymbolCostsFromJSONTyped,
|
|
20
|
+
BOSymbolCostsToJSON,
|
|
21
|
+
} from './BOSymbolCosts';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface RespGetBOExecuteStats
|
|
27
|
+
*/
|
|
28
|
+
export interface RespGetBOExecuteStats {
|
|
29
|
+
/**
|
|
30
|
+
* start of the first round averaged
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof RespGetBOExecuteStats
|
|
33
|
+
*/
|
|
34
|
+
window_start: number;
|
|
35
|
+
/**
|
|
36
|
+
* end of the last completed round
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof RespGetBOExecuteStats
|
|
39
|
+
*/
|
|
40
|
+
window_end: number;
|
|
41
|
+
/**
|
|
42
|
+
* rounds with data in the window
|
|
43
|
+
* @type {number}
|
|
44
|
+
* @memberof RespGetBOExecuteStats
|
|
45
|
+
*/
|
|
46
|
+
rounds: number;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<BOSymbolCosts>}
|
|
50
|
+
* @memberof RespGetBOExecuteStats
|
|
51
|
+
*/
|
|
52
|
+
symbols: Array<BOSymbolCosts>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the RespGetBOExecuteStats interface.
|
|
57
|
+
*/
|
|
58
|
+
export function instanceOfRespGetBOExecuteStats(value: object): value is RespGetBOExecuteStats {
|
|
59
|
+
if (!('window_start' in value) || value['window_start'] === undefined) return false;
|
|
60
|
+
if (!('window_end' in value) || value['window_end'] === undefined) return false;
|
|
61
|
+
if (!('rounds' in value) || value['rounds'] === undefined) return false;
|
|
62
|
+
if (!('symbols' in value) || value['symbols'] === undefined) return false;
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function RespGetBOExecuteStatsFromJSON(json: any): RespGetBOExecuteStats {
|
|
67
|
+
return RespGetBOExecuteStatsFromJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function RespGetBOExecuteStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): RespGetBOExecuteStats {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'window_start': json['window_start'],
|
|
77
|
+
'window_end': json['window_end'],
|
|
78
|
+
'rounds': json['rounds'],
|
|
79
|
+
'symbols': ((json['symbols'] as Array<any>).map(BOSymbolCostsFromJSON)),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function RespGetBOExecuteStatsToJSON(value?: RespGetBOExecuteStats | null): any {
|
|
84
|
+
if (value == null) {
|
|
85
|
+
return value;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'window_start': value['window_start'],
|
|
90
|
+
'window_end': value['window_end'],
|
|
91
|
+
'rounds': value['rounds'],
|
|
92
|
+
'symbols': ((value['symbols'] as Array<any>).map(BOSymbolCostsToJSON)),
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
|
package/models/index.ts
CHANGED
|
@@ -14,6 +14,8 @@ export * from './AccountPnLV2';
|
|
|
14
14
|
export * from './AccountPosition';
|
|
15
15
|
export * from './AccountStats';
|
|
16
16
|
export * from './AccountTradeStats';
|
|
17
|
+
export * from './AggregatedTrade';
|
|
18
|
+
export * from './AggregatedTrades';
|
|
17
19
|
export * from './AirdropAllocationItem';
|
|
18
20
|
export * from './AirdropAllocations';
|
|
19
21
|
export * from './Alert';
|
|
@@ -30,6 +32,10 @@ export * from './AssetStats';
|
|
|
30
32
|
export * from './AtomicOrder';
|
|
31
33
|
export * from './AtomicOrderLeg';
|
|
32
34
|
export * from './Auth';
|
|
35
|
+
export * from './BOSideCost';
|
|
36
|
+
export * from './BOSizeCost';
|
|
37
|
+
export * from './BOSymbolCosts';
|
|
38
|
+
export * from './BOVenueCosts';
|
|
33
39
|
export * from './BinaryOptionMarketStats';
|
|
34
40
|
export * from './Block';
|
|
35
41
|
export * from './Blocks';
|
|
@@ -169,6 +175,7 @@ export * from './ReqGetAccountOrders';
|
|
|
169
175
|
export * from './ReqGetAccountPnL';
|
|
170
176
|
export * from './ReqGetAccountPnLV2';
|
|
171
177
|
export * from './ReqGetAccountTxs';
|
|
178
|
+
export * from './ReqGetAggregatedTrades';
|
|
172
179
|
export * from './ReqGetAirdropAllocations';
|
|
173
180
|
export * from './ReqGetApiTokens';
|
|
174
181
|
export * from './ReqGetAssetDetails';
|
|
@@ -255,6 +262,7 @@ export * from './RespCreateRFQ';
|
|
|
255
262
|
export * from './RespCreateStrategyHeartbeat';
|
|
256
263
|
export * from './RespGaslessDeposit';
|
|
257
264
|
export * from './RespGetApiTokens';
|
|
265
|
+
export * from './RespGetBOExecuteStats';
|
|
258
266
|
export * from './RespGetBoPnL';
|
|
259
267
|
export * from './RespGetBridgesByL1Addr';
|
|
260
268
|
export * from './RespGetCompetitions';
|