Skip to content
Longport Whale
Corp Action Management

corporate announcements Export

Export the corporate announcements list to a file. In sync mode (mode:0) the download URL is returned directly; in async mode (mode:1) a file_download_id is returned, to be polled via the shared GET/DELETE /v1/datasets/download/{id} endpoint for status and the final download URL.

POSThttps://b-api.longbridge.xyz/v1/datasets/corp_action_announcements/download

Authorization

AuthorizationstringheaderRequired

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

Request body application/json

filtersobject

Filters. Same fields as the filters of corp_action_announcements.yaml (the query capability).

Child attributes
filters.origin_counter_idstring

Origin Counter Id

filters.ca_codestring

Announcement NO

filters.ann_typestring

Ann Type. Multi-select; submit as a comma-joined string. Allowed values are listed under enum.. Options: 3 = TM (Take-Over (Compulsory) / Auto-Exercise of Structured Products); 4 = BE (Benefit Entitlement); 5 = CA (Split,Reverse Split,Symbol Change); 6 = DS (Delisted, Expired, Lapsed); 7 = OO (Open Offer); 8 = EO (Excess Open Offer); 9 = RS (Rights Subscription); 10 = ER (Excess Rights Subscription); 11 = TU (Take-Over (Unconditional)); 12 = TC (Take-Over (Conditional)); 13 = ADR (ADR Fee); 14 = SO (Spin Off); 15 = IP (Interest Payment); 16 = VT(Voting)

345678910111213141516

filters.marketstring

Market. Multi-select; submit as a comma-joined string. Allowed values are listed under enum.. Options: US = US; HK = HK; UK = UK; SH = SH; SZ = SZ; SG = SG; KR = KR; JP = JP; AU = AU; DE = DE; CA = CA; TH = TH; ID = ID; MY = MY; TR = TR; NA = NA; OSL = OSL; HAS = HAS; EU = EU; UT = UT; GTMMF = GTMMF

USHKUKSHSZSGKRJPAUDECATHIDMYTRNAOSLHASEUUTGTMMF

filters.payable_dateobject

Payable Date. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.payable_date.gtestring

Greater Than or Equal

filters.payable_date.ltestring

Less Than or Equal

filters.record_dateobject

Record Date. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.record_date.gtestring

Greater Than or Equal

filters.record_date.ltestring

Less Than or Equal

filters.election_fromobject

Elect. Period From. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.election_from.gtestring

Greater Than or Equal

filters.election_from.ltestring

Less Than or Equal

filters.in_side_election_toobject

Elect. Period To. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.in_side_election_to.gtestring

Greater Than or Equal

filters.in_side_election_to.ltestring

Less Than or Equal

filters.stage_statestring

CA Execution Status. Multi-select; submit as a comma-joined string. Allowed values are listed under enum.. Options: 1 = Initialized; 2 = Confrimed; 3 = Recoding; 4 = Record - Success; 5 = Record - Failed; 6 = Execution - Pending Approval; 7 = Executing; 9 = Execution - Success; 10 = Execution - Failed; 0 = Not Created; 12 = Cancelled; 11 = Success; Avg cost is updated; 13 = Cancelled; Avg cost is updated; 14 = Execution - Success; 15 = Expired; 1617 = In approval

1234567910012111314151617

filters.remarkstring

Remark

filters.notify_statestring

Client Mandate Collection Status. Multi-select; submit as a comma-joined string. Allowed values are listed under enum.. Options: 1 = Initialized; 2 = Mandate Collection; 3 = Processed - Success; 4 = Processed - Failed; 5 = Submitted to upstream/C.P.; 6 = Alloted/Completed

123456

filters.receivable_dtobject

CCASS File Date. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.receivable_dt.gtestring

Greater Than or Equal

filters.receivable_dt.ltestring

Less Than or Equal

filters.receivable_typestring

CCASS Rec. Type. Options: P = Preliminary; F = Final; C = Cancelled; T = To Be Advised; R = Reminder

PFCTR

filters.created_atobject

Created Time. Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.created_at.gtestring

Greater Than or Equal

filters.created_at.ltestring

Less Than or Equal

filters.has_clientstring

Client Num. Options: >0 = With Clients; =0 = Without Clients

>0=0

filters.effective_dateobject

Payable Date (CCASS). Range filter; both bounds are optional (omit a bound to leave that side unbounded).

Child attributes
filters.effective_date.gtestring

Greater Than or Equal

filters.effective_date.ltestring

Less Than or Equal

orderByarray<object>

Order By

modeinteger

Mode. Defaults to 0 (sync) when omitted.. Options: 0 = Sync; 1 = Async

01

extstring

Ext. Supports csv/xlsx; defaults to csv.

csvxlsx

file_namestring

File Name

remarkstring

Remark

down_fieldsarray<string>

Down Fields. When omitted, all fields are exported; allowed values are listed under items.enum (the same field list as the query endpoint's data.list.items).

ticket_contentstring

Ticket Content. Shown to the approver when the template has a download-approval ticket configured.

ticket_preview_urlstring

Ticket Preview URL

hideinteger

Hide. Options: 0 = Not Hidden; 1 = Hidden

01

Responses

HTTP 200Export result. In sync mode the download URL is returned directly; in async mode a file_download_id is returned for subsequent polling.
Standard response envelopecodemessagedata
dataobjectdata structure
urlstring

Download URL. Returned in sync mode (mode:0); empty in async mode.

file_download_idstring

File Download ID. Returned in async mode (mode:1); used to poll GET/DELETE /v1/datasets/download/{id}.

ticket_idstring

Ticket ID

Whale Docs