Links
Comment on page

RedstoneQueryForSeveralSymbols

redstone-api / Exports / RedstoneQueryForSeveralSymbols

Class: RedstoneQueryForSeveralSymbols

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:
Name
Type
params
QueryParams

Properties

params

Protected params: QueryParams

Methods

atDate

atDate(date: ConvertableToDate): RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
Configures query to fetch the price for a specific date.
Parameters:
Name
Type
Description
date
ConvertableToDate
Date for the historical price (date | timestamp | string)
Returns: RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
query object

getExecutableQuery

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

hoursAgo

hoursAgo(hoursCount: number): RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
Configures query to fetch the price for X hours ago.
Parameters:
Name
Type
Description
hoursCount
number
Number of hours ago
Returns: RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
query object
Defined in: redstone-query.ts:86

latest

latest(): RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
Configures query to fetch the latest price/prices It doesn't support any params
Returns: RedstoneQueryExecutable<{ [symbol: string]: PriceData; }>
query object