add new data to asset stats api
This commit is contained in:
parent
6b172040c3
commit
70d2c8b9f4
2 changed files with 6 additions and 0 deletions
|
|
@ -66,6 +66,9 @@ class StatsController {
|
|||
change_24h_percent: (pair.coefficient || 0).toString(),
|
||||
volume_24h: (pair.volume || 0).toString(),
|
||||
market_cap: marketCap,
|
||||
name: targetAsset.asset_info?.full_name || '',
|
||||
ticker: targetAsset.asset_info?.ticker || '',
|
||||
pair_id: pair.id.toString(),
|
||||
};
|
||||
|
||||
if (
|
||||
|
|
|
|||
|
|
@ -4,6 +4,9 @@ interface getAssetStatsRes {
|
|||
change_24h_percent: string;
|
||||
volume_24h: string;
|
||||
market_cap: string;
|
||||
name: string;
|
||||
ticker: string;
|
||||
pair_id: string;
|
||||
period_data?: {
|
||||
price_change_percent: string;
|
||||
volume: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue