ramzinex_authenticate
Authenticate a Ramzinex API instance and cache its bearer token for subsequent private calls, without exposing the token.
Instructions
Authenticate an instance and cache its bearer token (no token leaked).
Persian purpose: احراز هویت و دریافت توکن. Runs the api_key + secret
getToken login flow (POST /exchange/api/{ver}/exchange/auth/api_key/getToken) and caches the
resulting bearer token in memory for subsequent private calls. If the
instance is configured with a pre-issued api_token instead, it simply
reports success. The token value is NEVER returned.
Args: instance: Configured instance to authenticate (default when omitted).
Returns:
{authenticated: true, instance, method} on success, where
method is "api_token" or "api_key"; otherwise a
structured error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||