Category: Finance. Tags: Prices and rates, Stores.
Previews



Views and forms
Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.
Card views, themes and publishing. Browse the gallery.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent and position, see Common properties.
Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Today's rates" | maxLength: 40 | |
decimals | integer | 2 | minimum: 0; maximum: 3 |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
groups | array | [] | minItems: 0; maxItems: 4 | |
groups[].name | string | minLength: 1; maxLength: 40; Required | ||
groups[].rateLabel | string | "Rate" | maxLength: 12 | What the big figure is called: APY, APR or Rate. |
groups[].secondLabel | string | "APR" | maxLength: 12 | What the smaller figure under a rate is called. |
groups[].decimals | integer | minimum: 0; maximum: 3 | Decimal places for this group's figures; left out, the board's decimals. | |
groups[].rates | array | minItems: 0; maxItems: 6; Required | ||
groups[].rates[].name | string | minLength: 1; maxLength: 40; Required | ||
groups[].rates[].rate | number | minimum: -100; maximum: 1000; Required | The rate in percent: 4.25 reads 4.25%. | |
groups[].rates[].second | number | minimum: -100; maximum: 1000 | A smaller figure under the rate, such as the APR. | |
groups[].rates[].note | string | "" | maxLength: 50 | A line under the name: a minimum balance, a term, a condition. |
groups[].rates[].tag | string | "" | maxLength: 14 | A short flag beside the name: Special, Best rate, New. |
effective | string | "" | maxLength: 10 | The date the rates take effect, YYYY-MM-DD. |
footnote | string | "" | maxLength: 240 |
Canvas example
Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.
{
"id": "rate-board",
"primitive": "card",
"card": "rate-board",
"major": 1,
"params": {
"theme": "neomustard"
},
"rect": {
"x": 0,
"y": 0,
"width": 1920,
"height": 1080
},
"layer": 0,
"content_fit": "fill",
"data": "rate-board-main"
}
Write live data
Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.
curl --request PUT "https://api.screenrig.ai/api/card-data/rate-board-main" \
--header "Authorization: Bearer $SCREENRIG_TOKEN" \
--header "ScreenRig-Project: $SCREENRIG_PROJECT" \
--header "Content-Type: application/json" \
--data '{"document":{"groups":[],"effective":"","footnote":""}}'