Ö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&region=tr' \
  --header 'Authorization: Bearer your-api-key'

Parameters

NameDescriptionExampleParameter TypeData Type
locale
Dil Kodu
querystring
region
Bölge kodu (Optional)
querystring

Response

(Note: Actual response can be different length and other fields may be present)

▼"root" : [ 1 items … ]
▼0 : { 11 items … }
"id" : string"672a58b665b9a4844a25260a"
"image" : string"Test Custom Theme Image"
"order" : int0
"title" : string"Test Custom Theme"
▼"region" : [ 1 items … ]
0 : string"tr"
]
"status" : string"active"
"imageUrl" : string"Test Custom Theme Image URL"
"avatarUrl" : string"Test Custom Theme Avatar Image"
"numStocks" : int2
"assetClass" : string"equity"
"description" : string"Test Custom Theme Description"
}
]

Ö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

NameDescriptionExampleParameter TypeData Type
id
ID
672a58b665b9a4844a25260apathstring
locale
Dil Kodu
querystring
sortBy
Bir koleksiyondaki hisse senetlerini belirli bir alana göre sırala. Şu anda yalnızca `price_change` destekleniyor. (Optional)
querystring

Response

(Note: Actual response can be different length and other fields may be present)

▼"root" : { 13 items … }
"id" : string"672a58b665b9a4844a25260a"
"image" : string"Test Custom Theme Image"
"order" : int0
"title" : string"Test Custom Theme"
"locale" : string"tr"
▼"region" : [ 1 items … ]
0 : string"tr"
]
"status" : string"active"
▼"stocks" : [ 2 items … ]
▼0 : { 8 items … }
"id" : string"648ab66e38daf3102a5a7401"
"name" : string"A1 Capital Yatırım Menkul Değerler"
"active" : booltrue
"symbol" : string"A1CAP"
"sectorId" : string"65533e047844ee7afe9941bc"
"assetType" : string"stock"
"industryId" : string"65533e441fa5c7b58afa0955"
"updatedDate" : string"2025-04-01T00:00:00.533Z"
}
▼1 : { 8 items … }
"id" : string"61dd0d7e0ec211414634302c"
"name" : string"Acıselsan Selüloz"
"active" : booltrue
"symbol" : string"ACSEL"
"sectorId" : string"65533e047844ee7afe9941c0"
"assetType" : string"stock"
"industryId" : string"65533e441fa5c7b58afa097c"
"updatedDate" : string"2022-01-11T04:54:22.658Z"
}
]
"imageUrl" : string"Test Custom Theme Image URL"
"avatarUrl" : string"Test Custom Theme Avatar Image"
"numStocks" : int2
"assetClass" : string"equity"
"description" : string"Test Custom Theme Description"
}

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

NameDescriptionExampleParameter TypeData Type
title
Özel tema için yerelleştirilmiş başlık.
{"en":"Rising Stocks","tr":"Yükselen Hisseler"}bodyobject
description
Özel tema için yerelleştirilmiş açıklama. (Optional)
{"en":"Recently rising stocks.","tr":"Son zamanlarda yükselen hisseler."}bodyobject
stocks
String olarak hisse senedi ID'lerinin listesi
61dd0d4b0ec2114146342f69, 61dd0d820ec211414634303ebodyarray
image_url
Varsayılan çözünürlük resmi (Optional)
https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/ihracat-sampiyonlari_original.webpbodystring
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.webpbodystring
order
Bu özel temanın sırası (Optional)
3bodynumber
status
Temanın durumu
bodystring
meta_data
Ek isteğe bağlı veriler (Optional)
{"color":"#FF0000"}bodyobject

Response

(Note: Actual response can be different length and other fields may be present)

▼"root" : { 1 items … }
"id" : string"660c339fd7924abc17507c20"
}

Ö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

NameDescriptionExampleParameter TypeData Type
id
ID
6256b0647d0bb100123effa7pathstring

© 2024 Laplace API. All rights reserved.