zklighter-perps 1.0.11 → 1.0.12

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.
Files changed (64) hide show
  1. package/apis/AccountApi.ts +81 -81
  2. package/apis/BlockApi.ts +14 -14
  3. package/apis/CandlestickApi.ts +65 -65
  4. package/apis/InfoApi.ts +6 -6
  5. package/apis/OrderApi.ts +101 -101
  6. package/apis/TransactionApi.ts +76 -76
  7. package/config.yaml +5 -4
  8. package/models/AccountMarketStats.ts +24 -24
  9. package/models/AccountPosition.ts +28 -28
  10. package/models/AccountStats.ts +16 -16
  11. package/models/Block.ts +32 -32
  12. package/models/DetailedAccount.ts +17 -17
  13. package/models/EnrichedTx.ts +39 -39
  14. package/models/ExchangeStats.ts +12 -12
  15. package/models/L1ProviderInfo.ts +4 -4
  16. package/models/Layer1BasicInfo.ts +28 -28
  17. package/models/Layer2BasicInfo.ts +12 -12
  18. package/models/MainAccount.ts +4 -4
  19. package/models/MarketInfo.ts +44 -44
  20. package/models/Order.ts +55 -57
  21. package/models/OrderBook.ts +43 -44
  22. package/models/OrderBookDetail.ts +102 -103
  23. package/models/OrderBookDetails.ts +4 -4
  24. package/models/OrderBookOrders.ts +8 -8
  25. package/models/OrderBookStats.ts +20 -20
  26. package/models/OrderBooks.ts +4 -4
  27. package/models/ReqDoFaucet.ts +4 -4
  28. package/models/ReqGetAccount.ts +7 -8
  29. package/models/ReqGetAccountActiveOrders.ts +12 -12
  30. package/models/ReqGetAccountByL1Address.ts +4 -4
  31. package/models/ReqGetAccountInactiveOrders.ts +18 -19
  32. package/models/ReqGetAccountOrders.ts +8 -8
  33. package/models/ReqGetAccountPendingTxs.ts +7 -8
  34. package/models/ReqGetAccountPnL.ts +30 -32
  35. package/models/ReqGetAccountTxs.ts +7 -8
  36. package/models/ReqGetBlock.ts +7 -8
  37. package/models/ReqGetBlockTxs.ts +7 -8
  38. package/models/ReqGetByAccount.ts +7 -8
  39. package/models/ReqGetCandlesticks.ts +27 -28
  40. package/models/ReqGetFundings.ts +22 -23
  41. package/models/ReqGetNextNonce.ts +8 -8
  42. package/models/ReqGetOrderBookDetails.ts +10 -11
  43. package/models/ReqGetOrderBookOrders.ts +4 -4
  44. package/models/ReqGetOrderBooks.ts +10 -11
  45. package/models/ReqGetPermission.ts +11 -12
  46. package/models/ReqGetRangeWithIndexSortable.ts +7 -8
  47. package/models/ReqGetRecentTrades.ts +4 -4
  48. package/models/ReqGetRollbacks.ts +4 -4
  49. package/models/ReqGetSubAccount.ts +11 -12
  50. package/models/ReqGetTrades.ts +15 -16
  51. package/models/ReqGetTx.ts +7 -8
  52. package/models/Rollback.ts +12 -12
  53. package/models/Search.ts +4 -4
  54. package/models/SignBody.ts +4 -4
  55. package/models/SimpleOrder.ts +16 -16
  56. package/models/Status.ts +4 -4
  57. package/models/SubAccount.ts +12 -12
  58. package/models/SubAccounts.ts +8 -8
  59. package/models/Trade.ts +36 -36
  60. package/models/Tx.ts +36 -36
  61. package/models/TxHash.ts +4 -4
  62. package/models/TxHashes.ts +4 -4
  63. package/models/ValidatorInfo.ts +4 -4
  64. package/package.json +1 -1
