@chainstream-io/sdk 0.2.6 → 0.2.8
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/{chainstream-BD-x5_ck.d.cts → chainstream-KjjsTvPO.d.cts} +1053 -144
- package/dist/{chainstream-BD-x5_ck.d.ts → chainstream-KjjsTvPO.d.ts} +1053 -144
- package/dist/chainstream.cjs +180 -22
- package/dist/chainstream.cjs.map +1 -1
- package/dist/chainstream.d.cts +1 -1
- package/dist/chainstream.d.ts +1 -1
- package/dist/chainstream.mjs +180 -22
- package/dist/chainstream.mjs.map +1 -1
- package/dist/index.cjs +385 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +343 -26
- package/dist/index.mjs.map +1 -1
- package/dist/stream/index.cjs +74 -14
- package/dist/stream/index.cjs.map +1 -1
- package/dist/stream/index.d.cts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/stream/index.mjs +74 -14
- package/dist/stream/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -39,14 +39,18 @@ __export(index_exports, {
|
|
|
39
39
|
ChainStreamClient: () => ChainStreamClient,
|
|
40
40
|
ChainSymbol: () => ChainSymbol,
|
|
41
41
|
ClaimRedPacketInputChain: () => ClaimRedPacketInputChain,
|
|
42
|
+
CreateEndpointInputChannelsItem: () => CreateEndpointInputChannelsItem,
|
|
42
43
|
CreateRedPacketInputChain: () => CreateRedPacketInputChain,
|
|
43
44
|
CreateTokenInputDex: () => CreateTokenInputDex,
|
|
44
45
|
DexPoolDTOLiquidityModel: () => DexPoolDTOLiquidityModel,
|
|
45
46
|
DexPoolDTOType: () => DexPoolDTOType,
|
|
46
47
|
DexPoolDTOVersion: () => DexPoolDTOVersion,
|
|
48
|
+
EndpointResponseChannelsItem: () => EndpointResponseChannelsItem,
|
|
47
49
|
FilterConditionField: () => FilterConditionField,
|
|
48
50
|
GetActivitiesDirection: () => GetActivitiesDirection,
|
|
49
51
|
GetActivitiesType: () => GetActivitiesType,
|
|
52
|
+
GetBalanceUpdatesDirection: () => GetBalanceUpdatesDirection,
|
|
53
|
+
GetDexpoolSnapshotsDirection: () => GetDexpoolSnapshotsDirection,
|
|
50
54
|
GetFinalStretchTokensSortBy: () => GetFinalStretchTokensSortBy,
|
|
51
55
|
GetFinalStretchTokensSortDirection: () => GetFinalStretchTokensSortDirection,
|
|
52
56
|
GetFinalStretchTokensTag: () => GetFinalStretchTokensTag,
|
|
@@ -59,9 +63,14 @@ __export(index_exports, {
|
|
|
59
63
|
GetMigratedTokensTag: () => GetMigratedTokensTag,
|
|
60
64
|
GetMintAndBurnDirection: () => GetMintAndBurnDirection,
|
|
61
65
|
GetMintAndBurnType: () => GetMintAndBurnType,
|
|
66
|
+
GetNetWorthDetailsDirection: () => GetNetWorthDetailsDirection,
|
|
67
|
+
GetNetWorthDirection: () => GetNetWorthDirection,
|
|
62
68
|
GetNewTokensSortBy: () => GetNewTokensSortBy,
|
|
63
69
|
GetNewTokensSortDirection: () => GetNewTokensSortDirection,
|
|
64
70
|
GetNewTokensTag: () => GetNewTokensTag,
|
|
71
|
+
GetPnlByTokenDirection: () => GetPnlByTokenDirection,
|
|
72
|
+
GetPnlByWalletDirection: () => GetPnlByWalletDirection,
|
|
73
|
+
GetPnlDetailsDirection: () => GetPnlDetailsDirection,
|
|
65
74
|
GetPoolsDirection: () => GetPoolsDirection,
|
|
66
75
|
GetPoolsSortBy: () => GetPoolsSortBy,
|
|
67
76
|
GetPoolsSortDirection: () => GetPoolsSortDirection,
|
|
@@ -70,14 +79,22 @@ __export(index_exports, {
|
|
|
70
79
|
GetStocksTokensSortBy: () => GetStocksTokensSortBy,
|
|
71
80
|
GetStocksTokensSortDirection: () => GetStocksTokensSortDirection,
|
|
72
81
|
GetStocksTokensTag: () => GetStocksTokensTag,
|
|
82
|
+
GetTokenLiquiditySnapshotsDirection: () => GetTokenLiquiditySnapshotsDirection,
|
|
83
|
+
GetTokenTransferTotalDirection: () => GetTokenTransferTotalDirection,
|
|
84
|
+
GetTokenTransfersDirection: () => GetTokenTransfersDirection,
|
|
85
|
+
GetTokensBalanceDirection: () => GetTokensBalanceDirection,
|
|
73
86
|
GetTokensSortBy: () => GetTokensSortBy,
|
|
74
87
|
GetTokensSortDirection: () => GetTokensSortDirection,
|
|
75
88
|
GetTopTradersDirection: () => GetTopTradersDirection,
|
|
76
89
|
GetTopTradersSortBy: () => GetTopTradersSortBy,
|
|
77
90
|
GetTopTradersSortType: () => GetTopTradersSortType,
|
|
78
91
|
GetTopTradersTimeFrame: () => GetTopTradersTimeFrame,
|
|
92
|
+
GetTraderGainersLosersDirection: () => GetTraderGainersLosersDirection,
|
|
93
|
+
GetTraderGainersLosersSortType: () => GetTraderGainersLosersSortType,
|
|
79
94
|
GetTradesDirection: () => GetTradesDirection,
|
|
80
95
|
GetTradesType: () => GetTradesType,
|
|
96
|
+
GetWalletTransferTotalDirection: () => GetWalletTransferTotalDirection,
|
|
97
|
+
GetWalletTransfersDirection: () => GetWalletTransfersDirection,
|
|
81
98
|
KYTRegisterTransferRequestDirection: () => KYTRegisterTransferRequestDirection,
|
|
82
99
|
KYTRegisterTransferRequestNetwork: () => KYTRegisterTransferRequestNetwork,
|
|
83
100
|
KYTRegisterWithdrawalRequestNetwork: () => KYTRegisterWithdrawalRequestNetwork,
|
|
@@ -88,10 +105,13 @@ __export(index_exports, {
|
|
|
88
105
|
ListTokenSortBy: () => ListTokenSortBy,
|
|
89
106
|
MoonshotCreateTokenInputDex: () => MoonshotCreateTokenInputDex,
|
|
90
107
|
MoonshotCreateTokenInputMigrationDex: () => MoonshotCreateTokenInputMigrationDex,
|
|
108
|
+
PnlResolution: () => PnlResolution,
|
|
109
|
+
PriceType: () => PriceType,
|
|
91
110
|
PumpCreateTokenInputDex: () => PumpCreateTokenInputDex,
|
|
92
111
|
PumpCreateTokenInputMigrationDex: () => PumpCreateTokenInputMigrationDex,
|
|
93
112
|
QuoteDex: () => QuoteDex,
|
|
94
113
|
Resolution: () => Resolution,
|
|
114
|
+
SearchDirection: () => SearchDirection,
|
|
95
115
|
SearchSort: () => SearchSort,
|
|
96
116
|
SearchSortBy: () => SearchSortBy,
|
|
97
117
|
SendTxInputSubmitType: () => SendTxInputSubmitType,
|
|
@@ -102,7 +122,13 @@ __export(index_exports, {
|
|
|
102
122
|
SwapRouteInputSwapMode: () => SwapRouteInputSwapMode,
|
|
103
123
|
TokenCreationDTOType: () => TokenCreationDTOType,
|
|
104
124
|
TokenTraderTag: () => TokenTraderTag,
|
|
125
|
+
TokenTransferItemDTOFlow: () => TokenTransferItemDTOFlow,
|
|
105
126
|
TradeType: () => TradeType,
|
|
127
|
+
TraderPnlResolution: () => TraderPnlResolution,
|
|
128
|
+
TransactionHistoryItemDTOMainAction: () => TransactionHistoryItemDTOMainAction,
|
|
129
|
+
TransactionHistoryItemDTOStatus: () => TransactionHistoryItemDTOStatus,
|
|
130
|
+
UpdateEndpointInputChannelsItem: () => UpdateEndpointInputChannelsItem,
|
|
131
|
+
WalletPnlSummaryDTOResolution: () => WalletPnlSummaryDTOResolution,
|
|
106
132
|
WsChannelType: () => WsChannelType,
|
|
107
133
|
WsDex: () => WsDex,
|
|
108
134
|
WsMetricType: () => WsMetricType,
|
|
@@ -118,7 +144,6 @@ __export(index_exports, {
|
|
|
118
144
|
getActivities: () => getActivities,
|
|
119
145
|
getAddressRisk: () => getAddressRisk,
|
|
120
146
|
getAvailableFields: () => getAvailableFields,
|
|
121
|
-
getBalance: () => getBalance,
|
|
122
147
|
getBalanceUpdates: () => getBalanceUpdates,
|
|
123
148
|
getCandles: () => getCandles,
|
|
124
149
|
getClaims: () => getClaims,
|
|
@@ -143,9 +168,17 @@ __export(index_exports, {
|
|
|
143
168
|
getMetadataMulti: () => getMetadataMulti,
|
|
144
169
|
getMigratedTokens: () => getMigratedTokens,
|
|
145
170
|
getMintAndBurn: () => getMintAndBurn,
|
|
171
|
+
getNetWorth: () => getNetWorth,
|
|
172
|
+
getNetWorthChart: () => getNetWorthChart,
|
|
173
|
+
getNetWorthDetails: () => getNetWorthDetails,
|
|
174
|
+
getNetWorthSummary: () => getNetWorthSummary,
|
|
146
175
|
getNewTokens: () => getNewTokens,
|
|
176
|
+
getPairCandles: () => getPairCandles,
|
|
147
177
|
getPnl: () => getPnl,
|
|
148
|
-
|
|
178
|
+
getPnlByToken: () => getPnlByToken,
|
|
179
|
+
getPnlByWallet: () => getPnlByWallet,
|
|
180
|
+
getPnlDetails: () => getPnlDetails,
|
|
181
|
+
getPoolCandles: () => getPoolCandles,
|
|
149
182
|
getPools: () => getPools,
|
|
150
183
|
getPriceByTime: () => getPriceByTime,
|
|
151
184
|
getPrices: () => getPrices,
|
|
@@ -160,14 +193,21 @@ __export(index_exports, {
|
|
|
160
193
|
getToken: () => getToken,
|
|
161
194
|
getTokenLiquiditySnapshots: () => getTokenLiquiditySnapshots,
|
|
162
195
|
getTokenTraders: () => getTokenTraders,
|
|
196
|
+
getTokenTransferTotal: () => getTokenTransferTotal,
|
|
197
|
+
getTokenTransfers: () => getTokenTransfers,
|
|
163
198
|
getTokens: () => getTokens,
|
|
199
|
+
getTokensBalance: () => getTokensBalance,
|
|
164
200
|
getTopHolders: () => getTopHolders,
|
|
165
201
|
getTopTraders: () => getTopTraders,
|
|
202
|
+
getTraderGainersLosers: () => getTraderGainersLosers,
|
|
166
203
|
getTrades: () => getTrades,
|
|
167
204
|
getTransferAlerts: () => getTransferAlerts,
|
|
168
205
|
getTransferDirectExposure: () => getTransferDirectExposure,
|
|
169
206
|
getTransferNetworkIdentifications: () => getTransferNetworkIdentifications,
|
|
170
207
|
getTransferSummary: () => getTransferSummary,
|
|
208
|
+
getWalletFirstTx: () => getWalletFirstTx,
|
|
209
|
+
getWalletTransferTotal: () => getWalletTransferTotal,
|
|
210
|
+
getWalletTransfers: () => getWalletTransfers,
|
|
171
211
|
getWithdrawalAddressIdentifications: () => getWithdrawalAddressIdentifications,
|
|
172
212
|
getWithdrawalAlerts: () => getWithdrawalAlerts,
|
|
173
213
|
getWithdrawalDirectExposure: () => getWithdrawalDirectExposure,
|
|
@@ -745,32 +785,92 @@ var StreamApi = class {
|
|
|
745
785
|
}
|
|
746
786
|
return strValue;
|
|
747
787
|
}
|
|
788
|
+
/**
|
|
789
|
+
* Parse candle data from WebSocket message
|
|
790
|
+
*/
|
|
791
|
+
parseCandleData(data) {
|
|
792
|
+
return {
|
|
793
|
+
address: data.a,
|
|
794
|
+
open: data.o,
|
|
795
|
+
close: data.c,
|
|
796
|
+
high: data.h,
|
|
797
|
+
low: data.l,
|
|
798
|
+
volume: data.v,
|
|
799
|
+
resolution: data.r,
|
|
800
|
+
time: data.t,
|
|
801
|
+
number: data.n
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Subscribe to token candles (K-line)
|
|
806
|
+
* Channel: dex-candle:{chain}_{tokenAddress}_{resolution} (USD)
|
|
807
|
+
* Channel: dex-candle-in-native:{chain}_{tokenAddress}_{resolution} (Native)
|
|
808
|
+
* @param priceType - "usd" (default) or "native"
|
|
809
|
+
*/
|
|
748
810
|
subscribeTokenCandles({
|
|
749
811
|
chain,
|
|
750
812
|
tokenAddress,
|
|
751
813
|
resolution,
|
|
752
814
|
callback,
|
|
753
|
-
filter
|
|
815
|
+
filter,
|
|
816
|
+
priceType = "usd"
|
|
754
817
|
}) {
|
|
755
|
-
const
|
|
818
|
+
const prefix = priceType === "native" ? "dex-candle-in-native" : "dex-candle";
|
|
819
|
+
const channel = `${prefix}:${chain}_${tokenAddress}_${resolution}`;
|
|
756
820
|
return this.subscribe(
|
|
757
821
|
channel,
|
|
758
|
-
(data) =>
|
|
759
|
-
callback({
|
|
760
|
-
open: data.o,
|
|
761
|
-
close: data.c,
|
|
762
|
-
high: data.h,
|
|
763
|
-
low: data.l,
|
|
764
|
-
volume: data.v,
|
|
765
|
-
resolution: data.r,
|
|
766
|
-
time: data.t,
|
|
767
|
-
number: data.n
|
|
768
|
-
});
|
|
769
|
-
},
|
|
822
|
+
(data) => callback(this.parseCandleData(data)),
|
|
770
823
|
filter,
|
|
771
824
|
"subscribeTokenCandles"
|
|
772
825
|
);
|
|
773
826
|
}
|
|
827
|
+
/**
|
|
828
|
+
* Subscribe to pool candles (K-line)
|
|
829
|
+
* Channel: dex-pool-candle:{chain}_{poolAddress}_{resolution} (USD)
|
|
830
|
+
* Channel: dex-pool-candle-in-native:{chain}_{poolAddress}_{resolution} (Native)
|
|
831
|
+
* @param priceType - "usd" (default) or "native"
|
|
832
|
+
*/
|
|
833
|
+
subscribePoolCandles({
|
|
834
|
+
chain,
|
|
835
|
+
poolAddress,
|
|
836
|
+
resolution,
|
|
837
|
+
callback,
|
|
838
|
+
filter,
|
|
839
|
+
priceType = "usd"
|
|
840
|
+
}) {
|
|
841
|
+
const prefix = priceType === "native" ? "dex-pool-candle-in-native" : "dex-pool-candle";
|
|
842
|
+
const channel = `${prefix}:${chain}_${poolAddress}_${resolution}`;
|
|
843
|
+
return this.subscribe(
|
|
844
|
+
channel,
|
|
845
|
+
(data) => callback(this.parseCandleData(data)),
|
|
846
|
+
filter,
|
|
847
|
+
"subscribePoolCandles"
|
|
848
|
+
);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Subscribe to pair candles (K-line)
|
|
852
|
+
* Channel: dex-pair-candle:{chain}_{pairAddress}_{resolution} (USD)
|
|
853
|
+
* Channel: dex-pair-candle-in-native:{chain}_{pairAddress}_{resolution} (Native)
|
|
854
|
+
* @param pairAddress - format: {tokenA}-{tokenB}
|
|
855
|
+
* @param priceType - "usd" (default) or "native"
|
|
856
|
+
*/
|
|
857
|
+
subscribePairCandles({
|
|
858
|
+
chain,
|
|
859
|
+
pairAddress,
|
|
860
|
+
resolution,
|
|
861
|
+
callback,
|
|
862
|
+
filter,
|
|
863
|
+
priceType = "usd"
|
|
864
|
+
}) {
|
|
865
|
+
const prefix = priceType === "native" ? "dex-pair-candle-in-native" : "dex-pair-candle";
|
|
866
|
+
const channel = `${prefix}:${chain}_${pairAddress}_${resolution}`;
|
|
867
|
+
return this.subscribe(
|
|
868
|
+
channel,
|
|
869
|
+
(data) => callback(this.parseCandleData(data)),
|
|
870
|
+
filter,
|
|
871
|
+
"subscribePairCandles"
|
|
872
|
+
);
|
|
873
|
+
}
|
|
774
874
|
subscribeTokenStats({
|
|
775
875
|
chain,
|
|
776
876
|
tokenAddress,
|
|
@@ -2087,6 +2187,8 @@ __export(token_exports, {
|
|
|
2087
2187
|
getMetadata: () => getMetadata,
|
|
2088
2188
|
getMetadataMulti: () => getMetadataMulti,
|
|
2089
2189
|
getMintAndBurn: () => getMintAndBurn,
|
|
2190
|
+
getPairCandles: () => getPairCandles,
|
|
2191
|
+
getPoolCandles: () => getPoolCandles,
|
|
2090
2192
|
getPools: () => getPools,
|
|
2091
2193
|
getPriceByTime: () => getPriceByTime,
|
|
2092
2194
|
getPrices: () => getPrices,
|
|
@@ -2096,6 +2198,8 @@ __export(token_exports, {
|
|
|
2096
2198
|
getToken: () => getToken,
|
|
2097
2199
|
getTokenLiquiditySnapshots: () => getTokenLiquiditySnapshots,
|
|
2098
2200
|
getTokenTraders: () => getTokenTraders,
|
|
2201
|
+
getTokenTransferTotal: () => getTokenTransferTotal,
|
|
2202
|
+
getTokenTransfers: () => getTokenTransfers,
|
|
2099
2203
|
getTokens: () => getTokens,
|
|
2100
2204
|
getTopHolders: () => getTopHolders,
|
|
2101
2205
|
listToken: () => listToken,
|
|
@@ -2167,6 +2271,18 @@ var getCandles = (chain, tokenAddress, params, options) => {
|
|
|
2167
2271
|
options
|
|
2168
2272
|
);
|
|
2169
2273
|
};
|
|
2274
|
+
var getPoolCandles = (chain, poolAddress, params, options) => {
|
|
2275
|
+
return chainstreamApiClient(
|
|
2276
|
+
{ url: `/v1/token/${chain}/pool/${poolAddress}/candles`, method: "GET", params },
|
|
2277
|
+
options
|
|
2278
|
+
);
|
|
2279
|
+
};
|
|
2280
|
+
var getPairCandles = (chain, pair, params, options) => {
|
|
2281
|
+
return chainstreamApiClient(
|
|
2282
|
+
{ url: `/v1/token/${chain}/pair/${pair}/candles`, method: "GET", params },
|
|
2283
|
+
options
|
|
2284
|
+
);
|
|
2285
|
+
};
|
|
2170
2286
|
var getTopHolders = (chain, tokenAddress, options) => {
|
|
2171
2287
|
return chainstreamApiClient(
|
|
2172
2288
|
{ url: `/v1/token/${chain}/${tokenAddress}/topHolders`, method: "GET" },
|
|
@@ -2239,12 +2355,25 @@ var getTokenLiquiditySnapshots = (chain, tokenAddress, params, options) => {
|
|
|
2239
2355
|
options
|
|
2240
2356
|
);
|
|
2241
2357
|
};
|
|
2358
|
+
var getTokenTransfers = (chain, tokenAddress, params, options) => {
|
|
2359
|
+
return chainstreamApiClient(
|
|
2360
|
+
{ url: `/v1/token/${chain}/${tokenAddress}/transfers`, method: "GET", params },
|
|
2361
|
+
options
|
|
2362
|
+
);
|
|
2363
|
+
};
|
|
2364
|
+
var getTokenTransferTotal = (chain, tokenAddress, params, options) => {
|
|
2365
|
+
return chainstreamApiClient(
|
|
2366
|
+
{ url: `/v1/token/${chain}/${tokenAddress}/transfer-total`, method: "GET", params },
|
|
2367
|
+
options
|
|
2368
|
+
);
|
|
2369
|
+
};
|
|
2242
2370
|
|
|
2243
2371
|
// src/openapi-client/generated/trade/trade.ts
|
|
2244
2372
|
var trade_exports = {};
|
|
2245
2373
|
__export(trade_exports, {
|
|
2246
2374
|
getActivities: () => getActivities,
|
|
2247
2375
|
getTopTraders: () => getTopTraders,
|
|
2376
|
+
getTraderGainersLosers: () => getTraderGainersLosers,
|
|
2248
2377
|
getTrades: () => getTrades
|
|
2249
2378
|
});
|
|
2250
2379
|
var getTrades = (chain, params, options) => {
|
|
@@ -2265,6 +2394,12 @@ var getTopTraders = (chain, params, options) => {
|
|
|
2265
2394
|
options
|
|
2266
2395
|
);
|
|
2267
2396
|
};
|
|
2397
|
+
var getTraderGainersLosers = (chain, params, options) => {
|
|
2398
|
+
return chainstreamApiClient(
|
|
2399
|
+
{ url: `/v1/trade/${chain}/trader-gainers-losers`, method: "GET", params },
|
|
2400
|
+
options
|
|
2401
|
+
);
|
|
2402
|
+
};
|
|
2268
2403
|
|
|
2269
2404
|
// src/openapi-client/generated/transaction/transaction.ts
|
|
2270
2405
|
var transaction_exports = {};
|
|
@@ -2306,26 +2441,35 @@ var getGasLimit = (chain, estimateGasLimitInput, options) => {
|
|
|
2306
2441
|
var wallet_exports = {};
|
|
2307
2442
|
__export(wallet_exports, {
|
|
2308
2443
|
calculatePnl: () => calculatePnl,
|
|
2309
|
-
getBalance: () => getBalance,
|
|
2310
2444
|
getBalanceUpdates: () => getBalanceUpdates,
|
|
2445
|
+
getNetWorth: () => getNetWorth,
|
|
2446
|
+
getNetWorthChart: () => getNetWorthChart,
|
|
2447
|
+
getNetWorthDetails: () => getNetWorthDetails,
|
|
2448
|
+
getNetWorthSummary: () => getNetWorthSummary,
|
|
2311
2449
|
getPnl: () => getPnl,
|
|
2312
|
-
|
|
2450
|
+
getPnlByToken: () => getPnlByToken,
|
|
2451
|
+
getPnlByWallet: () => getPnlByWallet,
|
|
2452
|
+
getPnlDetails: () => getPnlDetails,
|
|
2453
|
+
getTokensBalance: () => getTokensBalance,
|
|
2454
|
+
getWalletFirstTx: () => getWalletFirstTx,
|
|
2455
|
+
getWalletTransferTotal: () => getWalletTransferTotal,
|
|
2456
|
+
getWalletTransfers: () => getWalletTransfers
|
|
2313
2457
|
});
|
|
2314
|
-
var
|
|
2458
|
+
var getNetWorthSummary = (chain, params, options) => {
|
|
2315
2459
|
return chainstreamApiClient(
|
|
2316
|
-
{ url: `/v1/wallet/${chain}
|
|
2460
|
+
{ url: `/v1/wallet/${chain}/net-worth-summary`, method: "GET", params },
|
|
2317
2461
|
options
|
|
2318
2462
|
);
|
|
2319
2463
|
};
|
|
2320
|
-
var
|
|
2464
|
+
var getPnlByWallet = (chain, params, options) => {
|
|
2321
2465
|
return chainstreamApiClient(
|
|
2322
|
-
{ url: `/v1/wallet/${chain}
|
|
2466
|
+
{ url: `/v1/wallet/${chain}/pnl-by-wallet`, method: "GET", params },
|
|
2323
2467
|
options
|
|
2324
2468
|
);
|
|
2325
2469
|
};
|
|
2326
|
-
var
|
|
2470
|
+
var getWalletFirstTx = (chain, params, options) => {
|
|
2327
2471
|
return chainstreamApiClient(
|
|
2328
|
-
{ url: `/v1/wallet/${chain}
|
|
2472
|
+
{ url: `/v1/wallet/${chain}/first-tx`, method: "GET", params },
|
|
2329
2473
|
options
|
|
2330
2474
|
);
|
|
2331
2475
|
};
|
|
@@ -2340,6 +2484,60 @@ var calculatePnl = (chain, walletAddress, calculatePnlInput, options) => {
|
|
|
2340
2484
|
options
|
|
2341
2485
|
);
|
|
2342
2486
|
};
|
|
2487
|
+
var getNetWorth = (chain, walletAddress, params, options) => {
|
|
2488
|
+
return chainstreamApiClient(
|
|
2489
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/net-worth`, method: "GET", params },
|
|
2490
|
+
options
|
|
2491
|
+
);
|
|
2492
|
+
};
|
|
2493
|
+
var getTokensBalance = (chain, walletAddress, params, options) => {
|
|
2494
|
+
return chainstreamApiClient(
|
|
2495
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/tokens-balance`, method: "GET", params },
|
|
2496
|
+
options
|
|
2497
|
+
);
|
|
2498
|
+
};
|
|
2499
|
+
var getNetWorthChart = (chain, walletAddress, params, options) => {
|
|
2500
|
+
return chainstreamApiClient(
|
|
2501
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/net-worth-chart`, method: "GET", params },
|
|
2502
|
+
options
|
|
2503
|
+
);
|
|
2504
|
+
};
|
|
2505
|
+
var getNetWorthDetails = (chain, walletAddress, params, options) => {
|
|
2506
|
+
return chainstreamApiClient(
|
|
2507
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/net-worth-details`, method: "GET", params },
|
|
2508
|
+
options
|
|
2509
|
+
);
|
|
2510
|
+
};
|
|
2511
|
+
var getPnl = (chain, walletAddress, params, options) => {
|
|
2512
|
+
return chainstreamApiClient(
|
|
2513
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/pnl`, method: "GET", params },
|
|
2514
|
+
options
|
|
2515
|
+
);
|
|
2516
|
+
};
|
|
2517
|
+
var getPnlDetails = (chain, walletAddress, params, options) => {
|
|
2518
|
+
return chainstreamApiClient(
|
|
2519
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/pnl-details`, method: "GET", params },
|
|
2520
|
+
options
|
|
2521
|
+
);
|
|
2522
|
+
};
|
|
2523
|
+
var getPnlByToken = (chain, walletAddress, params, options) => {
|
|
2524
|
+
return chainstreamApiClient(
|
|
2525
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/pnl-by-token`, method: "GET", params },
|
|
2526
|
+
options
|
|
2527
|
+
);
|
|
2528
|
+
};
|
|
2529
|
+
var getWalletTransfers = (chain, walletAddress, params, options) => {
|
|
2530
|
+
return chainstreamApiClient(
|
|
2531
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/transfers`, method: "GET", params },
|
|
2532
|
+
options
|
|
2533
|
+
);
|
|
2534
|
+
};
|
|
2535
|
+
var getWalletTransferTotal = (chain, walletAddress, params, options) => {
|
|
2536
|
+
return chainstreamApiClient(
|
|
2537
|
+
{ url: `/v1/wallet/${chain}/${walletAddress}/transfer-total`, method: "GET", params },
|
|
2538
|
+
options
|
|
2539
|
+
);
|
|
2540
|
+
};
|
|
2343
2541
|
var getBalanceUpdates = (chain, walletAddress, params, options) => {
|
|
2344
2542
|
return chainstreamApiClient(
|
|
2345
2543
|
{ url: `/v1/wallet/${chain}/${walletAddress}/balance-updates`, method: "GET", params },
|
|
@@ -2521,6 +2719,11 @@ var PumpCreateTokenInputMigrationDex = {
|
|
|
2521
2719
|
RAYDIUM: "RAYDIUM",
|
|
2522
2720
|
METEORA: "METEORA"
|
|
2523
2721
|
};
|
|
2722
|
+
var TraderPnlResolution = {
|
|
2723
|
+
"1d": "1d",
|
|
2724
|
+
"7d": "7d",
|
|
2725
|
+
"30d": "30d"
|
|
2726
|
+
};
|
|
2524
2727
|
var DexPoolDTOType = {
|
|
2525
2728
|
NUMBER_0: 0,
|
|
2526
2729
|
NUMBER_1: 1,
|
|
@@ -2594,12 +2797,24 @@ var Resolution = {
|
|
|
2594
2797
|
"15s": "15s",
|
|
2595
2798
|
"30s": "30s",
|
|
2596
2799
|
"1m": "1m",
|
|
2800
|
+
"3m": "3m",
|
|
2597
2801
|
"5m": "5m",
|
|
2598
2802
|
"15m": "15m",
|
|
2803
|
+
"30m": "30m",
|
|
2599
2804
|
"1h": "1h",
|
|
2805
|
+
"2h": "2h",
|
|
2600
2806
|
"4h": "4h",
|
|
2807
|
+
"6h": "6h",
|
|
2808
|
+
"8h": "8h",
|
|
2601
2809
|
"12h": "12h",
|
|
2602
|
-
"1d": "1d"
|
|
2810
|
+
"1d": "1d",
|
|
2811
|
+
"3d": "3d",
|
|
2812
|
+
"1w": "1w",
|
|
2813
|
+
"1M": "1M"
|
|
2814
|
+
};
|
|
2815
|
+
var PriceType = {
|
|
2816
|
+
usd: "usd",
|
|
2817
|
+
native: "native"
|
|
2603
2818
|
};
|
|
2604
2819
|
var TokenCreationDTOType = {
|
|
2605
2820
|
create: "create",
|
|
@@ -2615,7 +2830,33 @@ var TokenTraderTag = {
|
|
|
2615
2830
|
pro: "pro",
|
|
2616
2831
|
insider: "insider",
|
|
2617
2832
|
kol: "kol",
|
|
2618
|
-
bluechip: "bluechip"
|
|
2833
|
+
bluechip: "bluechip",
|
|
2834
|
+
smart: "smart"
|
|
2835
|
+
};
|
|
2836
|
+
var TokenTransferItemDTOFlow = {
|
|
2837
|
+
in: "in",
|
|
2838
|
+
out: "out"
|
|
2839
|
+
};
|
|
2840
|
+
var PnlResolution = {
|
|
2841
|
+
"1d": "1d",
|
|
2842
|
+
"7d": "7d",
|
|
2843
|
+
"30d": "30d",
|
|
2844
|
+
all: "all"
|
|
2845
|
+
};
|
|
2846
|
+
var WalletPnlSummaryDTOResolution = {
|
|
2847
|
+
"1d": "1d",
|
|
2848
|
+
"7d": "7d",
|
|
2849
|
+
"30d": "30d",
|
|
2850
|
+
all: "all"
|
|
2851
|
+
};
|
|
2852
|
+
var TransactionHistoryItemDTOStatus = {
|
|
2853
|
+
UNKNOWN: "UNKNOWN",
|
|
2854
|
+
SUCCEEDED: "SUCCEEDED",
|
|
2855
|
+
FAILED: "FAILED"
|
|
2856
|
+
};
|
|
2857
|
+
var TransactionHistoryItemDTOMainAction = {
|
|
2858
|
+
send: "send",
|
|
2859
|
+
receive: "receive"
|
|
2619
2860
|
};
|
|
2620
2861
|
var BalanceTokenType = {
|
|
2621
2862
|
SOL: "SOL",
|
|
@@ -2654,6 +2895,18 @@ var KYTRegisterWithdrawalRequestNetwork = {
|
|
|
2654
2895
|
ethereum: "ethereum",
|
|
2655
2896
|
Solana: "Solana"
|
|
2656
2897
|
};
|
|
2898
|
+
var EndpointResponseChannelsItem = {
|
|
2899
|
+
soltokenmigrated: "sol.token.migrated",
|
|
2900
|
+
soltokencreated: "sol.token.created"
|
|
2901
|
+
};
|
|
2902
|
+
var CreateEndpointInputChannelsItem = {
|
|
2903
|
+
soltokenmigrated: "sol.token.migrated",
|
|
2904
|
+
soltokencreated: "sol.token.created"
|
|
2905
|
+
};
|
|
2906
|
+
var UpdateEndpointInputChannelsItem = {
|
|
2907
|
+
soltokenmigrated: "sol.token.migrated",
|
|
2908
|
+
soltokencreated: "sol.token.created"
|
|
2909
|
+
};
|
|
2657
2910
|
var TradeType = {
|
|
2658
2911
|
buy: "buy",
|
|
2659
2912
|
sell: "sell"
|
|
@@ -2707,6 +2960,18 @@ var GetTopTradersSortBy = {
|
|
|
2707
2960
|
tradeAmount: "tradeAmount",
|
|
2708
2961
|
tradeCount: "tradeCount"
|
|
2709
2962
|
};
|
|
2963
|
+
var GetTraderGainersLosersDirection = {
|
|
2964
|
+
next: "next",
|
|
2965
|
+
prev: "prev"
|
|
2966
|
+
};
|
|
2967
|
+
var GetTraderGainersLosersSortType = {
|
|
2968
|
+
desc: "desc",
|
|
2969
|
+
asc: "asc"
|
|
2970
|
+
};
|
|
2971
|
+
var SearchDirection = {
|
|
2972
|
+
next: "next",
|
|
2973
|
+
prev: "prev"
|
|
2974
|
+
};
|
|
2710
2975
|
var SearchSort = {
|
|
2711
2976
|
asc: "asc",
|
|
2712
2977
|
desc: "desc"
|
|
@@ -2874,6 +3139,22 @@ var ListTokenSortBy = {
|
|
|
2874
3139
|
m1BuyVolumeInUsd: "m1BuyVolumeInUsd",
|
|
2875
3140
|
m1SellVolumeInUsd: "m1SellVolumeInUsd"
|
|
2876
3141
|
};
|
|
3142
|
+
var GetTokenLiquiditySnapshotsDirection = {
|
|
3143
|
+
next: "next",
|
|
3144
|
+
prev: "prev"
|
|
3145
|
+
};
|
|
3146
|
+
var GetTokenTransfersDirection = {
|
|
3147
|
+
next: "next",
|
|
3148
|
+
prev: "prev"
|
|
3149
|
+
};
|
|
3150
|
+
var GetTokenTransferTotalDirection = {
|
|
3151
|
+
next: "next",
|
|
3152
|
+
prev: "prev"
|
|
3153
|
+
};
|
|
3154
|
+
var GetDexpoolSnapshotsDirection = {
|
|
3155
|
+
next: "next",
|
|
3156
|
+
prev: "prev"
|
|
3157
|
+
};
|
|
2877
3158
|
var GetHotTokensSortBy = {
|
|
2878
3159
|
marketDatapriceInUsd: "marketData.priceInUsd",
|
|
2879
3160
|
statspriceChangeRatioInUsd1m: "stats.priceChangeRatioInUsd1m",
|
|
@@ -3169,6 +3450,42 @@ var GetMigratedTokensTag = {
|
|
|
3169
3450
|
bonk_fun: "bonk_fun",
|
|
3170
3451
|
moonit_fun: "moonit_fun"
|
|
3171
3452
|
};
|
|
3453
|
+
var GetPnlByWalletDirection = {
|
|
3454
|
+
next: "next",
|
|
3455
|
+
prev: "prev"
|
|
3456
|
+
};
|
|
3457
|
+
var GetNetWorthDirection = {
|
|
3458
|
+
next: "next",
|
|
3459
|
+
prev: "prev"
|
|
3460
|
+
};
|
|
3461
|
+
var GetTokensBalanceDirection = {
|
|
3462
|
+
next: "next",
|
|
3463
|
+
prev: "prev"
|
|
3464
|
+
};
|
|
3465
|
+
var GetNetWorthDetailsDirection = {
|
|
3466
|
+
next: "next",
|
|
3467
|
+
prev: "prev"
|
|
3468
|
+
};
|
|
3469
|
+
var GetPnlDetailsDirection = {
|
|
3470
|
+
next: "next",
|
|
3471
|
+
prev: "prev"
|
|
3472
|
+
};
|
|
3473
|
+
var GetPnlByTokenDirection = {
|
|
3474
|
+
next: "next",
|
|
3475
|
+
prev: "prev"
|
|
3476
|
+
};
|
|
3477
|
+
var GetWalletTransfersDirection = {
|
|
3478
|
+
next: "next",
|
|
3479
|
+
prev: "prev"
|
|
3480
|
+
};
|
|
3481
|
+
var GetWalletTransferTotalDirection = {
|
|
3482
|
+
next: "next",
|
|
3483
|
+
prev: "prev"
|
|
3484
|
+
};
|
|
3485
|
+
var GetBalanceUpdatesDirection = {
|
|
3486
|
+
next: "next",
|
|
3487
|
+
prev: "prev"
|
|
3488
|
+
};
|
|
3172
3489
|
var GetRedpacketsChain = {
|
|
3173
3490
|
sol: "sol",
|
|
3174
3491
|
bsc: "bsc",
|
|
@@ -3187,14 +3504,18 @@ var ListEndpointsOrder = {
|
|
|
3187
3504
|
ChainStreamClient,
|
|
3188
3505
|
ChainSymbol,
|
|
3189
3506
|
ClaimRedPacketInputChain,
|
|
3507
|
+
CreateEndpointInputChannelsItem,
|
|
3190
3508
|
CreateRedPacketInputChain,
|
|
3191
3509
|
CreateTokenInputDex,
|
|
3192
3510
|
DexPoolDTOLiquidityModel,
|
|
3193
3511
|
DexPoolDTOType,
|
|
3194
3512
|
DexPoolDTOVersion,
|
|
3513
|
+
EndpointResponseChannelsItem,
|
|
3195
3514
|
FilterConditionField,
|
|
3196
3515
|
GetActivitiesDirection,
|
|
3197
3516
|
GetActivitiesType,
|
|
3517
|
+
GetBalanceUpdatesDirection,
|
|
3518
|
+
GetDexpoolSnapshotsDirection,
|
|
3198
3519
|
GetFinalStretchTokensSortBy,
|
|
3199
3520
|
GetFinalStretchTokensSortDirection,
|
|
3200
3521
|
GetFinalStretchTokensTag,
|
|
@@ -3207,9 +3528,14 @@ var ListEndpointsOrder = {
|
|
|
3207
3528
|
GetMigratedTokensTag,
|
|
3208
3529
|
GetMintAndBurnDirection,
|
|
3209
3530
|
GetMintAndBurnType,
|
|
3531
|
+
GetNetWorthDetailsDirection,
|
|
3532
|
+
GetNetWorthDirection,
|
|
3210
3533
|
GetNewTokensSortBy,
|
|
3211
3534
|
GetNewTokensSortDirection,
|
|
3212
3535
|
GetNewTokensTag,
|
|
3536
|
+
GetPnlByTokenDirection,
|
|
3537
|
+
GetPnlByWalletDirection,
|
|
3538
|
+
GetPnlDetailsDirection,
|
|
3213
3539
|
GetPoolsDirection,
|
|
3214
3540
|
GetPoolsSortBy,
|
|
3215
3541
|
GetPoolsSortDirection,
|
|
@@ -3218,14 +3544,22 @@ var ListEndpointsOrder = {
|
|
|
3218
3544
|
GetStocksTokensSortBy,
|
|
3219
3545
|
GetStocksTokensSortDirection,
|
|
3220
3546
|
GetStocksTokensTag,
|
|
3547
|
+
GetTokenLiquiditySnapshotsDirection,
|
|
3548
|
+
GetTokenTransferTotalDirection,
|
|
3549
|
+
GetTokenTransfersDirection,
|
|
3550
|
+
GetTokensBalanceDirection,
|
|
3221
3551
|
GetTokensSortBy,
|
|
3222
3552
|
GetTokensSortDirection,
|
|
3223
3553
|
GetTopTradersDirection,
|
|
3224
3554
|
GetTopTradersSortBy,
|
|
3225
3555
|
GetTopTradersSortType,
|
|
3226
3556
|
GetTopTradersTimeFrame,
|
|
3557
|
+
GetTraderGainersLosersDirection,
|
|
3558
|
+
GetTraderGainersLosersSortType,
|
|
3227
3559
|
GetTradesDirection,
|
|
3228
3560
|
GetTradesType,
|
|
3561
|
+
GetWalletTransferTotalDirection,
|
|
3562
|
+
GetWalletTransfersDirection,
|
|
3229
3563
|
KYTRegisterTransferRequestDirection,
|
|
3230
3564
|
KYTRegisterTransferRequestNetwork,
|
|
3231
3565
|
KYTRegisterWithdrawalRequestNetwork,
|
|
@@ -3236,10 +3570,13 @@ var ListEndpointsOrder = {
|
|
|
3236
3570
|
ListTokenSortBy,
|
|
3237
3571
|
MoonshotCreateTokenInputDex,
|
|
3238
3572
|
MoonshotCreateTokenInputMigrationDex,
|
|
3573
|
+
PnlResolution,
|
|
3574
|
+
PriceType,
|
|
3239
3575
|
PumpCreateTokenInputDex,
|
|
3240
3576
|
PumpCreateTokenInputMigrationDex,
|
|
3241
3577
|
QuoteDex,
|
|
3242
3578
|
Resolution,
|
|
3579
|
+
SearchDirection,
|
|
3243
3580
|
SearchSort,
|
|
3244
3581
|
SearchSortBy,
|
|
3245
3582
|
SendTxInputSubmitType,
|
|
@@ -3250,7 +3587,13 @@ var ListEndpointsOrder = {
|
|
|
3250
3587
|
SwapRouteInputSwapMode,
|
|
3251
3588
|
TokenCreationDTOType,
|
|
3252
3589
|
TokenTraderTag,
|
|
3590
|
+
TokenTransferItemDTOFlow,
|
|
3253
3591
|
TradeType,
|
|
3592
|
+
TraderPnlResolution,
|
|
3593
|
+
TransactionHistoryItemDTOMainAction,
|
|
3594
|
+
TransactionHistoryItemDTOStatus,
|
|
3595
|
+
UpdateEndpointInputChannelsItem,
|
|
3596
|
+
WalletPnlSummaryDTOResolution,
|
|
3254
3597
|
WsChannelType,
|
|
3255
3598
|
WsDex,
|
|
3256
3599
|
WsMetricType,
|
|
@@ -3266,7 +3609,6 @@ var ListEndpointsOrder = {
|
|
|
3266
3609
|
getActivities,
|
|
3267
3610
|
getAddressRisk,
|
|
3268
3611
|
getAvailableFields,
|
|
3269
|
-
getBalance,
|
|
3270
3612
|
getBalanceUpdates,
|
|
3271
3613
|
getCandles,
|
|
3272
3614
|
getClaims,
|
|
@@ -3291,9 +3633,17 @@ var ListEndpointsOrder = {
|
|
|
3291
3633
|
getMetadataMulti,
|
|
3292
3634
|
getMigratedTokens,
|
|
3293
3635
|
getMintAndBurn,
|
|
3636
|
+
getNetWorth,
|
|
3637
|
+
getNetWorthChart,
|
|
3638
|
+
getNetWorthDetails,
|
|
3639
|
+
getNetWorthSummary,
|
|
3294
3640
|
getNewTokens,
|
|
3641
|
+
getPairCandles,
|
|
3295
3642
|
getPnl,
|
|
3296
|
-
|
|
3643
|
+
getPnlByToken,
|
|
3644
|
+
getPnlByWallet,
|
|
3645
|
+
getPnlDetails,
|
|
3646
|
+
getPoolCandles,
|
|
3297
3647
|
getPools,
|
|
3298
3648
|
getPriceByTime,
|
|
3299
3649
|
getPrices,
|
|
@@ -3308,14 +3658,21 @@ var ListEndpointsOrder = {
|
|
|
3308
3658
|
getToken,
|
|
3309
3659
|
getTokenLiquiditySnapshots,
|
|
3310
3660
|
getTokenTraders,
|
|
3661
|
+
getTokenTransferTotal,
|
|
3662
|
+
getTokenTransfers,
|
|
3311
3663
|
getTokens,
|
|
3664
|
+
getTokensBalance,
|
|
3312
3665
|
getTopHolders,
|
|
3313
3666
|
getTopTraders,
|
|
3667
|
+
getTraderGainersLosers,
|
|
3314
3668
|
getTrades,
|
|
3315
3669
|
getTransferAlerts,
|
|
3316
3670
|
getTransferDirectExposure,
|
|
3317
3671
|
getTransferNetworkIdentifications,
|
|
3318
3672
|
getTransferSummary,
|
|
3673
|
+
getWalletFirstTx,
|
|
3674
|
+
getWalletTransferTotal,
|
|
3675
|
+
getWalletTransfers,
|
|
3319
3676
|
getWithdrawalAddressIdentifications,
|
|
3320
3677
|
getWithdrawalAlerts,
|
|
3321
3678
|
getWithdrawalDirectExposure,
|