Skip to content

Commit

Permalink
Feature/pro 1312 token finance 24h data points fetch (#227)
Browse files Browse the repository at this point in the history
* Implemented Token Finance - 24h data points, Fetch Supply & % Trading & LIquidity

* Updated package version

* Updated package version
  • Loading branch information
kaushalrajbacancy authored Jun 14, 2023
1 parent c3a3288 commit a8417a7
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "etherspot",
"version": "1.43.6",
"version": "1.43.7",
"description": "Etherspot SDK",
"keywords": [
"ether",
Expand Down
3 changes: 3 additions & 0 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,9 @@ type TokenDetails {
usdPrice: number!
tokenAddress: string!
liquidityUSD: number!
liquidityUSDChangePercentage24h: number!
holders?: number!
supply?: number!
priceChangePercentage24h: number!
tradingVolume: number!
tradingVolumeChangePercentage: number!
Expand Down
3 changes: 3 additions & 0 deletions src/sdk/assets/assets.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ export class AssetsService extends Service {
tokenAddress
usdPrice
liquidityUSD
liquidityUSDChangePercentage24h
supply
holders
priceChangePercentage24h
tradingVolume
tradingVolumeChangePercentage
Expand Down
6 changes: 6 additions & 0 deletions src/sdk/assets/classes/token-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ export class TokenDetails {

liquidityUSD: number;

liquidityUSDChangePercentage24h: number;

holders?: number;

supply?: number;

priceChangePercentage24h: number;

tradingVolume: number;
Expand Down

0 comments on commit a8417a7

Please sign in to comment.