@@ -24,28 +24,28 @@ export interface ReqGetAccountActiveOrders {
24
24
  * @type {number}
25
25
  * @memberof ReqGetAccountActiveOrders
26
26
  */
27
- accountIndex: number;
27
+ account_index: number;
28
28
  /**
29
29
  * NilSubAccountIndex
30
30
  * @type {number}
31
31
  * @memberof ReqGetAccountActiveOrders
32
32
  */
33
- subAccountIndex: number;
33
+ sub_account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {number}
37
37
  * @memberof ReqGetAccountActiveOrders
38
38
  */
39
- marketId: number;
39
+ market_id: number;
40
40
  }
41
41
 
42
42
  /**
43
43
  * Check if a given object implements the ReqGetAccountActiveOrders interface.
44
44
  */
45
45
  export function instanceOfReqGetAccountActiveOrders(value: object): value is ReqGetAccountActiveOrders {
46
- if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
47
- if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
48
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
46
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
47
+ if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
48
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
49
49
  return true;
50
50
  }
51
51
 
@@ -59,9 +59,9 @@ export function ReqGetAccountActiveOrdersFromJSONTyped(json: any, ignoreDiscrimi
59
59
  }
60
60
  return {
61
61
 
62
- 'accountIndex': json['account_index'],
63
- 'subAccountIndex': json['sub_account_index'],
64
- 'marketId': json['market_id'],
62
+ 'account_index': json['account_index'],
63
+ 'sub_account_index': json['sub_account_index'],
64
+ 'market_id': json['market_id'],
65
65
  };
66
66
  }
67
67
 
@@ -71,9 +71,9 @@ export function ReqGetAccountActiveOrdersToJSON(value?: ReqGetAccountActiveOrder
71
71
  }
72
72
  return {
73
73
 
74
- 'account_index': value['accountIndex'],
75
- 'sub_account_index': value['subAccountIndex'],
76
- 'market_id': value['marketId'],
74
+ 'account_index': value['account_index'],
75
+ 'sub_account_index': value['sub_account_index'],
76
+ 'market_id': value['market_id'],
77
77
  };
78
78
  }
79
79
 
@@ -24,14 +24,14 @@ export interface ReqGetAccountByL1Address {
24
24
  * @type {string}
25
25
  * @memberof ReqGetAccountByL1Address
26
26
  */
27
- l1Address: string;
27
+ l1_address: string;
28
28
  }
29
29
 
30
30
  /**
31
31
  * Check if a given object implements the ReqGetAccountByL1Address interface.
32
32
  */
33
33
  export function instanceOfReqGetAccountByL1Address(value: object): value is ReqGetAccountByL1Address {
34
- if (!('l1Address' in value) || value['l1Address'] === undefined) return false;
34
+ if (!('l1_address' in value) || value['l1_address'] === undefined) return false;
35
35
  return true;
36
36
  }
37
37
 
@@ -45,7 +45,7 @@ export function ReqGetAccountByL1AddressFromJSONTyped(json: any, ignoreDiscrimin
45
45
  }
46
46
  return {
47
47
 
48
- 'l1Address': json['l1_address'],
48
+ 'l1_address': json['l1_address'],
49
49
  };
50
50
  }
51
51
 
@@ -55,7 +55,7 @@ export function ReqGetAccountByL1AddressToJSON(value?: ReqGetAccountByL1Address
55
55
  }
56
56
  return {
57
57
 
58
- 'l1_address': value['l1Address'],
58
+ 'l1_address': value['l1_address'],
59
59
  };
60
60
  }
61
61
 
