Giter VIP home page Giter VIP logo

cb_tracker's Introduction

Coinbase tracker

This is a simple, terminal-based ticker for the current price at Coinbase.

This script is a simple, minimalist terminal-based ticker for coinbase.com.

It was written to let me keep an eye on the price at coinbase without having to keep a browser tab open. It is not meant to facilitate buying or selling, or doing anything with anyone's personal account.

It does not keep any historical data; it is just written to let you watch price movement from the time you start running the script.

I am mostly interested in knowing when the price is just above local minima, so it reports the amount above the low price.

The output is formatted to fit nicely in a thin terminal window on the side of the screen.

Output:

timestamp - price
timestamp - price
...
high:       price - timestamp
low:        price - timestamp
difference: amount

current:    price
below high: amount

Parameters

  • INTERVAL: how often to poll coinbase, default 60 seconds
  • MAX_DISPLAY: how many prices to show, default 25
  • MAX_PRICES: how many prices to keep, default 10000; affects calculation of high/ low, other stats
  • DEBUG: when True, INTERVAL=1 second, MAX_DISPLAY=5

I'm sure it's buggy, and the code is ugly, but it works minimally.

Requirements

Requires requests, which can be installed through pip:

pip install requests

Also requires Python 3 to print the output nicely. It will run under Python 2, but the output will be a bit uglier.

cb_tracker's People

Contributors

ehmatthes avatar

Stargazers

 avatar  avatar

Watchers

 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.