zklighter-perps 1.0.0

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 (103) hide show
  1. package/.circleci/config.yml +86 -0
  2. package/.openapi-generator/FILES +95 -0
  3. package/.openapi-generator/VERSION +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/apis/AccountApi.ts +454 -0
  6. package/apis/BlockApi.ts +178 -0
  7. package/apis/CandlestickApi.ts +231 -0
  8. package/apis/InfoApi.ts +197 -0
  9. package/apis/OrderApi.ts +607 -0
  10. package/apis/RelayerApi.ts +95 -0
  11. package/apis/RootApi.ts +56 -0
  12. package/apis/TransactionApi.ts +608 -0
  13. package/apis/WsApi.ts +82 -0
  14. package/apis/index.ts +11 -0
  15. package/config.yaml +5 -0
  16. package/index.ts +5 -0
  17. package/models/AccountMarketStats.ts +100 -0
  18. package/models/AccountPnL.ts +91 -0
  19. package/models/AccountPosition.ts +140 -0
  20. package/models/AccountStats.ts +92 -0
  21. package/models/Block.ts +163 -0
  22. package/models/Blocks.ts +91 -0
  23. package/models/Candlestick.ts +108 -0
  24. package/models/Candlesticks.ts +91 -0
  25. package/models/ContractAddress.ts +68 -0
  26. package/models/CurrentHeight.ts +76 -0
  27. package/models/Cursor.ts +60 -0
  28. package/models/DetailedAccount.ts +169 -0
  29. package/models/DetailedAccounts.ts +91 -0
  30. package/models/EnrichedTx.ts +204 -0
  31. package/models/ExchangeStats.ts +107 -0
  32. package/models/Funding.ts +84 -0
  33. package/models/Fundings.ts +91 -0
  34. package/models/L1ProviderInfo.ts +84 -0
  35. package/models/Layer1BasicInfo.ts +143 -0
  36. package/models/Layer2BasicInfo.ts +92 -0
  37. package/models/MainAccount.ts +92 -0
  38. package/models/MainAccounts.ts +91 -0
  39. package/models/MarketInfo.ts +140 -0
  40. package/models/MarketSig.ts +100 -0
  41. package/models/NextNonce.ts +76 -0
  42. package/models/Order.ts +209 -0
  43. package/models/OrderBook.ts +143 -0
  44. package/models/OrderBookDepth.ts +99 -0
  45. package/models/OrderBookDetail.ts +287 -0
  46. package/models/OrderBookDetails.ts +83 -0
  47. package/models/OrderBookOrders.ts +107 -0
  48. package/models/OrderBookStats.ts +100 -0
  49. package/models/OrderBooks.ts +83 -0
  50. package/models/Orders.ts +91 -0
  51. package/models/Permission.ts +76 -0
  52. package/models/PnLEntry.ts +68 -0
  53. package/models/PriceLevel.ts +68 -0
  54. package/models/ReqDoFaucet.ts +60 -0
  55. package/models/ReqGetAccount.ts +79 -0
  56. package/models/ReqGetAccountActiveOrders.ts +76 -0
  57. package/models/ReqGetAccountByL1Address.ts +60 -0
  58. package/models/ReqGetAccountInactiveOrders.ts +111 -0
  59. package/models/ReqGetAccountOrders.ts +84 -0
  60. package/models/ReqGetAccountPendingTxs.ts +87 -0
  61. package/models/ReqGetAccountPnL.ts +124 -0
  62. package/models/ReqGetAccountTxs.ts +103 -0
  63. package/models/ReqGetBlock.ts +79 -0
  64. package/models/ReqGetBlockTxs.ts +79 -0
  65. package/models/ReqGetByAccount.ts +79 -0
  66. package/models/ReqGetCandlesticks.ts +107 -0
  67. package/models/ReqGetFundings.ts +102 -0
  68. package/models/ReqGetL1Tx.ts +60 -0
  69. package/models/ReqGetMarketSig.ts +76 -0
  70. package/models/ReqGetNextNonce.ts +68 -0
  71. package/models/ReqGetOrderBookDetails.ts +79 -0
  72. package/models/ReqGetOrderBookOrders.ts +68 -0
  73. package/models/ReqGetOrderBooks.ts +79 -0
  74. package/models/ReqGetPermission.ts +87 -0
  75. package/models/ReqGetRangeWithCursor.ts +68 -0
  76. package/models/ReqGetRangeWithIndex.ts +68 -0
  77. package/models/ReqGetRangeWithIndexSortable.ts +87 -0
  78. package/models/ReqGetRecentTrades.ts +68 -0
  79. package/models/ReqGetRollbacks.ts +76 -0
  80. package/models/ReqGetSubAccount.ts +87 -0
  81. package/models/ReqGetTrades.ts +104 -0
  82. package/models/ReqGetTx.ts +79 -0
  83. package/models/ReqSearch.ts +60 -0
  84. package/models/ResultCode.ts +68 -0
  85. package/models/Rollback.ts +84 -0
  86. package/models/Rollbacks.ts +91 -0
  87. package/models/Search.ts +76 -0
  88. package/models/SignBody.ts +76 -0
  89. package/models/SimpleOrder.ts +100 -0
  90. package/models/Status.ts +68 -0
  91. package/models/SubAccount.ts +116 -0
  92. package/models/SubAccounts.ts +107 -0
  93. package/models/Trade.ts +148 -0
  94. package/models/Trades.ts +83 -0
  95. package/models/Tx.ts +164 -0
  96. package/models/TxHash.ts +76 -0
  97. package/models/Txs.ts +83 -0
  98. package/models/ValidatorInfo.ts +68 -0
  99. package/models/index.ts +84 -0
  100. package/openapi-generator-cli.jar +0 -0
  101. package/openapi.json +3934 -0
  102. package/package.json +23 -0
  103. package/runtime.ts +426 -0
