Özel Temalar
Özel Temalar, kullanıcılarınıza sunmak için kendi hisse senedi listenizi derlemenin harika bir yoludur. Kendi temalarınızı oluşturun ve platformunuzda güzel bir arayüzle görüntüleyin.
Özel Temalar
Authenticated kullanıcıya ait tüm özel temaları getirir.
Sonuçlar isteğe bağlı olarak region parametresiyle filtrelenebilir ve locale parametresiyle yerelleştirilebilir.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/custom-theme?locale=tr®ion=tr' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| locale | Dil Kodu | query | string | |
| region | Bölge kodu (Optional) | query | string |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : [ 1 items … ]
▼0 : { 11 items … }
▼"region" : [ 1 items … ]
Özel Tema Detayını Al
Authenticated kullanıcı tarafından oluşturulan belirli bir özel temaya ait detaylı bilgileri getirir.
locale parametresi metinlerin dilini belirler. İsteğe bağlı sortBy parametresi, tema içindeki hisselerin sıralanmasını sağlar. Şu anda yalnızca price_change (günlük yüzde değişim) değeri desteklenmektedir.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/custom-theme/672a58b665b9a4844a25260a?locale=tr&sortBy=price_change' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| id | ID | 672a58b665b9a4844a25260a | path | string |
| locale | Dil Kodu | query | string | |
| sortBy | Bir koleksiyondaki hisse senetlerini belirli bir alana göre sırala. Şu anda yalnızca `price_change` destekleniyor. (Optional) | query | string |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : { 13 items … }
▼"region" : [ 1 items … ]
▼"stocks" : [ 2 items … ]
▼0 : { 8 items … }
▼1 : { 8 items … }
Yeni Özel Tema Oluşturma
Authenticated kullanıcı için, sağlanan veriler kullanılarak yeni bir özel tema oluşturur.
Request body içerisinde yerelleştirilmiş title, hisse listesi ve isteğe bağlı olarak description, görseller, gösterim sırası (order), durum (status) ve meta_data gibi alanlar bulunmalıdır.
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 | Özel tema için yerelleştirilmiş başlık. | {"en":"Rising Stocks","tr":"Yükselen Hisseler"} | body | object |
| description | Özel tema için yerelleştirilmiş açıklama. (Optional) | {"en":"Recently rising stocks.","tr":"Son zamanlarda yükselen hisseler."} | body | object |
| stocks | String olarak hisse senedi ID'lerinin listesi | 61dd0d4b0ec2114146342f69, 61dd0d820ec211414634303e | body | array |
| image_url | Varsayılan çözünürlük resmi (Optional) | https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_original.webp | body | string |
| avatar_url | En düşük çözünürlük resmi (Optional) | https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_avatar.webp | body | string |
| order | Bu özel temanın sırası (Optional) | 3 | body | number |
| status | Temanın durumu | body | string | |
| meta_data | Ek isteğe bağlı veriler (Optional) | {"color":"#FF0000"} | body | object |
Response
(Note: Actual response can be different length and other fields may be present)
▼"root" : { 1 items … }
Özel Temayı Silme
Daha önce oluşturduğunuz bir özel temayı silin.
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 | ID | 6256b0647d0bb100123effa7 | path | string |