@chainstream-io/sdk 0.2.12 → 0.2.14

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/index.cjs CHANGED
@@ -169,6 +169,7 @@ __export(index_exports, {
169
169
  getMigratedTokens: () => getMigratedTokens,
170
170
  getMintAndBurn: () => getMintAndBurn,
171
171
  getNetWorth: () => getNetWorth,
172
+ getNetWorthByTokens: () => getNetWorthByTokens,
172
173
  getNetWorthChart: () => getNetWorthChart,
173
174
  getNetWorthDetails: () => getNetWorthDetails,
174
175
  getNetWorthSummary: () => getNetWorthSummary,
@@ -1559,21 +1560,21 @@ var StreamApi = class {
1559
1560
  (data) => callback({
1560
1561
  walletAddress: data.a,
1561
1562
  tokenAddress: data.ta,
1562
- tokenPriceInUsd: data.tpiu,
1563
1563
  timestamp: data.t,
1564
+ buyCount: data.bs,
1565
+ buyCount30d: data.bs30d,
1566
+ buyCount7d: data.bs7d,
1567
+ sellCount: data.ss,
1568
+ sellCount30d: data.ss30d,
1569
+ sellCount7d: data.ss7d,
1570
+ tokenPriceInUsd: data.tpiu,
1564
1571
  opentime: data.ot,
1565
1572
  lasttime: data.lt,
1566
1573
  closetime: data.ct,
1567
1574
  buyAmount: data.ba,
1568
1575
  buyAmountInUsd: data.baiu,
1569
- buyCount: data.bs,
1570
- buyCount30d: data.bs30d,
1571
- buyCount7d: data.bs7d,
1572
1576
  sellAmount: data.sa,
1573
1577
  sellAmountInUsd: data.saiu,
1574
- sellCount: data.ss,
1575
- sellCount30d: data.ss30d,
1576
- sellCount7d: data.ss7d,
1577
1578
  heldDurationTimestamp: data.hdts,
1578
1579
  averageBuyPriceInUsd: data.abpiu,
1579
1580
  averageSellPriceInUsd: data.aspiu,
@@ -2473,6 +2474,7 @@ __export(wallet_exports, {
2473
2474
  calculatePnl: () => calculatePnl,
2474
2475
  getBalanceUpdates: () => getBalanceUpdates,
2475
2476
  getNetWorth: () => getNetWorth,
2477
+ getNetWorthByTokens: () => getNetWorthByTokens,
2476
2478
  getNetWorthChart: () => getNetWorthChart,
2477
2479
  getNetWorthDetails: () => getNetWorthDetails,
2478
2480
  getNetWorthSummary: () => getNetWorthSummary,
@@ -2520,6 +2522,12 @@ var getNetWorth = (chain, walletAddress, params, options) => {
2520
2522
  options
2521
2523
  );
2522
2524
  };
2525
+ var getNetWorthByTokens = (chain, walletAddress, params, options) => {
2526
+ return chainstreamApiClient(
2527
+ { url: `/v1/wallet/${chain}/${walletAddress}/net-worth/tokens`, method: "GET", params },
2528
+ options
2529
+ );
2530
+ };
2523
2531
  var getTokensBalance = (chain, walletAddress, params, options) => {
2524
2532
  return chainstreamApiClient(
2525
2533
  { url: `/v1/wallet/${chain}/${walletAddress}/tokens-balance`, method: "GET", params },
@@ -3664,6 +3672,7 @@ var ListEndpointsOrder = {
3664
3672
  getMigratedTokens,
3665
3673
  getMintAndBurn,
3666
3674
  getNetWorth,
3675
+ getNetWorthByTokens,
3667
3676
  getNetWorthChart,
3668
3677
  getNetWorthDetails,
3669
3678
  getNetWorthSummary,