Hello,
I've had problems for obtaining step-by-step displacements for time history analysis (and also other people has struggled with that: https://www.eng-tips.com/viewthread.cfm?qid=457375)
Following OAPI documentation, normal code (in python) would be something like...