How do I generate API keys and authentication tokens?

Once the Trade API is activated from your Samco Star back office, your API credentials become available through the same portal. The authentication flow works as follows:

  1. Use your Samco login credentials to request a session token via the login endpoint
  2. The API returns a session token on successful authentication
  3. Pass this token as a header with every subsequent API call to verify your identity

Tokens expire at the end of each trading session, so your script needs to re-authenticate at the start of each new trading day. This keeps your account access secure, no one can reuse an old token from a previous session.

If you ever need to reset or regenerate your credentials, that can be done from within the Samco Star back office without contacting support. 

Related Articles

Leave A Comment?