You are viewing a single comment's thread from:

RE: Issue with Account History params

in #utopian-io6 years ago

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.11
JST 0.032
BTC 64579.45
ETH 3101.05
USDT 1.00
SBD 3.83