It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
import sys
import json
import urllib2
def jsonApiCall(url):
try:
req = urllib2.Request(url, headers={'User-Agent' : "Magic Browser"})
con = urllib2.urlopen(req)
data = json.load(con)
except Exception as e:
sys.stderr.write("Failed in API call " + url + "\n")
sys.stderr.write(str(e))
sys.exit(1)
return data
poloniex = float(jsonApiCall('https://poloniex.com/public?command=returnTicker')['BTC_XMR']['highestBid'])
poloniex *= 1.002 # 0.2% fee
xmrto = float(jsonApiCall('https://xmr.to/api/v1/xmr2btc/order_parameter_query')['price'])
shapeshift = float(jsonApiCall('https://shapeshift.io/rate/xmr_btc')['rate'])
# shapeshift applies a 0.0001 btc fee per transaction, which we won't factor in here
print "-----------------------------------"
print " Price for buying 1 XMR"
print "-----------------------------------"
print " Poloniex %10.8f BTC" % poloniex
print " XMR.TO %10.8f BTC" % xmrto
print " shapeshift %10.8f BTC" % shapeshift
-----------------------------------
Price for buying 1 XMR
-----------------------------------
Poloniex 0.00308108 BTC
XMR.TO 0.00304400 BTC
shapeshift 0.00302045 BTC