get quote price
This commit is contained in:
@@ -111,10 +111,8 @@ def home(request):
|
||||
for item in actifs:
|
||||
if item.type == 'ACTION':
|
||||
# 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
|
||||
update_actif_valeur(request, item.symbole, getFTQuote(item.symbole))
|
||||
time.sleep(2) # attendre 2 secondes
|
||||
|
||||
# update du portefeuille
|
||||
update_portefeuille(request, logged_in)
|
||||
|
||||
Reference in New Issue
Block a user