Interface: MarketPrice
gSwap SDK 2.0.0-rc.4 / MarketPrice
Interface: MarketPrice
Defined in: packages/gswap-sdk/dist/index.d.ts:1907
One token's market price, as GET /market/price answered it.
Properties
change24h
change24h:
number|null
Defined in: packages/gswap-sdk/dist/index.d.ts:1913
24-hour change in percent (-2.1 is -2.1 %); null when unknown.
listed
listed:
boolean
Defined in: packages/gswap-sdk/dist/index.d.ts:1915
Whether the token is on the backend's CoinGecko list (what the swap app's "trending" uses).
price
price:
number|null
Defined in: packages/gswap-sdk/dist/index.d.ts:1911
USD price; null when the backend knows the token but has no price for it.
token
token:
string
Defined in: packages/gswap-sdk/dist/index.d.ts:1909
The id the price was asked for: the token string as given, or an object key's $ form.