from telliot_feeds.datafeed import DataFeed
from telliot_feeds.queries.price.spot_price import SpotPrice
from telliot_feeds.sources.price.spot.agni import agniFinancePriceSource
from telliot_feeds.sources.price.spot.coingecko import CoinGeckoSpotPriceSource
from telliot_feeds.sources.price.spot.fusionX import fusionXPriceSource
from telliot_feeds.sources.price_aggregator import PriceAggregator


meth_usd_median_feed = DataFeed(
    query=SpotPrice(asset="METH", currency="USD"),
    source=PriceAggregator(
        asset="meth",
        currency="usd",
        algorithm="median",
        sources=[
            CoinGeckoSpotPriceSource(asset="meth", currency="usd"),
            agniFinancePriceSource(asset="meth", currency="usd"),
            fusionXPriceSource(asset="meth", currency="usd"),
        ],
    ),
)
