Options

Node js package "@deriv/deriv-api" portfolio not working

I was trying to get information about user portfolio with the bellow code but i keep getting this error: "An error occured: TypeError: api.portfolio is not a function".

my code:
async function contInfo() {
try {
const account = await api.account(token);
let contract_info = await api.portfolio();
console.log(contract_info);
} catch (error) {
console.log(An error occured: ${error});
basic.disconnect();
}
}

Sign In or Register to comment.