Create a new session. This is how you "log on" to the GCAPI.


Service Info

target session
uriTemplate /
transport POST
envelope JSON
contentType application/json



Name Type Description
apiLogOnRequest ApiLogOnRequestDTO

The request to create a session (log on).


Return Value




The following request to the Live GCAPI environment logs in to your account using the example credentials of Username as "DM123456" and password as "openthedoor".

The AppKey required to use the GCAPI is sent to you once you have returned the signed terms and conditions of the GCAPI to our Partnerships team:



Post Request Query String

POST https://ciapi.cityindex.com/TradingAPI/session


Post Request Body








A successful request results in an HTTP 200 code in the response header, and the response body is the ApiLogOnResponseDTO in JSON format.


Last updated: 29 May 2020



Questions or comments? Visit the FAQs at: http://faq.labs.gaincapital.com/


Copyright © 2020 GAIN Capital