Skip to content

@swaps:price

Spot price of 1 whole tokenA, expressed in base units of tokenB (the venue quote for selling 1 tokenA). Compare it against @token.amount(tokenB ...) values.

Returns: number

@swaps:price(tokenA tokenB venue?)
NameTypeDescription
tokenAaddressToken being priced
tokenBaddressToken the price is denominated in
[venue]swap-venueVenue to quote (default: the best venue on the chain)
# TODO: add examples