Custom Themes
Custom Themes are a great way to compile your own list of stocks to provide your users. Create your own themes and display them your platform with a nice UI.
Custom Themes
Returns all custom themes for the authenticated user, optionally filtered by region and localized by locale.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/custom-theme?locale=en®ion=us' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| locale | Locale code | query | string | |
| region | Region code (Optional) | query | string |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : [ 1 items … ]
▼0 : { 12 items … }
▼"region" : [ 1 items … ]
▼"metaData" : { 1 items … }
Get custom Theme Detail
Retrieves detailed information about a specific custom theme created by the authenticated user.
The locale parameter controls text localization. The optional sortBy parameter allows sorting the stocks within the theme. Currently, only price_change (daily percentage change) is supported.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/custom-theme/672a58e165b9a4844a25260c?locale=en&sortBy=price_change' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| id | Unique identifier | 672a58e165b9a4844a25260c | path | string |
| locale | Locale code | query | string | |
| sortBy | Sort the stocks in a collection by a specific field. Currently only supports `price_change`. (Optional) | query | string |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : { 14 items … }
▼"region" : [ 1 items … ]
▼"stocks" : [ 2 items … ]
▼0 : { 9 items … }
▼1 : { 9 items … }
▼"metaData" : { 1 items … }
Create New Custom Theme
Creates a new custom theme for the authenticated user using the provided data.
The request body must include localized title, a list of stocks, and optional metadata such as description, images, display order, status, and meta_data.
curl --request POST \
--url https://api.getlaplace.com/api/v1/custom-theme \
--header 'Authorization: Bearer your-api-key' \
--header 'Content-Type: application/json' \
--data '{
"title": {
"en": "Rising Stocks",
"tr": "Yükselen Hisseler"
},
"description": {
"en": "Recently rising stocks.",
"tr": "Son zamanlarda yükselen hisseler."
},
"stocks": [
"61dd0d4b0ec2114146342f69",
"61dd0d820ec211414634303e"
],
"image_url": "https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_original.webp",
"avatar_url": "https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_avatar.webp",
"order": "3",
"status": "active",
"meta_data": {
"color": "#FF0000"
}
}'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| title | Localized title for a custom theme. | {"en":"Rising Stocks","tr":"Yükselen Hisseler"} | body | object |
| description | Localized description for a custom theme. (Optional) | {"en":"Recently rising stocks.","tr":"Son zamanlarda yükselen hisseler."} | body | object |
| stocks | List of stock IDs as string | 61dd0d4b0ec2114146342f69, 61dd0d820ec211414634303e | body | array |
| image_url | Default resolution image (Optional) | https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_original.webp | body | string |
| avatar_url | Lowest resolution image (Optional) | https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_avatar.webp | body | string |
| order | Order of this custom theme (Optional) | 3 | body | number |
| status | Status of the theme | body | string | |
| meta_data | Additional optional data (Optional) | {"color":"#FF0000"} | body | object |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : { 1 items … }
Delete Custom Theme
Delete a custom theme you have previously created.
curl --request DELETE \
--url https://api.getlaplace.com/api/v1/custom-theme/6256b0647d0bb100123effa7 \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| id | Unique identifier | 6256b0647d0bb100123effa7 | path | string |