historicalPrices

Request historical prices for a stock.

historicalPrices
(,
string range
,
Flag!"resetAtMidnight" resetAtMidnight = No.resetAtMidnight
,
Flag!"simplify" simplify = No.simplify
,
int interval = -1
,
Flag!"changeFromClose" changeFromClose = No.changeFromClose
,
int last = -1
)

Parameters

stock Stock

The Stock object to modify.

range string

The date range for which to retrieve prices. A custom date may be passed in the format "YYYYMMDD" within the last thirty days.

simplify Flag!"simplify"

If Yes, runs a polyline simplification using the Douglas-Peucker algorithm.

changeFromClose Flag!"changeFromClose"

If Yes, "changeOverTime" and "marketChangeOverTime" will be relative to the previous day close instead of the first value.

last int

Return the last n elements.

Meta