Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
Question by prodromos · Apr 16, 2019 at 09:15 AM · instrument listoverride

Override Instrument list without delete it.

Request:

I want to override my instrument list items without delete and create it again.

Scenario:

I have a scheduled job on Datascope select with an InstrumentList, Template and Schedule.

Problem

Sometimes, I want to override Instrument List items without recreating the whole process again (Template,Schedule). I tried to delete the instrument list and create a new one with the same name but it seems that schedule disconnect from the instrument list even when the new list has the same name.

I am wondering if there is a better way to override an instrument list without using ImportFromBytes method.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by veerapath.rungruengrayubkul · Apr 17, 2019 at 05:33 AM

@prodromos

If you just want to replace all instruments in the existing instrumentList, you can use the ReplaceAllWithIdentifiers endpoint. Below is the sample of request.

POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentLists('0x06999f9753507bcf')/ThomsonReuters.Dss.Api.Extractions.InstrumentListReplaceAllWithIdentifiers

Body:

{
  "Identifiers": [
    {
      "Identifier": "IBM.N",
      "IdentifierType": "Ric"
    },
    {
      "Identifier": "JPY=",
      "IdentifierType": "Ric"
    },
    {
      "Identifier": "EUR=",
      "IdentifierType": "Ric"
    }
  ],
  "KeepDuplicates": false
}
Comment
prodromos

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Christiaan Meihsl · Apr 16, 2019 at 09:34 AM

@prodromos,

There is an API call to retrieve the list of items (i.e. instruments) in an existing list:

GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentLists('0x06999f9753507bcf')

where 0x06999f9753507bcf is the instrument list ID.

This delivers all instruments, each with their identifier and individual ID in the list. That ID can be used to remove a specific instrument from a list, using:

DELETE https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentListItems('VjF8MHgwNjk5OWY5NzUzNTA3YmNmfDE')

where VjF8MHgwNjk5OWY5NzUzNTA3YmNmfDE is the ID of the instrument in the instrument list.

Using these 2 calls you can easily remove instruments from an existing list.

Using the append identifier call you can also add instruments:

POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/InstrumentLists('0x06999f9753507bcf')/ThomsonReuters.Dss.Api.Extractions.InstrumentListAppendIdentifiers

Body:

{
    "Identifiers": [
        {
            "Identifier": "IBM.N",
            "IdentifierType": "Ric",
            "UserDefinedIdentifier": "UserIdent4A"
        }
    ],
    "KeepDuplicates": false
}

These calls therefore allow you to manage your instrument list without deleting it.

These calls are described here in the API Reference Tree. You will also be able to run them using the C# example application, described in the Quick Start (see under section "Instrument List Examples").

Comment
prodromos

People who like this

1 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
10 People are following this question.

Related Questions

Requires the API to delete an InstrumentListItem from an InstrumentList

Immediate extraction using existing Instrument Lists and Report Templates using REST APIs

Is there any limitation on amount of requested instruments for on demand extraction for DSS REST API?

The limitation of a instrument list

import instrument xml file: instruments not found -1

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges