pablo rodriguez 1 Report post Posted July 22, 2013 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 1 Meighoxype reacted to this Share this post Link to post
wilsoncg 1 Report post Posted July 25, 2013 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