-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update and rename auto_set_pi_price.py to auto_set_pi_value.py
- Loading branch information
Showing
2 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Sorry, something went wrong. |
This really?