Skip to content

Prometheus exporter for KSEI financial data as metrics

License

Notifications You must be signed in to change notification settings

chickenzord/ksei-exporter

Repository files navigation

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="
[email protected]:johnsaltedpassword
[email protected]:janesaltedpassword
"
KSEI_AUTH_DIR=.goksei.auth

TODO

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