Some question

Hey.

Just got access to the API, but i got some questions.

  • How long is the created session token valid for? Until i logout?
  • If there is a timer on the token, is it possible to check how long is left before the session token is no longer valid?

Hi Seb,

The token is valid for 30min, but if you make an authenticated request with it, it will be renewed for the next 30min. The stop field in the json response specifies when the token will expire if not renewed. Please note that this information is available in our documentation: https://docs.smarkets.com/#/sessions/create_session.

Kind regards,
Isabel

Hi Isabel. Thank you for the fast reply and good answers.