degiro-api icon indicating copy to clipboard operation
degiro-api copied to clipboard

Requesting all the account transactions

Open KenVanGilbergen opened this issue 3 years ago • 4 comments

I am trying to find a way to retrieve all the transactions of an account, not only the orders but also the fees, dividends, ... Not sure if this is current possible?

https://trader.degiro.nl/reporting/secure/v6/accountoverview

KenVanGilbergen avatar Dec 22 '20 12:12 KenVanGilbergen

Which methods of the library did you tried?

icastillejogomez avatar Feb 07 '21 18:02 icastillejogomez

Hello guys,

this link from @KenVanGilbergen appends to be an endpoint :

https://trader.degiro.nl/reporting/secure/v6/accountoverview

This endpoint seems to be handled by this library, with the following method :

  • getAccountState

Hope that helps

Chavithra avatar Feb 07 '21 21:02 Chavithra

Maybe you can tell in the docs that the option is necessary to include. The date object must be an object with two strings like this:

{
   from: '01/01/2000 ',
   to: '28/02/2021'
}

brambekkers avatar Mar 01 '21 15:03 brambekkers

Thanks @brambekkers this works fine :

const transactions = await degiro.getAccountState({
    from: '01/01/2000',
    to: '28/02/2021'
})
console.log(transactions)

romainsimon avatar Jul 10 '21 20:07 romainsimon