Python access to Datascope Select
Hi, Can someone please help me get started with a simple query template for retrieving some mutual fund data on DSS with Python from the restAPI?
Ideally i would like to see
import [any required libraries for DSS access]
code to access:
api_key
url =
query criteria
{mutual funds,
domicile:uk
fund size gbp}
just looking for a simple query to get me going.
Cheers
Matt
Best Answer
-
Hello Matt,
I would like to suggest a two-step approach to getting started and completing successfully the quickest way, while learning how to work with DSS REST API in python toward your next integration requirements:
1. Identify and tune HTTP REST request(s) that you require using tool Postman.
REST API Tutorials Introduction
I think the request you are looking for is FundsSearch request, the full spec can be found at REST API Reference Tree and a FundsSearch request will look similar to
{
"SearchRequest": {
"DomicileCodes": ["GB"],
"CurrencyCodes": null,
"SubTypes": null,
"IdentifierType": "Ric",
"PreferredIdentifierType": "Ric"
}
}Resulting in
{
"@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Collection(DataScope.Select.Api.Search.FundSearchResult)",
"value": [
{
"Identifier": "LP60001964",
"IdentifierType": "Ric",
"Key": "VjF8MHgwMDAzZjgwNmViMzYzZjFmfE1GUVV8TFA2MDAwMTk2NHxSSUM",
"Description": "Equitable Life German Managed",
"InstrumentType": "Fund",
"FundName": "Equitable Life German Managed",
"FundAdministrator": "INSIGHT INVESTMENT FUNDS MANAGEMENT LIMITED",
"PortfolioManager": "EQUITABLE LIFE ASSURANCE SOCIETY,(THE)",
"DomicileCode": "GB",
"CurrencyCode": "EUR",
"InvestmentType": "Equity",
"SubType": "InsuranceFund",
"AssetStatus": "Active",
"IssuerName": "",
"IssuerOrgId": "117139"
},
{
"Identifier": "LP60001970",
"IdentifierType": "Ric",
"Key": "VjF8MHgwMDAzZjgwNmViMzY0NTY1fE1GUVV8TFA2MDAwMTk3MHxSSUM",
"Description": "Equitable Irish Managed",
"InstrumentType": "Fund",
"FundName": "Equitable Irish Managed",
"FundAdministrator": "INSIGHT INVESTMENT FUNDS MANAGEMENT LIMITED",
"PortfolioManager": "EQUITABLE LIFE ASSURANCE SOCIETY,(THE)",
"DomicileCode": "GB",
"CurrencyCode": "EUR",
"InvestmentType": "Mixed Assets",
"SubType": "InsuranceFund",
"AssetStatus": "Active",
"IssuerName": "",
"IssuerOrgId": "117139"
}
...
"@odata.nextlink": "https://selectapi.datascope.refinitiv.com/RestApi/v1/Search/FundSearch?$skiptoken='MjUw'"Notice the next link at the end- this result is large and paginated, so next links will have to be requested iteratively till the result is exhausted.
2. Wrap working HTTP REST request(s) in working python code.
I would suggest downloading RTH Python Code Samples, and in OnDemandIntradayBar example replacing request with your request.
From the content perspective, I do not see the capability from FundsSearch to filter by fund size.
From what I know of this content, a relevant secondary request may be FundAllocation ExtractionRequest, please see REST API Reference Tree -> Extractions ->ExtractRaw adn select FundAllocationExtractionRequest from the dropdown list to see the complete spec.
However, for the best help on content, how to identify per your requirements, you may wish to additionally advise with Refinitiv content experts via Refinitiv Helpdesk Online -> Content -> DSS
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