Skip to main content
GET
Get Trailing Returns

Authorizations

Authorization
string
header
required

Your Fruit Stand API key from app.fruitstand.dev.

Path Parameters

code
string
required

Query Parameters

market
string
default:US

Market/exchange code for the fund. Defaults to US — all funds are currently US-listed and code is a bare ticker (e.g. SPY), so this is informational and does not affect lookups. Reserved for future multi-market support.

as_of
string<date> | null

As-of date. If it isn't a trading day (weekend/holiday), snaps back to the nearest prior trading day; the response's as_of_date is the actual day returned. Omit for the latest available.

Response

Successful Response

code
string
required

Bare ticker, e.g. SPY.

as_of_date
string<date>
required
market
string
default:US

Market/exchange code. Always US for now.

return_1d
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_1w
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_1m
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_3m
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_6m
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_ytd
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_1y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_2y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_3y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_4y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_5y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_7y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_10y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_15y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_20y
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
return_earliest_available
string | null
Pattern: ^(?!^[-+.]*$)[+-]?0*\d*\.?\d*$
extra_returns
Extra Returns · object