Links

RedstoneQueryForSingleOrSeveralSymbols

redstone-api / Exports / RedstoneQueryForSingleOrSeveralSymbols

Class: RedstoneQueryForSingleOrSeveralSymbols

Type parameters

Name
QueryResultType

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Type parameters:
Name
QueryResultType
Parameters:
Name
Type
params
QueryParams

Properties

params

Protected params: QueryParams

Methods

atDate

atDate(date: ConvertableToDate): RedstoneQueryExecutable
Configures query to fetch the price for a specific date.
Parameters:
Name
Type
Description
date
ConvertableToDate
Date for the historical price (date | timestamp | string)
query object

getExecutableQuery

ProtectedgetExecutableQuery(update: any): RedstoneQueryExecutable
Type parameters:
Name
T
Parameters:
Name
Type
update
any

hoursAgo

hoursAgo(hoursCount: number): RedstoneQueryExecutable
Configures query to fetch the price for X hours ago.
Parameters:
Name
Type
Description
hoursCount
number
Number of hours ago
query object

latest

latest(): RedstoneQueryExecutable
Configures query to fetch the latest price/prices It doesn't support any params
query object