Skip to content

Ghost-Finance/setzer-mcd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setzer MCD

Query USD price feeds

Usage

Usage: setzer <command> [<args>]
   or: setzer <command> --help

Commands:

   help            Print help about setzer or one of its subcommands
   pairs           List all supported pairs
   price           Show price(s) for a given asset or pair
   sources         Show price sources for a given asset or pair
   test            Test all price feeds

Installation

Dependencies:

Install via make:

  • make link - link setzer into /usr/local
  • make install - copy setzer into /usr/local
  • make uninstall - remove setzer from /usr/local

Configuration

  • SETZER_CACHE - Cache directory (default: ~/.setzer)
  • SETZER_CACHE_EXPIRY - Cache expiry (default: 60) seconds
  • SETZER_TIMEOUT - HTTP request timeout (default: 10) seconds

wstETH pair requirement

Due to process of pulling details from mainnet for getting price information. You need to set ETH_RPC_URL environemnt variable. By default it will point to http://127.0.0.1:8545.

Example of usage:

export ETH_RPC_URL="https://mainnet.infura.io/v3/fac98e56ea7e49608825dfc726fab703"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 85.1%
  • Nix 9.6%
  • Makefile 5.3%