trading_agent.doctor.checks.gateway_token_check
¶
Checks that the gateway's access token is set and long enough.
Typical usage example:
result = GatewayTokenCheck(secrets).run()
GatewayTokenCheck
¶
Bases: DoctorCheck
Checks TRADING_AGENT_GATEWAY_ACCESS_TOKEN without revealing it.
Creates the check.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
secrets
|
Secrets
|
The secrets read from the environment and .env. |
required |
Source code in src/trading_agent/doctor/checks/gateway_token_check.py
run
¶
Checks that the token is present and at least 32 characters long.
Returns:
| Type | Description |
|---|---|
CheckResult
|
OK when it is, failed when it is missing or short. |