Too much, buddy
EDIT: I'd recommend to change Buddy's policy to post a price update only if it moved by a certain amount of dollars.
The buddy posts a chart on hourly basis and if none of us make a post then we'll see buddy only. I also believe that limiting buddy is somewhat good for the WO thread. I believe buddy should post charts when price pumps a lot or dips a lot and other than that it would make 1 post in 4 hours if the price doesn't change a lot.
If it's not broke, don't fix it.
Too much, buddy
EDIT: I'd recommend to change Buddy's policy to post a price update only if it moved by a certain amount of dollars.
Post a buddychart only if price moves more than 1% either direction since last post. Else wait another 60 minutes and check again.
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)
This would also make @philipma1957 happy.
Wow!!!! That's not bad. I might have to retract my above "not broken don't fix" statement... but why? So that I am not called a wiffle-waffler?
Too much, buddy
EDIT: I'd recommend to change Buddy's policy to post a price update only if it moved by a certain amount of dollars.
Post a buddychart only if price moves more than 1% either direction since last post. Else wait another 60 minutes and check again.
[
code snipped]
This would also make @philipma1957 happy.
buddy brainwashing
buddy getting handicap
buddy going woke?
this cannot be so
and that carbon based life form
phil sure is pushy
#haikuThat's a good point. Maybe I should go back to my earlier stance about buddy not being broke?
Too much, buddy
EDIT: I'd recommend to change Buddy's policy to post a price update only if it moved by a certain amount of dollars.
Yes, I am seconding this.. but measure in %%, not $$:
for example, at least 1% in an hour ($267 currently).
Any smaller number is wholly irrelevant, imho.
Seems like I read that before.
I must ask my lil selfie: "Lil selfie, am I going through
deja vu?"
I'd recommend to change Buddy's policy to post a price update only if it moved by a certain amount of dollars.
I'd recommend omitting the silly price numbers completely and just posting the charts. Chart Buddy is not about the price. It's all about the order book and walls at Bitstamp (originally MtGox).
Not going to lie.
Mind blown.