Collections

Collections are way to get a list of stocks that has similar characteristics. They are great for building a visually appealing UI for your users.


Collection List

Retrieves all available collections for the specified region and locale. Collections are curated groups of related stocks created by the Laplace team and do not necessarily correspond to standard sector or industry classifications.

The response returns a list of collections, each including the collection id, title, associated region, image URLs (imageUrl, avatarUrl), the number of stocks in the collection (numStocks), and the assetClass.

curl --request GET \
  --url 'https://api.getlaplace.com/api/v1/collection?region=us&locale=en' \
  --header 'Authorization: Bearer your-api-key'

Parameters

NameDescriptionExampleParameter TypeData Type
region
Region code
querystring
locale
Locale code
querystring

Response

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

▼"root" : [ 2 items … ]
▼0 : { 7 items … }
"id" : string"622b193cd99bb000116d39ff"
"title" : string"Banking Services"
▼"region" : [ 1 items … ]
0 : string"us"
]
"imageUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/bankacilik_original.webp"
"avatarUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/bankacilik_avatar.webp"
"numStocks" : int15
"assetClass" : string"equity"
}
▼1 : { 7 items … }
"id" : string"622b1bcd0490090010a06ad7"
"title" : string"Pharmaceuticals"
▼"region" : [ 1 items … ]
0 : string"us"
]
"imageUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/pharmaceuticals-stocks_original.webp"
"avatarUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/pharmaceuticals-stocks_avatar.webp"
"numStocks" : int15
"assetClass" : string"equity"
}
]

Collection Detail

Retrieves detailed information about a specific collection by its unique ID.

The region parameter determines the market context (e.g., tr for BIST, us for US markets), while locale controls the localization of text fields.

The response includes the collection’s metadata (id, title, region, order) and the list of associated stocks. Each stock object contains its id, name, symbol, sectorId, industryId, assetType, active status, and updatedDate.

curl --request GET \
  --url 'https://api.getlaplace.com/api/v1/collection/622b193cd99bb000116d39ff?locale=en&region=us&sortBy=price_change' \
  --header 'Authorization: Bearer your-api-key'

Parameters

NameDescriptionExampleParameter TypeData Type
id
Unique identifier
622b193cd99bb000116d39ffpathstring
locale
Locale code
querystring
region
Region code
querystring
sortBy
Sort the stocks in a collection by a specific field. Currently only supports `price_change`. (Optional)
price_changequerystring

Response

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

▼"root" : { 8 items … }
"id" : string"622b193cd99bb000116d39ff"
"title" : string"Banking Services"
▼"region" : [ 1 items … ]
0 : string"us"
]
▼"stocks" : [ 2 items … ]
▼0 : { 9 items … }
"id" : string"6203d1ba1e67487527555c5c"
"name" : string"Northern Trust Corp."
"active" : booltrue
"symbol" : string"NTRS"
"sectorId" : string"65533e047844ee7afe9941bc"
"assetType" : string"stock"
"industryId" : string"65533e441fa5c7b58afa095b"
"dailyChange" : float0.0203529246344206
"updatedDate" : string"2022-02-09T14:37:46.37Z"
}
▼1 : { 9 items … }
"id" : string"6203d1ba1e67487527555fdf"
"name" : string"Wells Fargo & Co."
"active" : booltrue
"symbol" : string"WFC"
"sectorId" : string"65533e047844ee7afe9941bc"
"assetType" : string"stock"
"industryId" : string"65533e441fa5c7b58afa0953"
"dailyChange" : float0.0166606082636617
"updatedDate" : string"2022-02-09T14:37:46.371Z"
}
]
"imageUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/bankacilik_original.webp"
"avatarUrl" : string"https://finfree-storage.s3.eu-central-1.amazonaws.com/collection-images/bankacilik_avatar.webp"
"numStocks" : int15
"assetClass" : string"equity"
}

© 2024 Laplace API. All rights reserved.