POST/shorts.v1alpha1.OwnershipService/ListFundPositionChanges

ListFundPositionChanges

The index fund positions: the change in each stock's weight across the tracked funds between two snapshot dates.

Parameters

Connect-Protocol-VersionheaderRequired
number [1]

Define the version of the Connect protocol

Connect-Timeout-Msheader
number

Define the timeout, in ms

Request Body

application/json
object
fromstring

YYYY-MM-DD. Each side is the newest snapshot at or before it, per fund. Empty means the two newest snapshot dates. The date range must not be inverted. (proto string)

limitinteger <int32>

Per direction: up to this many of the largest rises and the largest falls, and up to this many new and dropped stocks each. 0 means 10; above 50 is 50. (proto int32)

tostring

(proto string)

Responses

200Success
application/json
object
fromstring

The dates used: the newest snapshot at or before each request date, and the first snapshot for a from date before them all. (proto string)

rowsarray

Rises (largest first), then falls (largest first), then new, then dropped. (proto shorts.v1alpha1.FundPositionChange)

Array Items:
snapshotDatesarray

Every distinct snapshot date across the tracked funds, oldest first. (proto string)

Array Items:
string
tostring

(proto string)

defaultError
application/json
object

Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation

codestring [canceled, unknown, invalid_argument, deadline_exceeded, not_found, already_exists, permission_denied, resource_exhausted, failed_precondition, aborted, out_of_range, unimplemented, internal, unavailable, data_loss, unauthenticated]

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

detailsarray

A list of messages that carry the error details. There is no limit on the number of messages.

Array Items:
messagestring

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.OwnershipService/ListFundPositionChanges" \
  -H "Content-Type: application/json" \
  -d '{
  "from": "string",
  "limit": 0,
  "to": "string"
}'