get quote price from FT

This commit is contained in:
2018-10-01 09:20:25 +02:00
parent 2cc4baf84d
commit 7ba93f6316
5 changed files with 14 additions and 16 deletions

View File

@@ -110,8 +110,8 @@ def home(request):
for item in actifs:
if item.type == 'ACTION':
# get yahoo price
quote_price = getYahooQuote(item.symbole)
# get FT price
quote_price = getFTQuote(item.symbole)
if quote_price:
update_actif_valeur(request, item.symbole, quote_price['Close'])
time.sleep(2) # attendre 2 secondes