GithubHelp home page GithubHelp logo

isabella232 / setzer-mcd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from makerdao/setzer-mcd

0.0 0.0 0.0 344 KB

License: GNU General Public License v3.0

Makefile 0.57% Shell 54.53% Nix 1.05% Dockerfile 1.66% Go 42.19%

setzer-mcd's Introduction

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"

Fx/Exchangerates API Key

Since latest changes in Exchangerates API, now it requires API key. To set API Key for this exchange you can use EXCHANGERATES_API_KEY env variable.

Example:

$ EXCHANGERATES_API_KEY=your_api_key setzer fx krwusd

setzer-mcd's People

Contributors

desaperados avatar gbalabasquer avatar kenadia avatar konstantinzolotarev avatar madumas avatar mbrock avatar nanexcool avatar r001 avatar teghnet avatar zdumitru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.