Jump to content
  • 0

How to determine if a transaction is a deposit or withdrawal to an external bank?


kfw

Question

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.

Link to comment

2 answers to this question

Recommended Posts

  • 0
On 18/02/2023 at 19:33, kfw said:

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.

Hi @kfw

The ledger history should show whether the transaction is a withdrawal or a deposit. Ledger history can be accessed on My IG > Live accounts > History.

A deposit will show either "Bank deposit/ Card payment" with card number (Card payment *0987).

Withdrawals should show as "Bank withdrawal/ Returned to card *0979". This description shows on the 'market name' column.

All the best - MongiIG

Link to comment
  • 0
23 hours ago, MongiIG said:

Hi @kfw

The ledger history should show whether the transaction is a withdrawal or a deposit. Ledger history can be accessed on My IG > Live accounts > History.

A deposit will show either "Bank deposit/ Card payment" with card number (Card payment *0987).

Withdrawals should show as "Bank withdrawal/ Returned to card *0979". This description shows on the 'market name' column.

All the best - MongiIG

I'm aware of that, I was hoping there was a more reliable way using the API to find out which transaction is an external bank transaction, by looking at something like a flag or enum rather than dissecting a description, and praying that the wording of the description doesn't change later.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • image.png

  • Posts

    • DIMO's platform seems to be shaking things up in the car world! Being able to get useful info about your car easily sounds great for drivers. And now that their token is on Bitget exchange, more people can get in on it. Super exciting news!
    • Just for completeness, I mean lists of companies. Many thanks, Peter
    • It’s one of the most popular traded markets on our end, and we take a look at the S&P 500’s technical overview in both weekly and daily time frames, the strategies to deploy for conformist, contrarian and ‘hold’ camps.   Written by: Monte Safieddine | Market analyst, Dubai   Publication date: Tuesday 27 February 2024 06:48 Dive into the conflicting sentiments of IG clients versus COT speculators and stay ahead of the game with upcoming market events. Don't miss out on this essential guide to understanding the current state of the S&P 500 and preparing for what lies ahead!       This information has been prepared by IG, a trading name of IG Australia Pty Ltd. In addition to the disclaimer below, the material on this page does not contain a record of our trading prices, or an offer of, or solicitation for, a transaction in any financial instrument. IG accepts no responsibility for any use that may be made of these comments and for any consequences that result. No representation or warranty is given as to the accuracy or completeness of this information. Consequently any person acting on it does so entirely at their own risk. Any research provided does not have regard to the specific investment objectives, financial situation and needs of any specific person who may receive it. It has not been prepared in accordance with legal requirements designed to promote the independence of investment research and as such is considered to be a marketing communication. Although we are not specifically constrained from dealing ahead of our recommendations we do not seek to take advantage of them before they are provided to our clients.    
×
×
  • Create New...
us