Skip to main content

No project description provided

Project description

PyPI - Version Docker Image Version

YFinance Exporter

Metrics served

{
    "stocks": [
        {"isin": "FR0000120073", "name": "AIR LIQUIDE", "ycode": "AI.PA"}
    ]
}

Running it

For the next few bits of code, we'll suppose you have a working configuration above in ~/.config/yfinance-exporter.json.

... with python:

pip install yfinance-exporter
python -m yfinance_exporter

... with docker:

 docker run -v ~/.config/:/etc/yfinance-exporter/:ro -p 9100:9100 yfinance-exporter:main

You'll then be able retrieve some values:

curl localhost:9100/metrics

# HELP yfinance_exporter
# TYPE yfinance_exporter gauge
yfinance_exporter{status="loop"} 1.0
yfinance_exporter{status="loop-time"} 10.179875
yfinance_exporter{status="ok-stock"} 45.0
yfinance_exporter{status="ko-stock"} 2.0
[...]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yfinance_exporter-1.1.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yfinance_exporter-1.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file yfinance_exporter-1.1.0.tar.gz.

File metadata

  • Download URL: yfinance_exporter-1.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-22-generic

File hashes

Hashes for yfinance_exporter-1.1.0.tar.gz
Algorithm Hash digest
SHA256 018beb61a273463a8720e7a25dc8048f4e149d060adc2410e70dc1d577dff66f
MD5 1d847c9d59648b33db03a133023963d2
BLAKE2b-256 72f9497e93e321bc98337f46ff7ea92cb2ac985ffe14f4b4bc47107935e38fad

See more details on using hashes here.

File details

Details for the file yfinance_exporter-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: yfinance_exporter-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.3 Linux/6.14.0-22-generic

File hashes

Hashes for yfinance_exporter-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 df5bbfff31b31287f7129ddba5f930afa2ae077ba8d812336c8d717cba8c537d
MD5 ae05df25cdda8bbf25bd18da6378d946
BLAKE2b-256 1a7fbc83543d5e03b85a6e786c58f2a1f98b7cebf5f361cf5ecba0e0197ab168

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page