#!/bin/bash Loop indefinitely while true; do Clear the terminal screen to refresh the…
- User
#!/bin/bash
Loop indefinitely
while true; do # Clear the terminal screen to refresh the output clear
# Display current time at the top echo -e "\033[1;37mCurrent Time: $(date '+%Y-%m-%d %H:%M:%S')\033[0m" echo -e "\033[1;36m-------------------------------------------------------------------------------------------------------------" echo -e "Token | Price | Liquidity | DEX | 5min % | Created At | Hash" echo -e "-------------------------------------------------------------------------------------------------------------\033[0m" # Execute the curl command and process the JSON response using jq curl -s --path-as-is -k -X GET \ -H 'Host: api.coinscan.com' \ -H 'Accept-Encoding: gzip, deflate, br' \ -H 'Accept: */*' \ -H 'Accept-Language: en-US;q=0.9,en;q=0.8' \ -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.6723.70 Safari/537.36' \ -H 'Connection: close' \ -H 'Cache-Control: max-age=0' \ https://api.coinscan.com/v2/pair-explorer/1399811149/age/24h/0/675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 | \ gunzip | \ jq -r '.data.rows | sort_by(.createdAt) | reverse | .[0:2] | .[] | @sh "\(.baseSymbol) \(.price) \(.liquidity) \(.dexLabel) \(.pc5m) \((.createdAt + 7200 | tonumber | strftime("%Y-%m-%d %H:%M:%S"))) \(.baseHash)"' | \ while read -r token price liquidity dex pc5m created hash; do # Couleur du token token_color="\033[33m" [[ $token == -* ]] && token_color="\033[31m" # Couleur du pc5m pc5m_color="\033[32m" # vert par défaut [[ $pc5m == -* ]] && pc5m_color="\033[31m" # rouge si négatif # Affichage formaté printf "%b%-15s\033[0m | \033[37m%-12s\033[0m | \033[35m%-13s\033[0m | \033[35m%-10s\033[0m | %b%-10s\033[0m | \033[37m%-20s\033[0m | \033[38;5;214m%s\033[0m\n" \ "$token_color" "$token" "$price" "$liquidity" "$dex" "$pc5m_color" "$pc5m" "$created" "$hash" done # Wait before the next iteration sleep 0.46
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.