Spaces:
Running
on
Zero
Running
on
Zero
File size: 388 Bytes
b1ce64c |
1 2 3 4 5 6 7 8 9 10 11 12 |
from models.gold_price import GoldPrice
from services.gold_price_api import GoldPriceAPI
from utils.currency_converter import CurrencyConverter
def main():
gold_price_api = GoldPriceAPI()
gold_price_data = gold_price_api.get_gold_price()
gold_price = GoldPrice(**gold_price_data)
print(f"Today's gold price: {gold_price.price} JPY")
if __name__ == "__main__":
main() |