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.0.13.tar.gz (2.9 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.0.13-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.13.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-24-generic

File hashes

Hashes for yfinance_exporter-1.0.13.tar.gz
Algorithm Hash digest
SHA256 d3d0ef474b754433b93e70a01c189b031961a1125c69b55484b9d6d5a7dcc27d
MD5 b77d083e5ab3848d9b9602bd0ad86949
BLAKE2b-256 d36ae39a563fadb1818a43f3b8c890e3bd8f75c1c6be1f6e3f23bf1f8f9ee874

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yfinance_exporter-1.0.13-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-24-generic

File hashes

Hashes for yfinance_exporter-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 db15edc08247a4eb3748fabe5db95e3b91a141cc4ba66ac8df0d860baf5b32c8
MD5 fd44a0b6e58c09dcf956c5cafdc99c8f
BLAKE2b-256 4d370a4c2369a3887c503d1b3e28729928d23abd4f34cb5796455c2852f98845

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