Jump to content

Search the Community

Showing results for tags 'watchlist'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Gain Capital API FAQ
    • General Questions and Discussion

Found 2 results

  1. Hi, On python I am trying to to get all my wathclists WITH the market information for each item in a list. In order to get the list of all my watchlist I use the following URL: https://ciapi.cityindex.com/TradingAPI/watchlists Which does return a list of wathclist dict. When i try and have the market information included i use the following URL: https://ciapi.cityindex.com/TradingAPI/watchlists?IncludeMarketInformation=True Which does not return the market information for each items in my list. Any what is wrong in my URL? I use the following docs: http://docs.labs.cityindex.com/#HTTP Services/GetWatchlists2.htm?Highlight=watchlist http://docs.labs.cityindex.com/#Data Types/ListWatchlistRequestDTO.htm#kanchor1406 Thank you
  2. var ApiClientAccountWatchlistItemDTO= { "WatchlistId":0, "MarketId":id, "MarketInformation":MarketInformationResponse, "DisplayOrder":-1 }; var ApiClientAccountWatchlistDTO= { "WatchlistId":0, "WatchlistDescription":"The Dealers", "DisplayOrder":0, "Items":ApiClientAccountWatchlistItemDTO }; $.ajax({ url:'https://ciapi.cityindex.com/TradingAPI/watchlist/save', headers: { "UserName": sessionStorage.Username, "Session": sessionStorage.Session }, type: 'POST', dataType:'JSON', contentType: 'application/json', data:JSON.stringify( { 'Watchlist': ApiClientAccountWatchlistDTO } ), Hi, I have this above Code and I have spend days on it but yet not working. the value of These variables are as as described in DOCS and debugged value of second variable as as described in docs and For saving it needs and My Code in JSON is Yet this request saves the "items:array(0)" But I have supplied all info like in this pic HELP!!!