symbol
: string, opts
: GetHistoricalPriceOptions): Promise<PriceData>symbol
opts
symbol
: string, opts
: GetHistoricalPriceForIntervalOptions): Promise<PriceData[]>remarks
This method can be used to display charts with historical prices. Full list of supported tokens is available here​symbol
opts
symbols
: string[], opts
: GetHistoricalPriceOptions): Promise<{ [token: string]: PriceData; }>symbols
opts
getHistoricalPrice
method.date
argument must be convertable to the Date type. You may pass a date (e.g. new Date(2021-04-01)
), a timestamp (e.g. 1617709771289
), or just a string (e.g. 2021-04-01
or 2021-04-01T12:30:58
)getHistoricalPrice
method.getHistoricalPrice
method, and startDate
, endDate
and interval
as fields of the second argument.startDate
and endDate
arguments must be convertable to Date type.