custom-components / sensor.avanza_stock

Custom component to get stock data from Avanza for Home Assistant
MIT License
46 stars 10 forks source link

Add a full example to the readme #104

Closed rabbadab closed 3 years ago

rabbadab commented 3 years ago

Hi! I love the integration but I can't understand how some of the configurations work and what data I should put in. For example: I'm trying to have my stock in SEK but it's a US stock. What should I put in the conversion_currency? On purchase_price in Avanza I only get the price in SEK is that what I put in there if I figure out the conversion_currency?

claha commented 3 years ago

I should definetly add a full example, will try and do it asap :) the id to use for conversion currency is 19000 (https://www.avanza.se/index/om-indexet.html/19000/usd-sek). You are correct about the purchase price.

Unfourtenately there is a bug in the profit/loss when using conversion currency but I am trying to find some time to fix it soon. (https://github.com/custom-components/sensor.avanza_stock/issues/91).

rabbadab commented 3 years ago

Haha tack! This will make is so much better for me to just look at my HA and not having to login into Avanza everyday That URL with the currency was the one I was looking for ;)