zklighter-perps 1.0.326 → 1.0.328
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 -0
- package/apis/AccountApi.ts +0 -10
- package/apis/EventApi.ts +25 -18
- package/models/BinaryOptionMarketStats.ts +4 -2
- package/models/EventDetail.ts +8 -8
- package/models/EventOrderBookEntry.ts +5 -2
- package/models/OrderBook.ts +5 -2
- package/models/PerpsOrderBookDetail.ts +5 -2
- package/models/ReqGetAccountPnLV2.ts +0 -8
- package/models/ReqGetEvents.ts +3 -3
- package/models/SpotOrderBookDetail.ts +5 -2
- package/models/UpDownPrice.ts +106 -0
- package/models/index.ts +1 -0
- package/openapi.json +80 -46
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/apis/AccountApi.ts
CHANGED
|
@@ -262,8 +262,6 @@ export interface PnlV2Request {
|
|
|
262
262
|
resolution: PnlV2ResolutionEnum;
|
|
263
263
|
start_timestamp: number;
|
|
264
264
|
end_timestamp: number;
|
|
265
|
-
authorization?: string;
|
|
266
|
-
auth?: string;
|
|
267
265
|
}
|
|
268
266
|
|
|
269
267
|
export interface PositionFundingRequest {
|
|
@@ -1671,14 +1669,6 @@ export class AccountApi extends runtime.BaseAPI {
|
|
|
1671
1669
|
|
|
1672
1670
|
const queryParameters: any = {};
|
|
1673
1671
|
|
|
1674
|
-
if (requestParameters['authorization'] != null) {
|
|
1675
|
-
queryParameters['authorization'] = requestParameters['authorization'];
|
|
1676
|
-
}
|
|
1677
|
-
|
|
1678
|
-
if (requestParameters['auth'] != null) {
|
|
1679
|
-
queryParameters['auth'] = requestParameters['auth'];
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
1672
|
if (requestParameters['by'] != null) {
|
|
1683
1673
|
queryParameters['by'] = requestParameters['by'];
|
|
1684
1674
|
}
|
package/apis/EventApi.ts
CHANGED
|
@@ -35,13 +35,13 @@ export interface EventCreateRequest {
|
|
|
35
35
|
account_index: number;
|
|
36
36
|
title: string;
|
|
37
37
|
event_kind: EventCreateEventKindEnum;
|
|
38
|
-
|
|
38
|
+
start_at: number;
|
|
39
|
+
end_at: number;
|
|
39
40
|
authorization?: string;
|
|
40
41
|
auth?: string;
|
|
41
42
|
description?: string;
|
|
42
43
|
tag?: string;
|
|
43
44
|
recurrence_period_seconds?: number;
|
|
44
|
-
occurrence_end_at?: number;
|
|
45
45
|
metadata?: string;
|
|
46
46
|
}
|
|
47
47
|
|
|
@@ -62,8 +62,8 @@ export interface EventUpdateRequest {
|
|
|
62
62
|
tag?: string;
|
|
63
63
|
event_kind?: EventUpdateEventKindEnum;
|
|
64
64
|
recurrence_period_seconds?: number;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
start_at?: number;
|
|
66
|
+
end_at?: number;
|
|
67
67
|
metadata?: string;
|
|
68
68
|
}
|
|
69
69
|
|
|
@@ -113,10 +113,17 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
113
113
|
);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
if (requestParameters['
|
|
116
|
+
if (requestParameters['start_at'] == null) {
|
|
117
117
|
throw new runtime.RequiredError(
|
|
118
|
-
'
|
|
119
|
-
'Required parameter "
|
|
118
|
+
'start_at',
|
|
119
|
+
'Required parameter "start_at" was null or undefined when calling eventCreate().'
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (requestParameters['end_at'] == null) {
|
|
124
|
+
throw new runtime.RequiredError(
|
|
125
|
+
'end_at',
|
|
126
|
+
'Required parameter "end_at" was null or undefined when calling eventCreate().'
|
|
120
127
|
);
|
|
121
128
|
}
|
|
122
129
|
|
|
@@ -170,12 +177,12 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
170
177
|
formParams.append('recurrence_period_seconds', requestParameters['recurrence_period_seconds'] as any);
|
|
171
178
|
}
|
|
172
179
|
|
|
173
|
-
if (requestParameters['
|
|
174
|
-
formParams.append('
|
|
180
|
+
if (requestParameters['start_at'] != null) {
|
|
181
|
+
formParams.append('start_at', requestParameters['start_at'] as any);
|
|
175
182
|
}
|
|
176
183
|
|
|
177
|
-
if (requestParameters['
|
|
178
|
-
formParams.append('
|
|
184
|
+
if (requestParameters['end_at'] != null) {
|
|
185
|
+
formParams.append('end_at', requestParameters['end_at'] as any);
|
|
179
186
|
}
|
|
180
187
|
|
|
181
188
|
if (requestParameters['metadata'] != null) {
|
|
@@ -344,12 +351,12 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
344
351
|
formParams.append('recurrence_period_seconds', requestParameters['recurrence_period_seconds'] as any);
|
|
345
352
|
}
|
|
346
353
|
|
|
347
|
-
if (requestParameters['
|
|
348
|
-
formParams.append('
|
|
354
|
+
if (requestParameters['start_at'] != null) {
|
|
355
|
+
formParams.append('start_at', requestParameters['start_at'] as any);
|
|
349
356
|
}
|
|
350
357
|
|
|
351
|
-
if (requestParameters['
|
|
352
|
-
formParams.append('
|
|
358
|
+
if (requestParameters['end_at'] != null) {
|
|
359
|
+
formParams.append('end_at', requestParameters['end_at'] as any);
|
|
353
360
|
}
|
|
354
361
|
|
|
355
362
|
if (requestParameters['metadata'] != null) {
|
|
@@ -381,7 +388,7 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
381
388
|
}
|
|
382
389
|
|
|
383
390
|
/**
|
|
384
|
-
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
391
|
+
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events.
|
|
385
392
|
* events
|
|
386
393
|
*/
|
|
387
394
|
async eventsRaw(requestParameters: EventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RespGetEvents>> {
|
|
@@ -448,7 +455,7 @@ export class EventApi extends runtime.BaseAPI {
|
|
|
448
455
|
}
|
|
449
456
|
|
|
450
457
|
/**
|
|
451
|
-
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
458
|
+
* Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events.
|
|
452
459
|
* events
|
|
453
460
|
*/
|
|
454
461
|
async events(requestParameters: EventsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RespGetEvents> {
|
|
@@ -487,7 +494,7 @@ export type EventsEventKindEnum = typeof EventsEventKindEnum[keyof typeof Events
|
|
|
487
494
|
*/
|
|
488
495
|
export const EventsSortEnum = {
|
|
489
496
|
Id: 'id',
|
|
490
|
-
|
|
497
|
+
StartAt: 'start_at'
|
|
491
498
|
} as const;
|
|
492
499
|
export type EventsSortEnum = typeof EventsSortEnum[keyof typeof EventsSortEnum];
|
|
493
500
|
/**
|
|
@@ -104,7 +104,7 @@ export interface BinaryOptionMarketStats {
|
|
|
104
104
|
*/
|
|
105
105
|
open_interest: string;
|
|
106
106
|
/**
|
|
107
|
-
* inactive
|
|
107
|
+
* inactive before the trading window opens, waiting-for-settlement once it closes
|
|
108
108
|
* @type {string}
|
|
109
109
|
* @memberof BinaryOptionMarketStats
|
|
110
110
|
*/
|
|
@@ -124,7 +124,9 @@ export interface BinaryOptionMarketStats {
|
|
|
124
124
|
export const BinaryOptionMarketStatsStatusEnum = {
|
|
125
125
|
Inactive: 'inactive',
|
|
126
126
|
Active: 'active',
|
|
127
|
-
|
|
127
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
128
|
+
InSettlement: 'in-settlement',
|
|
129
|
+
Settled: 'settled'
|
|
128
130
|
} as const;
|
|
129
131
|
export type BinaryOptionMarketStatsStatusEnum = typeof BinaryOptionMarketStatsStatusEnum[keyof typeof BinaryOptionMarketStatsStatusEnum];
|
|
130
132
|
|
package/models/EventDetail.ts
CHANGED
|
@@ -79,13 +79,13 @@ export interface EventDetail {
|
|
|
79
79
|
* @type {number}
|
|
80
80
|
* @memberof EventDetail
|
|
81
81
|
*/
|
|
82
|
-
|
|
82
|
+
start_at: number;
|
|
83
83
|
/**
|
|
84
84
|
*
|
|
85
85
|
* @type {number}
|
|
86
86
|
* @memberof EventDetail
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
end_at: number;
|
|
89
89
|
/**
|
|
90
90
|
*
|
|
91
91
|
* @type {{ [key: string]: any; }}
|
|
@@ -129,8 +129,8 @@ export function instanceOfEventDetail(value: object): value is EventDetail {
|
|
|
129
129
|
if (!('tag' in value) || value['tag'] === undefined) return false;
|
|
130
130
|
if (!('event_kind' in value) || value['event_kind'] === undefined) return false;
|
|
131
131
|
if (!('recurrence_period_seconds' in value) || value['recurrence_period_seconds'] === undefined) return false;
|
|
132
|
-
if (!('
|
|
133
|
-
if (!('
|
|
132
|
+
if (!('start_at' in value) || value['start_at'] === undefined) return false;
|
|
133
|
+
if (!('end_at' in value) || value['end_at'] === undefined) return false;
|
|
134
134
|
if (!('metadata' in value) || value['metadata'] === undefined) return false;
|
|
135
135
|
if (!('order_books' in value) || value['order_books'] === undefined) return false;
|
|
136
136
|
if (!('lifetime_quote_token_volume' in value) || value['lifetime_quote_token_volume'] === undefined) return false;
|
|
@@ -155,8 +155,8 @@ export function EventDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
|
|
155
155
|
'tag': json['tag'],
|
|
156
156
|
'event_kind': json['event_kind'],
|
|
157
157
|
'recurrence_period_seconds': json['recurrence_period_seconds'],
|
|
158
|
-
'
|
|
159
|
-
'
|
|
158
|
+
'start_at': json['start_at'],
|
|
159
|
+
'end_at': json['end_at'],
|
|
160
160
|
'metadata': json['metadata'],
|
|
161
161
|
'order_books': ((json['order_books'] as Array<any>).map(EventOrderBookEntryFromJSON)),
|
|
162
162
|
'lifetime_quote_token_volume': json['lifetime_quote_token_volume'],
|
|
@@ -177,8 +177,8 @@ export function EventDetailToJSON(value?: EventDetail | null): any {
|
|
|
177
177
|
'tag': value['tag'],
|
|
178
178
|
'event_kind': value['event_kind'],
|
|
179
179
|
'recurrence_period_seconds': value['recurrence_period_seconds'],
|
|
180
|
-
'
|
|
181
|
-
'
|
|
180
|
+
'start_at': value['start_at'],
|
|
181
|
+
'end_at': value['end_at'],
|
|
182
182
|
'metadata': value['metadata'],
|
|
183
183
|
'order_books': ((value['order_books'] as Array<any>).map(EventOrderBookEntryToJSON)),
|
|
184
184
|
'lifetime_quote_token_volume': value['lifetime_quote_token_volume'],
|
|
@@ -63,7 +63,7 @@ export interface EventOrderBookEntry {
|
|
|
63
63
|
*/
|
|
64
64
|
quote_asset_id: number;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* waiting-for-settlement and settled are binary options only
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof EventOrderBookEntry
|
|
69
69
|
*/
|
|
@@ -242,7 +242,10 @@ export type EventOrderBookEntryMarketTypeEnum = typeof EventOrderBookEntryMarket
|
|
|
242
242
|
*/
|
|
243
243
|
export const EventOrderBookEntryStatusEnum = {
|
|
244
244
|
Inactive: 'inactive',
|
|
245
|
-
Active: 'active'
|
|
245
|
+
Active: 'active',
|
|
246
|
+
InSettlement: 'in-settlement',
|
|
247
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
248
|
+
Settled: 'settled'
|
|
246
249
|
} as const;
|
|
247
250
|
export type EventOrderBookEntryStatusEnum = typeof EventOrderBookEntryStatusEnum[keyof typeof EventOrderBookEntryStatusEnum];
|
|
248
251
|
|
package/models/OrderBook.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface OrderBook {
|
|
|
56
56
|
*/
|
|
57
57
|
quote_asset_id: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* waiting-for-settlement and settled are binary options only
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof OrderBook
|
|
62
62
|
*/
|
|
@@ -217,7 +217,10 @@ export type OrderBookMarketTypeEnum = typeof OrderBookMarketTypeEnum[keyof typeo
|
|
|
217
217
|
*/
|
|
218
218
|
export const OrderBookStatusEnum = {
|
|
219
219
|
Inactive: 'inactive',
|
|
220
|
-
Active: 'active'
|
|
220
|
+
Active: 'active',
|
|
221
|
+
InSettlement: 'in-settlement',
|
|
222
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
223
|
+
Settled: 'settled'
|
|
221
224
|
} as const;
|
|
222
225
|
export type OrderBookStatusEnum = typeof OrderBookStatusEnum[keyof typeof OrderBookStatusEnum];
|
|
223
226
|
|
|
@@ -63,7 +63,7 @@ export interface PerpsOrderBookDetail {
|
|
|
63
63
|
*/
|
|
64
64
|
quote_asset_id: number;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* waiting-for-settlement and settled are binary options only
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof PerpsOrderBookDetail
|
|
69
69
|
*/
|
|
@@ -368,7 +368,10 @@ export type PerpsOrderBookDetailMarketTypeEnum = typeof PerpsOrderBookDetailMark
|
|
|
368
368
|
*/
|
|
369
369
|
export const PerpsOrderBookDetailStatusEnum = {
|
|
370
370
|
Inactive: 'inactive',
|
|
371
|
-
Active: 'active'
|
|
371
|
+
Active: 'active',
|
|
372
|
+
InSettlement: 'in-settlement',
|
|
373
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
374
|
+
Settled: 'settled'
|
|
372
375
|
} as const;
|
|
373
376
|
export type PerpsOrderBookDetailStatusEnum = typeof PerpsOrderBookDetailStatusEnum[keyof typeof PerpsOrderBookDetailStatusEnum];
|
|
374
377
|
|
|
@@ -19,12 +19,6 @@ import { mapValues } from '../runtime';
|
|
|
19
19
|
* @interface ReqGetAccountPnLV2
|
|
20
20
|
*/
|
|
21
21
|
export interface ReqGetAccountPnLV2 {
|
|
22
|
-
/**
|
|
23
|
-
* made optional to support header auth clients
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ReqGetAccountPnLV2
|
|
26
|
-
*/
|
|
27
|
-
auth?: string;
|
|
28
22
|
/**
|
|
29
23
|
*
|
|
30
24
|
* @type {string}
|
|
@@ -98,7 +92,6 @@ export function ReqGetAccountPnLV2FromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
98
92
|
}
|
|
99
93
|
return {
|
|
100
94
|
|
|
101
|
-
'auth': json['auth'] == null ? undefined : json['auth'],
|
|
102
95
|
'by': json['by'],
|
|
103
96
|
'value': json['value'],
|
|
104
97
|
'resolution': json['resolution'],
|
|
@@ -113,7 +106,6 @@ export function ReqGetAccountPnLV2ToJSON(value?: ReqGetAccountPnLV2 | null): any
|
|
|
113
106
|
}
|
|
114
107
|
return {
|
|
115
108
|
|
|
116
|
-
'auth': value['auth'],
|
|
117
109
|
'by': value['by'],
|
|
118
110
|
'value': value['value'],
|
|
119
111
|
'resolution': value['resolution'],
|
package/models/ReqGetEvents.ts
CHANGED
|
@@ -68,13 +68,13 @@ export interface ReqGetEvents {
|
|
|
68
68
|
*/
|
|
69
69
|
event_kind?: ReqGetEventsEventKindEnum;
|
|
70
70
|
/**
|
|
71
|
-
* inclusive
|
|
71
|
+
* inclusive start_at, Unix milliseconds
|
|
72
72
|
* @type {number}
|
|
73
73
|
* @memberof ReqGetEvents
|
|
74
74
|
*/
|
|
75
75
|
start_from?: number;
|
|
76
76
|
/**
|
|
77
|
-
* exclusive
|
|
77
|
+
* exclusive start_at, Unix milliseconds
|
|
78
78
|
* @type {number}
|
|
79
79
|
* @memberof ReqGetEvents
|
|
80
80
|
*/
|
|
@@ -108,7 +108,7 @@ export type ReqGetEventsEventKindEnum = typeof ReqGetEventsEventKindEnum[keyof t
|
|
|
108
108
|
*/
|
|
109
109
|
export const ReqGetEventsSortEnum = {
|
|
110
110
|
Id: 'id',
|
|
111
|
-
|
|
111
|
+
StartAt: 'start_at'
|
|
112
112
|
} as const;
|
|
113
113
|
export type ReqGetEventsSortEnum = typeof ReqGetEventsSortEnum[keyof typeof ReqGetEventsSortEnum];
|
|
114
114
|
|
|
@@ -56,7 +56,7 @@ export interface SpotOrderBookDetail {
|
|
|
56
56
|
*/
|
|
57
57
|
quote_asset_id: number;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* waiting-for-settlement and settled are binary options only
|
|
60
60
|
* @type {string}
|
|
61
61
|
* @memberof SpotOrderBookDetail
|
|
62
62
|
*/
|
|
@@ -277,7 +277,10 @@ export type SpotOrderBookDetailMarketTypeEnum = typeof SpotOrderBookDetailMarket
|
|
|
277
277
|
*/
|
|
278
278
|
export const SpotOrderBookDetailStatusEnum = {
|
|
279
279
|
Inactive: 'inactive',
|
|
280
|
-
Active: 'active'
|
|
280
|
+
Active: 'active',
|
|
281
|
+
InSettlement: 'in-settlement',
|
|
282
|
+
WaitingForSettlement: 'waiting-for-settlement',
|
|
283
|
+
Settled: 'settled'
|
|
281
284
|
} as const;
|
|
282
285
|
export type SpotOrderBookDetailStatusEnum = typeof SpotOrderBookDetailStatusEnum[keyof typeof SpotOrderBookDetailStatusEnum];
|
|
283
286
|
|
|
@@ -0,0 +1,106 @@
|
|
|
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 UpDownPrice
|
|
20
|
+
*/
|
|
21
|
+
export interface UpDownPrice {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpDownPrice
|
|
26
|
+
*/
|
|
27
|
+
Symbol: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof UpDownPrice
|
|
32
|
+
*/
|
|
33
|
+
Duration: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof UpDownPrice
|
|
38
|
+
*/
|
|
39
|
+
Timestamp: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof UpDownPrice
|
|
44
|
+
*/
|
|
45
|
+
Price: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof UpDownPrice
|
|
50
|
+
*/
|
|
51
|
+
Provider: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof UpDownPrice
|
|
56
|
+
*/
|
|
57
|
+
FeedId: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Check if a given object implements the UpDownPrice interface.
|
|
62
|
+
*/
|
|
63
|
+
export function instanceOfUpDownPrice(value: object): value is UpDownPrice {
|
|
64
|
+
if (!('Symbol' in value) || value['Symbol'] === undefined) return false;
|
|
65
|
+
if (!('Duration' in value) || value['Duration'] === undefined) return false;
|
|
66
|
+
if (!('Timestamp' in value) || value['Timestamp'] === undefined) return false;
|
|
67
|
+
if (!('Price' in value) || value['Price'] === undefined) return false;
|
|
68
|
+
if (!('Provider' in value) || value['Provider'] === undefined) return false;
|
|
69
|
+
if (!('FeedId' in value) || value['FeedId'] === undefined) return false;
|
|
70
|
+
return true;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function UpDownPriceFromJSON(json: any): UpDownPrice {
|
|
74
|
+
return UpDownPriceFromJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function UpDownPriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpDownPrice {
|
|
78
|
+
if (json == null) {
|
|
79
|
+
return json;
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'Symbol': json['Symbol'],
|
|
84
|
+
'Duration': json['Duration'],
|
|
85
|
+
'Timestamp': json['Timestamp'],
|
|
86
|
+
'Price': json['Price'],
|
|
87
|
+
'Provider': json['Provider'],
|
|
88
|
+
'FeedId': json['FeedId'],
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function UpDownPriceToJSON(value?: UpDownPrice | null): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'Symbol': value['Symbol'],
|
|
99
|
+
'Duration': value['Duration'],
|
|
100
|
+
'Timestamp': value['Timestamp'],
|
|
101
|
+
'Price': value['Price'],
|
|
102
|
+
'Provider': value['Provider'],
|
|
103
|
+
'FeedId': value['FeedId'],
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/models/index.ts
CHANGED
|
@@ -321,6 +321,7 @@ export * from './TxHash';
|
|
|
321
321
|
export * from './TxHashes';
|
|
322
322
|
export * from './Txs';
|
|
323
323
|
export * from './UpDownCandle';
|
|
324
|
+
export * from './UpDownPrice';
|
|
324
325
|
export * from './UpcomingEarning';
|
|
325
326
|
export * from './UpcomingEarnings';
|
|
326
327
|
export * from './UserReferrals';
|
package/openapi.json
CHANGED
|
@@ -1843,7 +1843,7 @@
|
|
|
1843
1843
|
},
|
|
1844
1844
|
{
|
|
1845
1845
|
"name": "start_from",
|
|
1846
|
-
"description": " inclusive
|
|
1846
|
+
"description": " inclusive start_at, Unix milliseconds",
|
|
1847
1847
|
"in": "query",
|
|
1848
1848
|
"required": false,
|
|
1849
1849
|
"type": "integer",
|
|
@@ -1851,7 +1851,7 @@
|
|
|
1851
1851
|
},
|
|
1852
1852
|
{
|
|
1853
1853
|
"name": "start_before",
|
|
1854
|
-
"description": " exclusive
|
|
1854
|
+
"description": " exclusive start_at, Unix milliseconds",
|
|
1855
1855
|
"in": "query",
|
|
1856
1856
|
"required": false,
|
|
1857
1857
|
"type": "integer",
|
|
@@ -1864,7 +1864,7 @@
|
|
|
1864
1864
|
"type": "string",
|
|
1865
1865
|
"enum": [
|
|
1866
1866
|
"id",
|
|
1867
|
-
"
|
|
1867
|
+
"start_at"
|
|
1868
1868
|
],
|
|
1869
1869
|
"default": "id"
|
|
1870
1870
|
},
|
|
@@ -1886,7 +1886,7 @@
|
|
|
1886
1886
|
"consumes": [
|
|
1887
1887
|
"multipart/form-data"
|
|
1888
1888
|
],
|
|
1889
|
-
"description": "Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id.
|
|
1889
|
+
"description": "Get events and registered order books, including scheduled events with no books. event_ids and market_ids accept up to 50 comma-separated positive IDs, are mutually exclusive, and use the same filters, sorting and pagination. market_ids returns each related event once with all its order books. Defaults to descending id. start_at sorting uses (start_at, event_id); cursor identifies an existing event and excludes it in the requested direction. tag filters across creators; creator_account_index is an optional additional filter. active=true requires a tradeable outcome; active=false includes scheduled and closed events."
|
|
1890
1890
|
}
|
|
1891
1891
|
},
|
|
1892
1892
|
"/api/v1/exchangeMetrics": {
|
|
@@ -7262,20 +7262,6 @@
|
|
|
7262
7262
|
}
|
|
7263
7263
|
},
|
|
7264
7264
|
"parameters": [
|
|
7265
|
-
{
|
|
7266
|
-
"name": "authorization",
|
|
7267
|
-
"description": " make required after integ is done",
|
|
7268
|
-
"in": "query",
|
|
7269
|
-
"required": false,
|
|
7270
|
-
"type": "string"
|
|
7271
|
-
},
|
|
7272
|
-
{
|
|
7273
|
-
"name": "auth",
|
|
7274
|
-
"description": " made optional to support header auth clients",
|
|
7275
|
-
"in": "query",
|
|
7276
|
-
"required": false,
|
|
7277
|
-
"type": "string"
|
|
7278
|
-
},
|
|
7279
7265
|
{
|
|
7280
7266
|
"name": "by",
|
|
7281
7267
|
"in": "query",
|
|
@@ -8704,9 +8690,11 @@
|
|
|
8704
8690
|
"enum": [
|
|
8705
8691
|
"inactive",
|
|
8706
8692
|
"active",
|
|
8707
|
-
"
|
|
8693
|
+
"waiting-for-settlement",
|
|
8694
|
+
"in-settlement",
|
|
8695
|
+
"settled"
|
|
8708
8696
|
],
|
|
8709
|
-
"description": " inactive
|
|
8697
|
+
"description": " inactive before the trading window opens, waiting-for-settlement once it closes"
|
|
8710
8698
|
},
|
|
8711
8699
|
"outcome": {
|
|
8712
8700
|
"type": "integer",
|
|
@@ -10042,11 +10030,11 @@
|
|
|
10042
10030
|
"type": "integer",
|
|
10043
10031
|
"format": "int32"
|
|
10044
10032
|
},
|
|
10045
|
-
"
|
|
10033
|
+
"start_at": {
|
|
10046
10034
|
"type": "integer",
|
|
10047
10035
|
"format": "int64"
|
|
10048
10036
|
},
|
|
10049
|
-
"
|
|
10037
|
+
"end_at": {
|
|
10050
10038
|
"type": "integer",
|
|
10051
10039
|
"format": "int64"
|
|
10052
10040
|
},
|
|
@@ -10076,8 +10064,8 @@
|
|
|
10076
10064
|
"tag",
|
|
10077
10065
|
"event_kind",
|
|
10078
10066
|
"recurrence_period_seconds",
|
|
10079
|
-
"
|
|
10080
|
-
"
|
|
10067
|
+
"start_at",
|
|
10068
|
+
"end_at",
|
|
10081
10069
|
"metadata",
|
|
10082
10070
|
"order_books",
|
|
10083
10071
|
"lifetime_quote_token_volume"
|
|
@@ -10122,8 +10110,12 @@
|
|
|
10122
10110
|
"type": "string",
|
|
10123
10111
|
"enum": [
|
|
10124
10112
|
"inactive",
|
|
10125
|
-
"active"
|
|
10126
|
-
|
|
10113
|
+
"active",
|
|
10114
|
+
"in-settlement",
|
|
10115
|
+
"waiting-for-settlement",
|
|
10116
|
+
"settled"
|
|
10117
|
+
],
|
|
10118
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
10127
10119
|
},
|
|
10128
10120
|
"taker_fee": {
|
|
10129
10121
|
"type": "string",
|
|
@@ -12257,8 +12249,12 @@
|
|
|
12257
12249
|
"type": "string",
|
|
12258
12250
|
"enum": [
|
|
12259
12251
|
"inactive",
|
|
12260
|
-
"active"
|
|
12261
|
-
|
|
12252
|
+
"active",
|
|
12253
|
+
"in-settlement",
|
|
12254
|
+
"waiting-for-settlement",
|
|
12255
|
+
"settled"
|
|
12256
|
+
],
|
|
12257
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
12262
12258
|
},
|
|
12263
12259
|
"taker_fee": {
|
|
12264
12260
|
"type": "string",
|
|
@@ -12937,8 +12933,12 @@
|
|
|
12937
12933
|
"type": "string",
|
|
12938
12934
|
"enum": [
|
|
12939
12935
|
"inactive",
|
|
12940
|
-
"active"
|
|
12941
|
-
|
|
12936
|
+
"active",
|
|
12937
|
+
"in-settlement",
|
|
12938
|
+
"waiting-for-settlement",
|
|
12939
|
+
"settled"
|
|
12940
|
+
],
|
|
12941
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
12942
12942
|
},
|
|
12943
12943
|
"taker_fee": {
|
|
12944
12944
|
"type": "string",
|
|
@@ -14689,15 +14689,15 @@
|
|
|
14689
14689
|
"format": "int32",
|
|
14690
14690
|
"description": " 0 for one-off events"
|
|
14691
14691
|
},
|
|
14692
|
-
"
|
|
14692
|
+
"start_at": {
|
|
14693
14693
|
"type": "integer",
|
|
14694
14694
|
"format": "int64",
|
|
14695
14695
|
"description": " Unix milliseconds; observation time, not trading time"
|
|
14696
14696
|
},
|
|
14697
|
-
"
|
|
14697
|
+
"end_at": {
|
|
14698
14698
|
"type": "integer",
|
|
14699
14699
|
"format": "int64",
|
|
14700
|
-
"description": "
|
|
14700
|
+
"description": " Unix milliseconds; must be after start_at"
|
|
14701
14701
|
},
|
|
14702
14702
|
"metadata": {
|
|
14703
14703
|
"type": "string",
|
|
@@ -14709,7 +14709,8 @@
|
|
|
14709
14709
|
"account_index",
|
|
14710
14710
|
"title",
|
|
14711
14711
|
"event_kind",
|
|
14712
|
-
"
|
|
14712
|
+
"start_at",
|
|
14713
|
+
"end_at"
|
|
14713
14714
|
]
|
|
14714
14715
|
},
|
|
14715
14716
|
"ReqCreateGuild": {
|
|
@@ -15339,10 +15340,6 @@
|
|
|
15339
15340
|
"ReqGetAccountPnLV2": {
|
|
15340
15341
|
"type": "object",
|
|
15341
15342
|
"properties": {
|
|
15342
|
-
"auth": {
|
|
15343
|
-
"type": "string",
|
|
15344
|
-
"description": " made optional to support header auth clients"
|
|
15345
|
-
},
|
|
15346
15343
|
"by": {
|
|
15347
15344
|
"type": "string",
|
|
15348
15345
|
"enum": [
|
|
@@ -15713,18 +15710,18 @@
|
|
|
15713
15710
|
"start_from": {
|
|
15714
15711
|
"type": "integer",
|
|
15715
15712
|
"format": "int64",
|
|
15716
|
-
"description": " inclusive
|
|
15713
|
+
"description": " inclusive start_at, Unix milliseconds"
|
|
15717
15714
|
},
|
|
15718
15715
|
"start_before": {
|
|
15719
15716
|
"type": "integer",
|
|
15720
15717
|
"format": "int64",
|
|
15721
|
-
"description": " exclusive
|
|
15718
|
+
"description": " exclusive start_at, Unix milliseconds"
|
|
15722
15719
|
},
|
|
15723
15720
|
"sort": {
|
|
15724
15721
|
"type": "string",
|
|
15725
15722
|
"enum": [
|
|
15726
15723
|
"id",
|
|
15727
|
-
"
|
|
15724
|
+
"start_at"
|
|
15728
15725
|
],
|
|
15729
15726
|
"default": "id"
|
|
15730
15727
|
},
|
|
@@ -17564,15 +17561,15 @@
|
|
|
17564
17561
|
"format": "int32",
|
|
17565
17562
|
"description": " 0 for one-off events"
|
|
17566
17563
|
},
|
|
17567
|
-
"
|
|
17564
|
+
"start_at": {
|
|
17568
17565
|
"type": "integer",
|
|
17569
17566
|
"format": "int64",
|
|
17570
17567
|
"description": " Unix milliseconds; observation time, not trading time"
|
|
17571
17568
|
},
|
|
17572
|
-
"
|
|
17569
|
+
"end_at": {
|
|
17573
17570
|
"type": "integer",
|
|
17574
17571
|
"format": "int64",
|
|
17575
|
-
"description": "
|
|
17572
|
+
"description": " Unix milliseconds; must be after start_at"
|
|
17576
17573
|
},
|
|
17577
17574
|
"metadata": {
|
|
17578
17575
|
"type": "string",
|
|
@@ -19822,8 +19819,12 @@
|
|
|
19822
19819
|
"type": "string",
|
|
19823
19820
|
"enum": [
|
|
19824
19821
|
"inactive",
|
|
19825
|
-
"active"
|
|
19826
|
-
|
|
19822
|
+
"active",
|
|
19823
|
+
"in-settlement",
|
|
19824
|
+
"waiting-for-settlement",
|
|
19825
|
+
"settled"
|
|
19826
|
+
],
|
|
19827
|
+
"description": " waiting-for-settlement and settled are binary options only"
|
|
19827
19828
|
},
|
|
19828
19829
|
"taker_fee": {
|
|
19829
19830
|
"type": "string",
|
|
@@ -21864,6 +21865,39 @@
|
|
|
21864
21865
|
"feed_id"
|
|
21865
21866
|
]
|
|
21866
21867
|
},
|
|
21868
|
+
"UpDownPrice": {
|
|
21869
|
+
"type": "object",
|
|
21870
|
+
"properties": {
|
|
21871
|
+
"Symbol": {
|
|
21872
|
+
"type": "string"
|
|
21873
|
+
},
|
|
21874
|
+
"Duration": {
|
|
21875
|
+
"type": "string"
|
|
21876
|
+
},
|
|
21877
|
+
"Timestamp": {
|
|
21878
|
+
"type": "integer",
|
|
21879
|
+
"format": "int64"
|
|
21880
|
+
},
|
|
21881
|
+
"Price": {
|
|
21882
|
+
"type": "string"
|
|
21883
|
+
},
|
|
21884
|
+
"Provider": {
|
|
21885
|
+
"type": "string"
|
|
21886
|
+
},
|
|
21887
|
+
"FeedId": {
|
|
21888
|
+
"type": "string"
|
|
21889
|
+
}
|
|
21890
|
+
},
|
|
21891
|
+
"title": "UpDownPrice",
|
|
21892
|
+
"required": [
|
|
21893
|
+
"Symbol",
|
|
21894
|
+
"Duration",
|
|
21895
|
+
"Timestamp",
|
|
21896
|
+
"Price",
|
|
21897
|
+
"Provider",
|
|
21898
|
+
"FeedId"
|
|
21899
|
+
]
|
|
21900
|
+
},
|
|
21867
21901
|
"UpcomingEarning": {
|
|
21868
21902
|
"type": "object",
|
|
21869
21903
|
"properties": {
|