POST/shorts.v1alpha1.OwnershipService/CompareFundSnapshots

CompareFundSnapshots

Two files of one fund compared holding by holding: the weight change in percentage points, and the holdings new or dropped between them.

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 fund's newest file at or before the date. An empty to is the newest file; an empty from is the file before to. A from after an explicit to is InvalidArgument. When both sides resolve to the same file there is nothing to compare: the response names that file on both sides and carries no rows. (proto string)

fundKeystring

(proto string)

tostring

(proto string)

Responses

200Success
application/json
object
fromstring

The file dates used. (proto string)

rowsarray

Continuing holdings by |delta| (largest first), then new, then dropped, each by weight. (proto shorts.v1alpha1.FundSnapshotChange)

Array Items:
snapshotDatesarray

(proto string)

Array Items:
string
sourceFromstring

(proto string)

sourceTostring

(proto 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/CompareFundSnapshots" \
  -H "Content-Type: application/json" \
  -d '{
  "from": "string",
  "fundKey": "string",
  "to": "string"
}'