Jump to content

kfw

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by kfw

  1. 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.

  2. 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.

×
×
  • Create New...
us