Skip to content

Instantly share code, notes, and snippets.

View bekher's full-sized avatar

Greg Bekher bekher

View GitHub Profile
@bekher
bekher / keybase.md
Created February 12, 2020 20:29
keybase.md

Keybase proof

I hereby claim:

  • I am bekher on github.
  • I am bekher (https://keybase.io/bekher) on keybase.
  • I have a public key ASC-3HPKQKjIubacMfdiOoH1044E13qASvrjcgLDdUIurgo

To claim this, I am signing this object:

@bekher
bekher / value.py
Created January 7, 2018 17:00
Query the spot price of Bitcoin at a specific date and time. Use this price to calculate the USD value of a specific amount of an asset purchased for a specific BTC amount at a date
import datetime as dt
from dateutil import parser
import requests
import sys
import json
if len(sys.argv) < 4:
print "Query the spot price of Bitcoin at a specific date and time"
print "Use this price to calculate the USD value of a specific amount of"
print " an asset purchased for a specific BTC amount at a datetime\n"