Skip to main content

Interface: PriceSeries

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / PriceSeries

Interface: PriceSeries

Defined in: packages/gswap-sdk/dist/index.d.ts:1925

A token's USD price line, as GET /market/price-series answered it.

Properties​

change24h​

change24h: number | null

Defined in: packages/gswap-sdk/dist/index.d.ts:1934

24-hour change in percent; null when unknown.


currentPrice​

currentPrice: number | null

Defined in: packages/gswap-sdk/dist/index.d.ts:1932

USD price now; null when unknown.


prices​

prices: PriceSeriesPoint[]

Defined in: packages/gswap-sdk/dist/index.d.ts:1930

In the backend's order (oldest first). Empty for a token the backend has no prices for.


timeframe​

timeframe: "1D" | "1W" | "1M" | "1Y" | "ALL"

Defined in: packages/gswap-sdk/dist/index.d.ts:1928


token​

token: string

Defined in: packages/gswap-sdk/dist/index.d.ts:1927

The id the series was asked for: the token string as given, or an object key's $ form.