This page preserves conclusions from earlier integration work. Environment addresses, rate limits, and business rules may vary by project; reconfirm them with the Whale project team before production.
If the project is configured for opening without manual approval, a background task still performs the operation. Duration depends on current concurrency. Broker may query every few seconds; confirm the actual interval and rate limit for the project.
Refer to the Broker API asset endpoint ↗ for the business code. Send a positive amount for both deposits and withdrawals and distinguish the direction with direction.
At most two decimal places. Account balances are also stored with two decimal places.
Historical endpoints may return HTTP 400 for an error while the body contains a business code such as 404002 or 404102. Use body code for business handling. A normal request returns HTTP 200 with body code equal to 0.
Historical material records https://api.longbridgewhale.com. Confirm the current project address with the Whale project team before configuring outbound access.
No. Call the cash-adjustment endpoint directly and do not call the fund-freeze endpoint, which was not designed for adjustments. In the historical implementation, outgoing adjustments did not enforce risk controls and could exceed the available balance, so the caller had to enforce the limit.
No. Broker uses account_no and does not need to know the downstream counterparty. After cash enters the brokerage account, the Customer can exchange currency and trade US and Hong Kong securities according to the account configuration.