Skip to content

Get the dashboard layout.

GET
/api/dashboard/layout
curl --request GET \
--url https://api.tradr.cloud/api/dashboard/layout

Authed. Returns the user’s widget placements on a 12-column grid, their theme, and when the layout was last saved. A user who has never customised the dashboard gets the default layout, not an empty one.

The layout.

Media typeapplication/json
object
theme
string
Allowed values: light dark system
updatedAt
string
nullable
widgets
Array<object>

One widget on the dashboard grid. The grid is 12 columns wide and rows are a fixed height, so x/w are columns and y/h are rows.

object
config

Optional per-widget settings. Serialises to at most 2048 bytes.

h
required
integer
>= 1 <= 24
id
required
string format: uuid
type
required
string
Allowed values: stats-summary open-positions performance-chart account-balances position-sizing equity-curve
w
required

X + w must not exceed 12.

integer
>= 1 <= 12
x
required
integer
<= 11
y
required
integer
Example
{
"theme": "light",
"widgets": [
{
"type": "stats-summary"
}
]
}

No valid session.