January 3, 2024
Yes, WeBull does have an API that provides access to trading management, market information, account information, and real-time data subscriptions. However, an alternative to using WeBull's public API is Mesh, which has built integration with WeBull along with 300+ other digital asset exchanges and wallets, allowing developers to build products that access various cryptocurrencies from within their platform.
About WeBull
WeBull, founded in 2017, is an online brokerage platform offering commission-free trading of stocks, ETFs, and options. Headquartered in the Greater New York Area, this platform provides real-time data from various countries and exchanges, allowing investors to understand the global stock market and invest with low risks. In addition to trading, WeBull offers advanced charting tools, in-depth quotes, and access to multiple trading platforms, as well as cash management services, retirement accounts, and educational resources for investors.
General usage
Webull's OpenAPI aims to provide quantitative trading investors with convenient, fast, and secure services, including trading management, market information, account balance and position information, and real-time data subscriptions. To access the API, users need to sign up, register, and open a Webull brokerage account, then apply for API services through the Webull official website.
Rate Limits
The calling frequency for each App ID on the Webull API is limited to 10 times in 30 seconds. This applies to various endpoints, such as Account Positions and Account Balance.
Authentication
This is how you authenticate your requests to the WeBull API:
- Generate an API key externally and include it as the "x-app-key" header in your requests.
- Follow the instructions in the WeBull API Authentication documentation to construct the source param, secret, and signature value for authentication.
- Include the following required headers in your API requests: x-app-key, x-signature, x-signature-algorithm, x-signature-version, x-signature-nonce, x-timestamp, and host.
- Ensure the "x-timestamp" header is in ISO8601 time format and UTC time zone.
- Generate the signature value using the HMAC-SHA1 encryption algorithm and include it in the "x-signature" header.
Errors
These are the most common errors for the WeBull API:
- INVALID_TOKEN: If you receive this error, it means your token is invalid. Double-check your authentication process and ensure you're using the correct token.
- TOO_MANY_REQUESTS: This error indicates that you've made too many requests in a short period, triggering rate limiting. To resolve this, reduce the frequency of your API calls or implement a backoff strategy.
- UNAUTHORIZED: This error occurs when your app_key is not found or has expired. Verify that you're using the correct app_key and that it hasn't expired. If necessary, generate a new one.
Recent changes
Here is the most recent changes to the WeBull API:
- On 2023-02-11: A trading calendar interface was added with the endpoint "GET /trade/calendar".
An alternative to the WeBull API.
As mentioned above, Mesh provides a great alternative to WeBull, particularly for developers and businesses aiming for a streamlined and integrated user experience for cryptocurrency deposits, transfers and payments. Here are some of the standout features of Mesh's API:
- Integrated User Experience: Mesh simplifies the process of funding wallets with external assets and allows users to deposit and manage digital assets directly within their app, providing a seamless user journey.
- Broad Connectivity: Mesh connects to over 300 brokerages, exchanges, and wallets with a single integration, offering extensive flexibility and choice for users.
- Simplified Asset Management: Mesh's API streamlines the process of depositing assets, allowing transfers from various sources directly within your app for enhanced user convenience.
Experience the ease and efficiency of leveraging Mesh's cutting-edge API in your digital asset endeavors by signing up with Mesh today.