@@ -24,13 +24,13 @@ export interface ReqGetAccountInactiveOrders {
24
24
  * @type {number}
25
25
  * @memberof ReqGetAccountInactiveOrders
26
26
  */
27
- accountIndex: number;
27
+ account_index: number;
28
28
  /**
29
29
  * NilSubAccountIndex
30
30
  * @type {number}
31
31
  * @memberof ReqGetAccountInactiveOrders
32
32
  */
33
- subAccountIndex: number;
33
+ sub_account_index: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -42,7 +42,7 @@ export interface ReqGetAccountInactiveOrders {
42
42
  * @type {number}
43
43
  * @memberof ReqGetAccountInactiveOrders
44
44
  */
45
- marketId?: number;
45
+ market_id?: number;
46
46
  /**
47
47
  *
48
48
  * @type {string}
@@ -57,23 +57,22 @@ export interface ReqGetAccountInactiveOrders {
57
57
  limit: number;
58
58
  }
59
59
 
60
-
61
60
  /**
62
- * @export
63
- */
64
- export const ReqGetAccountInactiveOrdersFilterEnum = {
65
- MarketId: 'market_id',
66
- All: 'all'
67
- } as const;
68
- export type ReqGetAccountInactiveOrdersFilterEnum = typeof ReqGetAccountInactiveOrdersFilterEnum[keyof typeof ReqGetAccountInactiveOrdersFilterEnum];
61
+ * @export
62
+ * @enum {string}
63
+ */
64
+ export enum ReqGetAccountInactiveOrdersFilterEnum {
65
+ MarketId = 'market_id',
66
+ All = 'all'
67
+ }
69
68
 
70
69
 
71
70
  /**
72
71
  * Check if a given object implements the ReqGetAccountInactiveOrders interface.
73
72
  */
74
73
  export function instanceOfReqGetAccountInactiveOrders(value: object): value is ReqGetAccountInactiveOrders {
75
- if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
76
- if (!('subAccountIndex' in value) || value['subAccountIndex'] === undefined) return false;
74
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
75
+ if (!('sub_account_index' in value) || value['sub_account_index'] === undefined) return false;
77
76
  if (!('filter' in value) || value['filter'] === undefined) return false;
78
77
  if (!('limit' in value) || value['limit'] === undefined) return false;
79
78
  return true;
@@ -89,10 +88,10 @@ export function ReqGetAccountInactiveOrdersFromJSONTyped(json: any, ignoreDiscri
89
88
  }
90
89
  return {
91
90
 
92
- 'accountIndex': json['account_index'],
93
- 'subAccountIndex': json['sub_account_index'],
91
+ 'account_index': json['account_index'],
92
+ 'sub_account_index': json['sub_account_index'],
94
93
  'filter': json['filter'],
95
- 'marketId': json['market_id'] == null ? undefined : json['market_id'],
94
+ 'market_id': json['market_id'] == null ? undefined : json['market_id'],
96
95
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
97
96
  'limit': json['limit'],
98
97
  };
@@ -104,10 +103,10 @@ export function ReqGetAccountInactiveOrdersToJSON(value?: ReqGetAccountInactiveO
104
103
  }
105
104
  return {
106
105
 
107
- 'account_index': value['accountIndex'],
108
- 'sub_account_index': value['subAccountIndex'],
106
+ 'account_index': value['account_index'],
107
+ 'sub_account_index': value['sub_account_index'],
109
108
  'filter': value['filter'],
110
- 'market_id': value['marketId'],
109
+ 'market_id': value['market_id'],
111
110
  'cursor': value['cursor'],
112
111
  'limit': value['limit'],
113
112
  };
@@ -24,13 +24,13 @@ export interface ReqGetAccountOrders {
24
24
  * @type {number}
25
25
  * @memberof ReqGetAccountOrders
26
26
  */
27
- accountIndex: number;
27
+ account_index: number;
28
28
  /**
29
29
  *
30
30
  * @type {number}
31
31
  * @memberof ReqGetAccountOrders
32
32
  */
33
- marketId: number;
33
+ market_id: number;
34
34
  /**
35
35
  *
36
36
  * @type {string}
@@ -49,8 +49,8 @@ export interface ReqGetAccountOrders {
49
49
  * Check if a given object implements the ReqGetAccountOrders interface.
50
50
  */
51
51
  export function instanceOfReqGetAccountOrders(value: object): value is ReqGetAccountOrders {
52
- if (!('accountIndex' in value) || value['accountIndex'] === undefined) return false;
53
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
52
+ if (!('account_index' in value) || value['account_index'] === undefined) return false;
53
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
54
54
  if (!('limit' in value) || value['limit'] === undefined) return false;
55
55
  return true;
56
56
  }
@@ -65,8 +65,8 @@ export function ReqGetAccountOrdersFromJSONTyped(json: any, ignoreDiscriminator:
65
65
  }
66
66
  return {
67
67
 
68
- 'accountIndex': json['account_index'],
69
- 'marketId': json['market_id'],
68
+ 'account_index': json['account_index'],
69
+ 'market_id': json['market_id'],
70
70
  'cursor': json['cursor'] == null ? undefined : json['cursor'],
71
71
  'limit': json['limit'],
72
72
  };
@@ -78,8 +78,8 @@ export function ReqGetAccountOrdersToJSON(value?: ReqGetAccountOrders | null): a
78
78
  }
79
79
  return {
80
80
 
81
- 'account_index': value['accountIndex'],
82
- 'market_id': value['marketId'],
81
+ 'account_index': value['account_index'],
82
+ 'market_id': value['market_id'],
83
83
  'cursor': value['cursor'],
84
84
  'limit': value['limit'],
85
85
  };
@@ -39,15 +39,14 @@ export interface ReqGetAccountPendingTxs {
39
39
  types?: Array<number>;
40
40
  }
41
41
 
42
-
43
42
  /**
44
- * @export
45
- */
46
- export const ReqGetAccountPendingTxsByEnum = {
47
- AccountIndex: 'account_index',
48
- L1Address: 'l1_address'
49
- } as const;
50
- export type ReqGetAccountPendingTxsByEnum = typeof ReqGetAccountPendingTxsByEnum[keyof typeof ReqGetAccountPendingTxsByEnum];
43
+ * @export
44
+ * @enum {string}
45
+ */
46
+ export enum ReqGetAccountPendingTxsByEnum {
47
+ AccountIndex = 'account_index',
48
+ L1Address = 'l1_address'
49
+ }
51
50
 
52
51
 
53
52
  /**
@@ -42,43 +42,41 @@ export interface ReqGetAccountPnL {
42
42
  * @type {number}
43
43
  * @memberof ReqGetAccountPnL
44
44
  */
45
- startTimestamp: number;
45
+ start_timestamp: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
49
  * @memberof ReqGetAccountPnL
50
50
  */
51
- endTimestamp: number;
51
+ end_timestamp: number;
52
52
  /**
53
53
  *
54
54
  * @type {number}
55
55
  * @memberof ReqGetAccountPnL
56
56
  */
57
- countBack: number;
57
+ count_back: number;
58
58
  }
59
59
 
60
-
61
60
  /**
62
- * @export
63
- */
64
- export const ReqGetAccountPnLByEnum = {
65
- Index: 'index',
66
- L1Address: 'l1_address'
67
- } as const;
68
- export type ReqGetAccountPnLByEnum = typeof ReqGetAccountPnLByEnum[keyof typeof ReqGetAccountPnLByEnum];
69
-
61
+ * @export
62
+ * @enum {string}
63
+ */
64
+ export enum ReqGetAccountPnLByEnum {
65
+ Index = 'index',
66
+ L1Address = 'l1_address'
67
+ }
70
68
  /**
71
- * @export
72
- */
73
- export const ReqGetAccountPnLResolutionEnum = {
74
- _1m: '1m',
75
- _5m: '5m',
76
- _15m: '15m',
77
- _1h: '1h',
78
- _4h: '4h',
79
- _1d: '1d'
80
- } as const;
81
- export type ReqGetAccountPnLResolutionEnum = typeof ReqGetAccountPnLResolutionEnum[keyof typeof ReqGetAccountPnLResolutionEnum];
69
+ * @export
70
+ * @enum {string}
71
+ */
72
+ export enum ReqGetAccountPnLResolutionEnum {
73
+ _1m = '1m',
74
+ _5m = '5m',
75
+ _15m = '15m',
76
+ _1h = '1h',
77
+ _4h = '4h',
78
+ _1d = '1d'
79
+ }
82
80
 
83
81
 
84
82
  /**
@@ -88,9 +86,9 @@ export function instanceOfReqGetAccountPnL(value: object): value is ReqGetAccoun
88
86
  if (!('by' in value) || value['by'] === undefined) return false;
89
87
  if (!('value' in value) || value['value'] === undefined) return false;
90
88
  if (!('resolution' in value) || value['resolution'] === undefined) return false;
91
- if (!('startTimestamp' in value) || value['startTimestamp'] === undefined) return false;
92
- if (!('endTimestamp' in value) || value['endTimestamp'] === undefined) return false;
93
- if (!('countBack' in value) || value['countBack'] === undefined) return false;
89
+ if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
90
+ if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
91
+ if (!('count_back' in value) || value['count_back'] === undefined) return false;
94
92
  return true;
95
93
  }
96
94
 
@@ -107,9 +105,9 @@ export function ReqGetAccountPnLFromJSONTyped(json: any, ignoreDiscriminator: bo
107
105
  'by': json['by'],
108
106
  'value': json['value'],
109
107
  'resolution': json['resolution'],
110
- 'startTimestamp': json['start_timestamp'],
111
- 'endTimestamp': json['end_timestamp'],
112
- 'countBack': json['count_back'],
108
+ 'start_timestamp': json['start_timestamp'],
109
+ 'end_timestamp': json['end_timestamp'],
110
+ 'count_back': json['count_back'],
113
111
  };
114
112
  }
115
113
 
@@ -122,9 +120,9 @@ export function ReqGetAccountPnLToJSON(value?: ReqGetAccountPnL | null): any {
122
120
  'by': value['by'],
123
121
  'value': value['value'],
124
122
  'resolution': value['resolution'],
125
- 'start_timestamp': value['startTimestamp'],
126
- 'end_timestamp': value['endTimestamp'],
127
- 'count_back': value['countBack'],
123
+ 'start_timestamp': value['start_timestamp'],
124
+ 'end_timestamp': value['end_timestamp'],
125
+ 'count_back': value['count_back'],
128
126
  };
129
127
  }
130
128
 
@@ -51,15 +51,14 @@ export interface ReqGetAccountTxs {
51
51
  types?: Array<number>;
52
52
  }
53
53
 
54
-
55
54
  /**
56
- * @export
57
- */
58
- export const ReqGetAccountTxsByEnum = {
59
- AccountIndex: 'account_index',
60
- L1Address: 'l1_address'
61
- } as const;
62
- export type ReqGetAccountTxsByEnum = typeof ReqGetAccountTxsByEnum[keyof typeof ReqGetAccountTxsByEnum];
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ export enum ReqGetAccountTxsByEnum {
59
+ AccountIndex = 'account_index',
60
+ L1Address = 'l1_address'
61
+ }
63
62
 
64
63
 
65
64
  /**
@@ -33,15 +33,14 @@ export interface ReqGetBlock {
33
33
  value: string;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetBlockByEnum = {
41
- Commitment: 'commitment',
42
- Height: 'height'
43
- } as const;
44
- export type ReqGetBlockByEnum = typeof ReqGetBlockByEnum[keyof typeof ReqGetBlockByEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetBlockByEnum {
41
+ Commitment = 'commitment',
42
+ Height = 'height'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -33,15 +33,14 @@ export interface ReqGetBlockTxs {
33
33
  value: string;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetBlockTxsByEnum = {
41
- Height: 'block_height',
42
- Commitment: 'block_commitment'
43
- } as const;
44
- export type ReqGetBlockTxsByEnum = typeof ReqGetBlockTxsByEnum[keyof typeof ReqGetBlockTxsByEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetBlockTxsByEnum {
41
+ Height = 'block_height',
42
+ Commitment = 'block_commitment'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -33,15 +33,14 @@ export interface ReqGetByAccount {
33
33
  value: string;
34
34
  }
35
35
 
36
-
37
36
  /**
38
- * @export
39
- */
40
- export const ReqGetByAccountByEnum = {
41
- AccountIndex: 'account_index',
42
- L1Address: 'l1_address'
43
- } as const;
44
- export type ReqGetByAccountByEnum = typeof ReqGetByAccountByEnum[keyof typeof ReqGetByAccountByEnum];
37
+ * @export
38
+ * @enum {string}
39
+ */
40
+ export enum ReqGetByAccountByEnum {
41
+ AccountIndex = 'account_index',
42
+ L1Address = 'l1_address'
43
+ }
45
44
 
46
45
 
47
46
  /**
@@ -24,7 +24,7 @@ export interface ReqGetCandlesticks {
24
24
  * @type {number}
25
25
  * @memberof ReqGetCandlesticks
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,45 +36,44 @@ export interface ReqGetCandlesticks {
36
36
  * @type {number}
37
37
  * @memberof ReqGetCandlesticks
38
38
  */
39
- startTimestamp: number;
39
+ start_timestamp: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
43
  * @memberof ReqGetCandlesticks
44
44
  */
45
- endTimestamp: number;
45
+ end_timestamp: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
49
  * @memberof ReqGetCandlesticks
50
50
  */
51
- countBack: number;
51
+ count_back: number;
52
52
  }
53
53
 
54
-
55
54
  /**
56
- * @export
57
- */
58
- export const ReqGetCandlesticksResolutionEnum = {
59
- _1m: '1m',
60
- _5m: '5m',
61
- _15m: '15m',
62
- _1h: '1h',
63
- _4h: '4h',
64
- _1d: '1d'
65
- } as const;
66
- export type ReqGetCandlesticksResolutionEnum = typeof ReqGetCandlesticksResolutionEnum[keyof typeof ReqGetCandlesticksResolutionEnum];
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ export enum ReqGetCandlesticksResolutionEnum {
59
+ _1m = '1m',
60
+ _5m = '5m',
61
+ _15m = '15m',
62
+ _1h = '1h',
63
+ _4h = '4h',
64
+ _1d = '1d'
65
+ }
67
66
 
68
67
 
69
68
  /**
70
69
  * Check if a given object implements the ReqGetCandlesticks interface.
71
70
  */
72
71
  export function instanceOfReqGetCandlesticks(value: object): value is ReqGetCandlesticks {
73
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
72
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
74
73
  if (!('resolution' in value) || value['resolution'] === undefined) return false;
75
- if (!('startTimestamp' in value) || value['startTimestamp'] === undefined) return false;
76
- if (!('endTimestamp' in value) || value['endTimestamp'] === undefined) return false;
77
- if (!('countBack' in value) || value['countBack'] === undefined) return false;
74
+ if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
75
+ if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
76
+ if (!('count_back' in value) || value['count_back'] === undefined) return false;
78
77
  return true;
79
78
  }
80
79
 
@@ -88,11 +87,11 @@ export function ReqGetCandlesticksFromJSONTyped(json: any, ignoreDiscriminator:
88
87
  }
89
88
  return {
90
89
 
91
- 'marketId': json['market_id'],
90
+ 'market_id': json['market_id'],
92
91
  'resolution': json['resolution'],
93
- 'startTimestamp': json['start_timestamp'],
94
- 'endTimestamp': json['end_timestamp'],
95
- 'countBack': json['count_back'],
92
+ 'start_timestamp': json['start_timestamp'],
93
+ 'end_timestamp': json['end_timestamp'],
94
+ 'count_back': json['count_back'],
96
95
  };
97
96
  }
