@chainstream-io/sdk 0.1.5 → 0.1.6

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 (147) hide show
  1. package/README.md +46 -0
  2. package/dist/esm/index.d.ts +1 -1
  3. package/dist/esm/index.js +76 -60
  4. package/dist/esm/openapi/apis/BlockchainApi.js +61 -44
  5. package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +67 -50
  6. package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +38 -25
  7. package/dist/esm/openapi/apis/DexApi.js +205 -176
  8. package/dist/esm/openapi/apis/DexPoolApi.js +41 -28
  9. package/dist/esm/openapi/apis/EndpointApi.js +212 -175
  10. package/dist/esm/openapi/apis/IpfsApi.js +38 -25
  11. package/dist/esm/openapi/apis/JobsApi.js +65 -48
  12. package/dist/esm/openapi/apis/RankingApi.js +278 -249
  13. package/dist/esm/openapi/apis/RedPacketApi.js +294 -253
  14. package/dist/esm/openapi/apis/TokenApi.js +1145 -1056
  15. package/dist/esm/openapi/apis/TradeApi.js +233 -208
  16. package/dist/esm/openapi/apis/TransactionApi.js +42 -29
  17. package/dist/esm/openapi/apis/WalletApi.js +148 -123
  18. package/dist/esm/openapi/apis/WatchlistApi.js +41 -28
  19. package/dist/esm/openapi/runtime.js +81 -69
  20. package/dist/esm/stream/index.d.ts +3 -0
  21. package/dist/esm/stream/index.js +3 -0
  22. package/dist/esm/{api → stream}/stream.js +36 -29
  23. package/dist/index.d.ts +1 -1
  24. package/dist/index.js +75 -59
  25. package/dist/openapi/apis/BlockchainApi.js +62 -78
  26. package/dist/openapi/apis/DefiSolanaMoonshotApi.js +68 -84
  27. package/dist/openapi/apis/DefiSolanaPumpfunApi.js +39 -59
  28. package/dist/openapi/apis/DexApi.js +206 -210
  29. package/dist/openapi/apis/DexPoolApi.js +42 -62
  30. package/dist/openapi/apis/EndpointApi.js +213 -209
  31. package/dist/openapi/apis/IpfsApi.js +39 -59
  32. package/dist/openapi/apis/JobsApi.js +66 -82
  33. package/dist/openapi/apis/RankingApi.js +279 -283
  34. package/dist/openapi/apis/RedPacketApi.js +295 -287
  35. package/dist/openapi/apis/TokenApi.js +1146 -1090
  36. package/dist/openapi/apis/TradeApi.js +234 -242
  37. package/dist/openapi/apis/TransactionApi.js +43 -63
  38. package/dist/openapi/apis/WalletApi.js +149 -157
  39. package/dist/openapi/apis/WatchlistApi.js +42 -62
  40. package/dist/openapi/runtime.js +81 -69
  41. package/dist/stream/index.d.ts +3 -0
  42. package/dist/stream/index.js +19 -0
  43. package/dist/{api → stream}/stream.js +36 -29
  44. package/package.json +29 -29
  45. package/src/api/stream.fields.ts +0 -271
  46. package/src/api/stream.model.ts +0 -307
  47. package/src/api/stream.ts +0 -1086
  48. package/src/index.ts +0 -188
  49. package/src/openapi/apis/BlockchainApi.ts +0 -140
  50. package/src/openapi/apis/DefiSolanaMoonshotApi.ts +0 -145
  51. package/src/openapi/apis/DefiSolanaPumpfunApi.ts +0 -86
  52. package/src/openapi/apis/DexApi.ts +0 -490
  53. package/src/openapi/apis/DexPoolApi.ts +0 -107
  54. package/src/openapi/apis/EndpointApi.ts +0 -421
  55. package/src/openapi/apis/IpfsApi.ts +0 -66
  56. package/src/openapi/apis/JobsApi.ts +0 -135
  57. package/src/openapi/apis/RankingApi.ts +0 -939
  58. package/src/openapi/apis/RedPacketApi.ts +0 -621
  59. package/src/openapi/apis/TokenApi.ts +0 -2569
  60. package/src/openapi/apis/TradeApi.ts +0 -596
  61. package/src/openapi/apis/TransactionApi.ts +0 -95
  62. package/src/openapi/apis/WalletApi.ts +0 -365
  63. package/src/openapi/apis/WatchlistApi.ts +0 -107
  64. package/src/openapi/apis/index.ts +0 -17
  65. package/src/openapi/index.ts +0 -5
  66. package/src/openapi/models/BlockchainDTO.ts +0 -93
  67. package/src/openapi/models/BlockchainLatestBlockDTO.ts +0 -75
  68. package/src/openapi/models/BooleanResultDTO.ts +0 -66
  69. package/src/openapi/models/CalculatePnlInput.ts +0 -65
  70. package/src/openapi/models/Candle.ts +0 -130
  71. package/src/openapi/models/ClaimRedPacketInput.ts +0 -90
  72. package/src/openapi/models/CreateEndpointInput.ts +0 -121
  73. package/src/openapi/models/CreateRedPacketInput.ts +0 -124
  74. package/src/openapi/models/CreateRedPacketReply.ts +0 -75
  75. package/src/openapi/models/CreateTokenInput.ts +0 -139
  76. package/src/openapi/models/CreateTokenReply.ts +0 -75
  77. package/src/openapi/models/DexDTO.ts +0 -90
  78. package/src/openapi/models/DexPage.ts +0 -114
  79. package/src/openapi/models/DexPoolDTO.ts +0 -141
  80. package/src/openapi/models/EndpointListResponse.ts +0 -97
  81. package/src/openapi/models/EndpointOperationResponse.ts +0 -65
  82. package/src/openapi/models/EndpointResponse.ts +0 -145
  83. package/src/openapi/models/EndpointSecretResponse.ts +0 -65
  84. package/src/openapi/models/FilterCondition.ts +0 -135
  85. package/src/openapi/models/GainersAndLosersDTO.ts +0 -93
  86. package/src/openapi/models/GainersAndLosersPage.ts +0 -114
  87. package/src/openapi/models/JobDTO.ts +0 -75
  88. package/src/openapi/models/JobStreamingDTO.ts +0 -75
  89. package/src/openapi/models/Link.ts +0 -88
  90. package/src/openapi/models/MoonshotCreateTokenInput.ts +0 -182
  91. package/src/openapi/models/MoonshotCreateTokenReply.ts +0 -75
  92. package/src/openapi/models/MoonshotSubmitCreateToken200Response.ts +0 -73
  93. package/src/openapi/models/MoonshotSubmitCreateTokenInput.ts +0 -74
  94. package/src/openapi/models/PumpCreateTokenInput.ts +0 -180
  95. package/src/openapi/models/PumpCreateTokenReply.ts +0 -74
  96. package/src/openapi/models/QuoteResponse.ts +0 -105
  97. package/src/openapi/models/RedPacketClaimDTO.ts +0 -148
  98. package/src/openapi/models/RedPacketClaimsPage.ts +0 -110
  99. package/src/openapi/models/RedPacketDTO.ts +0 -229
  100. package/src/openapi/models/RedPacketReply.ts +0 -66
  101. package/src/openapi/models/RedPacketSendTxInput.ts +0 -66
  102. package/src/openapi/models/RedPacketSendTxResponse.ts +0 -66
  103. package/src/openapi/models/RedPacketsPage.ts +0 -110
  104. package/src/openapi/models/Resolution.ts +0 -61
  105. package/src/openapi/models/SendTxInput.ts +0 -93
  106. package/src/openapi/models/SendTxResponse.ts +0 -84
  107. package/src/openapi/models/SwapInput.ts +0 -157
  108. package/src/openapi/models/SwapReply.ts +0 -75
  109. package/src/openapi/models/SwapRouteInput.ts +0 -186
  110. package/src/openapi/models/SwapRouteResponse.ts +0 -101
  111. package/src/openapi/models/Token.ts +0 -251
  112. package/src/openapi/models/TokenCreationDTO.ts +0 -131
  113. package/src/openapi/models/TokenCreationPage.ts +0 -114
  114. package/src/openapi/models/TokenCreatorsDTO.ts +0 -81
  115. package/src/openapi/models/TokenExtraDTO.ts +0 -225
  116. package/src/openapi/models/TokenHolder.ts +0 -93
  117. package/src/openapi/models/TokenHolderPage.ts +0 -114
  118. package/src/openapi/models/TokenListPage.ts +0 -114
  119. package/src/openapi/models/TokenMarketData.ts +0 -190
  120. package/src/openapi/models/TokenMetadata.ts +0 -188
  121. package/src/openapi/models/TokenPage.ts +0 -122
  122. package/src/openapi/models/TokenPriceDTO.ts +0 -93
  123. package/src/openapi/models/TokenPricePage.ts +0 -114
  124. package/src/openapi/models/TokenSocialMediasDTO.ts +0 -161
  125. package/src/openapi/models/TokenStat.ts +0 -1152
  126. package/src/openapi/models/TopTradersDTO.ts +0 -164
  127. package/src/openapi/models/TopTradersPage.ts +0 -114
  128. package/src/openapi/models/TradeDetailDTO.ts +0 -282
  129. package/src/openapi/models/TradeEvent.ts +0 -184
  130. package/src/openapi/models/TradePage.ts +0 -114
  131. package/src/openapi/models/TradeType.ts +0 -53
  132. package/src/openapi/models/UpdateEndpointInput.ts +0 -129
  133. package/src/openapi/models/WalletBalanceDetailDTO.ts +0 -282
  134. package/src/openapi/models/WalletBalancesDTO.ts +0 -92
  135. package/src/openapi/models/WalletPnlDTO.ts +0 -264
  136. package/src/openapi/models/index.ts +0 -72
  137. package/src/openapi/runtime.ts +0 -432
  138. /package/dist/{api → esm/stream}/stream.d.ts +0 -0
  139. /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
  140. /package/dist/esm/{api → stream}/stream.fields.js +0 -0
  141. /package/dist/{api → esm/stream}/stream.model.d.ts +0 -0
  142. /package/dist/esm/{api → stream}/stream.model.js +0 -0
  143. /package/dist/{esm/api → stream}/stream.d.ts +0 -0
  144. /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
  145. /package/dist/{api → stream}/stream.fields.js +0 -0
  146. /package/dist/{esm/api → stream}/stream.model.d.ts +0 -0
  147. /package/dist/{api → stream}/stream.model.js +0 -0
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 EndpointOperationResponse
20
- */
21
- export interface EndpointOperationResponse {
22
- /**
23
- * DTO.ENDPOINT.SUCCESS
24
- * @type {boolean}
25
- * @memberof EndpointOperationResponse
26
- */
27
- success?: boolean;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the EndpointOperationResponse interface.
32
- */
33
- export function instanceOfEndpointOperationResponse(value: object): value is EndpointOperationResponse {
34
- return true;
35
- }
36
-
37
- export function EndpointOperationResponseFromJSON(json: any): EndpointOperationResponse {
38
- return EndpointOperationResponseFromJSONTyped(json, false);
39
- }
40
-
41
- export function EndpointOperationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointOperationResponse {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'success': json['success'] == null ? undefined : json['success'],
48
- };
49
- }
50
-
51
- export function EndpointOperationResponseToJSON(json: any): EndpointOperationResponse {
52
- return EndpointOperationResponseToJSONTyped(json, false);
53
- }
54
-
55
- export function EndpointOperationResponseToJSONTyped(value?: EndpointOperationResponse | null, ignoreDiscriminator: boolean = false): any {
56
- if (value == null) {
57
- return value;
58
- }
59
-
60
- return {
61
-
62
- 'success': value['success'],
63
- };
64
- }
65
-
@@ -1,145 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 EndpointResponse
20
- */
21
- export interface EndpointResponse {
22
- /**
23
- * DTO.ENDPOINT.ID
24
- * @type {string}
25
- * @memberof EndpointResponse
26
- */
27
- id?: string;
28
- /**
29
- * DTO.ENDPOINT.URL
30
- * @type {string}
31
- * @memberof EndpointResponse
32
- */
33
- url?: string;
34
- /**
35
- * DTO.ENDPOINT.DESCRIPTION
36
- * @type {string}
37
- * @memberof EndpointResponse
38
- */
39
- description?: string;
40
- /**
41
- * DTO.ENDPOINT.FILTER_TYPES
42
- * @type {Array<string>}
43
- * @memberof EndpointResponse
44
- */
45
- filterTypes?: Array<string>;
46
- /**
47
- * DTO.ENDPOINT.CHANNELS
48
- * @type {Array<string>}
49
- * @memberof EndpointResponse
50
- */
51
- channels?: Array<string>;
52
- /**
53
- * DTO.ENDPOINT.DISABLED
54
- * @type {boolean}
55
- * @memberof EndpointResponse
56
- */
57
- disabled?: boolean;
58
- /**
59
- * DTO.ENDPOINT.METADATA
60
- * @type {object}
61
- * @memberof EndpointResponse
62
- */
63
- metadata?: object;
64
- /**
65
- * DTO.ENDPOINT.RATE_LIMIT
66
- * @type {number}
67
- * @memberof EndpointResponse
68
- */
69
- rateLimit?: number;
70
- /**
71
- * DTO.ENDPOINT.FILTER
72
- * @type {string}
73
- * @memberof EndpointResponse
74
- */
75
- filter?: string;
76
- /**
77
- * DTO.ENDPOINT.CREATED_AT
78
- * @type {string}
79
- * @memberof EndpointResponse
80
- */
81
- createdAt?: string;
82
- /**
83
- * DTO.ENDPOINT.UPDATED_AT
84
- * @type {string}
85
- * @memberof EndpointResponse
86
- */
87
- updatedAt?: string;
88
- }
89
-
90
- /**
91
- * Check if a given object implements the EndpointResponse interface.
92
- */
93
- export function instanceOfEndpointResponse(value: object): value is EndpointResponse {
94
- return true;
95
- }
96
-
97
- export function EndpointResponseFromJSON(json: any): EndpointResponse {
98
- return EndpointResponseFromJSONTyped(json, false);
99
- }
100
-
101
- export function EndpointResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointResponse {
102
- if (json == null) {
103
- return json;
104
- }
105
- return {
106
-
107
- 'id': json['id'] == null ? undefined : json['id'],
108
- 'url': json['url'] == null ? undefined : json['url'],
109
- 'description': json['description'] == null ? undefined : json['description'],
110
- 'filterTypes': json['filterTypes'] == null ? undefined : json['filterTypes'],
111
- 'channels': json['channels'] == null ? undefined : json['channels'],
112
- 'disabled': json['disabled'] == null ? undefined : json['disabled'],
113
- 'metadata': json['metadata'] == null ? undefined : json['metadata'],
114
- 'rateLimit': json['rateLimit'] == null ? undefined : json['rateLimit'],
115
- 'filter': json['filter'] == null ? undefined : json['filter'],
116
- 'createdAt': json['createdAt'] == null ? undefined : json['createdAt'],
117
- 'updatedAt': json['updatedAt'] == null ? undefined : json['updatedAt'],
118
- };
119
- }
120
-
121
- export function EndpointResponseToJSON(json: any): EndpointResponse {
122
- return EndpointResponseToJSONTyped(json, false);
123
- }
124
-
125
- export function EndpointResponseToJSONTyped(value?: EndpointResponse | null, ignoreDiscriminator: boolean = false): any {
126
- if (value == null) {
127
- return value;
128
- }
129
-
130
- return {
131
-
132
- 'id': value['id'],
133
- 'url': value['url'],
134
- 'description': value['description'],
135
- 'filterTypes': value['filterTypes'],
136
- 'channels': value['channels'],
137
- 'disabled': value['disabled'],
138
- 'metadata': value['metadata'],
139
- 'rateLimit': value['rateLimit'],
140
- 'filter': value['filter'],
141
- 'createdAt': value['createdAt'],
142
- 'updatedAt': value['updatedAt'],
143
- };
144
- }
145
-
@@ -1,65 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 EndpointSecretResponse
20
- */
21
- export interface EndpointSecretResponse {
22
- /**
23
- * DTO.ENDPOINT.SECRET
24
- * @type {string}
25
- * @memberof EndpointSecretResponse
26
- */
27
- secret?: string;
28
- }
29
-
30
- /**
31
- * Check if a given object implements the EndpointSecretResponse interface.
32
- */
33
- export function instanceOfEndpointSecretResponse(value: object): value is EndpointSecretResponse {
34
- return true;
35
- }
36
-
37
- export function EndpointSecretResponseFromJSON(json: any): EndpointSecretResponse {
38
- return EndpointSecretResponseFromJSONTyped(json, false);
39
- }
40
-
41
- export function EndpointSecretResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EndpointSecretResponse {
42
- if (json == null) {
43
- return json;
44
- }
45
- return {
46
-
47
- 'secret': json['secret'] == null ? undefined : json['secret'],
48
- };
49
- }
50
-
51
- export function EndpointSecretResponseToJSON(json: any): EndpointSecretResponse {
52
- return EndpointSecretResponseToJSONTyped(json, false);
53
- }
54
-
55
- export function EndpointSecretResponseToJSONTyped(value?: EndpointSecretResponse | null, ignoreDiscriminator: boolean = false): any {
56
- if (value == null) {
57
- return value;
58
- }
59
-
60
- return {
61
-
62
- 'secret': value['secret'],
63
- };
64
- }
65
-
@@ -1,135 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 FilterCondition
20
- */
21
- export interface FilterCondition {
22
- /**
23
- * DTO.TOKEN.FILTER.FIELD
24
- * @type {string}
25
- * @memberof FilterCondition
26
- */
27
- field?: FilterConditionFieldEnum;
28
- /**
29
- * DTO.TOKEN.FILTER.MIN
30
- * @type {string}
31
- * @memberof FilterCondition
32
- */
33
- min?: string;
34
- /**
35
- * DTO.TOKEN.FILTER.MAX
36
- * @type {string}
37
- * @memberof FilterCondition
38
- */
39
- max?: string;
40
- }
41
-
42
-
43
- /**
44
- * @export
45
- */
46
- export const FilterConditionFieldEnum = {
47
- MarketDataPriceInUsd: 'marketData.priceInUsd',
48
- StatsPriceChangeRatioInUsd1m: 'stats.priceChangeRatioInUsd1m',
49
- StatsPriceChangeRatioInUsd5m: 'stats.priceChangeRatioInUsd5m',
50
- StatsPriceChangeRatioInUsd1h: 'stats.priceChangeRatioInUsd1h',
51
- StatsPriceChangeRatioInUsd4h: 'stats.priceChangeRatioInUsd4h',
52
- StatsPriceChangeRatioInUsd24h: 'stats.priceChangeRatioInUsd24h',
53
- MarketDataMarketCapInUsd: 'marketData.marketCapInUsd',
54
- MarketDataTvlInUsd: 'marketData.tvlInUsd',
55
- MarketDataTop10TotalHoldings: 'marketData.top10TotalHoldings',
56
- MarketDataTop10HoldingsRatio: 'marketData.top10HoldingsRatio',
57
- MarketDataTop100TotalHoldings: 'marketData.top100TotalHoldings',
58
- MarketDataTop100HoldingsRatio: 'marketData.top100HoldingsRatio',
59
- MarketDataHolders: 'marketData.holders',
60
- MarketDataCreatorHoldings: 'marketData.creatorHoldings',
61
- MarketDataCreatorHoldingsRatio: 'marketData.creatorHoldingsRatio',
62
- StatsBuys1m: 'stats.buys1m',
63
- StatsBuys5m: 'stats.buys5m',
64
- StatsBuys15m: 'stats.buys15m',
65
- StatsBuys30m: 'stats.buys30m',
66
- StatsBuys1h: 'stats.buys1h',
67
- StatsBuys4h: 'stats.buys4h',
68
- StatsBuys24h: 'stats.buys24h',
69
- StatsSells1m: 'stats.sells1m',
70
- StatsSells5m: 'stats.sells5m',
71
- StatsSells15m: 'stats.sells15m',
72
- StatsSells30m: 'stats.sells30m',
73
- StatsSells1h: 'stats.sells1h',
74
- StatsSells4h: 'stats.sells4h',
75
- StatsSells24h: 'stats.sells24h',
76
- StatsTrades1m: 'stats.trades1m',
77
- StatsTrades5m: 'stats.trades5m',
78
- StatsTrades1h: 'stats.trades1h',
79
- StatsTrades4h: 'stats.trades4h',
80
- StatsTrades24h: 'stats.trades24h',
81
- StatsTraders1m: 'stats.traders1m',
82
- StatsTraders5m: 'stats.traders5m',
83
- StatsTraders1h: 'stats.traders1h',
84
- StatsTraders4h: 'stats.traders4h',
85
- StatsTraders24h: 'stats.traders24h',
86
- StatsVolumesInUsd1m: 'stats.volumesInUsd1m',
87
- StatsVolumesInUsd5m: 'stats.volumesInUsd5m',
88
- StatsVolumesInUsd1h: 'stats.volumesInUsd1h',
89
- StatsVolumesInUsd4h: 'stats.volumesInUsd4h',
90
- StatsVolumesInUsd24h: 'stats.volumesInUsd24h',
91
- TokenCreatedAt: 'tokenCreatedAt'
92
- } as const;
93
- export type FilterConditionFieldEnum = typeof FilterConditionFieldEnum[keyof typeof FilterConditionFieldEnum];
94
-
95
-
96
- /**
97
- * Check if a given object implements the FilterCondition interface.
98
- */
99
- export function instanceOfFilterCondition(value: object): value is FilterCondition {
100
- return true;
101
- }
102
-
103
- export function FilterConditionFromJSON(json: any): FilterCondition {
104
- return FilterConditionFromJSONTyped(json, false);
105
- }
106
-
107
- export function FilterConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FilterCondition {
108
- if (json == null) {
109
- return json;
110
- }
111
- return {
112
-
113
- 'field': json['field'] == null ? undefined : json['field'],
114
- 'min': json['min'] == null ? undefined : json['min'],
115
- 'max': json['max'] == null ? undefined : json['max'],
116
- };
117
- }
118
-
119
- export function FilterConditionToJSON(json: any): FilterCondition {
120
- return FilterConditionToJSONTyped(json, false);
121
- }
122
-
123
- export function FilterConditionToJSONTyped(value?: FilterCondition | null, ignoreDiscriminator: boolean = false): any {
124
- if (value == null) {
125
- return value;
126
- }
127
-
128
- return {
129
-
130
- 'field': value['field'],
131
- 'min': value['min'],
132
- 'max': value['max'],
133
- };
134
- }
135
-
@@ -1,93 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 GainersAndLosersDTO
20
- */
21
- export interface GainersAndLosersDTO {
22
- /**
23
- * GLOBAL.WALLETADDRESS.DESCRIPTION
24
- * @type {string}
25
- * @memberof GainersAndLosersDTO
26
- */
27
- address: string;
28
- /**
29
- * DTO.TRADE.GAINERS_LOSERS.PNL
30
- * @type {number}
31
- * @memberof GainersAndLosersDTO
32
- */
33
- pnl: number;
34
- /**
35
- * DTO.TRADE.GAINERS_LOSERS.TRADE_COUNT
36
- * @type {number}
37
- * @memberof GainersAndLosersDTO
38
- */
39
- tradeCount: number;
40
- /**
41
- * DTO.TRADE.GAINERS_LOSERS.VOLUME
42
- * @type {number}
43
- * @memberof GainersAndLosersDTO
44
- */
45
- volume: number;
46
- }
47
-
48
- /**
49
- * Check if a given object implements the GainersAndLosersDTO interface.
50
- */
51
- export function instanceOfGainersAndLosersDTO(value: object): value is GainersAndLosersDTO {
52
- if (!('address' in value) || value['address'] === undefined) return false;
53
- if (!('pnl' in value) || value['pnl'] === undefined) return false;
54
- if (!('tradeCount' in value) || value['tradeCount'] === undefined) return false;
55
- if (!('volume' in value) || value['volume'] === undefined) return false;
56
- return true;
57
- }
58
-
59
- export function GainersAndLosersDTOFromJSON(json: any): GainersAndLosersDTO {
60
- return GainersAndLosersDTOFromJSONTyped(json, false);
61
- }
62
-
63
- export function GainersAndLosersDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): GainersAndLosersDTO {
64
- if (json == null) {
65
- return json;
66
- }
67
- return {
68
-
69
- 'address': json['address'],
70
- 'pnl': json['pnl'],
71
- 'tradeCount': json['tradeCount'],
72
- 'volume': json['volume'],
73
- };
74
- }
75
-
76
- export function GainersAndLosersDTOToJSON(json: any): GainersAndLosersDTO {
77
- return GainersAndLosersDTOToJSONTyped(json, false);
78
- }
79
-
80
- export function GainersAndLosersDTOToJSONTyped(value?: GainersAndLosersDTO | null, ignoreDiscriminator: boolean = false): any {
81
- if (value == null) {
82
- return value;
83
- }
84
-
85
- return {
86
-
87
- 'address': value['address'],
88
- 'pnl': value['pnl'],
89
- 'tradeCount': value['tradeCount'],
90
- 'volume': value['volume'],
91
- };
92
- }
93
-
@@ -1,114 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 { GainersAndLosersDTO } from './GainersAndLosersDTO';
17
- import {
18
- GainersAndLosersDTOFromJSON,
19
- GainersAndLosersDTOFromJSONTyped,
20
- GainersAndLosersDTOToJSON,
21
- GainersAndLosersDTOToJSONTyped,
22
- } from './GainersAndLosersDTO';
23
-
24
- /**
25
- *
26
- * @export
27
- * @interface GainersAndLosersPage
28
- */
29
- export interface GainersAndLosersPage {
30
- /**
31
- * DTO.PAGE.HAS_NEXT
32
- * @type {boolean}
33
- * @memberof GainersAndLosersPage
34
- */
35
- hasNext?: boolean;
36
- /**
37
- * DTO.PAGE.HAS_PREV
38
- * @type {boolean}
39
- * @memberof GainersAndLosersPage
40
- */
41
- hasPrev?: boolean;
42
- /**
43
- * DTO.PAGE.START_CURSOR
44
- * @type {string}
45
- * @memberof GainersAndLosersPage
46
- */
47
- startCursor?: string;
48
- /**
49
- * DTO.PAGE.END_CURSOR
50
- * @type {string}
51
- * @memberof GainersAndLosersPage
52
- */
53
- endCursor?: string;
54
- /**
55
- * DTO.PAGE.TOTAL
56
- * @type {number}
57
- * @memberof GainersAndLosersPage
58
- */
59
- total?: number;
60
- /**
61
- * DTO.TRADE.GAINERS_LOSERS.PAGE.DATA
62
- * @type {Array<GainersAndLosersDTO>}
63
- * @memberof GainersAndLosersPage
64
- */
65
- data: Array<GainersAndLosersDTO>;
66
- }
67
-
68
- /**
69
- * Check if a given object implements the GainersAndLosersPage interface.
70
- */
71
- export function instanceOfGainersAndLosersPage(value: object): value is GainersAndLosersPage {
72
- if (!('data' in value) || value['data'] === undefined) return false;
73
- return true;
74
- }
75
-
76
- export function GainersAndLosersPageFromJSON(json: any): GainersAndLosersPage {
77
- return GainersAndLosersPageFromJSONTyped(json, false);
78
- }
79
-
80
- export function GainersAndLosersPageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GainersAndLosersPage {
81
- if (json == null) {
82
- return json;
83
- }
84
- return {
85
-
86
- 'hasNext': json['hasNext'] == null ? undefined : json['hasNext'],
87
- 'hasPrev': json['hasPrev'] == null ? undefined : json['hasPrev'],
88
- 'startCursor': json['startCursor'] == null ? undefined : json['startCursor'],
89
- 'endCursor': json['endCursor'] == null ? undefined : json['endCursor'],
90
- 'total': json['total'] == null ? undefined : json['total'],
91
- 'data': ((json['data'] as Array<any>).map(GainersAndLosersDTOFromJSON)),
92
- };
93
- }
94
-
95
- export function GainersAndLosersPageToJSON(json: any): GainersAndLosersPage {
96
- return GainersAndLosersPageToJSONTyped(json, false);
97
- }
98
-
99
- export function GainersAndLosersPageToJSONTyped(value?: GainersAndLosersPage | null, ignoreDiscriminator: boolean = false): any {
100
- if (value == null) {
101
- return value;
102
- }
103
-
104
- return {
105
-
106
- 'hasNext': value['hasNext'],
107
- 'hasPrev': value['hasPrev'],
108
- 'startCursor': value['startCursor'],
109
- 'endCursor': value['endCursor'],
110
- 'total': value['total'],
111
- 'data': ((value['data'] as Array<any>).map(GainersAndLosersDTOToJSON)),
112
- };
113
- }
114
-
@@ -1,75 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Dex Aggregator API
5
- * Dex Aggregator API ⚡️
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: ai@sx.ai
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 JobDTO
20
- */
21
- export interface JobDTO {
22
- /**
23
- * DTO.JOB.STATE
24
- * @type {string}
25
- * @memberof JobDTO
26
- */
27
- state: string;
28
- /**
29
- * DTO.JOB.RESULT
30
- * @type {object}
31
- * @memberof JobDTO
32
- */
33
- result: object;
34
- }
35
-
36
- /**
37
- * Check if a given object implements the JobDTO interface.
38
- */
39
- export function instanceOfJobDTO(value: object): value is JobDTO {
40
- if (!('state' in value) || value['state'] === undefined) return false;
41
- if (!('result' in value) || value['result'] === undefined) return false;
42
- return true;
43
- }
44
-
45
- export function JobDTOFromJSON(json: any): JobDTO {
46
- return JobDTOFromJSONTyped(json, false);
47
- }
48
-
49
- export function JobDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): JobDTO {
50
- if (json == null) {
51
- return json;
52
- }
53
- return {
54
-
55
- 'state': json['state'],
56
- 'result': json['result'],
57
- };
58
- }
59
-
60
- export function JobDTOToJSON(json: any): JobDTO {
61
- return JobDTOToJSONTyped(json, false);
62
- }
63
-
64
- export function JobDTOToJSONTyped(value?: JobDTO | null, ignoreDiscriminator: boolean = false): any {
65
- if (value == null) {
66
- return value;
67
- }
68
-
69
- return {
70
-
71
- 'state': value['state'],
72
- 'result': value['result'],
73
- };
74
- }
75
-