Jump to content
Sign in to follow this  
pablo rodriguez

"You are not authorized to view this market" error msg searching for strings like "USD","GBP"

Recommended Posts

Hi,

We have a problem trying to get markets using ‘BeginListMarketInformationSearch’ method from CIAPI. This call has been working before, but now we get this response on any market string search:

{“ErrorCode”:90001,“ErrorMessage”:“You are not authorized to view this market.”,“HttpStatus”:401}

We are using this account: XX132724 We are searching for this strings (separately): “USD”,

                                                                     "GBP",
                                                                      "EUR",
                                                                      "AUD",
                                                                      "NZD",
                                                                      "JPY",
                                                                      "CAD",
                                                                      "CHF"

The request is as follows:

REQUEST INFO:
ItemState : Pending
Url : https://ciapipreprod.cityindextest9.co.uk/TradingApi/market/informationsearc h?SearchByMarketCode=False&SearchByMarketName=True&SpreadProductType=True&Cf dProductType=True&BinaryProductType=True&Query=USD&MaxResults=10
Method : GET
Target : market
UriTemplate : /informationsearch?SearchByMarketCode={searchByMarketCode}&SearchByMarketNam e={searchByMarketName}&SpreadProductType={spreadProductType}&CfdProductType= {cfdProductType}&BinaryProdInfo 2011-10-11

Share this post


Link to post

I couldn’t reproduce your error using the Test Harness page:

var userName = "XX132724";
doPost('/session',{ "UserName": userName, "Password": "password"}, function (data, textCode) {
setRequestHeader("UserName", userName);
setRequestHeader("Session", data.Session);
//Market search
doGet('/market/informationsearch?SearchByMarketCode=False&SearchByMarketName=True&SpreadProductType=True&CfdProductType=True&BinaryProductType=False&Query=GBP&MaxResults=10');
});

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×