Difference between revisions of "Template:Market info"

From CloakCoin Wiki
Jump to: navigation, search
Line 1: Line 1:
 
{{#get_web_data:
 
{{#get_web_data:
url=https://api.coinmarketcap.com/v1/ticker/cloakcoin/
+
url=https://api.coingecko.com/api/v3/simple/price?ids=cloakcoin&vs_currencies=BTC&include_last_updated_at=true
 
|format=json
 
|format=json
|data=id=id,name=name,symbol=symbol,rank=rank,price_usd=price_usd,price_btc=price_btc,24h_volume_usd=24h_volume_usd,market_cap_usd=market_cap_usd,available_supply=available_supply,total_supply=total_supply,percent_change_1h=percent_change_1h,percent_change_24h=percent_change_24h,percent_change_7d=percent_change_7d,last_updated=last_updated
+
|data=id=id,name=name,symbol=symbol,rank=rank,price_usd=price_usd,price_btc=price_btc,24h_volume_usd=24h_volume_usd,market_cap_usd=market_cap_usd,available_supply=available_supply,total_supply=total_supply,percent_change_1h=percent_change_1h,percent_change_24h=percent_change_24h,percent_change_7d=percent_change_7d,last_updated=include_last_updated_at
 
|cache seconds=400
 
|cache seconds=400
 
}}
 
}}
Line 9: Line 9:
 
|-
 
|-
 
|Symbol
 
|Symbol
|{{#external_value:symbol}}
+
|{{#external_value:last_updated}}
 
|-
 
|-
 
|Price USD
 
|Price USD

Revision as of 21:49, 7 August 2020

CloakCoin Statistics
Symbol Error: no local variable "last_updated" was set.
Price USD Error: no local variable "price_usd" was set.$
Price BTC Error: no local variable "price_btc" was set.
24h Volume Error: no local variable "24h_volume_usd" was set.$
Market Cap Error: no local variable "market_cap_usd" was set.$
Total Supply Error: no local variable "available_supply" was set.
24h Change Error: no local variable "percent_change_24h" was set.%