Koleksiyonlar
Koleksiyonlar benzer özelliklere sahip hisse senetlerinin 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.
Koleksiyon Listesi
Belirtilen region ve locale için mevcut tüm koleksiyonları getirir.
Koleksiyonlar, Laplace ekibi tarafından oluşturulan ve ilişkili hisseleri bir araya getiren özel gruplardır.
Response, her koleksiyon için id, title, region, imageUrl, avatarUrl, numStocks ve assetClass bilgilerini döner.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/collection?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" : [ 1 items … ]
▼0 : { 7 items … }
▼"region" : [ 1 items … ]
Koleksiyon Detayı
Belirtilen koleksiyon ID’sine ait detaylı bilgileri getirir.
region parametresi piyasa bağlamını (ör. tr = BIST, us = ABD), locale ise metinlerin dilini belirler.
Response, koleksiyonun id, title, region, order bilgilerini ve koleksiyona ait hisselerin listesini döner.
Her hisse için id, name, symbol, sectorId, industryId, assetType, active durumu ve updatedDate bilgileri yer alır.
curl --request GET \
--url 'https://api.getlaplace.com/api/v1/collection/64fee37205b87f138630df0e?locale=tr®ion=tr&sortBy=price_change' \
--header 'Authorization: Bearer your-api-key'Parameters
| Name | Description | Example | Parameter Type | Data Type |
|---|---|---|---|---|
| id | ID | 64fee37205b87f138630df0e | path | string |
| locale | Dil Kodu (tr, en) | query | string | |
| region | Bölge kodu (tr, us) | 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)