GitXplorerGitXplorer
a

crypto-funds-exporter

public
2 stars
0 forks
5 issues

Commits

List of commits on branch master.
Verified
e7b52ae0413a01a10a4cae2030e2e536f5bacd3a

Merge pull request #15 from a0s/dependabot/bundler/rack-2.2.3.1

aa0s committed 3 years ago
Verified
aafd82bc41a1a9e227b83c20a2b9babbd474e4ff

Bump rack from 2.2.3 to 2.2.3.1

ddependabot[bot] committed 3 years ago
Verified
bf791800c3ad4f33ea4bf830e5e4759deb338de8

Merge pull request #13 from a0s/dependabot/bundler/puma-4.3.12

aa0s committed 3 years ago
Verified
7356b4a215a9d0123f091ee99173a790d0b8d63d

Bump puma from 3.12.6 to 4.3.12

ddependabot[bot] committed 3 years ago
Verified
9b8ea05cb63756d7537f407fd92fe5e5f0c1a406

Merge pull request #14 from a0s/dependabot/bundler/sinatra-2.2.0

aa0s committed 3 years ago
Verified
d0cc6ff87bbb2086740bc90e85aa0de6b6a8d070

Merge pull request #10 from a0s/dependabot/bundler/addressable-2.8.0

aa0s committed 3 years ago

README

The README file for this repository.

crypto-funds-exporter

Allows to export your crypto stock exchange's funds into Prometheus

crypto-funds-exporter

Build and run Docker container from scratch

git clone https://github.com/a0s/crypto-funds-exporter.git
cd crypto-funds-exporter
git checkout v0.0.2
docker build --tag crypto-funds-exporter .

You can choose stock(s) exchange for monitoring by settings xxx_KEY/yyy_SECRET keys. You can set only one stock exchange if you want.

It is recommended to use only tokens with read-only permissions.

Stock exchanges supported by crypto-funds-exporter:

  • Bittrex

    CRYPTO_FUNDS_EXPORTER_BITTREX_KEY
    CRYPTO_FUNDS_EXPORTER_BITTREX_SECRET
    
  • Binance

    CRYPTO_FUNDS_EXPORTER_BINANCE_KEY
    CRYPTO_FUNDS_EXPORTER_BINANCE_SECRET
    
  • Kucoin

    CRYPTO_FUNDS_EXPORTER_KUCOIN_KEY
    CRYPTO_FUNDS_EXPORTER_KUCOIN_SECRET
    

Start container with chosen stock exchanges

docker run \
    --restart always \
    -td \
    -p 9518:9518 \
    -e CRYPTO_FUNDS_EXPORTER_BITTREX_KEY=... \
    -e CRYPTO_FUNDS_EXPORTER_BITTREX_SECRET=... \
    -e CRYPTO_FUNDS_EXPORTER_BINANCE_KEY=... \
    -e CRYPTO_FUNDS_EXPORTER_BINANCE_SECRET=... \
    -e CRYPTO_FUNDS_EXPORTER_KUCOIN_KEY=... \
    -e CRYPTO_FUNDS_EXPORTER_KUCOIN_SECRET=... \
    --name crypto-funds-exporter \    
    crypto-funds-exporter

Endpoints

Getting metrics

curl localhost:9518/metrics

Checking server alive

curl localhost:9518/ping 

Example Prometheus config

global:
  scrape_interval: 5s

scrape_configs:
  - job_name: funds
    honor_labels: true
    static_configs:
      - targets:
          - 'localhost:9518'