Skip to content
Corp Action Management

Rounding Adjust V2

Submits a corporate-action rounding-difference adjustment (V2). A single request may include both tax-and-fee adjustments (tax_fee_items) and difference adjustments (diff_items), with group_id identifying the group this adjustment belongs to.

Request parameters

  • Required: tax_fee_items (tax-and-fee adjustment list), diff_items (difference adjustment list), group_id (group ID)
  • See each field for its format, allowed values, and business meaning.

Result

On success, the rounding-difference adjustment is completed. See the 200 response schema for returned data.

POSThttps://b-api.longbridge.xyz/v2/addjust

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

tax_fee_itemsarray<object>required

List of tax-and-fee adjustments. Each item describes the tax and fee to adjust under one account. This field is required.

Child attributes
ann_idstringrequired

Unique identifier of the announcement this adjustment belongs to. This field is required.

event_idstringrequired

Unique identifier of the corporate-action event this adjustment belongs to. This field is required.

ib_accountstringrequired

IB account whose tax and fee are to be adjusted. This field is required.

except_amountstringrequired

Expected amount after adjustment, submitted as a string to preserve precision. This field is required.

diff_itemsarray<object>required

List of difference adjustments. Each item describes the amount and quantity to adjust under one event. This field is required.

Child attributes
event_idstringrequired

Unique identifier of the corporate-action event this adjustment belongs to. This field is required.

except_amountstringrequired

Expected amount after adjustment, submitted as a string to preserve precision. This field is required.

except_quantitystringrequired

Expected quantity after adjustment, submitted as a string to preserve precision. This field is required.

counterpart_accountstringrequired

Counterpart account that absorbs this difference adjustment. This field is required.

group_idstringrequired

Unique identifier of the group this rounding-difference adjustment belongs to. This field is required.

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