rwbta 4 Report post Posted November 6, 2014 Where can I find a comprehensive list of marketid's? I found a list, but it is missing a lot symbols I would have expected (e.g., GBPUSD and EURUSD). 1 inatadePlalse reacted to this Share this post Link to post
Physicsman 25 Report post Posted November 6, 2014 @rwbta There is intentionally no way to retrieve a list of all markets - seeing as there are around 20,000 you wouldn't want to anyway! Depending upon what you are trying to achieve, there are a couple of ways to proceed. Searching for a few specific markets. Use the ListMarketSearch call (http://docs.labs.cityindex.com/#HTTP Services/ListMarketSearch.htm%3FTocPath%3DCIAPI%2520Reference%7CHTTP%2520Services%7CMarket%7C_____4) to search for the markets you are after. The results returned include the name of the market and the marketid. Note: search for currency markets as "USD JPY" or "GBP USD". Do not use the "/" format in the name. Searching for markets within a particular category or "tag" such as FX, Commodities, GB Equities etc. Use SearchWithTags command (http://docs.labs.cityindex.com/#HTTP Services/SearchWithTags.htm%3FTocPath%3DCIAPI%2520Reference%7CHTTP%2520Services%7CMarket%7C_____6) using the TagId parameter as 80. This is the ID for FX. Market Tag IDs are listed at http://docs.labs.cityindex.com/#MarketTagIDs.htm%3FTocPath%3DGetting%2520Started%7CLookup%2520Values%7C_____2. Share this post Link to post
rwbta 4 Report post Posted November 6, 2014 Thanks Physicsman. That's exactly the info I need and it is a much more sensible approach. Share this post Link to post