increase time
Browse files
app.py
CHANGED
|
@@ -453,11 +453,8 @@ def get_gold_historial_price():
|
|
| 453 |
|
| 454 |
# Last 730 days (2 years)
|
| 455 |
end = int(datetime.utcnow().timestamp())
|
| 456 |
-
start = int((datetime.utcnow() - timedelta(days=
|
| 457 |
|
| 458 |
data = metals_api.get_price_history("XAU", start, end)
|
| 459 |
|
| 460 |
-
if data:
|
| 461 |
-
print("Price History:")
|
| 462 |
-
print(data)
|
| 463 |
return data
|
|
|
|
| 453 |
|
| 454 |
# Last 730 days (2 years)
|
| 455 |
end = int(datetime.utcnow().timestamp())
|
| 456 |
+
start = int((datetime.utcnow() - timedelta(days=730)).timestamp())
|
| 457 |
|
| 458 |
data = metals_api.get_price_history("XAU", start, end)
|
| 459 |
|
|
|
|
|
|
|
|
|
|
| 460 |
return data
|