RedstoneQueryForSeveralSymbols

redstone-api / Exports / RedstoneQueryForSeveralSymbols

Class: RedstoneQueryForSeveralSymbols

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

Parameters:

Name

Type

params

QueryParams

Returns: RedstoneQueryForSeveralSymbols

Overrides: RedstoneQueryForSingleOrSeveralSymbols

Properties

params

Protected params: QueryParams

Inherited from: RedstoneQueryForSingleOrSeveralSymbols.params

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

Inherited from: RedstoneQueryForSingleOrSeveralSymbols

getExecutableQuery

ProtectedgetExecutableQuery(update: any): RedstoneQueryExecutable

Type parameters:

Name

T

Parameters:

Name

Type

update

any

Returns: RedstoneQueryExecutable

Inherited from: RedstoneQueryForSingleOrSeveralSymbols

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

Inherited from: RedstoneQueryForSingleOrSeveralSymbols

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

Inherited from: RedstoneQueryForSingleOrSeveralSymbols

Last updated