We’ve pushed a fresh batch of updates to the PeakeCoin backend — focused on automation, transparency, and decentralized deployment. So I'm a just show you what I've had going on.
With all this work I'm still having issues with the canceling of orders so new ones can be filled. I may need some eyes @thecrazygm but it may take me a few days.
peake_bot.py➕ Added: SPREAD_PERCENT = 1.0
buy_price = round(last_price * (1 - SPREAD_PERCENT / 100), 4)
sell_price = round(last_price * (1 + SPREAD_PERCENT / 100), 4)
🪵 Logging Implemented
Logs every trade decision and response:
logging.info(f"Market Price: {last_price} | Buy: {buy_price} | Sell: {sell_price}")
logging.info(f"Buy Order Response: {buy_order}")
logging.info(f"Sell Order Response: {sell_order}")
Output goes to trade_log.txt for each loop.
🌐 FTP Upload
upload_to_ftp("trade_log.txt", "trade_log.txt")
ftp_upload.py📂 Directory Target Changed
FTP_TARGET_DIR = "/xlaswap"
🛠️ Recursive Directory Creation
ensure_ftp_directory(ftp, ftp_dir)
Passive Mode Set
ftp.set_pasv(True)
cancel_all_orders() — clean up stale orders before new onesSWAP.LTC, PIMP, and PEKshop_watcher.js to link PEK trades to game purchases