Temalar
Temalar benzer özelliklere sahip önceden ayarlanmış hisse senedi listesini almanın bir yoludur. Kullanıcılarınız için görsel açıdan çekici bir arayüz oluşturmak için harikadırlar.
Temalar
Belirtilen region ve locale için mevcut tüm temaları getirir.
Temalar, benzer özelliklere sahip hisselerin bir araya getirildiği özel gruplardır.
Her tema için id, title, region, imageUrl, avatarUrl, numStocks ve assetClass bilgileri döndürülür.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/theme?region=tr&locale=tr' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| region | Bölge kodu | query | string | |
| locale | Dil Kodu | query | string |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : [ 4 items … ]
▼0 : { 7 items … }
▼"region" : [ 1 items … ]
▼1 : { 7 items … }
▼"region" : [ 1 items … ]
▼2 : { 7 items … }
▼"region" : [ 1 items … ]
▼3 : { 7 items … }
▼"region" : [ 1 items … ]
Tema Detayı
Belirtilen tema ID’sine ait detaylı bilgileri ve temaya bağlı hisselerin listesini getirir.
region parametresi piyasa kapsamını (ör. tr, us), locale ise metinlerin dilini belirler.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/theme/6256b0647d0bb100123effa7?locale=tr®ion=tr&sortBy=price_change' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| id | ID | 6256b0647d0bb100123effa7 | path | string |
| locale | Dil Kodu | query | string | |
| region | Bölge kodu | query | string | |
| sortBy | Bir koleksiyondaki hisse senetlerini belirli bir alana göre sırala. Şu anda yalnızca `price_change` destekleniyor. (Optional) | price_change | query | string |
Response
(Note: Actual response can be different length and other fields may be present)