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, options, futures, crypto, and event contracts
  • 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 test environment for development and integration testing, then switch to production when you're ready to go live.

Production

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

Test

ServiceHost
HTTP APIus-openapi-alb.uat.webullbroker.com
Trading Events (gRPC)us-openapi-events.uat.webullbroker.com
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 test environment.

No.Account IDApp KeyApp Secret
1J6HA4EBQRQFJD2J6NQH0F7M649a88f2efed4dca02b9bc1a3cecbc35dbac2895b3526cc7c7588758351ddf425d6
2HBGQE8NM0CQG4Q34ABOM83HD096d9f1a0aa919a127697b567bb704369eadb8931f708ea3d57ec1486f10abf58c
34BJITU00JUIVEDO5V3PRA5C5G8eecbf4489f460ad2f7aecef37b2676188abf920a9cc3cb7af3ea5e9e03850692
caution

These accounts are shared publicly. Orders and positions may change at any time. 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>", "us")
api_client.add_endpoint("us", "us-openapi-alb.uat.webullbroker.com")

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