Skip to content
Longport Whale
Sub Account View

Create Sub Account View

Create a sub-account view. It performs a real create operation.

POSThttps://b-api.longbridge.xyz/corporate_action/sub_position_view/create

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

view_namestringrequired

View Name. View name, required.

usage_scenenumberrequired

Usage Scenario. Usage scenario, single-select, required. Options are fetched dynamically via GET /data_porter/refs?ref_ids=corp_sub_account_view_usage_scene (Accept-Language: zh-CN / en); known values: 1 = rounding-difference adjustment, 2 = tax refund, 3 = detail adjustment.. Options: 1 = Tail Difference Adjustment; 2 = Tax Refund; 3 = Detail Adjustment

123

remarkstring

Remark. Remark, optional.

groupsarray<string>required

Group List. A list of groups, multiple can be added; each item contains a group name and a sub-account scope.

groups[].group_namestringrequired

Group Name. Group name, required; group names must not repeat within a single submission.

groups[].sub_position_scopestringrequired

Sub-Account Scope. Sub-account scope, multi-select, required. Options are fetched dynamically via GET /data_porter/refs?ref_ids=all_sub_position_no (Accept-Language: zh-CN / en) and are a list of settlement sub-accounts / sub-account numbers.

Responses

HTTP 200No confirmable field definitions are available for the response yet.
Standard response envelopecodemessagedata
dataobjectdata structure

No nested fields

Whale Docs