Skip to content

Exports metrics from your Avanza account to Prometheus

License

Notifications You must be signed in to change notification settings

bonan/avanza-exporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

avanza-exporter

Exports your current holdings with Avanza as Prometheus metrics.

Uses fhqvst/avanza for interacting with Avanza

Run:

npm install
EXCH_AZ_USERNAME=your_username EXCH_AZ_PASSWORD=your_password node index.js

With docker:

docker run -d \
  --env EXCH_AZ_USERNAME=your_username \
  --env EXCH_AZ_PASSWORD=your_password \
  -p 8582:8582 \
  bonan/avanza-exporter

Four different metrics are exported:

# Last price per stock/fund (in SEK)
stock_rate{code="GOOG",exchange="avanza",name="Alphabet Inc Class C",type="stock"}
# Amount of stocks you have
stock_amount{code="GOOG",exchange="avanza",name="Alphabet Inc Class C",type="stock"}
# Value of your investment (in SEK)
stock_value{code="GOOG",exchange="avanza",name="Alphabet Inc Class C",type="stock"}
# Amount of money deposited
stock_cash{code="CASH",exchange="avanza",name="Cash deposit"}

About

Exports metrics from your Avanza account to Prometheus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published