For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 4 4 5

import instrument xml file: instruments not found -1

I want to create a instrument list by importing xml file.

my file's content like below:

<InputList>

<InputListAction>Append</InputListAction>

<Name>allList</Name>

<Instrument>

<IdentifierType>RIC</IdentifierType>

<Identifier>.SPX</Identifier>

</Instrument>

<Instrument>

<IdentifierType>CHR</IdentifierType>

<Identifier>0#1SP:</Identifier>

</Instrument>

<Instrument>

<IdentifierType>CHR</IdentifierType> <Identifier>0#SPX*.U</Identifier>

</Instrument>

<Instrument>

<IdentifierType>CHR</IdentifierType>

<Identifier>0#1TN+</Identifier>

</Instrument>

</InputList>

my problem is that chain code 0#1TN+ can not be imported.

pythondss-rest-apidssdatascope-selectrics
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
11.3k 25 8 14

@chenchong

I have tried the xml file and found the following message in the .notes.txt file generated in the /done folder.

Instruments not found or restricted content (1):
  CHR, 0#1TN+ (CHR not supported - chain of chains)

The 0#1TN+ is a chain of chains, as the current constituents of 0#1TN+ are chain RICs: 0#1TNX7+, 0#1TNZ7+, 0#1TNF8+, 0#1TNG8+, 0#1TNH8+ and 0#1TNM8+.

The DSS User Guide states that chain of chains are not support for import. You may import the constituents instead or open a content enquiry via My Account to ask for alternative RIC.

icon clock
10 |1500

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