Closed luixal closed 1 year ago
Hi luixal,
I see that this question is answered in an example at the readme. I'd recommend starting with the examples there, and changing as little as possible, one step at a time.
Hi @danielvandenberg95 ,
I always get started with the examples. I took this code from the readme:
// Basic degiro init
const degiro = new DeGiro({
username: '<your_username_here>',
pwd: '*****'
})
// or creating with the static create method
const degiro = DeGiro.create({ username: '*****', pwd: '*****' })
// or create with env credentials
const degiro = new DeGiro() // <-- Use DEGIRO_USER & DEGIRO_PWD
The first two ways throw that error about the need for a password, only the last example works for me.
Do you have any code that works for you passing username
and password
as params?
Thanks!
Just closing this as it was totally my stupidity mixing param names.
Sorry!
Hi,
I tried to make this code work:
and got and error telling me that login needed credentials:
I got the same error when using the
create
function.The only way I've made it work is by using env vars DEGIRO_USER and DEGIRO_PWD.
Any idea about how to make it work with constructor params?
Thanks!