webull

package
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: 1 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.

Documentation

Overview

Package webull provides optional aliases for selected core-client types and options. It is a convenience layer, not an aggregate service facade.

Import the service packages directly when typed service clients are needed:

cl, err := webull.New(
    webull.WithCredentials(appKey, appSecret),
    webull.WithRegion(webull.RegionHK),
)
if err != nil {
    return err
}

market := data.New(cl)
trading := trade.New(cl)
streaming, err := stream.New(cl)
if err != nil {
    return err
}
ev, err := events.New(cl)
if err != nil {
    return err
}

webull.New delegates to client.New and returns a *client.Client. The returned client does not construct or return data, trade, stream, or events service clients. The root service packages remain canonical.

Package-level aliases

The following identifiers are aliases or thin delegations for the corresponding client constructors, types, and options:

Option                    from client
Region                    from client  (webull.RegionHK, webull.RegionUS)
Environment               from client  (webull.EnvProduction, webull.EnvSandbox)
Endpoints                 from client
Client                    from client
New                       from client
WithCredentials           from client
WithAppKey, WithAppSecret from client
WithRegion, WithEnvironment from client
WithSandbox               from client
WithEndpoints, WithBaseURL from client
WithHTTPClient, WithTimeout from client
WithRetry, WithoutRetry    from client
WithRateLimiter, WithBreaker from client
NewRateLimiter, NewBreaker from client

Index

Constants

This section is empty.

Variables

View Source
var NewBreaker = client.NewBreaker
View Source
var NewRateLimiter = client.NewRateLimiter
View Source
var WithAppKey = client.WithAppKey
View Source
var WithAppSecret = client.WithAppSecret
View Source
var WithBaseURL = client.WithBaseURL
View Source
var WithBreaker = client.WithBreaker
View Source
var WithCredentials = client.WithCredentials
View Source
var WithEndpoints = client.WithEndpoints
View Source
var WithEnvironment = client.WithEnvironment
View Source
var WithHTTPClient = client.WithHTTPClient
View Source
var WithRateLimiter = client.WithRateLimiter
View Source
var WithRegion = client.WithRegion
View Source
var WithRetry = client.WithRetry
View Source
var WithSandbox = client.WithSandbox
View Source
var WithTimeout = client.WithTimeout
View Source
var WithUserAgent = client.WithUserAgent
View Source
var WithoutRetry = client.WithoutRetry

Functions

This section is empty.

Types

type Client

type Client = client.Client

func New

func New(opts ...Option) (*Client, error)

type Endpoints

type Endpoints = client.Endpoints

type Environment

type Environment = client.Environment
const (
	EnvProduction Environment = client.Production
	EnvSandbox    Environment = client.Sandbox
)

type Option

type Option = client.Option

type Region

type Region = client.Region
const (
	RegionHK Region = client.HK
	RegionUS Region = client.US
)

Jump to

Keyboard shortcuts

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