RedstoneQueryForSingleSymbol
redstone-api / Exports / RedstoneQueryForSingleSymbol
Class: RedstoneQueryForSingleSymbol
Hierarchy
RedstoneQueryForSingleOrSeveralSymbols
↳ RedstoneQueryForSingleSymbol
Table of contents
Constructors
Properties
Methods
Constructors
constructor
new RedstoneQueryForSingleSymbol(
params
: QueryParams): RedstoneQueryForSingleSymbol
Parameters:
Returns: RedstoneQueryForSingleSymbol
Overrides: RedstoneQueryForSingleOrSeveralSymbols
Properties
params
• Protected
params: QueryParams
Inherited from: RedstoneQueryForSingleOrSeveralSymbols.params
Methods
atDate
▸ atDate(date
: ConvertableToDate): RedstoneQueryExecutable
Configures query to fetch the price for a specific date.
Parameters:
Returns: RedstoneQueryExecutable
query object
Inherited from: RedstoneQueryForSingleOrSeveralSymbols
forLastDays
▸ forLastDays(daysCount
: number): RedstoneQueryExecutable
Configures query to fetch the price for the last few days
Parameters:
Returns: RedstoneQueryExecutable
query object
forLastHours
▸ forLastHours(hoursCount
: number): RedstoneQueryExecutable
Configures query to fetch the price for the last few hours
Parameters:
Returns: RedstoneQueryExecutable
query object
fromDate
▸ fromDate(date
: ConvertableToDate): RedstoneQueryForSingleSymbol
Configures query to fetch the price in a time range. It is important to use fromDate with toDate query methods
Parameters:
Returns: RedstoneQueryForSingleSymbol
query object
getExecutableQuery
▸ Protected
getExecutableQuery(update
: any): RedstoneQueryExecutable
Type parameters:
Parameters:
Returns: RedstoneQueryExecutable
Inherited from: RedstoneQueryForSingleOrSeveralSymbols
hoursAgo
▸ hoursAgo(hoursCount
: number): RedstoneQueryExecutable
Configures query to fetch the price for X hours ago.
Parameters:
Returns: RedstoneQueryExecutable
query object
Inherited from: RedstoneQueryForSingleOrSeveralSymbols
latest
▸ latest(): RedstoneQueryExecutable
Configures query to fetch the latest price/prices It doesn't support any params
Returns: RedstoneQueryExecutable
query object
Inherited from: RedstoneQueryForSingleOrSeveralSymbols
toDate
▸ toDate(date
: ConvertableToDate): RedstoneQueryExecutable
Configures query to fetch the price in a time range. toDate method should go after the fromDate
Parameters:
Returns: RedstoneQueryExecutable
query object
Last updated