Skip to content
Funds Alloc Config

Create Whale Package Rule

Create Whale Package Rule.

Request parameters

  • Required: transfer_type (Transfer Type), from_type (From Type), from_main_account (From Main Account), from_main_account_type (From Main Account Type), from_account_id (From Account ID), to_type (To Type), to_main_account (To Main Account), to_main_account_type (To Main Account Type), to_account_id (To Account ID), allocation_channel (Allocation Channel), transfer_strategy (Transfer Strategy), package_type (Package Type), currency (Currency), amount (Amount), status (Status)
  • Optional: service_time (Service Time), postscript (Postscript)
  • See each field for its format, allowed values, and business meaning.

Risk notice

This operation may change real cash balances, positions, or transaction state. Verify the target records and parameters before calling it.

Result

On success, the endpoint completes the operation. See the 200 response schema for returned data and subsequent state information.

POSThttps://b-api.lbkrs.com/atm/whale/package/rule

Production: https://b-api.lbkrs.com · Test: https://b-api.longbridge.xyz

Authorization

AuthorizationstringheaderRequired

Send the Broker ACCESS_TOKEN as Authorization: Bearer <token>.

Permission

atm.funds_alloc_config_operation

The Broker ACCESS_TOKEN must be granted the permission below, or the call will be rejected.

Request body application/json

transfer_typestringrequired

This field is required.

from_typestringrequired

This field is required.

from_main_accountstringrequired

This field is required.

from_main_account_typestringrequired

This field is required.

from_account_idstringrequired

From Account ID associated with this request.

to_typestringrequired

This field is required.

to_main_accountstringrequired

This field is required.

to_main_account_typestringrequired

This field is required.

to_account_idstringrequired

To Account ID associated with this request.

allocation_channelstringrequired

This field is required.

transfer_strategystringrequired

This field is required.

package_typestringrequired

This field is required.

currencystringrequired

Currency code used for this request. This field is required.

amountstringrequired

Amount involved in this business operation. This field is required.

service_timestring
postscriptstring
statusstringrequired

Fund-transfer rule status. This field is required.

1 · Enabled2 · Disabled

Responses

HTTP 200The request was processed successfully. The response data does not contain additional business fields.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 400Bad request. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 401The user is not authenticated, or the login session has expired.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 403The current account is not authorized to use this feature. Grant the required permission to the account in User Permission.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

HTTP 408The request timed out. Check the business error code in code and the error details in message.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs