Polyman Documentation - v2.2.2
    Preparing search index...

    Function registerApiKeyAndSecretAction

    • 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

      If file system operations fail

      // From CLI: polyman register <api-key> <secret>
      await registerApiKeyAndSecretAction('991d9b...', 'a4c7c2f...');
      // Saves credentials to ~/.polyman/api_key and ~/.polyman/secret_key