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:
- Use your Samco login credentials to request a session token via the login endpoint
- The API returns a session token on successful authentication
- 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.
Easy & quick
Leave A Comment?