pytr
pytr copied to clipboard
Add "Account Transfer" to the csv
It would be great if "Account transfers" (Depotübertrag) would appear in the csv somehow. They already get downloaded to the directory "Account Transfer".
OK, can you please provide json data for this? E.g. run pytr export_transactions --dump-raw-data ... and then extract json data for the account transfer. With that we can try to implement it.
I found these two, hope that helps:
timeline_activities.json
"a1234567-b890-12d3-e456-426614174000": {
"id": "a1234567-b890-12d3-e456-426614174000",
"timestamp": "2025-10-10T12:47:11.023+0000",
"title": "MSCI World USD (Dist)",
"icon": "logos/IE00BK1PV551/v2",
"subtitle": "Aktien \u00fcbertragen",
"action": {
"type": "timelineDetail",
"payload": "a1234567-b890-12d3-e456-426614174000"
},
"source": "timelineActivity"
},
all_events.json
{
"id": "a1234567-b890-12d3-e456-426614174000",
"timestamp": "2025-10-10T12:47:11.023+0000",
"title": "MSCI World USD (Dist)",
"icon": "logos/IE00BK1PV551/v2",
"subtitle": "Aktien übertragen",
"action": {
"type": "timelineDetail",
"payload": "a1234567-b890-12d3-e456-426614174000"
},
"source": "timelineActivity",
"details": {
"id": "a1234567-b890-12d3-e456-426614174000",
"sections": [
{
"type": "header",
"title": "You transferred 123 shares",
"data": {
"status": "executed",
"icon": "logos/IE00BK1PV551/v2",
"timestamp": "2025-10-10T12:47:11.023013566Z"
}
},
{
"type": "table",
"title": "Overview",
"data": [
{
"title": "Status",
"style": "plain",
"detail": {
"type": "status",
"text": "Completed",
"functionalStyle": "EXECUTED"
}
},
{
"title": "Asset",
"style": "plain",
"detail": {
"type": "text",
"text": "MSCI World USD (Dist)"
}
},
{
"title": "Action",
"style": "plain",
"detail": {
"type": "text",
"text": "Securities transfer"
}
},
{
"title": "Transfer to",
"style": "plain",
"detail": {
"type": "text",
"text": "BAADER BANK AKTIENGESELLSCHAFT"
}
},
{
"title": "BIC",
"style": "plain",
"detail": {
"type": "text",
"text": "BDWBDEMMXXX"
}
}
]
},
{
"type": "steps",
"title": "Status",
"steps": [
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "first"
}
},
"content": {
"title": "Outgoing transfer created",
"timestamp": "2025-10-10T12:47:11.023014Z"
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "middle"
}
},
"content": {
"title": "Transfer sent to BAADER BANK AKTIENGESELLSCHAFT",
"timestamp": "2022025-10-10T12:47:11.023014Z"
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "middle"
}
},
"content": {
"title": "Shares accepted by BAADER BANK AKTIENGESELLSCHAFT",
"timestamp": "2025-08-08T11:27:45.923Z",
"cta": {
"title": "Learn more",
"action": {
"type": "securityTransferStatus",
"payload": {
"title": "Transfer not yet accepted by BAADER BANK AKTIENGESELLSCHAFT",
"steps": [
{
"title": "Wait until 31 October",
"description": "We have sent you securities transfer to the receiving bank. Now we are awaiting confirmation that your bank will accept your shares. Bank usually take up to three weeks for this."
},
{
"title": "Check with BAADER BANK AKTIENGESELLSCHAFT",
"description": "To potentially accelerate the process you can share your account details and tax ID with the receiving bank."
}
],
"description": "Your transfer is pending acceptance by the receiving bank."
}
}
}
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "last"
}
},
"content": {
"title": "Buy in price confirmed by BAADER BANK AKTIENGESELLSCHAFT",
"subtitle": "Your shares should now be visible in your receiving bank's portfolio."
}
}
]
},
{
"type": "table",
"title": "Transaction",
"data": [
{
"title": "Shares",
"style": "plain",
"detail": {
"type": "text",
"text": "123"
}
},
{
"title": "Fee",
"style": "plain",
"detail": {
"type": "text",
"text": "Free"
}
}
]
},
{
"type": "documents",
"title": "Documents",
"data": [
{
"id": "f38dbd0d-0efe-39ba-9468-7bf8a3c10e6f",
"title": "Account Transfer",
"action": {
"type": "browserModal",
"payload": "[..]"
},
"postboxType": "TRANSFER_INVOICE_TYPE"
}
]
},
{
"type": "table",
"title": "Help",
"data": [
{
"title": "Report an issue",
"style": "highlighted",
"detail": {
"type": "listItemAvatarDefault",
"icon": "logos/timeline_communication/v2",
"style": "highlighted",
"action": {
"type": "customerSupportChat",
"payload": {
"contextParams": {
"timelineEventId": "a1234567-b890-12d3-e456-426614174000",
"chat_flow_key": "NHC_0026_Report_an_issue_transfer-out"
},
"contextCategory": "NHC",
"templateName": "NHC",
"data": {
"timelineEventId": "a1234567-b890-12d3-e456-426614174000",
"chat_flow_key": "NHC_0026_Report_an_issue_transfer-out"
}
}
}
}
}
]
}
]
}
},
For a failed transfer:
all_events.json
{
"id": "83af5c46-caa7-4e07-a504-ef0fbe367925",
"timestamp": "2024-11-16T11:55:12.959+0000",
"title": "MSCI World USD (Dist)",
"icon": "logos/IE00BK1PV551/v2",
"subtitle": "Aktien übertragen",
"action": {
"type": "timelineDetail",
"payload": "83af5c46-caa7-4e07-a504-ef0fbe367925"
},
"source": "timelineActivity",
"details": {
"id": "83af5c46-caa7-4e07-a504-ef0fbe367925",
"sections": [
{
"type": "header",
"title": "You transferred 14 shares",
"data": {
"status": "canceled",
"icon": "logos/IE00BK1PV551/v2",
"timestamp": "2024-11-16T11:55:12.959548322Z"
}
},
{
"type": "banner",
"title": "Shares not accepted",
"description": "Your outgoing transfer was rejected since your receiving bank didn't accept your shares within 21 days.",
"button": {
"title": "Learn more",
"action": {
"type": "securityTransferStatus",
"payload": {
"title": "Outgoing transfer rejected by the receiving bank",
"steps": [
{
"title": "Check with the receiving bank",
"description": "To ensure this issue doesn't happen again you can check with the receiving bank."
},
{
"title": "Transfer securities again",
"description": "Please retry this outgoing transfer and confirm with your receiving bank that they can accept it within 21 business days."
}
],
"description": ""
}
}
}
},
{
"type": "table",
"title": "Overview",
"data": [
{
"title": "Status",
"style": "plain",
"detail": {
"type": "status",
"text": "Rejected",
"functionalStyle": "CANCELED"
}
},
{
"title": "Asset",
"style": "plain",
"detail": {
"type": "text",
"text": "MSCI World USD (Dist)"
}
},
{
"title": "Action",
"style": "plain",
"detail": {
"type": "text",
"text": "Securities transfer"
}
},
{
"title": "BIC",
"style": "plain",
"detail": {
"type": "text",
"text": "BDWBDEMMXXX"
}
}
]
},
{
"type": "steps",
"title": "Status",
"steps": [
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "first"
}
},
"content": {
"title": "Outgoing transfer created",
"timestamp": "2024-11-16T11:55:12.959548322Z"
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "completed"
},
"connection": {
"order": "middle"
}
},
"content": {
"title": "Transfer sent to the receiving bank",
"timestamp": "2024-11-16T11:55:12.959548322Z"
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "error"
},
"connection": {
"order": "middle"
}
},
"content": {
"title": "Shares not accepted by the receiving bank",
"timestamp": "2024-11-28T08:39:47.871Z",
"cta": {
"title": "Learn more",
"action": {
"type": "securityTransferStatus",
"payload": {
"title": "Outgoing transfer rejected by the receiving bank",
"steps": [
{
"title": "Check with the receiving bank",
"description": "To ensure this issue doesn't happen again you can check with the receiving bank."
},
{
"title": "Transfer securities again",
"description": "Please retry this outgoing transfer and confirm with your receiving bank that they can accept it within 21 business days."
}
],
"description": ""
}
}
}
}
},
{
"leading": {
"avatar": {
"type": "bullet",
"status": "todo"
},
"connection": {
"order": "last"
}
},
"content": {
"title": "Buy in price confirmed by the receiving bank"
}
}
]
},
{
"type": "table",
"title": "Transaction",
"data": [
{
"title": "Shares",
"style": "plain",
"detail": {
"type": "text",
"text": "14"
}
},
{
"title": "Fee",
"style": "plain",
"detail": {
"type": "text",
"text": "Free"
}
}
]
},
{
"type": "table",
"title": "Help",
"data": [
{
"title": "Report an issue",
"style": "highlighted",
"detail": {
"type": "listItemAvatarDefault",
"icon": "logos/timeline_communication/v2",
"style": "highlighted",
"action": {
"type": "customerSupportChat",
"payload": {
"contextParams": {
"timelineEventId": "83af5c46-caa7-4e07-a504-ef0fbe367925",
"chat_flow_key": "NHC_0026_Report_an_issue_transfer-out"
},
"contextCategory": "NHC",
"templateName": "NHC",
"data": {
"timelineEventId": "83af5c46-caa7-4e07-a504-ef0fbe367925",
"chat_flow_key": "NHC_0026_Report_an_issue_transfer-out"
}
}
}
}
}
]
}
]
}
},