Giter VIP home page Giter VIP logo

cryptoquote's Introduction

Cryptoquote

Bitcoin, Etherium and other cryptocurrency quotes via the terminal using Kraken's API

Prerequisites

  • Python 3
  • requests
  • appdirs

Installation

The easiest way to install cryptoquote is via pip3:

pip3 install git+https://github.com/SeanDS/cryptoquote.git

This has the advantage of using pip's package manager, so the tool can later be uninstalled. Alternatively, the tool can be installed without package support by directly running setup.py:

$ cd /path/to/cryptoquote
$ python3 setup.py install

You may need to run setup.py with root permission (e.g. with sudo).

Usage

Cryptoquote has a command line interpreter. Call:

$ cq help

to get started.

Quotes

For simple quote retrieval, call:

$ cq quote <base> <quote>

where <base> is the base asset identifier (e.g. BTC) and <quote> is the quote asset identifier (e.g. USD). For example, to get the current price of bitcoin in US dollars, call:

$ cq quote BTC USD

This will output something like:

BTC price on Kraken as of 16/10/17 10:41:56:
        Ask: $5607.50
        Bid: $5606.30
        Last: $5604.90
        Today low: $5550.00 (last 24h: $5462.10)
        Today high: $5708.10 (last 24h: $5731.28)

The date shown conforms to the user's locale.

You can specify a particular exchange with the -e or --exchange flag, or alternatively specify -e all to retrieve quotes from all available exchanges.

Available exchanges

Type cq list exchanges to get a list of supported exchanges. Currently Kraken, LocalBitcoins and Coinbase are supported.

Available assets

Type cq list assets to get a list of supported assets.

Python module

Cryptoquote can also be imported as a Python 3 module.

cryptoquote's People

Contributors

seands avatar

Watchers

James Cloos avatar

Forkers

pav-laboratory

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.