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.
from requests import Session
from signalr import Connection
import time, json
markets = ['BTC-OMG', 'ETH-OMG', 'USDT-OMG']
def orderPrinter(update):
orderUnparsed = json.dumps(update)
JSONOrder = json.loads(orderUnparsed)
try:
MarketName = JSONOrder[0]['MarketName']
Fills = JSONOrder[0]['Fills']
for order in Fills:
OrderType = order['OrderType']
Rate = order['Rate']
Quantity = order['Quantity']
Total = Rate * Quantity
print MarketName, OrderType, Total
except Exception as e:
print e
pass
with Session() as session:
connection = Connection('http://socket.bittrex.com/signalr', session)
corehub = connection.register_hub('coreHub')
#create error handler
def print_error(error):
print('error: ', error)
# debug information, show all data
def print_raw_data(*args, **kwargs):
print (args, kwargs)
def ticker_data(*args, **kwargs):
print "ticker", (args, kwargs)
def market_data(*args, **kwargs):
#print "ticker", (args, kwargs)
orderPrinter(args)
connection.error += print_error
connection.start()
print "sending subscription request"
for market in markets:
corehub.server.invoke('SubscribeToExchangeDeltas', market)
#corehub.client.on('updateSummaryState', ticker_data)
corehub.client.on('updateExchangeState', market_data)
connection.wait(150000)