GithubHelp home page GithubHelp logo

cyberwitch / mint_bitcoin_sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dan-v/mint-bitcoin-sync

3.0 1.0 1.0 33 KB

Update mint.com with the current value of specified bitcoin addresses

Python 100.00%

mint_bitcoin_sync's Introduction

mint_bitcoin_sync

A python script that will update Mint.com with current value of Bitcoins in specified bitcoin addresses. Uses Blockchain.info API to get price over past 24 hours. Note that there is no public Mint.com API, so this is using "private" API calls that may break at any point.

Requirements

pip install -r requirements

Mint.com Setup

  1. On Mint.com, a new "account" needs to be added for Bitcoins
  2. Click "Add a property"
  3. Select "Cash or Debt"
  4. Pick "Cash" from dropdown and click "Next" button
  5. What would you like to call it? Set it to "Bitcoin" (or call it whatever you want)
  6. How much is it worth? Set it to "1" (script will update it to correct value when run)
  7. Click 'Add it!' button

Usage

usage: mint_bitcoin_sync.py [-h] -e EMAIL [-p PASSWORD] -l
                            BITCOIN_ACCOUNT_LABEL [-a BITCOIN_ADDRESSES or XPUBs]
                            [-f BITCOIN_ADDRESS_FILE] [--version]

Update Mint.com with current value of Bitcoins in specified bitcoin addresses or xpub public key

optional arguments:
  -h, --help            show this help message and exit
  -e EMAIL              Mint.com Email Address
  -p PASSWORD           Mint.com Password (will prompt if not provided)
  -l BITCOIN_ACCOUNT_LABEL
                        Mint.com Bitcoin account label
  -a BITCOIN_ADDRESSES  Bitcoin public address or xpub public keys (specify multiple -a for more
                        than one)
  -f BITCOIN_ADDRESS_FILE
                        File containing Bitcoin public addresses or xpub public keys, one
                        address per line. Must specify either -a or -f 
                        argument, must not specify both.
  --version             show program's version number and exit
  
Note that the first time you use this, you might be prompted by Mint.com to enter a verification code sent to your email.  This should only happen once.

Example

python mint_bitcoin_sync.py -e [email protected] -l Bitcoin -a xpubxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Mint.com password: 
2017-12-10 19:04:36,851 INFO   line 29   Getting current bitcoin balance from https://blockchain.info/address/xpubxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx?format=json
2017-12-10 19:04:37,352 INFO   line 45   Bitcoin address "xpubxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" has x.xxxxxxxx BTC
2017-12-10 19:04:37,353 INFO   line 9    Getting current bitcoin price from http://blockchain.info/q/24hrprice
2017-12-10 19:04:37,392 INFO   line 23   Using retrieved BTC price: $xxxx.xx
2017-12-10 19:04:37,393 INFO   line 59   Current combined balance for all addresses: $x,xxx.xx

2017-12-10 19:05:25,497 INFO   line 71   Finished

mint_bitcoin_sync's People

Contributors

dan-v avatar cyberwitch avatar

Stargazers

Austin Millan avatar Flavio Ribeiro avatar Dallas Epperson avatar

Watchers

 avatar

Forkers

dantidote

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.