RE: scotbot: get account history api endpoint

avatar

You are viewing a single comment's thread:

Works like a charm!
I have setup on my desktop now but I had to add a "raw_input()" to the end of the script so it would not automatically close the terminal window at the completion of the script.

Are we able to pull data for more than a 7 day period?



0
0
0.000
4 comments
avatar

Yes you can get more than 7 days. I think all you have to do is edit this line (20)
"start_date = datetime.utcnow() - timedelta(days=7)". If you want e.g. 14 days you would change it to
"start_date = datetime.utcnow() - timedelta(days=14)".

0
0
0.000
avatar

When I try that it does not give me the correct outputs. When looking at the transaction history on SE explorer the script only seems to go back 9 days max. When I set it to 14 days the same output is given. Maybe a limitation of the api?

0
0
0.000
avatar
(Edited)

Yes I just checked and I have the same thing. Looks like a limitation of the api to me.
Edit: "The results include only rewards from the 12.08.2019."

0
0
0.000
avatar

Ahh, so I guess that is the zero day for our history through the api. I just tried and we are at 10 days available now, up one from yesterday.

0
0
0.000