ksei-exporter

command module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 11 Imported by: 0

README

ksei-exporter

Prometheus exporter for KSEI financial data as metrics. Using GoKSEI library for API client.

Go Report Card GitHub go.mod Go version Go Build Docker Build Code License

Features

  • Aggregating multiple KSEI accounts in a single exporter
  • Supports Equity, Bond, Mutual Funds, and RDN cash balances

Example metrics (redacted)

ksei_asset_value{asset_name="GOTO GOJEK TOKOPEDIA Tbk",asset_symbol="GOTO",asset_type="equity",currency="IDR",ksei_account="***@gmail.com",security_account="XL001******",security_name="PT. Stockbit Sekuritas Digital"} 99999

Configuration

ksei-exporter is configured using enviroment variables:

SERVER_BIND_HOST=0.0.0.0
SERVER_BIND_PORT=8080

KSEI_ACCOUNTS="
john.doe@example.com:johnsaltedpassword
jane.doe@example.com:janesaltedpassword
"
KSEI_AUTH_DIR=.goksei.auth

TODO

  • Support cash balance
  • Docker image build
  • Setup instruction
  • Grafana dashboard example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL