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 ccxt
import time
# Initialize the exchange
exchange = ccxt.binance() # You can replace 'binance' with your preferred exchange
# Function to get current Bitcoin price
def get_bitcoin_price():
ticker = exchange.fetch_ticker('BTC/USDT')
return ticker['last']
# Function to make a post
def make_post(price_change):
# Replace this with your actual post logic
print(f"Bitcoin price changed by {price_change}%")
# Main loop
while True:
try:
# Get the current price
current_price = get_bitcoin_price()
# Check if there was a 1% change from the last post
if 'last_price' in locals() and abs(current_price - last_price) / last_price > 0.01:
make_post(abs(current_price - last_price) / last_price * 100)
# Update last_price
last_price = current_price
except Exception as e:
print(f"An error occurred: {e}")
# Wait for 60 minutes
time.sleep(60 * 60)