Access Token Request
Request an access token using your credentials and API Key.
Available to: Anyone with valid API credentials (no access token required)
Environments: Demo, Live
Rate Limit: 5 requests per hour, 15-second back-off, counts failed requests only
Exchange your credentials for an access token, then send that token with the Bearer scheme on subsequent requests. Provide your name and password, your application identifiers (appId, appVersion, deviceId), and your API Key (cid and sec). On success, the response includes an accessToken and its expirationTime, plus an mdAccessToken for market data requests.
A successful request starts a tracked session. Mind the token lifetime and session limits:
- An access token lasts about 90 minutes — the exact moment is in expirationTime. Extend it by calling renewAccessToken about 15 minutes before it expires, rather than requesting a new token.
- You're limited to two concurrent sessions per user; a third closes the oldest. Use a dedicated API user and centralize token issuance, sharing one token across dependent services.
See Authentication & Access for the full walkthrough and session guidance.
Common Failure Scenarios
- The name/password or API Key (cid/sec) is incorrect.
- Too many failed attempts trigger a time penalty: the response carries p-ticket and p-time, and you can retry after p-time seconds. When p-captcha is true, retry from a third-party application is blocked for about an hour.
Error Messages
| errorText | Trigger |
|---|---|
| Non-empty errorText | The request failed; the field describes the reason (for example, invalid credentials). |
Request
- Base URL: https://demo.tradovateapi.com/v1
- URL: https://demo.tradovateapi.com/v1/auth/accesstokenrequest
- Auth: none declared
Request body
Response
AccessTokenResponse
Changes
No recorded changes to this operation across all 1 revision of this API.