98
97
 
@@ -102,11 +101,11 @@ export function ReqGetCandlesticksToJSON(value?: ReqGetCandlesticks | null): any
102
101
  }
103
102
  return {
104
103
 
105
- 'market_id': value['marketId'],
104
+ 'market_id': value['market_id'],
106
105
  'resolution': value['resolution'],
107
- 'start_timestamp': value['startTimestamp'],
108
- 'end_timestamp': value['endTimestamp'],
109
- 'count_back': value['countBack'],
106
+ 'start_timestamp': value['start_timestamp'],
107
+ 'end_timestamp': value['end_timestamp'],
108
+ 'count_back': value['count_back'],
110
109
  };
111
110
  }
112
111
 
@@ -24,7 +24,7 @@ export interface ReqGetFundings {
24
24
  * @type {number}
25
25
  * @memberof ReqGetFundings
26
26
  */
27
- marketId: number;
27
+ market_id: number;
28
28
  /**
29
29
  *
30
30
  * @type {string}
@@ -36,40 +36,39 @@ export interface ReqGetFundings {
36
36
  * @type {number}
37
37
  * @memberof ReqGetFundings
38
38
  */
39
- startTimestamp: number;
39
+ start_timestamp: number;
40
40
  /**
41
41
  *
42
42
  * @type {number}
43
43
  * @memberof ReqGetFundings
44
44
  */
45
- endTimestamp: number;
45
+ end_timestamp: number;
46
46
  /**
47
47
  *
48
48
  * @type {number}
49
49
  * @memberof ReqGetFundings
50
50
  */
51
- countBack: number;
51
+ count_back: number;
52
52
  }
