Skip to main content
Returns: Price

Arguments

address
String
The token contract address. Required unless you are on an enterprise plan including PriceFeed features.
networkId
Int
The network ID the token is deployed on.
sourcePairAddress
String
The pair contract address from which to get pricing. Defaults to the top pair for the token.

Schema

"""Live-streamed price updates for a token."""
onPriceUpdated(address: String, networkId: Int, sourcePairAddress: String): Price
I