mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 00:31:02 +00:00
Update Kusama/Polkadot metrics (#910)
This commit is contained in:
committed by
Bastian Köcher
parent
f6fd87f39e
commit
49e04b7b26
@@ -42,10 +42,10 @@ pub(crate) fn add_polkadot_kusama_price_metrics<T: finality_relay::FinalitySyncP
|
|||||||
FloatJsonValueMetric::new(
|
FloatJsonValueMetric::new(
|
||||||
registry,
|
registry,
|
||||||
prefix,
|
prefix,
|
||||||
"https://api.coingecko.com/api/v3/simple/price?ids=Polkadot&vs_currencies=usd".into(),
|
"https://api.coingecko.com/api/v3/simple/price?ids=Polkadot&vs_currencies=btc".into(),
|
||||||
"$.polkadot.usd".into(),
|
"$.polkadot.btc".into(),
|
||||||
"polkadot_price".into(),
|
"polkadot_to_base_conversion_rate".into(),
|
||||||
"Polkadot price in USD".into(),
|
"Rate used to convert from DOT to some BASE tokens".into(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.map_err(|e| anyhow::format_err!("{}", e))?
|
.map_err(|e| anyhow::format_err!("{}", e))?
|
||||||
@@ -53,10 +53,10 @@ pub(crate) fn add_polkadot_kusama_price_metrics<T: finality_relay::FinalitySyncP
|
|||||||
FloatJsonValueMetric::new(
|
FloatJsonValueMetric::new(
|
||||||
registry,
|
registry,
|
||||||
prefix,
|
prefix,
|
||||||
"https://api.coingecko.com/api/v3/simple/price?ids=Kusama&vs_currencies=usd".into(),
|
"https://api.coingecko.com/api/v3/simple/price?ids=Kusama&vs_currencies=btc".into(),
|
||||||
"$.kusama.usd".into(),
|
"$.kusama.btc".into(),
|
||||||
"kusama_price".into(),
|
"kusama_to_base_conversion_rate".into(),
|
||||||
"Kusama price in USD".into(),
|
"Rate used to convert from KSM to some BASE tokens".into(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.map_err(|e| anyhow::format_err!("{}", e))?
|
.map_err(|e| anyhow::format_err!("{}", e))?
|
||||||
|
|||||||
Reference in New Issue
Block a user