I have this script that pulls data from kaikos api and puts it in a pandas dataframe then writes to a csv. Sometimes the request data returns a continuation token this is then a