RedstoneQuery
redstone-api / Exports / RedstoneQuery

Class: RedstoneQuery

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:
Name
Type
Default value
params
object
{}
Returns: RedstoneQuery

Properties

params

Protected params: QueryParams

Methods

allSymbols

allSymbols(): RedstoneQueryForSeveralSymbols
Configures query to fetch prices for all supported tokens. It doesn't support any params
query object

symbol

symbol(symbol: string): RedstoneQueryForSingleSymbol
Sets a token symbol to fetch
Parameters:
Name
Type
Description
symbol
string
Token symbol string
query object

symbols

symbols(symbols: string[]): RedstoneQueryForSeveralSymbols
Sets token symbols to fetch
Parameters:
Name
Type
Description
symbols
string[]
Array of strings (token symbols)
query object