53
53
 
54
-
55
54
  /**
56
- * @export
57
- */
58
- export const ReqGetFundingsResolutionEnum = {
59
- _1h: '1h'
60
- } as const;
61
- export type ReqGetFundingsResolutionEnum = typeof ReqGetFundingsResolutionEnum[keyof typeof ReqGetFundingsResolutionEnum];
55
+ * @export
56
+ * @enum {string}
57
+ */
58
+ export enum ReqGetFundingsResolutionEnum {
59
+ _1h = '1h'
60
+ }
62
61
 
63
62
 
64
63
  /**
65
64
  * Check if a given object implements the ReqGetFundings interface.
66
65
  */
67
66
  export function instanceOfReqGetFundings(value: object): value is ReqGetFundings {
68
- if (!('marketId' in value) || value['marketId'] === undefined) return false;
67
+ if (!('market_id' in value) || value['market_id'] === undefined) return false;
69
68
  if (!('resolution' in value) || value['resolution'] === undefined) return false;
70
- if (!('startTimestamp' in value) || value['startTimestamp'] === undefined) return false;
71
- if (!('endTimestamp' in value) || value['endTimestamp'] === undefined) return false;
72
- if (!('countBack' in value) || value['countBack'] === undefined) return false;
69
+ if (!('start_timestamp' in value) || value['start_timestamp'] === undefined) return false;
70
+ if (!('end_timestamp' in value) || value['end_timestamp'] === undefined) return false;
71
+ if (!('count_back' in value) || value['count_back'] === undefined) return false;
73
72
  return true;
74
73
  }
