create account

RE: Developers Guide to Steem's Blockchain by furion

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @smooth/re-furion-developers-guide-to-steem-s-blockchain-20160801t134419900z

· @furion · (edited)
$0.05
Ok, I tried exchanging $0.26 SBD into steem and back, and this is the only thing I got from the blockchain:

Buying Steem:
```
=====> limit_order_create
{'amount_to_sell': '0.286 SBD',
 'expiration': '1969-12-31T23:59:59',
 'fill_or_kill': False,
 'min_to_receive': '0.100 STEEM',
 'orderid': 1470060094,
 'owner': 'furion'}
```

Selling Steem:
```
=====> limit_order_create
{'amount_to_sell': '0.100 STEEM',
 'expiration': '1969-12-31T23:59:59',
 'fill_or_kill': False,
 'min_to_receive': '0.274 SBD',
 'orderid': 1470060340,
 'owner': 'furion'}
```

So I dug deeper, and I found out, that `steemd` does not handle exchange data.

To get the exchange data, one needs to to interact with `cli_wallet`'s RPC, not the `steemd`. 
If you use [python-steemlib](https://github.com/xeroc/python-steemlib), the trade history can be obtained like so:
```
class Config():
                wallet_host           = "localhost"
                wallet_port           = 8091
                witness_url           = "wss://steemit.com/wstmp2"
                account = "smooth"

wallet_rpc = SteemExchange(Config)
wallet_rpc.returnTradeHistory()
```
πŸ‘  ,
properties (23)
authorfurion
permlinkre-smooth-re-furion-developers-guide-to-steem-s-blockchain-20160801t141630034z
categorysteem
json_metadata{"tags":["steem"],"links":["https://github.com/xeroc/python-steemlib"]}
created2016-08-01 14:16:30
last_update2016-08-01 14:16:45
depth2
children3
last_payout2016-09-01 04:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.038 HBD
curator_payout_value0.009 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,132
author_reputation116,503,940,714,958
root_title"Developers Guide to Steem's Blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id535,315
net_rshares70,203,681,963
author_curate_reward""
vote details (2)
@meteor78 ·
πŸ‘nice article @furion
πŸ‘  
properties (23)
authormeteor78
permlinkre-furion-re-smooth-re-furion-developers-guide-to-steem-s-blockchain-20160801t183153738z
categorysteem
json_metadata{"tags":["steem"],"users":["furion"]}
created2016-08-01 18:31:57
last_update2016-08-01 18:31:57
depth3
children0
last_payout2016-09-01 04:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation184,361,553,890
root_title"Developers Guide to Steem's Blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id541,270
net_rshares0
author_curate_reward""
vote details (1)
@theoretical ·
Check the get_account_history for your account instead of using get_block and you will see virtual ops for filled orders.
properties (22)
authortheoretical
permlinkre-furion-re-smooth-re-furion-developers-guide-to-steem-s-blockchain-20160801t185430888z
categorysteem
json_metadata{"tags":["steem"]}
created2016-08-01 18:54:30
last_update2016-08-01 18:54:30
depth3
children1
last_payout2016-09-01 04:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length121
author_reputation30,164,760,525,645
root_title"Developers Guide to Steem's Blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id541,733
net_rshares0
@smooth · (edited)
How do you get _market_ execution history (not for a specific account)?

It is impossible to do any meaningful analysis of trading activity without that.
properties (22)
authorsmooth
permlinkre-theoretical-re-furion-re-smooth-re-furion-developers-guide-to-steem-s-blockchain-20160801t212300700z
categorysteem
json_metadata{"tags":["steem"]}
created2016-08-01 21:23:00
last_update2016-08-01 21:27:03
depth4
children0
last_payout2016-09-01 04:57:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length153
author_reputation260,342,945,372,716
root_title"Developers Guide to Steem's Blockchain"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id545,377
net_rshares0