Skip to content

Commit

Permalink
Update and rename auto_set_pi_price.py to auto_set_pi_value.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Feb 10, 2025
1 parent 91b8a6c commit 4b141b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
15 changes: 0 additions & 15 deletions pi_coin_price_manager/auto_set_pi_price.py

This file was deleted.

15 changes: 15 additions & 0 deletions pi_coin_price_manager/auto_set_pi_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import requests

def set_pi_coin_value(value):
# Set the Pi coin value on global exchanges
url = "https://api.globalexchanges.com/set_value"
headers = {"Content-Type": "application/json"}
data = {"coin": "PI", "value": value}
response = requests.post(url, headers=headers, json=data)
if response.status_code == 200:
print(f"Pi Coin as stable Coin with value ${value:,.2f}")
else:
print("Failed to set Pi coin value")

# Set the Pi coin value to $314,159.00
set_pi_coin_value(314159.00)

This comment has been minimized.

Copy link
@loaikhashroom

loaikhashroom Feb 18, 2025

This really?

0 comments on commit 4b141b8

Please sign in to comment.