/shorts.v1alpha1.StockService/GetStockDataGetStockData
fetch time series data for a specific stock
Parameters
Define the version of the Connect protocol
Define the timeout, in ms
Request Body
Request for GetStockDataRequest RPC, specifying the product code.
Point-in-time filter, YYYY-MM-DD: return only observations that had been PUBLISHED by this date, i.e. whose available_from is on or before it. ASIC publishes T+4, so a series requested for a historical date otherwise includes up to four days of data nobody could have had. Setting as_of is what makes a walk-forward study honest without the caller applying a blunt lag by hand. Setting this IMPLIES full_resolution. The two are contradictory otherwise: a weekly bucket labelled D contains observations from after D, so a mean cannot answer a point-in-time question, and serving one silently defeats the other. A caller passing as_of has declared what they are doing, so the resolution follows from the request rather than from a second flag they must know to set. (proto string)
Explicit date range, YYYY-MM-DD, as an alternative to `period`. `from` alone runs to the end of the data. A caller wanting one specific window had to request MAX and discard most of what came back. (proto string)
Return every observation, unbucketed. By default the long periods (5Y, 10Y, MAX) are bucketed into weekly averages. That is the right shape for a chart and unusable for anything else: you cannot compute a per-observation change, align to a trading calendar, or measure an event window on a resampled series, and until now there was no way to ask for the raw record. The default is unchanged, so existing callers keep the series they already render. (proto bool)
Cap on returned points, applied after `full_resolution`. 0 means no cap. Thinning keeps the first and last observation and spaces the rest evenly; `downsampled` reports whether it happened, so a caller never has to infer it from a suspiciously round point count. (proto int32)
Lookback window: 1D, 1W, 1M, 3M, 6M, 1Y, 2Y, 5Y, 10Y or MAX. Ignored when `from` is set. (proto string)
(proto string)
(proto string)
Responses
TimeSeriesData represents time series data for a stock.
(proto bool)
Industry classification (populated in summary mode from company metadata). (proto string)
The latest short position. (proto double)
The maximum short position in the range (proto stocks.v1alpha1.TimeSeriesPoint)
The date this observation became PUBLIC: four trading days after `timestamp`, because ASIC publishes T+4. Without it, a backtest that uses the value dated D on day D has four days of lookahead and nothing in the response says so. That is the difference between a result that is merely biased and one that cannot be checked from the outside. Pass `as_of` on the request to have the server withhold observations that were not yet published. This is DERIVED from the report date, not recorded per row: it is the known, fixed publication rule made machine-readable. It does not capture an unusually delayed publication, and it says nothing about REVISIONS — ASIC can restate a position, the store updates in place, and the original value is not retained. A historical query therefore returns the as-revised figure, and no field here can tell you it was revised. YYYY-MM-DD. (proto string)
The two raw quantities the percent is computed from. ASIC reports a share COUNT; the percent is that count over shares on issue, and shares on issue moves with placements, entitlement offers and buybacks. A capital raising therefore drops the percent overnight with no change in short positioning at all, and a signal built on change-in-percent reads that as covering. Both quantities are stored per observation, so exposing them lets a caller work in share counts and see the denominator move. Shares held short on this date (a COUNT, not a percent). (proto double)
The short position at this point in time, as a PERCENT of shares on issue. (proto double)
The point in time. (proto google.protobuf.Timestamp)
Shares on issue on this date — the percent's denominator. (proto double)
The minimum short position in the range (proto stocks.v1alpha1.TimeSeriesPoint)
The date this observation became PUBLIC: four trading days after `timestamp`, because ASIC publishes T+4. Without it, a backtest that uses the value dated D on day D has four days of lookahead and nothing in the response says so. That is the difference between a result that is merely biased and one that cannot be checked from the outside. Pass `as_of` on the request to have the server withhold observations that were not yet published. This is DERIVED from the report date, not recorded per row: it is the known, fixed publication rule made machine-readable. It does not capture an unusually delayed publication, and it says nothing about REVISIONS — ASIC can restate a position, the store updates in place, and the original value is not retained. A historical query therefore returns the as-revised figure, and no field here can tell you it was revised. YYYY-MM-DD. (proto string)
The two raw quantities the percent is computed from. ASIC reports a share COUNT; the percent is that count over shares on issue, and shares on issue moves with placements, entitlement offers and buybacks. A capital raising therefore drops the percent overnight with no change in short positioning at all, and a signal built on change-in-percent reads that as covering. Both quantities are stored per observation, so exposing them lets a caller work in share counts and see the denominator move. Shares held short on this date (a COUNT, not a percent). (proto double)
The short position at this point in time, as a PERCENT of shares on issue. (proto double)
The point in time. (proto google.protobuf.Timestamp)
Shares on issue on this date — the percent's denominator. (proto double)
(proto string)
The time series points. (proto stocks.v1alpha1.TimeSeriesPoint)
TimeSeriesPoint represents a single point in time for the time series data.
The stock code. (proto string)
How many observations exist in the requested window before any thinning, and whether `points` is thinner than that. A caller doing quantitative work must be able to tell a complete daily record from a series shaped for a chart; without these two fields the only way to find out was to notice that the point count was suspiciously round. (proto int32)
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
A list of messages that carry the error details. There is no limit on the number of messages.
Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.
A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.
curl -X POST "https://api.shorted.com.au/shorts.v1alpha1.StockService/GetStockData" \
-H "Content-Type: application/json" \
-d '{
"asOf": "string",
"from": "string",
"fullResolution": true,
"maxPoints": 0,
"period": "string",
"productCode": "string",
"to": "string"
}'curl -X POST "https://api.shorted.com.au/shorts.v1alpha1.StockService/GetStockData" \
-H "Content-Type: application/json" \
-d '{
"asOf": "string",
"from": "string",
"fullResolution": true,
"maxPoints": 0,
"period": "string",
"productCode": "string",
"to": "string"
}'