LimestoneQueryForSingleSymbol
limestone-api / Exports / LimestoneQueryForSingleSymbol

Class: LimestoneQueryForSingleSymbol

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

+ new LimestoneQueryForSingleSymbol(params: QueryParams): LimestoneQueryForSingleSymbol
Parameters:
Name
Type
params
QueryParams
Defined in: limestone-query.ts:102

Properties

params

Protected params: QueryParams
Defined in: limestone-query.ts:58

Methods

atDate

atDate(date: ConvertableToDate): LimestoneQueryExecutable
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
Defined in: limestone-query.ts:97

forLastDays

forLastDays(daysCount: number): LimestoneQueryExecutable
Configures query to fetch the price for the last few days
Parameters:
Name
Type
Description
daysCount
number
Number of days in the time range
query object
Defined in: limestone-query.ts:154

forLastHours

forLastHours(hoursCount: number): LimestoneQueryExecutable
Configures query to fetch the price for the last few hours
Parameters:
Name
Type
Description
hoursCount
number
Number of hours in the time range
query object
Defined in: limestone-query.ts:139

fromDate

fromDate(date: ConvertableToDate): LimestoneQueryForSingleSymbol
Configures query to fetch the price in a time range. It is important to use fromDate with toDate query methods
Parameters:
Name
Type
Description
date
ConvertableToDate
Start date/time for the time range
query object
Defined in: limestone-query.ts:113

getExecutableQuery

ProtectedgetExecutableQuery(update: any): LimestoneQueryExecutable
Type parameters:
Name
T
Parameters:
Name
Type
update
any
Defined in: limestone-query.ts:65

hoursAgo

hoursAgo(hoursCount: number): LimestoneQueryExecutable
Configures query to fetch the price for X hours ago.
Parameters:
Name
Type
Description
hoursCount
number
Number of hours ago
query object
Defined in: limestone-query.ts:86

latest

latest(): LimestoneQueryExecutable
Configures query to fetch the latest price/prices It doesn't support any params
query object
Defined in: limestone-query.ts:77

toDate

toDate(date: ConvertableToDate): LimestoneQueryExecutable
Configures query to fetch the price in a time range. toDate method should go after the fromDate
Parameters:
Name
Type
Description
date
ConvertableToDate
End date/time for the time range
query object
Defined in: limestone-query.ts:126
Copy link
Outline
Class: LimestoneQueryForSingleSymbol
Hierarchy
Table of contents
Constructors
Properties
Methods