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.
#!/bin/bash
read -p “refresh? (y/n) ” answer
while true; do
date –iso-8601
year=$(date +”%Y”)
month=$(expr $(date “+%m”) + 0)
day=$(expr $(date “+%d”) + 0)
#calculate variables for Julian day number
a=$(((14 – month)/12))
y=$((year + 4800 – a))
m=$((month + 12*a – 3))
#calculate Julian day number
jdn=$((day + (153*m+2)/5 + 365*y + y/4 – 32083))
#Sept 8, 2010 jdn=2455461
#d = days elapsed since Sept 8, 2010
d=$((jdn – 2455461))
bid=$(curl -s “https://www.bitstamp.net/api/ticker/” | jq -r “.bid”)
ask=$(curl -s “https://www.bitstamp.net/api/ticker/” | jq -r “.ask”)
#p is midmarket price to 6 decimals
p=$(bc -l <<< “scale=6; ($bid+$ask)/2”)
lnp=$(bc -l <<< “scale=6; l($p)”)
logp=$(bc -l <<< “scale=6; $lnp/2.302585”)
#calculate days ahead
dhed=$(bc -l <<< “scale=6; 114.434128*($logp+1.649827)*($logp+1.649827)-($d)”)
#shift decimal point in preparation for truncating extraneous figures
price1=$(bc -l <<< “scale=6; $p*100”)
#converting to integer truncates extra figures
price2=${price1%.*}
#shift decimal point back
price=$(bc -l <<< “scale=2; $price2/100”)
echo “current price”
echo $price
echo “days ahead”
echo ${dhed%.*}
#calculate root trend and price multiple
root=$(bc -l <<< “scale=8; e(2.30258509*(0.09348075*sqrt($d)-1.64982665))”)
mult1=$(bc -l <<< “scale=8; 100*$price/$root”)
mult=$(bc -l <<< “scale=2; ${mult1%.*}/100”)
echo “price multiple”
echo “$mult”
sleep 15s
if [[ $answer == y ]]; then
continue
else [[ $answer == n ]]
break
fi
done