@chainstream-io/sdk 0.0.8 → 0.0.10
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/dist/api/stream.js +240 -190
- package/dist/api/stream.js.map +1 -1
- package/dist/api/stream.model.d.ts +19 -1
- package/dist/api/stream.model.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/openapi/apis/DexApi.d.ts +5 -2
- package/dist/openapi/apis/DexApi.js +79 -4
- package/dist/openapi/apis/DexApi.js.map +1 -1
- package/dist/openapi/apis/TradeApi.d.ts +3 -1
- package/dist/openapi/apis/TradeApi.js +76 -1
- package/dist/openapi/apis/TradeApi.js.map +1 -1
- package/dist/openapi/index.d.ts +1 -1
- package/dist/openapi/index.js.map +1 -1
- package/dist/openapi/models/CreateTokenInput.d.ts +34 -0
- package/dist/openapi/models/CreateTokenInput.js +72 -0
- package/dist/openapi/models/CreateTokenInput.js.map +1 -0
- package/dist/openapi/models/ObjectSerializer.d.ts +2 -1
- package/dist/openapi/models/ObjectSerializer.js +7 -4
- package/dist/openapi/models/ObjectSerializer.js.map +1 -1
- package/dist/openapi/models/QuoteResponse.d.ts +25 -0
- package/dist/openapi/models/QuoteResponse.js +52 -0
- package/dist/openapi/models/QuoteResponse.js.map +1 -0
- package/dist/openapi/models/TokenExtraDTO.d.ts +5 -5
- package/dist/openapi/models/TokenExtraDTO.js +10 -10
- package/dist/openapi/models/TokenExtraDTO.js.map +1 -1
- package/dist/openapi/models/TradeDetailDTO.d.ts +1 -1
- package/dist/openapi/models/TradeDetailDTO.js +2 -2
- package/dist/openapi/models/TradeDetailDTO.js.map +1 -1
- package/dist/openapi/models/all.d.ts +2 -1
- package/dist/openapi/models/all.js +2 -1
- package/dist/openapi/models/all.js.map +1 -1
- package/dist/openapi/types/ObjectParamAPI.d.ts +31 -2
- package/dist/openapi/types/ObjectParamAPI.js +16 -4
- package/dist/openapi/types/ObjectParamAPI.js.map +1 -1
- package/dist/openapi/types/ObservableAPI.d.ts +10 -5
- package/dist/openapi/types/ObservableAPI.js +44 -8
- package/dist/openapi/types/ObservableAPI.js.map +1 -1
- package/dist/openapi/types/PromiseAPI.d.ts +10 -5
- package/dist/openapi/types/PromiseAPI.js +24 -8
- package/dist/openapi/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
- package/src/api/stream.model.ts +21 -1
- package/src/api/stream.ts +178 -136
- package/src/index.ts +1 -1
- package/src/openapi/.openapi-generator/FILES +2 -1
- package/src/openapi/apis/DexApi.ts +149 -7
- package/src/openapi/apis/TradeApi.ts +154 -1
- package/src/openapi/index.ts +1 -1
- package/src/openapi/models/{DexCreateTokenInput.ts → CreateTokenInput.ts} +5 -5
- package/src/openapi/models/ObjectSerializer.ts +7 -4
- package/src/openapi/models/QuoteResponse.ts +89 -0
- package/src/openapi/models/TokenExtraDTO.ts +20 -20
- package/src/openapi/models/TradeDetailDTO.ts +4 -4
- package/src/openapi/models/all.ts +2 -1
- package/src/openapi/types/ObjectParamAPI.ts +192 -7
- package/src/openapi/types/ObservableAPI.ts +114 -11
- package/src/openapi/types/PromiseAPI.ts +88 -11
|
@@ -42,29 +42,29 @@ export class TokenExtraDTO {
|
|
|
42
42
|
*/
|
|
43
43
|
'primarySaleHappened'?: boolean;
|
|
44
44
|
/**
|
|
45
|
-
* DTO.TOKEN.EXTRA.
|
|
45
|
+
* DTO.TOKEN.EXTRA.LAUNCH_FROM_PROGRAM_ADDRESS
|
|
46
46
|
*/
|
|
47
|
-
'
|
|
47
|
+
'launchFromProgramAddress'?: string;
|
|
48
48
|
/**
|
|
49
|
-
* DTO.TOKEN.EXTRA.
|
|
49
|
+
* DTO.TOKEN.EXTRA.LAUNCH_FROM_PROTOCOL_FAMILY
|
|
50
50
|
*/
|
|
51
|
-
'
|
|
51
|
+
'launchFromProtocolFamily'?: string;
|
|
52
52
|
/**
|
|
53
53
|
* DTO.TOKEN.EXTRA.PROGRAM_ADDRESS
|
|
54
54
|
*/
|
|
55
55
|
'programAddress'?: string;
|
|
56
56
|
/**
|
|
57
|
-
* DTO.TOKEN.EXTRA.
|
|
57
|
+
* DTO.TOKEN.EXTRA.MIGRATED_TO_PROGRAM_ADDRESS
|
|
58
58
|
*/
|
|
59
|
-
'
|
|
59
|
+
'migratedToProgramAddress'?: string;
|
|
60
60
|
/**
|
|
61
|
-
* DTO.TOKEN.EXTRA.
|
|
61
|
+
* DTO.TOKEN.EXTRA.MIGRATED_TO_PROTOCOL_FAMILY
|
|
62
62
|
*/
|
|
63
|
-
'
|
|
63
|
+
'migratedToProtocolFamily'?: string;
|
|
64
64
|
/**
|
|
65
|
-
* DTO.TOKEN.EXTRA.
|
|
65
|
+
* DTO.TOKEN.EXTRA.MIGRATED_TO_POOL_ADDRESS
|
|
66
66
|
*/
|
|
67
|
-
'
|
|
67
|
+
'migratedToPoolAddress'?: string;
|
|
68
68
|
/**
|
|
69
69
|
* DTO.TOKEN.EXTRA.MIGRATED_AT
|
|
70
70
|
*/
|
|
@@ -146,14 +146,14 @@ export class TokenExtraDTO {
|
|
|
146
146
|
"format": ""
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
|
-
"name": "
|
|
150
|
-
"baseName": "
|
|
149
|
+
"name": "launchFromProgramAddress",
|
|
150
|
+
"baseName": "launchFromProgramAddress",
|
|
151
151
|
"type": "string",
|
|
152
152
|
"format": ""
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
"name": "
|
|
156
|
-
"baseName": "
|
|
155
|
+
"name": "launchFromProtocolFamily",
|
|
156
|
+
"baseName": "launchFromProtocolFamily",
|
|
157
157
|
"type": "string",
|
|
158
158
|
"format": ""
|
|
159
159
|
},
|
|
@@ -164,20 +164,20 @@ export class TokenExtraDTO {
|
|
|
164
164
|
"format": ""
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
"name": "
|
|
168
|
-
"baseName": "
|
|
167
|
+
"name": "migratedToProgramAddress",
|
|
168
|
+
"baseName": "migratedToProgramAddress",
|
|
169
169
|
"type": "string",
|
|
170
170
|
"format": ""
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
|
-
"name": "
|
|
174
|
-
"baseName": "
|
|
173
|
+
"name": "migratedToProtocolFamily",
|
|
174
|
+
"baseName": "migratedToProtocolFamily",
|
|
175
175
|
"type": "string",
|
|
176
176
|
"format": ""
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
"name": "
|
|
180
|
-
"baseName": "
|
|
179
|
+
"name": "migratedToPoolAddress",
|
|
180
|
+
"baseName": "migratedToPoolAddress",
|
|
181
181
|
"type": "string",
|
|
182
182
|
"format": ""
|
|
183
183
|
},
|
|
@@ -78,9 +78,9 @@ export class TradeDetailDTO {
|
|
|
78
78
|
*/
|
|
79
79
|
'tokenAmountInUsd': string;
|
|
80
80
|
/**
|
|
81
|
-
* DTO.TRADE.DETAIL.
|
|
81
|
+
* DTO.TRADE.DETAIL.TYPE
|
|
82
82
|
*/
|
|
83
|
-
'
|
|
83
|
+
'type': string;
|
|
84
84
|
/**
|
|
85
85
|
* DTO.TRADE.DETAIL.SIDE_TOKEN_NAME
|
|
86
86
|
*/
|
|
@@ -216,8 +216,8 @@ export class TradeDetailDTO {
|
|
|
216
216
|
"format": ""
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
"name": "
|
|
220
|
-
"baseName": "
|
|
219
|
+
"name": "type",
|
|
220
|
+
"baseName": "type",
|
|
221
221
|
"type": "string",
|
|
222
222
|
"format": ""
|
|
223
223
|
},
|
|
@@ -4,8 +4,8 @@ export * from '../models/Candle'
|
|
|
4
4
|
export * from '../models/ClaimRedPacketInput'
|
|
5
5
|
export * from '../models/CreateRedPacketInput'
|
|
6
6
|
export * from '../models/CreateRedPacketReply'
|
|
7
|
+
export * from '../models/CreateTokenInput'
|
|
7
8
|
export * from '../models/CreateTokenReply'
|
|
8
|
-
export * from '../models/DexCreateTokenInput'
|
|
9
9
|
export * from '../models/DexDTO'
|
|
10
10
|
export * from '../models/DexPage'
|
|
11
11
|
export * from '../models/DexPoolDTO'
|
|
@@ -19,6 +19,7 @@ export * from '../models/MoonshotSubmitCreateToken200Response'
|
|
|
19
19
|
export * from '../models/MoonshotSubmitCreateTokenInput'
|
|
20
20
|
export * from '../models/PumpCreateTokenInput'
|
|
21
21
|
export * from '../models/PumpCreateTokenReply'
|
|
22
|
+
export * from '../models/QuoteResponse'
|
|
22
23
|
export * from '../models/RedPacketClaimDTO'
|
|
23
24
|
export * from '../models/RedPacketClaimsPage'
|
|
24
25
|
export * from '../models/RedPacketDTO'
|
|
@@ -7,8 +7,8 @@ import { Candle } from '../models/Candle';
|
|
|
7
7
|
import { ClaimRedPacketInput } from '../models/ClaimRedPacketInput';
|
|
8
8
|
import { CreateRedPacketInput } from '../models/CreateRedPacketInput';
|
|
9
9
|
import { CreateRedPacketReply } from '../models/CreateRedPacketReply';
|
|
10
|
+
import { CreateTokenInput } from '../models/CreateTokenInput';
|
|
10
11
|
import { CreateTokenReply } from '../models/CreateTokenReply';
|
|
11
|
-
import { DexCreateTokenInput } from '../models/DexCreateTokenInput';
|
|
12
12
|
import { DexDTO } from '../models/DexDTO';
|
|
13
13
|
import { DexPage } from '../models/DexPage';
|
|
14
14
|
import { DexPoolDTO } from '../models/DexPoolDTO';
|
|
@@ -22,6 +22,7 @@ import { MoonshotSubmitCreateToken200Response } from '../models/MoonshotSubmitCr
|
|
|
22
22
|
import { MoonshotSubmitCreateTokenInput } from '../models/MoonshotSubmitCreateTokenInput';
|
|
23
23
|
import { PumpCreateTokenInput } from '../models/PumpCreateTokenInput';
|
|
24
24
|
import { PumpCreateTokenReply } from '../models/PumpCreateTokenReply';
|
|
25
|
+
import { QuoteResponse } from '../models/QuoteResponse';
|
|
25
26
|
import { RedPacketClaimDTO } from '../models/RedPacketClaimDTO';
|
|
26
27
|
import { RedPacketClaimsPage } from '../models/RedPacketClaimsPage';
|
|
27
28
|
import { RedPacketDTO } from '../models/RedPacketDTO';
|
|
@@ -240,10 +241,10 @@ export interface DexApiCreateTokenRequest {
|
|
|
240
241
|
chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui'
|
|
241
242
|
/**
|
|
242
243
|
* Token creation parameters
|
|
243
|
-
* @type
|
|
244
|
+
* @type CreateTokenInput
|
|
244
245
|
* @memberof DexApicreateToken
|
|
245
246
|
*/
|
|
246
|
-
|
|
247
|
+
createTokenInput: CreateTokenInput
|
|
247
248
|
}
|
|
248
249
|
|
|
249
250
|
export interface DexApiListRequest {
|
|
@@ -272,6 +273,58 @@ export interface DexApiListRequest {
|
|
|
272
273
|
dexProgram?: string
|
|
273
274
|
}
|
|
274
275
|
|
|
276
|
+
export interface DexApiQuoteRequest {
|
|
277
|
+
/**
|
|
278
|
+
* GLOBAL.CHAIN.DESCRIPTION
|
|
279
|
+
* Defaults to: undefined
|
|
280
|
+
* @type 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui'
|
|
281
|
+
* @memberof DexApiquote
|
|
282
|
+
*/
|
|
283
|
+
chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui'
|
|
284
|
+
/**
|
|
285
|
+
* DTO.DEX.QUOTE.DEX
|
|
286
|
+
* Defaults to: undefined
|
|
287
|
+
* @type 'raydium' | 'pumpfun'
|
|
288
|
+
* @memberof DexApiquote
|
|
289
|
+
*/
|
|
290
|
+
dex: 'raydium' | 'pumpfun'
|
|
291
|
+
/**
|
|
292
|
+
* DTO.DEX.QUOTE.AMOUNT
|
|
293
|
+
* Defaults to: undefined
|
|
294
|
+
* @type string
|
|
295
|
+
* @memberof DexApiquote
|
|
296
|
+
*/
|
|
297
|
+
amount: string
|
|
298
|
+
/**
|
|
299
|
+
* DTO.DEX.QUOTE.INPUT_MINT
|
|
300
|
+
* Defaults to: undefined
|
|
301
|
+
* @type string
|
|
302
|
+
* @memberof DexApiquote
|
|
303
|
+
*/
|
|
304
|
+
inputMint: string
|
|
305
|
+
/**
|
|
306
|
+
* DTO.DEX.QUOTE.OUTPUT_MINT
|
|
307
|
+
* Defaults to: undefined
|
|
308
|
+
* @type string
|
|
309
|
+
* @memberof DexApiquote
|
|
310
|
+
*/
|
|
311
|
+
outputMint: string
|
|
312
|
+
/**
|
|
313
|
+
* DTO.DEX.QUOTE.EXACT_IN
|
|
314
|
+
* Defaults to: true
|
|
315
|
+
* @type boolean
|
|
316
|
+
* @memberof DexApiquote
|
|
317
|
+
*/
|
|
318
|
+
exactIn: boolean
|
|
319
|
+
/**
|
|
320
|
+
* DTO.DEX.QUOTE.SLIPPAGE
|
|
321
|
+
* Defaults to: undefined
|
|
322
|
+
* @type number
|
|
323
|
+
* @memberof DexApiquote
|
|
324
|
+
*/
|
|
325
|
+
slippage: number
|
|
326
|
+
}
|
|
327
|
+
|
|
275
328
|
export interface DexApiRouteRequest {
|
|
276
329
|
/**
|
|
277
330
|
* GLOBAL.CHAIN.DESCRIPTION
|
|
@@ -317,7 +370,7 @@ export class ObjectDexApi {
|
|
|
317
370
|
* @param param the request object
|
|
318
371
|
*/
|
|
319
372
|
public createTokenWithHttpInfo(param: DexApiCreateTokenRequest, options?: Configuration): Promise<HttpInfo<CreateTokenReply>> {
|
|
320
|
-
return this.api.createTokenWithHttpInfo(param.chain, param.
|
|
373
|
+
return this.api.createTokenWithHttpInfo(param.chain, param.createTokenInput, options).toPromise();
|
|
321
374
|
}
|
|
322
375
|
|
|
323
376
|
/**
|
|
@@ -326,7 +379,7 @@ export class ObjectDexApi {
|
|
|
326
379
|
* @param param the request object
|
|
327
380
|
*/
|
|
328
381
|
public createToken(param: DexApiCreateTokenRequest, options?: Configuration): Promise<CreateTokenReply> {
|
|
329
|
-
return this.api.createToken(param.chain, param.
|
|
382
|
+
return this.api.createToken(param.chain, param.createTokenInput, options).toPromise();
|
|
330
383
|
}
|
|
331
384
|
|
|
332
385
|
/**
|
|
@@ -347,6 +400,24 @@ export class ObjectDexApi {
|
|
|
347
400
|
return this.api.list(param.chains, param.limit, param.dexProgram, options).toPromise();
|
|
348
401
|
}
|
|
349
402
|
|
|
403
|
+
/**
|
|
404
|
+
* CONTROLLER.DEX.QUOTE.DESCRIPTION
|
|
405
|
+
* CONTROLLER.DEX.QUOTE.SUMMARY
|
|
406
|
+
* @param param the request object
|
|
407
|
+
*/
|
|
408
|
+
public quoteWithHttpInfo(param: DexApiQuoteRequest, options?: Configuration): Promise<HttpInfo<QuoteResponse>> {
|
|
409
|
+
return this.api.quoteWithHttpInfo(param.chain, param.dex, param.amount, param.inputMint, param.outputMint, param.exactIn, param.slippage, options).toPromise();
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* CONTROLLER.DEX.QUOTE.DESCRIPTION
|
|
414
|
+
* CONTROLLER.DEX.QUOTE.SUMMARY
|
|
415
|
+
* @param param the request object
|
|
416
|
+
*/
|
|
417
|
+
public quote(param: DexApiQuoteRequest, options?: Configuration): Promise<QuoteResponse> {
|
|
418
|
+
return this.api.quote(param.chain, param.dex, param.amount, param.inputMint, param.outputMint, param.exactIn, param.slippage, options).toPromise();
|
|
419
|
+
}
|
|
420
|
+
|
|
350
421
|
/**
|
|
351
422
|
* CONTROLLER.DEX.ROUTE.DESCRIPTION
|
|
352
423
|
* CONTROLLER.DEX.ROUTE.SUMMARY
|
|
@@ -3128,6 +3199,95 @@ export class ObjectTokenApi {
|
|
|
3128
3199
|
import { ObservableTradeApi } from "./ObservableAPI";
|
|
3129
3200
|
import { TradeApiRequestFactory, TradeApiResponseProcessor} from "../apis/TradeApi";
|
|
3130
3201
|
|
|
3202
|
+
export interface TradeApiGetActivitiesRequest {
|
|
3203
|
+
/**
|
|
3204
|
+
* GLOBAL.CHAIN.DESCRIPTION
|
|
3205
|
+
* Defaults to: undefined
|
|
3206
|
+
* @type 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui'
|
|
3207
|
+
* @memberof TradeApigetActivities
|
|
3208
|
+
*/
|
|
3209
|
+
chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui'
|
|
3210
|
+
/**
|
|
3211
|
+
* DTO.PAGE.CURSOR.DESCRIPTION
|
|
3212
|
+
* Defaults to: undefined
|
|
3213
|
+
* @type string
|
|
3214
|
+
* @memberof TradeApigetActivities
|
|
3215
|
+
*/
|
|
3216
|
+
cursor?: string
|
|
3217
|
+
/**
|
|
3218
|
+
* DTO.PAGE.LIMIT
|
|
3219
|
+
* Minimum: 1
|
|
3220
|
+
* Maximum: 100
|
|
3221
|
+
* Defaults to: 20
|
|
3222
|
+
* @type number
|
|
3223
|
+
* @memberof TradeApigetActivities
|
|
3224
|
+
*/
|
|
3225
|
+
limit?: number
|
|
3226
|
+
/**
|
|
3227
|
+
* DTO.PAGE.DIRECTION
|
|
3228
|
+
* Defaults to: 'next'
|
|
3229
|
+
* @type 'next' | 'prev'
|
|
3230
|
+
* @memberof TradeApigetActivities
|
|
3231
|
+
*/
|
|
3232
|
+
direction?: 'next' | 'prev'
|
|
3233
|
+
/**
|
|
3234
|
+
* DTO.TRADE.QUERY.TOKEN_ADDRESS
|
|
3235
|
+
* Defaults to: undefined
|
|
3236
|
+
* @type string
|
|
3237
|
+
* @memberof TradeApigetActivities
|
|
3238
|
+
*/
|
|
3239
|
+
tokenAddress?: string
|
|
3240
|
+
/**
|
|
3241
|
+
* DTO.TRADE.QUERY.WALLET_ADDRESS
|
|
3242
|
+
* Defaults to: undefined
|
|
3243
|
+
* @type string
|
|
3244
|
+
* @memberof TradeApigetActivities
|
|
3245
|
+
*/
|
|
3246
|
+
walletAddress?: string
|
|
3247
|
+
/**
|
|
3248
|
+
* DTO.TRADE.QUERY.POOL_ADDRESS
|
|
3249
|
+
* Defaults to: undefined
|
|
3250
|
+
* @type string
|
|
3251
|
+
* @memberof TradeApigetActivities
|
|
3252
|
+
*/
|
|
3253
|
+
poolAddress?: string
|
|
3254
|
+
/**
|
|
3255
|
+
* DTO.TRADE.QUERY.BEFORE_TIMESTAMP
|
|
3256
|
+
* Defaults to: undefined
|
|
3257
|
+
* @type number
|
|
3258
|
+
* @memberof TradeApigetActivities
|
|
3259
|
+
*/
|
|
3260
|
+
beforeTimestamp?: number
|
|
3261
|
+
/**
|
|
3262
|
+
* DTO.TRADE.QUERY.AFTER_TIMESTAMP
|
|
3263
|
+
* Defaults to: undefined
|
|
3264
|
+
* @type number
|
|
3265
|
+
* @memberof TradeApigetActivities
|
|
3266
|
+
*/
|
|
3267
|
+
afterTimestamp?: number
|
|
3268
|
+
/**
|
|
3269
|
+
* DTO.TRADE.QUERY.BEFORE_BLOCK_HEIGHT
|
|
3270
|
+
* Defaults to: undefined
|
|
3271
|
+
* @type number
|
|
3272
|
+
* @memberof TradeApigetActivities
|
|
3273
|
+
*/
|
|
3274
|
+
beforeBlockHeight?: number
|
|
3275
|
+
/**
|
|
3276
|
+
* DTO.TRADE.QUERY.AFTER_BLOCK_HEIGHT
|
|
3277
|
+
* Defaults to: undefined
|
|
3278
|
+
* @type number
|
|
3279
|
+
* @memberof TradeApigetActivities
|
|
3280
|
+
*/
|
|
3281
|
+
afterBlockHeight?: number
|
|
3282
|
+
/**
|
|
3283
|
+
* DTO.TRADE.QUERY.ACTIVITIES_TYPE
|
|
3284
|
+
* Defaults to: undefined
|
|
3285
|
+
* @type 'BUY' | 'SELL' | 'LIQUIDITY_INITIALIZE' | 'LIQUIDITY_ADD' | 'LIQUIDITY_REMOVE' | 'RED_PACKET_CREATE' | 'RED_PACKET_CLAIM' | 'RED_PACKET_COMPLETE' | 'RED_PACKET_REFUND'
|
|
3286
|
+
* @memberof TradeApigetActivities
|
|
3287
|
+
*/
|
|
3288
|
+
type?: 'BUY' | 'SELL' | 'LIQUIDITY_INITIALIZE' | 'LIQUIDITY_ADD' | 'LIQUIDITY_REMOVE' | 'RED_PACKET_CREATE' | 'RED_PACKET_CLAIM' | 'RED_PACKET_COMPLETE' | 'RED_PACKET_REFUND'
|
|
3289
|
+
}
|
|
3290
|
+
|
|
3131
3291
|
export interface TradeApiGetGainersLosersRequest {
|
|
3132
3292
|
/**
|
|
3133
3293
|
* GLOBAL.CHAIN.DESCRIPTION
|
|
@@ -3323,6 +3483,13 @@ export interface TradeApiGetTradesRequest {
|
|
|
3323
3483
|
* @memberof TradeApigetTrades
|
|
3324
3484
|
*/
|
|
3325
3485
|
afterBlockHeight?: number
|
|
3486
|
+
/**
|
|
3487
|
+
* DTO.TRADE.QUERY.TRADES_TYPE
|
|
3488
|
+
* Defaults to: undefined
|
|
3489
|
+
* @type 'BUY' | 'SELL'
|
|
3490
|
+
* @memberof TradeApigetTrades
|
|
3491
|
+
*/
|
|
3492
|
+
type?: 'BUY' | 'SELL'
|
|
3326
3493
|
}
|
|
3327
3494
|
|
|
3328
3495
|
export class ObjectTradeApi {
|
|
@@ -3332,6 +3499,24 @@ export class ObjectTradeApi {
|
|
|
3332
3499
|
this.api = new ObservableTradeApi(configuration, requestFactory, responseProcessor);
|
|
3333
3500
|
}
|
|
3334
3501
|
|
|
3502
|
+
/**
|
|
3503
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.DESCRIPTION
|
|
3504
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.SUMMARY
|
|
3505
|
+
* @param param the request object
|
|
3506
|
+
*/
|
|
3507
|
+
public getActivitiesWithHttpInfo(param: TradeApiGetActivitiesRequest, options?: Configuration): Promise<HttpInfo<TradePage>> {
|
|
3508
|
+
return this.api.getActivitiesWithHttpInfo(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, param.type, options).toPromise();
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.DESCRIPTION
|
|
3513
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.SUMMARY
|
|
3514
|
+
* @param param the request object
|
|
3515
|
+
*/
|
|
3516
|
+
public getActivities(param: TradeApiGetActivitiesRequest, options?: Configuration): Promise<TradePage> {
|
|
3517
|
+
return this.api.getActivities(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, param.type, options).toPromise();
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3335
3520
|
/**
|
|
3336
3521
|
* CONTROLLER.TRADE.GET.GAINERS_LOSERS.DESCRIPTION
|
|
3337
3522
|
* CONTROLLER.TRADE.GET.GAINERS_LOSERS.SUMMARY
|
|
@@ -3374,7 +3559,7 @@ export class ObjectTradeApi {
|
|
|
3374
3559
|
* @param param the request object
|
|
3375
3560
|
*/
|
|
3376
3561
|
public getTradesWithHttpInfo(param: TradeApiGetTradesRequest, options?: Configuration): Promise<HttpInfo<TradePage>> {
|
|
3377
|
-
return this.api.getTradesWithHttpInfo(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, options).toPromise();
|
|
3562
|
+
return this.api.getTradesWithHttpInfo(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, param.type, options).toPromise();
|
|
3378
3563
|
}
|
|
3379
3564
|
|
|
3380
3565
|
/**
|
|
@@ -3383,7 +3568,7 @@ export class ObjectTradeApi {
|
|
|
3383
3568
|
* @param param the request object
|
|
3384
3569
|
*/
|
|
3385
3570
|
public getTrades(param: TradeApiGetTradesRequest, options?: Configuration): Promise<TradePage> {
|
|
3386
|
-
return this.api.getTrades(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, options).toPromise();
|
|
3571
|
+
return this.api.getTrades(param.chain, param.cursor, param.limit, param.direction, param.tokenAddress, param.walletAddress, param.poolAddress, param.beforeTimestamp, param.afterTimestamp, param.beforeBlockHeight, param.afterBlockHeight, param.type, options).toPromise();
|
|
3387
3572
|
}
|
|
3388
3573
|
|
|
3389
3574
|
}
|
|
@@ -8,8 +8,8 @@ import { Candle } from '../models/Candle';
|
|
|
8
8
|
import { ClaimRedPacketInput } from '../models/ClaimRedPacketInput';
|
|
9
9
|
import { CreateRedPacketInput } from '../models/CreateRedPacketInput';
|
|
10
10
|
import { CreateRedPacketReply } from '../models/CreateRedPacketReply';
|
|
11
|
+
import { CreateTokenInput } from '../models/CreateTokenInput';
|
|
11
12
|
import { CreateTokenReply } from '../models/CreateTokenReply';
|
|
12
|
-
import { DexCreateTokenInput } from '../models/DexCreateTokenInput';
|
|
13
13
|
import { DexDTO } from '../models/DexDTO';
|
|
14
14
|
import { DexPage } from '../models/DexPage';
|
|
15
15
|
import { DexPoolDTO } from '../models/DexPoolDTO';
|
|
@@ -23,6 +23,7 @@ import { MoonshotSubmitCreateToken200Response } from '../models/MoonshotSubmitCr
|
|
|
23
23
|
import { MoonshotSubmitCreateTokenInput } from '../models/MoonshotSubmitCreateTokenInput';
|
|
24
24
|
import { PumpCreateTokenInput } from '../models/PumpCreateTokenInput';
|
|
25
25
|
import { PumpCreateTokenReply } from '../models/PumpCreateTokenReply';
|
|
26
|
+
import { QuoteResponse } from '../models/QuoteResponse';
|
|
26
27
|
import { RedPacketClaimDTO } from '../models/RedPacketClaimDTO';
|
|
27
28
|
import { RedPacketClaimsPage } from '../models/RedPacketClaimsPage';
|
|
28
29
|
import { RedPacketDTO } from '../models/RedPacketDTO';
|
|
@@ -299,10 +300,10 @@ export class ObservableDexApi {
|
|
|
299
300
|
* CONTROLLER.DEX.CREATE.DESCRIPTION
|
|
300
301
|
* CONTROLLER.DEX.CREATE.SUMMARY
|
|
301
302
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
302
|
-
* @param
|
|
303
|
+
* @param createTokenInput Token creation parameters
|
|
303
304
|
*/
|
|
304
|
-
public createTokenWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui',
|
|
305
|
-
const requestContextPromise = this.requestFactory.createToken(chain,
|
|
305
|
+
public createTokenWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', createTokenInput: CreateTokenInput, _options?: Configuration): Observable<HttpInfo<CreateTokenReply>> {
|
|
306
|
+
const requestContextPromise = this.requestFactory.createToken(chain, createTokenInput, _options);
|
|
306
307
|
|
|
307
308
|
// build promise chain
|
|
308
309
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -324,10 +325,10 @@ export class ObservableDexApi {
|
|
|
324
325
|
* CONTROLLER.DEX.CREATE.DESCRIPTION
|
|
325
326
|
* CONTROLLER.DEX.CREATE.SUMMARY
|
|
326
327
|
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
327
|
-
* @param
|
|
328
|
+
* @param createTokenInput Token creation parameters
|
|
328
329
|
*/
|
|
329
|
-
public createToken(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui',
|
|
330
|
-
return this.createTokenWithHttpInfo(chain,
|
|
330
|
+
public createToken(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', createTokenInput: CreateTokenInput, _options?: Configuration): Observable<CreateTokenReply> {
|
|
331
|
+
return this.createTokenWithHttpInfo(chain, createTokenInput, _options).pipe(map((apiResponse: HttpInfo<CreateTokenReply>) => apiResponse.data));
|
|
331
332
|
}
|
|
332
333
|
|
|
333
334
|
/**
|
|
@@ -367,6 +368,51 @@ export class ObservableDexApi {
|
|
|
367
368
|
return this.listWithHttpInfo(chains, limit, dexProgram, _options).pipe(map((apiResponse: HttpInfo<DexPage>) => apiResponse.data));
|
|
368
369
|
}
|
|
369
370
|
|
|
371
|
+
/**
|
|
372
|
+
* CONTROLLER.DEX.QUOTE.DESCRIPTION
|
|
373
|
+
* CONTROLLER.DEX.QUOTE.SUMMARY
|
|
374
|
+
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
375
|
+
* @param dex DTO.DEX.QUOTE.DEX
|
|
376
|
+
* @param amount DTO.DEX.QUOTE.AMOUNT
|
|
377
|
+
* @param inputMint DTO.DEX.QUOTE.INPUT_MINT
|
|
378
|
+
* @param outputMint DTO.DEX.QUOTE.OUTPUT_MINT
|
|
379
|
+
* @param exactIn DTO.DEX.QUOTE.EXACT_IN
|
|
380
|
+
* @param slippage DTO.DEX.QUOTE.SLIPPAGE
|
|
381
|
+
*/
|
|
382
|
+
public quoteWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', dex: 'raydium' | 'pumpfun', amount: string, inputMint: string, outputMint: string, exactIn: boolean, slippage: number, _options?: Configuration): Observable<HttpInfo<QuoteResponse>> {
|
|
383
|
+
const requestContextPromise = this.requestFactory.quote(chain, dex, amount, inputMint, outputMint, exactIn, slippage, _options);
|
|
384
|
+
|
|
385
|
+
// build promise chain
|
|
386
|
+
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
387
|
+
for (const middleware of this.configuration.middleware) {
|
|
388
|
+
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
392
|
+
pipe(mergeMap((response: ResponseContext) => {
|
|
393
|
+
let middlewarePostObservable = of(response);
|
|
394
|
+
for (const middleware of this.configuration.middleware) {
|
|
395
|
+
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
396
|
+
}
|
|
397
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.quoteWithHttpInfo(rsp)));
|
|
398
|
+
}));
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* CONTROLLER.DEX.QUOTE.DESCRIPTION
|
|
403
|
+
* CONTROLLER.DEX.QUOTE.SUMMARY
|
|
404
|
+
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
405
|
+
* @param dex DTO.DEX.QUOTE.DEX
|
|
406
|
+
* @param amount DTO.DEX.QUOTE.AMOUNT
|
|
407
|
+
* @param inputMint DTO.DEX.QUOTE.INPUT_MINT
|
|
408
|
+
* @param outputMint DTO.DEX.QUOTE.OUTPUT_MINT
|
|
409
|
+
* @param exactIn DTO.DEX.QUOTE.EXACT_IN
|
|
410
|
+
* @param slippage DTO.DEX.QUOTE.SLIPPAGE
|
|
411
|
+
*/
|
|
412
|
+
public quote(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', dex: 'raydium' | 'pumpfun', amount: string, inputMint: string, outputMint: string, exactIn: boolean, slippage: number, _options?: Configuration): Observable<QuoteResponse> {
|
|
413
|
+
return this.quoteWithHttpInfo(chain, dex, amount, inputMint, outputMint, exactIn, slippage, _options).pipe(map((apiResponse: HttpInfo<QuoteResponse>) => apiResponse.data));
|
|
414
|
+
}
|
|
415
|
+
|
|
370
416
|
/**
|
|
371
417
|
* CONTROLLER.DEX.ROUTE.DESCRIPTION
|
|
372
418
|
* CONTROLLER.DEX.ROUTE.SUMMARY
|
|
@@ -2246,6 +2292,61 @@ export class ObservableTradeApi {
|
|
|
2246
2292
|
this.responseProcessor = responseProcessor || new TradeApiResponseProcessor();
|
|
2247
2293
|
}
|
|
2248
2294
|
|
|
2295
|
+
/**
|
|
2296
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.DESCRIPTION
|
|
2297
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.SUMMARY
|
|
2298
|
+
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
2299
|
+
* @param [cursor] DTO.PAGE.CURSOR.DESCRIPTION
|
|
2300
|
+
* @param [limit] DTO.PAGE.LIMIT
|
|
2301
|
+
* @param [direction] DTO.PAGE.DIRECTION
|
|
2302
|
+
* @param [tokenAddress] DTO.TRADE.QUERY.TOKEN_ADDRESS
|
|
2303
|
+
* @param [walletAddress] DTO.TRADE.QUERY.WALLET_ADDRESS
|
|
2304
|
+
* @param [poolAddress] DTO.TRADE.QUERY.POOL_ADDRESS
|
|
2305
|
+
* @param [beforeTimestamp] DTO.TRADE.QUERY.BEFORE_TIMESTAMP
|
|
2306
|
+
* @param [afterTimestamp] DTO.TRADE.QUERY.AFTER_TIMESTAMP
|
|
2307
|
+
* @param [beforeBlockHeight] DTO.TRADE.QUERY.BEFORE_BLOCK_HEIGHT
|
|
2308
|
+
* @param [afterBlockHeight] DTO.TRADE.QUERY.AFTER_BLOCK_HEIGHT
|
|
2309
|
+
* @param [type] DTO.TRADE.QUERY.ACTIVITIES_TYPE
|
|
2310
|
+
*/
|
|
2311
|
+
public getActivitiesWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, type?: 'BUY' | 'SELL' | 'LIQUIDITY_INITIALIZE' | 'LIQUIDITY_ADD' | 'LIQUIDITY_REMOVE' | 'RED_PACKET_CREATE' | 'RED_PACKET_CLAIM' | 'RED_PACKET_COMPLETE' | 'RED_PACKET_REFUND', _options?: Configuration): Observable<HttpInfo<TradePage>> {
|
|
2312
|
+
const requestContextPromise = this.requestFactory.getActivities(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, type, _options);
|
|
2313
|
+
|
|
2314
|
+
// build promise chain
|
|
2315
|
+
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
2316
|
+
for (const middleware of this.configuration.middleware) {
|
|
2317
|
+
middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
|
|
2321
|
+
pipe(mergeMap((response: ResponseContext) => {
|
|
2322
|
+
let middlewarePostObservable = of(response);
|
|
2323
|
+
for (const middleware of this.configuration.middleware) {
|
|
2324
|
+
middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
|
|
2325
|
+
}
|
|
2326
|
+
return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.getActivitiesWithHttpInfo(rsp)));
|
|
2327
|
+
}));
|
|
2328
|
+
}
|
|
2329
|
+
|
|
2330
|
+
/**
|
|
2331
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.DESCRIPTION
|
|
2332
|
+
* CONTROLLER.TRADE.GET.TOKEN_ACTIVITIES.SUMMARY
|
|
2333
|
+
* @param chain GLOBAL.CHAIN.DESCRIPTION
|
|
2334
|
+
* @param [cursor] DTO.PAGE.CURSOR.DESCRIPTION
|
|
2335
|
+
* @param [limit] DTO.PAGE.LIMIT
|
|
2336
|
+
* @param [direction] DTO.PAGE.DIRECTION
|
|
2337
|
+
* @param [tokenAddress] DTO.TRADE.QUERY.TOKEN_ADDRESS
|
|
2338
|
+
* @param [walletAddress] DTO.TRADE.QUERY.WALLET_ADDRESS
|
|
2339
|
+
* @param [poolAddress] DTO.TRADE.QUERY.POOL_ADDRESS
|
|
2340
|
+
* @param [beforeTimestamp] DTO.TRADE.QUERY.BEFORE_TIMESTAMP
|
|
2341
|
+
* @param [afterTimestamp] DTO.TRADE.QUERY.AFTER_TIMESTAMP
|
|
2342
|
+
* @param [beforeBlockHeight] DTO.TRADE.QUERY.BEFORE_BLOCK_HEIGHT
|
|
2343
|
+
* @param [afterBlockHeight] DTO.TRADE.QUERY.AFTER_BLOCK_HEIGHT
|
|
2344
|
+
* @param [type] DTO.TRADE.QUERY.ACTIVITIES_TYPE
|
|
2345
|
+
*/
|
|
2346
|
+
public getActivities(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, type?: 'BUY' | 'SELL' | 'LIQUIDITY_INITIALIZE' | 'LIQUIDITY_ADD' | 'LIQUIDITY_REMOVE' | 'RED_PACKET_CREATE' | 'RED_PACKET_CLAIM' | 'RED_PACKET_COMPLETE' | 'RED_PACKET_REFUND', _options?: Configuration): Observable<TradePage> {
|
|
2347
|
+
return this.getActivitiesWithHttpInfo(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, type, _options).pipe(map((apiResponse: HttpInfo<TradePage>) => apiResponse.data));
|
|
2348
|
+
}
|
|
2349
|
+
|
|
2249
2350
|
/**
|
|
2250
2351
|
* CONTROLLER.TRADE.GET.GAINERS_LOSERS.DESCRIPTION
|
|
2251
2352
|
* CONTROLLER.TRADE.GET.GAINERS_LOSERS.SUMMARY
|
|
@@ -2352,9 +2453,10 @@ export class ObservableTradeApi {
|
|
|
2352
2453
|
* @param [afterTimestamp] DTO.TRADE.QUERY.AFTER_TIMESTAMP
|
|
2353
2454
|
* @param [beforeBlockHeight] DTO.TRADE.QUERY.BEFORE_BLOCK_HEIGHT
|
|
2354
2455
|
* @param [afterBlockHeight] DTO.TRADE.QUERY.AFTER_BLOCK_HEIGHT
|
|
2456
|
+
* @param [type] DTO.TRADE.QUERY.TRADES_TYPE
|
|
2355
2457
|
*/
|
|
2356
|
-
public getTradesWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, _options?: Configuration): Observable<HttpInfo<TradePage>> {
|
|
2357
|
-
const requestContextPromise = this.requestFactory.getTrades(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, _options);
|
|
2458
|
+
public getTradesWithHttpInfo(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, type?: 'BUY' | 'SELL', _options?: Configuration): Observable<HttpInfo<TradePage>> {
|
|
2459
|
+
const requestContextPromise = this.requestFactory.getTrades(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, type, _options);
|
|
2358
2460
|
|
|
2359
2461
|
// build promise chain
|
|
2360
2462
|
let middlewarePreObservable = from<RequestContext>(requestContextPromise);
|
|
@@ -2386,9 +2488,10 @@ export class ObservableTradeApi {
|
|
|
2386
2488
|
* @param [afterTimestamp] DTO.TRADE.QUERY.AFTER_TIMESTAMP
|
|
2387
2489
|
* @param [beforeBlockHeight] DTO.TRADE.QUERY.BEFORE_BLOCK_HEIGHT
|
|
2388
2490
|
* @param [afterBlockHeight] DTO.TRADE.QUERY.AFTER_BLOCK_HEIGHT
|
|
2491
|
+
* @param [type] DTO.TRADE.QUERY.TRADES_TYPE
|
|
2389
2492
|
*/
|
|
2390
|
-
public getTrades(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, _options?: Configuration): Observable<TradePage> {
|
|
2391
|
-
return this.getTradesWithHttpInfo(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, _options).pipe(map((apiResponse: HttpInfo<TradePage>) => apiResponse.data));
|
|
2493
|
+
public getTrades(chain: 'sol' | 'base' | 'bsc' | 'polygon' | 'arbitrum' | 'optimism' | 'avalanche' | 'ethereum' | 'zksync' | 'sui', cursor?: string, limit?: number, direction?: 'next' | 'prev', tokenAddress?: string, walletAddress?: string, poolAddress?: string, beforeTimestamp?: number, afterTimestamp?: number, beforeBlockHeight?: number, afterBlockHeight?: number, type?: 'BUY' | 'SELL', _options?: Configuration): Observable<TradePage> {
|
|
2494
|
+
return this.getTradesWithHttpInfo(chain, cursor, limit, direction, tokenAddress, walletAddress, poolAddress, beforeTimestamp, afterTimestamp, beforeBlockHeight, afterBlockHeight, type, _options).pipe(map((apiResponse: HttpInfo<TradePage>) => apiResponse.data));
|
|
2392
2495
|
}
|
|
2393
2496
|
|
|
2394
2497
|
}
|