You are viewing a single comment's thread from:

RE: Issue with Account History params

in #utopian-io7 years ago

it seems, that in my case the api returns always the first entry (account create) no matter what from i set. except if i set from = -1 it returns the last entry. And it seem to return not more then 30 entries no matter if i set a limit greater then 30. so i have no chance to query all entries for a given account. Do others have the same problem?

Sort:  

with phyton api this seem to work now:

# first install this:
#sudo apt-get install libssl-dev
#sudo pip install -U steem 

# if default api node not functioning use this node (use command line)
#steempy set nodes https://rpc.buildteam.io


from steem.account import Account
a = Account("arcurus")
for op in a.history(filter_by=['fill_order']):
    str
    if op['open_owner'] == 'arcurus':
            #print(op['open_owner'] + '; ' + op['current_pays'] + '; ' + op['open_pays'] + '; ' + op['timestamp']+ ';')
        str = 'Trade; ' + op['current_pays'] + '; ' + op['open_pays'] + '; ' + op['timestamp'].replace('T',  ' ') + ';'
    else:
            str = 'Trade; ' + op['open_pays'] + '; ' + op['current_pays'] + '; ' + op['timestamp'].replace('T',  ' ') + ';'
    print(str.replace(' SBD',  '; SBD').replace(' STEEM',  '; STEEM'));```

Coin Marketplace

STEEM 0.27
TRX 0.21
JST 0.039
BTC 96426.76
ETH 3711.13
USDT 1.00
SBD 3.91