import time
import pandas as pd
while True:
df = pd.read_json('https://forex.1forge.com/1.0.3/quotes?pairs=EURUSD,EURJPY,GBPUSD,USDCAD,GBPJPY,USDJPY,AUDUSD,&api_key=KEY')
df = df.pivot_table(['price'], ['timestamp'], 'symbol')
print (df)
time.sleep(60)
Is there a simply way to, instead of the update happening every 60seconds with the sleep function, be exactly on the minute? Also, the pivot_table function sets the symbol pairs as the columns and has the index or rows set at time which is what i want to have happen, but now, when the next row is added (after the sleep 60) there is still the column names. Rather, i would like to have the appending row be under the subsequent row and not the columns title.