Skip to main content

SDKs and Tools

Webull provides official SDKs to help you integrate with the OpenAPI platform. The SDKs wrap the REST and streaming APIs so you can focus on building your application instead of handling low-level details.

Here's what the SDKs handle for you:

  • Authentication — Automatic signature generation and token management
  • Trading — Place, modify, and cancel orders across stocks, ETFs, options, warrants, and CBBCs
  • Market Data — Fetch historical data via HTTP and subscribe to real-time streams via MQTT
  • Order Events — Subscribe to real-time order status updates via gRPC

Official SDKs

Requirements: Python 3.8 – 3.13

pip3 install --upgrade webull-openapi-python-sdk

Source code: webull-openapi-python-sdk

API Environments

Webull provides two environments. Use the sandbox environment for development and integration testing, then switch to production when you're ready to go live.

Production

ServiceHost
HTTP APIapi.webull.hk
Trading Events (gRPC)events-api.webull.hk
Market Data Streaming (MQTT)data-api.webull.hk

Sandbox

ServiceHost
HTTP APIapi.sandbox.webull.hk
Trading Events (gRPC)events-api.sandbox.webull.hk
Market Data Streaming (MQTT)data-api.sandbox.webull.hk
tip

To switch environments, simply change the endpoint when initializing the SDK client. No other code changes are needed.

Test Accounts

Use these shared credentials to start coding immediately — no application required for the sandbox environment.

No.Account IDApp KeyApp Secret
1V4H6R3L4VRI33UQ4TGR2NM1VI94b2b7acd2bf0d30d8aea173fceefa238840b4353a6a31ce3ab91e2f99a510272
2OGG4RRLC6EDE98HI920KRBVSKB42bd186fb65ea76de309d69cf12f024e29feb64b59d6b1b6b2d2aa8cea8a1b8d
32DHSQ9B1DMPBFPMPFU2R5SDPB864fc722617af8b5ebb746f50a910e91fa268416fc681d438533f9e9316bab576
caution

These accounts are shared publicly. Orders and positions may change at any time. If related to trading, functionality is not affected; if related to market data, access is currently limited to the symbol AAPL (including real-time streaming). If you need a dedicated test account, contact our support team.

Verify Your Setup

After installing the SDK, run this quick check to confirm everything is working:

import json
from webull.core.client import ApiClient
from webull.trade.trade_client import TradeClient

api_client = ApiClient("<your_app_key>", "<your_app_secret>", "hk")
api_client.add_endpoint("hk", "api.sandbox.webull.hk")

trade_client = TradeClient(api_client)
res = trade_client.account_v2.get_account_list()
if res.status_code == 200:
print("Success!", json.dumps(res.json(), indent=2))
else:
print("Error:", res.status_code, res.text)

If you see your account list returned, you're all set.

Management Tools

Webull provides web-based tools for managing your API credentials and accounts:

ToolForDescription
Webull Official WebsiteIndividual clientsManage API keys, view account information, and access trading services
Institutional PortalInstitutional clientsManage account funds, positions, and orders via secure login

What's Next