I'm trying to categorize transactions and need to find a reliable way to filter transactions which are either deposits into my IG account from an external bank, or withdrawals from my IG account to an external bank.
Transactions are found with this url:
https://demo-api.ig.com/gateway/deal/history/transactions?type=ALL&from=2022-11-02T00%3A00%3A00&to=2023-01-20T00%3A00%3A00&maxSpanSeconds=600000&pageSize=0
None of the properties of the transaction class indicates whether the transaction is external. The property "instrumentName" only contains a language localized description if the transaction was done with a bank card. Among the values for the property "transactionType" are "DEPO" and "WITH", but they can refer to daily FX interest, which is internal to IG.