WhaleAPI(Public)
WhaleAPI(Public)
  • Passthrough Headers
  • Account Trade Auth
    • Trade Password Auth(交易密码校验)
      POST
    • Trade Password Set(交易密码设置)
      POST
    • Trade Password Reset(交易密码修改/重置)
      POST
    • Account No. Login Password Auth 证券帐号登录密码校验
      POST
  • Accounts
    • Whale Record Agreement(同步签署协议状态)
      POST
    • Get Account Trade Permission
      GET
    • Retrieve Account Application Information(获取证券账户开户资料信息)
      GET
    • Get Account List(获取用户账户列表)
      GET
    • Get Account Request List(获取用户开户申请列表)
      GET
    • Get Account Contact Info(获取账户联系方式)
      GET
    • Get Account Status(获取账户状态)
      POST
    • Get Account Bcan Information(获取账户 Bcan 信息)
      GET
    • Query Account List V2(获取账户列表V2)
      GET
    • Update Application(修改开户资料)
      POST
    • Submit Application(提交开户申请资料)
      POST
    • Update Account State/Disable Account
      POST
    • Submit Application V2(提交开户申请资料)
      POST
    • Update Application V2(修改开户资料)
      POST
    • Close Account(注销账户)
      POST
    • Open additional account(增开账户)
      POST
    • get account opening application information (开户申请信息获取)
      POST
    • Query Account Risk And Pi Info(获取用户风险测评以及Pi信息)
      GET
  • Asset
    • Query Total Holdings(查询全量股票持仓)
      GET
    • Query Account Cash Balance(账户现金查询)
      GET
    • Query Total Cash(查询全量现金)
      GET
    • Query Account Position(账户持仓查询)
      GET
    • Account Cash Balance Adjustment(账户资金调账)
      POST
    • Account Position Adjustment(账户持仓调账,只支持股票)
      POST
    • Account Cash Balance Freeze(账户资金冻结)
      POST
    • Account Cash Balance Unfreeze(账户资金解冻)
      POST
    • Account Cash Balance Unfreeze Debit(账户资金解冻扣款)
      POST
    • Account Stock Transaction History(账户股票流水)
      POST
    • Account Cash Transaction History(账户资金流水)
      POST
    • Account Stock Freeze Transaction History(账户股票冻结流水)
      GET
    • Account Cash Freeze Transaction History(账户资金冻结流水)
      GET
    • Query Limited Amount Information(限额信息查询)
      GET
    • Query Buy Power(购买力查询)
      GET
    • Query Short Sellable Quantity(可卖空数量查询)
      GET
    • Query OB Account Cash Balance(账户现金详情查询)【定制非通用】
      POST
    • Query Account Total Asset(账户资产查询)
      POST
    • Query account risk limit config(查询用户限额信息)
      GET
    • Query Account Total Asset OverView(账户资产总览)
      GET
    • Query HashKey Cash List(查询hashkey的现金列表)
      GET
    • Create account risk limit config(创建用户限额信息)
      POST
    • Update account risk limit config(更新用户限额信息)
      POST
    • Temp Adjust 临时调账新增
      POST
    • Temp Adjust Expire 临时调账手动失效
      POST
    • Get All Users Cash Balance (获取所有用户现金信息)
      GET
    • Temporary Adjustment(临时调账)
      POST
  • Billing
    • Fee estimate
  • Cash And Stocks Transfer
    • Add Bank Card
    • Delete Bank Card
    • Region Bank
    • Get User Bank Card List
    • User Card Detail
    • Deposit Detail
    • Submit Deposit Application
    • Deposit Application List
    • Update Bank Card
    • Obtain the deposit information
    • Withdraw Records
    • Withdraw Detail
    • Cancel Withdraw Application
    • Get Exchange
    • Cancel Deposit
    • Submit Withdrawal Applylication
    • Information acquisition before withdrawal v3 (提现前信息获取V3)
    • Update Bank Card
    • Submit Files For Review Withdraw Card
    • Currency List
    • Exchange records(兑换记录)
    • Stock transfer out detail (查看转出详情)
    • Stock transfer out records (查询转出记录)
    • Transfer in detail (查看转入详情)
    • Transfer in records (查询转入记录)
  • File
    • Get Tenant File Upload URL(获取租户文件上传链接)
  • IPO
    • Get Available IPO List(查詢可申购IPO列表)
    • Get IPO Detail Info(查詢IPO详情)
    • Get IPO Payable List(查詢申购股数单位等限制)
    • Get IPO Margin List(查詢IPO认购方式及费率方案)
    • Get Order List (查询IPO历史订单)
    • Submit New IPO Order(提交IPO申购)
    • Withdraw IPO Order(撤销IPO申请)
    • Amend IPO Order(修改IPO申购订单)
    • Get IPO Order Detail(获取IPO订单的详细信息)
    • Buy Limit (持仓打新购买力获取接口)
  • Member Core
    • Change Member Mobile Phone(修改用户登录手机号)
    • Get Member Information by Mobile Phone(登录手机号查询用户信息)
    • Login (New user registration by default for the first login).(OpenId 注册登录接口,首次登录即注册)
    • Get Member Information by Login Email(登录邮箱查询用户信息)
    • Change Member Login Email(修改用户登录邮箱)
    • Logout By Session ID
  • Trade
    • Trade Websocket Notification
    • Historical Trade Detail Inquiry V2(历史成交明细查询V2)
    • Historical Order Inquiry (历史订单查询)
    • Place Order (委托下单)
    • Modify Order (修改订单)
    • Withdraw Order (撤销订单)
    • Order Details (订单详情)
    • Today's Order Inquiry (当日订单查询)
    • Estimated Maximum Purchase Quantity (预估最大购买数量)
    • Today's Trade Detail Inquiry (当日成交明细查询)
    • Historical Trade Detail Inquiry (历史成交明细查询)
    • Query User Trade Credit(查询客户交易额度v1)
  • Message
    • Device Logout (设备登出解绑)
  • Search
    • Search Stock
  • Reward Center
    • 奖励中心- 发放奖励
    • 奖励中心 - 查询奖励状态

Account Trade Auth

Password#

Password transmission requires the password to be encrypted, and the encryption method is as follows:
密码传递都需要对密码进行加密,加密方式如下:
Here, ts refers to the value of x-timestamp in the request header, which is the Unix timestamp.
这里 ts 是请求头中 x-timestamp 的值,内容 unix 时间戳。

Error Code#

output_codehttp_codemessage(zh-CN)message(en)
401045400新密码不能是前 2 次使用过的密码.The new password cannot be the same as the last 2 passwords.
402004400交易密码设置失败Failed to set trading password.
402005400交易密码重置失败Failed to reset trading password.
402008400交易密码已设置Trading password has already been set.
402009400交易密码连续输入错误 5 次,账户冻结 24 小时。可联系客服进行申诉The account is temporarily locked for 5 consecutive incorrect trade password attempts. It will be unlocked in 24 hours. Contact customer service to file a complaint if needed.
402010400交易密码未设置Trading password has not been set.
404005400用户未开户The trading account has not been opened.
404062400账户不可用Account is unavailable.
404118400请输入正确的证券账号Please enter a valid securities account number.
401047400登录失败,请检查您登录的链接是否正确Login failed. Please check whether the login link is correct.
Modified at 2026-01-20 08:02:31
Previous
Passthrough Headers
Next
Trade Password Auth(交易密码校验)