@@ -0,0 +1,107 @@
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 ReqGetCandlesticks
20
+ */
21
+ export interface ReqGetCandlesticks {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetCandlesticks
26
+ */
27
+ marketId?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetCandlesticks
32
+ */
33
+ resolution?: ReqGetCandlesticksResolutionEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ReqGetCandlesticks
38
+ */
39
+ startTimestamp?: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetCandlesticks
44
+ */
45
+ endTimestamp?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ReqGetCandlesticks
50
+ */
51
+ countBack?: number;
52
+ }
53
+
54
+
55
+ /**
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];
67
+
68
+
69
+ /**
70
+ * Check if a given object implements the ReqGetCandlesticks interface.
71
+ */
72
+ export function instanceOfReqGetCandlesticks(value: object): value is ReqGetCandlesticks {
73
+ return true;
74
+ }
75
+
76
+ export function ReqGetCandlesticksFromJSON(json: any): ReqGetCandlesticks {
77
+ return ReqGetCandlesticksFromJSONTyped(json, false);
78
+ }
79
+
80
+ export function ReqGetCandlesticksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetCandlesticks {
81
+ if (json == null) {
82
+ return json;
83
+ }
84
+ return {
85
+
86
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
87
+ 'resolution': json['resolution'] == null ? undefined : json['resolution'],
88
+ 'startTimestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
89
+ 'endTimestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
90
+ 'countBack': json['count_back'] == null ? undefined : json['count_back'],
91
+ };
92
+ }
93
+
94
+ export function ReqGetCandlesticksToJSON(value?: ReqGetCandlesticks | null): any {
95
+ if (value == null) {
96
+ return value;
97
+ }
98
+ return {
99
+
100
+ 'market_id': value['marketId'],
101
+ 'resolution': value['resolution'],
102
+ 'start_timestamp': value['startTimestamp'],
103
+ 'end_timestamp': value['endTimestamp'],
104
+ 'count_back': value['countBack'],
105
+ };
106
+ }
107
+
@@ -0,0 +1,102 @@
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 ReqGetFundings
20
+ */
21
+ export interface ReqGetFundings {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetFundings
26
+ */
27
+ marketId?: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ReqGetFundings
32
+ */
33
+ resolution?: ReqGetFundingsResolutionEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ReqGetFundings
38
+ */
39
+ startTimestamp?: number;
40
+ /**
41
+ *
42
+ * @type {number}
43
+ * @memberof ReqGetFundings
44
+ */
45
+ endTimestamp?: number;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof ReqGetFundings
50
+ */
51
+ countBack?: number;
52
+ }
53
+
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const ReqGetFundingsResolutionEnum = {
59
+ _1h: '1h'
60
+ } as const;
61
+ export type ReqGetFundingsResolutionEnum = typeof ReqGetFundingsResolutionEnum[keyof typeof ReqGetFundingsResolutionEnum];
62
+
63
+
64
+ /**
65
+ * Check if a given object implements the ReqGetFundings interface.
66
+ */
67
+ export function instanceOfReqGetFundings(value: object): value is ReqGetFundings {
68
+ return true;
69
+ }
70
+
71
+ export function ReqGetFundingsFromJSON(json: any): ReqGetFundings {
72
+ return ReqGetFundingsFromJSONTyped(json, false);
73
+ }
74
+
75
+ export function ReqGetFundingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetFundings {
76
+ if (json == null) {
77
+ return json;
78
+ }
79
+ return {
80
+
81
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
82
+ 'resolution': json['resolution'] == null ? undefined : json['resolution'],
83
+ 'startTimestamp': json['start_timestamp'] == null ? undefined : json['start_timestamp'],
84
+ 'endTimestamp': json['end_timestamp'] == null ? undefined : json['end_timestamp'],
85
+ 'countBack': json['count_back'] == null ? undefined : json['count_back'],
86
+ };
87
+ }
88
+
89
+ export function ReqGetFundingsToJSON(value?: ReqGetFundings | null): any {
90
+ if (value == null) {
91
+ return value;
92
+ }
93
+ return {
94
+
95
+ 'market_id': value['marketId'],
96
+ 'resolution': value['resolution'],
97
+ 'start_timestamp': value['startTimestamp'],
98
+ 'end_timestamp': value['endTimestamp'],
99
+ 'count_back': value['countBack'],
100
+ };
101
+ }
102
+
@@ -0,0 +1,60 @@
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 ReqGetL1Tx
20
+ */
21
+ export interface ReqGetL1Tx {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetL1Tx
26
+ */
27
+ hash?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the ReqGetL1Tx interface.
32
+ */
33
+ export function instanceOfReqGetL1Tx(value: object): value is ReqGetL1Tx {
34
+ return true;
35
+ }
36
+
37
+ export function ReqGetL1TxFromJSON(json: any): ReqGetL1Tx {
38
+ return ReqGetL1TxFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function ReqGetL1TxFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetL1Tx {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'hash': json['hash'] == null ? undefined : json['hash'],
48
+ };
49
+ }
50
+
51
+ export function ReqGetL1TxToJSON(value?: ReqGetL1Tx | null): any {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+
57
+ 'hash': value['hash'],
58
+ };
59
+ }
60
+
@@ -0,0 +1,76 @@
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 ReqGetMarketSig
20
+ */
21
+ export interface ReqGetMarketSig {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetMarketSig
26
+ */
27
+ marketId?: number;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof ReqGetMarketSig
32
+ */
33
+ isAsk?: boolean;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof ReqGetMarketSig
38
+ */
39
+ baseAmount?: number;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the ReqGetMarketSig interface.
44
+ */
45
+ export function instanceOfReqGetMarketSig(value: object): value is ReqGetMarketSig {
46
+ return true;
47
+ }
48
+
49
+ export function ReqGetMarketSigFromJSON(json: any): ReqGetMarketSig {
50
+ return ReqGetMarketSigFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function ReqGetMarketSigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetMarketSig {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
60
+ 'isAsk': json['is_ask'] == null ? undefined : json['is_ask'],
61
+ 'baseAmount': json['base_amount'] == null ? undefined : json['base_amount'],
62
+ };
63
+ }
64
+
65
+ export function ReqGetMarketSigToJSON(value?: ReqGetMarketSig | null): any {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+
71
+ 'market_id': value['marketId'],
72
+ 'is_ask': value['isAsk'],
73
+ 'base_amount': value['baseAmount'],
74
+ };
75
+ }
76
+
@@ -0,0 +1,68 @@
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 ReqGetNextNonce
20
+ */
21
+ export interface ReqGetNextNonce {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetNextNonce
26
+ */
27
+ accountIndex?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetNextNonce
32
+ */
33
+ subAccountIndex?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetNextNonce interface.
38
+ */
39
+ export function instanceOfReqGetNextNonce(value: object): value is ReqGetNextNonce {
40
+ return true;
41
+ }
42
+
43
+ export function ReqGetNextNonceFromJSON(json: any): ReqGetNextNonce {
44
+ return ReqGetNextNonceFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ReqGetNextNonceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetNextNonce {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'accountIndex': json['account_index'] == null ? undefined : json['account_index'],
54
+ 'subAccountIndex': json['sub_account_index'] == null ? undefined : json['sub_account_index'],
55
+ };
56
+ }
57
+
58
+ export function ReqGetNextNonceToJSON(value?: ReqGetNextNonce | null): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+
64
+ 'account_index': value['accountIndex'],
65
+ 'sub_account_index': value['subAccountIndex'],
66
+ };
67
+ }
68
+
@@ -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 ReqGetOrderBookDetails
20
+ */
21
+ export interface ReqGetOrderBookDetails {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetOrderBookDetails
26
+ */
27
+ filter?: ReqGetOrderBookDetailsFilterEnum;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetOrderBookDetails
32
+ */
33
+ marketId?: number;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ReqGetOrderBookDetailsFilterEnum = {
41
+ MarketId: 'market_id',
42
+ All: 'all'
43
+ } as const;
44
+ export type ReqGetOrderBookDetailsFilterEnum = typeof ReqGetOrderBookDetailsFilterEnum[keyof typeof ReqGetOrderBookDetailsFilterEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the ReqGetOrderBookDetails interface.
49
+ */
50
+ export function instanceOfReqGetOrderBookDetails(value: object): value is ReqGetOrderBookDetails {
51
+ return true;
52
+ }
53
+
54
+ export function ReqGetOrderBookDetailsFromJSON(json: any): ReqGetOrderBookDetails {
55
+ return ReqGetOrderBookDetailsFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function ReqGetOrderBookDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetOrderBookDetails {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'filter': json['filter'] == null ? undefined : json['filter'],
65
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
66
+ };
67
+ }
68
+
69
+ export function ReqGetOrderBookDetailsToJSON(value?: ReqGetOrderBookDetails | null): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+
75
+ 'filter': value['filter'],
76
+ 'market_id': value['marketId'],
77
+ };
78
+ }
79
+
@@ -0,0 +1,68 @@
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 ReqGetOrderBookOrders
20
+ */
21
+ export interface ReqGetOrderBookOrders {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof ReqGetOrderBookOrders
26
+ */
27
+ marketId?: number;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetOrderBookOrders
32
+ */
33
+ limit?: number;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ReqGetOrderBookOrders interface.
38
+ */
39
+ export function instanceOfReqGetOrderBookOrders(value: object): value is ReqGetOrderBookOrders {
40
+ return true;
41
+ }
42
+
43
+ export function ReqGetOrderBookOrdersFromJSON(json: any): ReqGetOrderBookOrders {
44
+ return ReqGetOrderBookOrdersFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function ReqGetOrderBookOrdersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetOrderBookOrders {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
54
+ 'limit': json['limit'] == null ? undefined : json['limit'],
55
+ };
56
+ }
57
+
58
+ export function ReqGetOrderBookOrdersToJSON(value?: ReqGetOrderBookOrders | null): any {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+
64
+ 'market_id': value['marketId'],
65
+ 'limit': value['limit'],
66
+ };
67
+ }
68
+
@@ -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 ReqGetOrderBooks
20
+ */
21
+ export interface ReqGetOrderBooks {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ReqGetOrderBooks
26
+ */
27
+ filter?: ReqGetOrderBooksFilterEnum;
28
+ /**
29
+ *
30
+ * @type {number}
31
+ * @memberof ReqGetOrderBooks
32
+ */
33
+ marketId?: number;
34
+ }
35
+
36
+
37
+ /**
38
+ * @export
39
+ */
40
+ export const ReqGetOrderBooksFilterEnum = {
41
+ MarketId: 'market_id',
42
+ All: 'all'
43
+ } as const;
44
+ export type ReqGetOrderBooksFilterEnum = typeof ReqGetOrderBooksFilterEnum[keyof typeof ReqGetOrderBooksFilterEnum];
45
+
46
+
47
+ /**
48
+ * Check if a given object implements the ReqGetOrderBooks interface.
49
+ */
50
+ export function instanceOfReqGetOrderBooks(value: object): value is ReqGetOrderBooks {
51
+ return true;
52
+ }
53
+
54
+ export function ReqGetOrderBooksFromJSON(json: any): ReqGetOrderBooks {
55
+ return ReqGetOrderBooksFromJSONTyped(json, false);
56
+ }
57
+
58
+ export function ReqGetOrderBooksFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetOrderBooks {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+
64
+ 'filter': json['filter'] == null ? undefined : json['filter'],
65
+ 'marketId': json['market_id'] == null ? undefined : json['market_id'],
66
+ };
67
+ }
68
+
69
+ export function ReqGetOrderBooksToJSON(value?: ReqGetOrderBooks | null): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+
75
+ 'filter': value['filter'],
76
+ 'market_id': value['marketId'],
77
+ };
78
+ }
79
+