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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
69 9 17 18

Search for bonds in subcurreny

Hi, using the /Search/GovCorpSearch search it looks like only main currency codes like 'GBP' are supported. Subcurrency codes like 'GBp' result in an error. Is this a limitation of this function or are all Bonds possible to request via this function always listed in the main currency?

Thx in advance!

dss-rest-apidatascope-selectdssbondsforex
icon clock
10 |1500

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

Upvotes
Accepted
1.1k 4 3 5

Ok, here is your answer... There are no instruments in the Gov/Corp segment that are issued in Australian Cents ("AUc") and so that is why you are getting that message.

What may be less clear is how you could have known that in advance. In the DSS GUI, we do in fact not list it in the Gov/Corp Search screen's Currency List, but in the REST API, we have not externalized the ability to enumerate Currencies by segment.

Basically, there can never be any results when filtering to "AUc" but one might say that validation error response does not make that clear.

You are welcome to contact your Account Manager and submit an Enhancement Request asking for this to be made easier, but rest assured, you are not missing any search results and should simply refrain from using "AUc" in GovCorp searches; in fact, I do not believe there are any minor currency Gov/Corp instruments.

icon clock
10 |1500

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

Upvotes
1.1k 4 3 5

Can you please post the error you received. If you can, the entire HTTP Reply is even better. Thanks.

icon clock
10 |1500

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

Upvotes
69 9 17 18

{"error":{"message":"Validation Error:\r\n\r\nThe Currency AUc is not supported; supported values are: ALL, DZD, AOA, ARS, AMD, AUD, ATS, AZN, AZM, BSD, BHD, BDT, BYN, BYR, BEF, BMD, BAM, BWP, BRC, BRE, BRR, BRL, BND, BGN, BGL, XOF, XAF, CAD, CVE, CLP, CLF, CNY, CNH, COP, COU, CDF, CRC, CRU, HRK, CYP, CZK, DKK, DEM, DOP, ECV, ECS, EGP, EEK, ETB, EUR, XEU, XBC, FIM, FRF, GMD, GEL, GHC, GHS, XAU, GBP, GRD, GTQ, GYD, HKD, HUF, ISK, INR, IDR, IQD, IEP, ILS, ITL, JMD, JPY, JOD, KZT, KES, KWD, KGS, LVL, LBP, LTL, LUC, LUF, MKD, MWK, MYR, MTL, MUR, MXN, MXV, MDL, MNT, MAD, MZN, MMK, NAD, ANG, NLG, NZD, NGN, NOK, OMR, PKR, PAB, PGK, PYG, PEN, PHP, PLN, PLZ, PTE, QAR, RON, ROL, RUB, RUR, RWF, XDR, SAR, RSD, CSD, SCR, SGD, SKK, SIT, ZAR, KRW, SUR, ESP, LKR, SZL, SEK, CHF, TWD, TZS, THB, ZZ1, TND, TRY, TRL, USD, AED, UGX, UAH, UAK, UYU, UYI, UYR, UZS, VEF, VEB, VND, YUD, YUM, ZMW, ZMK, ZWL, ZWD"}}

icon clock
10 |1500

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

Upvotes
1.1k 4 3 5

I am a bit confused.../Search/GetGovCorpSubGroups just returns a collection of GovCorpSubGroup entities.

icon clock
10 |1500

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

Sorry, the question is about "/Search/GovCorpSearch". It has been a long day today. ... Sorry for the confusion.

Click below to post an Idea Post Idea