auradefi 0.1.1
PyPI GitHub

PriceOracle

auradefi.prices.inquirer · source

Structural interface: current USD prices for CAIP-19 asset ids.

usd_prices

usd_prices(self, caip19s: Sequence[str]) -> dict[str, Money]

Return USD prices for the ids this oracle can price.

Keys are a subset of caip19s; every value is Money with currency "USD". Ids the oracle cannot price are simply absent.

Parameters

caip19srequired, Sequence[str]

none

__init__

__init__(self, *args, **kwargs)

Parameters

argsrequired, any

none

kwargsoptional, any

none