auth

command
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

auth

Creates or reuses an access token and prints its status and expiry. Run this first to confirm your credentials work.

Run

go run ./examples/auth

Notes

  • Credentials come from the environment — see ../README.md.
  • In the sandbox the token is NORMAL immediately; in production the call waits for the Webull App 2FA verification window (up to five minutes by default).

Documentation

Overview

Command auth creates or reuses a Webull access token and prints its status.

Credentials are read from the environment (see client.WithEnv):

WEBULL_APP_KEY=...
WEBULL_APP_SECRET=...
WEBULL_ENVIRONMENT=sandbox

Run it with:

go run ./examples/auth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL