Registers Polygon API credentials locally for use in remote commands.
Stores the API key and secret in user's home directory (~/.polyman/).
This data is only stored locally and used for authenticated Polygon API requests.
Parameters
apiKey: string
Polygon API key from user's Polygon settings
secret: string
Polygon API secret
Returns void
Resolves when credentials are saved
Throws
If file system operations fail
Example
// From CLI: polyman register <api-key> <secret> awaitregisterApiKeyAndSecretAction('991d9b...', 'a4c7c2f...'); // Saves credentials to ~/.polyman/api_key and ~/.polyman/secret_key
Registers Polygon API credentials locally for use in remote commands. Stores the API key and secret in user's home directory (~/.polyman/). This data is only stored locally and used for authenticated Polygon API requests.