Jump to content

Search the Community

Showing results for tags 'beginner'.

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 6 results

  1. Hi, I'm comfortable fetching data from APIs. but im not sure where to start even after reading the docs. It seems that I need to provide the session and username in the request headers. How do I obtain the session token? From the doc, I'm still not sure if I get it from a url request or from a webpage or something. Does somebody have a quick start URL or example to help me start this? Thanks
  2. Hello I am currently trying to see about connecting to Forex for a project but I am unsure where to start, I am using a .php environment currently. I am truly a novice when it comes to this but I was hoping that someone could help point me in the right way.
  3. I’ve just found this site after a Google search for ‘CityIndex API’. Does CityIndex publish an API that I can use to develop a bridge to Spread Bet using my own trading platform? Do I start at https://github.com/cityindex/CIAPI.CS?
  4. I havent done much in c# so i am a bit illiterate. Could someone provide sample code for just Logging in, then starting a streaming client and attaching an Action Listener to it (I assume that is how your ment to do it). I am not entirely sure what i am doing wrong but the “UK 100 Rolling Spread” single values i have been able to stream using stuff i scraped from“https://github.com/cityindex/CIAPI.CS/”. Were not even near the sell/buy price on my normal city index account. Sorry to ask for so much but i found the sample code on the api very unhelpful Thanks for the help in advance:)
  5. Just started using the api in c# and am finding it hard to achieve anything. I have found some “Tests” on https://github.com/cityindex/CIAPI.CS however they arn’t very learning orientated. Are there any example code i havent found, or any good documentation of the API, i can’t find a list of marketID anywhere. Thanks
  6. Maybe it’s just me, but I’m having trouble getting started developing against the CI Trading API. I’m trying to figure out how to log on. I’m trying to make a Post request to: http://ciapipreprod.cityindextest9.co.uk/TradingApi And I’m getting the following error: 405 – HTTP verb used to access this page is not allowed. The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access. From the docs, it says that the transport is POST and the uriTemplate is /. So, I’m not sure why I’m seeing this. Any advice would be greatly appreciated. (I’m gonna check out sky’s code to see if I can find the issue.) I’m trying to pass in: { "username": "user", "password": "pass" } As the request entity. Do I need to pass them in as URL params? (I haven’t tried this yet because the code has not been used to call any methods requiring parameters. So, I’m not even sure if it will work for that.)