75
74
 
@@ -83,11 +82,11 @@ export function ReqGetFundingsFromJSONTyped(json: any, ignoreDiscriminator: bool
83
82
  }
84
83
  return {
85
84
 
86
- 'marketId': json['market_id'],
85
+ 'market_id': json['market_id'],
87
86
  'resolution': json['resolution'],
88
- 'startTimestamp': json['start_timestamp'],
89
- 'endTimestamp': json['end_timestamp'],
90
- 'countBack': json['count_back'],
87
+ 'start_timestamp': json['start_timestamp'],
88
+ 'end_timestamp': json['end_timestamp'],
89
+ 'count_back': json['count_back'],
91
90
  };
92
91
  }
93
92
 
@@ -97,11 +96,11 @@ export function ReqGetFundingsToJSON(value?: ReqGetFundings | null): any {
97
96
  }
98
97
  return {
99
98
 
100
- 'market_id': value['marketId'],
99
+ 'market_id': value['market_id'],
101
100
  'resolution': value['resolution'],
102
- 'start_timestamp': value['startTimestamp'],
103
- 'end_timestamp': value['endTimestamp'],
104
- 'count_back': value['countBack'],
101
+ 'start_timestamp': value['start_timestamp'],
102
+ 'end_timestamp': value['end_timestamp'],
103
+ 'count_back': value['count_back'],
105
104
  };
106
105
  }
107
106