create account

Use beempy to access the internal HIVE/HBD market by holger80

View this thread on: hive.blogpeakd.comecency.com
· @holger80 ·
$67.04
Use beempy to access the internal HIVE/HBD market
![image.png](https://files.peakd.com/file/peakd-hive/holger80/Vun5k1Ut-image.png)
[source](https://pixabay.com/de/photos/%C3%A4pfel-bauernmarkt-gesch%C3%A4ft-kaufen-1841132/)
Although not visible, the internal market is already working and HBD can be exchanged for HIVE.

## Prepare beempy
You need to have an up to date [beem](https://github.com/holgern/beem) version 0.22.8
```
beempy updatenodes --hive
beempy currentnode
```
should return now
```
+----------+-----------------------+
| Key      | Value                 |
+----------+-----------------------+
| Node-Url | https://api.hive.blog |
| Version  | 0.23.0                |
| HIVE     | True                  |
+----------+-----------------------+
```

## Check the orderbook
```
beempy orderbook --chart
```
```                                                                              
            Orderbook

    1701.93 $  ┼
    1595.59 $  ┼╮
    1489.25 $  ┤╰─╮                      ┊
    1382.90 $  ┤  ╰─╮                    ┊               ╭───────
    1276.56 $  ┤    ╰╮                   ┊          ╭────╯
    1170.22 $  ┤     ╰───╮               ┊         ╭╯
    1063.87 $  ┤         ╰╮              ┊         │
     957.53 $  ┤          │              ┊         │
     851.19 $  ┤          │              ┊       ╭─╯
     744.84 $  ┤          │              ┊       │
     638.50 $  ┤          │              ┊     ╭─╯
     532.16 $  ┤          │              ┊    ╭╯
     425.81 $  ┤          ╰─────╮        ┊    │
     319.47 $  ┤                ╰────╮   ┊   ╭╯
     213.12 $  ┤                     ╰─╮ ┊   │
     106.78 $  ┤                       ╰╮┊   │
       0.44 $  ┤                        ╰────╯
```

and 
```
 beempy tradehistory
```
returns the last trades as plot
```
     Trade history 2020-03-17T20:26:22 - 2020-03-24T20:26:22

HIVE/HBD
  0.32  ┤
  0.31  ┤                 ╭╮
  0.30  ┤                 │╰╮
  0.29  ┤                ╭╯ │
  0.28  ┤                │  ╰╮
  0.27  ┤                │   │       ╭╮ ╭─
  0.26  ┤             ╭╮╭╯   │╭──╮  ╭╯│ │
  0.26  ┤             │││    ││  ╰╮ │ ╰─╯
  0.25  ┤            ╭╯╰╯    ╰╯   ╰─╯
  0.24  ┤        ╭╮ ╭╯
  0.23  ┤        ││╭╯
  0.22  ┤        │╰╯
  0.21  ┤        │
  0.20  ┤        │
  0.19  ┤        │
  0.18  ┤       ╭╯
  0.17  ┼───────╯
```
a short info can be obtained by
```
beempy ticker
```
```
+----------------+-------------------+
| Key            | Value             |
+----------------+-------------------+
| highest_bid    | 0.253913 HIVE/HBD |
| latest         | 0.300000 HIVE/HBD |
| lowest_ask     | 0.253994 HIVE/HBD |
| percent_change | 0.00 %            |
| sbd_volume     | 199.189 HBD       |
| steem_volume   | 765.713 HIVE      |
+----------------+-------------------+
```

## Let's trade some HBD for HIVE
First we should check our balance:
```
beempy balance holger80
```
and then start to sell 1 HBD
```
beempy sell -a holger80 1 HBD
```
I'm now asked if the price is ok:
```
Is the following Price ok: 0.253913 HBD/HIVE [y/n]:
```
and should then enter my active wif:
```
Password to unlock wallet or posting/active wif:
```
I see then the broadcasted op:
```
Wif accepted!
{
    "expiration": "2020-03-24T20:34:03",
    "ref_block_num": 63124,
    "ref_block_prefix": 2805668693,
    "operations": [
        [
            "limit_order_create",
            {
                "owner": "holger80",
                "orderid": 3815817900,
                "amount_to_sell": "1.000 HBD",
                "min_to_receive": "3.938 HIVE",
                "fill_or_kill": false,
                "expiration": "2020-03-31T20:33:33"
            }
        ]
    ],
    "extensions": [],
    "signatures": [
        "206b30dd79130814b9f14468c573fd9154020148e43481f810343964b93bcf8c1865927d49d1e3b521ff9a2af12bd5461c2edee220b64f59108c04413c3b88cbb0"
    ]
}
```
and can check my open orders:
```
beempy openorders holger80 
```

```
+------------+---------------------+------------------------------------------+----------+
|    Orderid |             Created |                                    Order |  Account |
+------------+---------------------+------------------------------------------+----------+
| 3815817900 | 2020-03-24T20:33:33 | 3.938 HIVE 1.000 HBD @ 0.253936 HBD/HIVE | holger80 |
+------------+---------------------+------------------------------------------+----------+
```
## Cancel open orders
I can cancel my order by
```
beempy cancel -a 3815817900 
```

Instead of selling 1 HBD, I can also buy 1 HIVE by
```
beempy buy -a holger80 1 HIVE
```
after checking the price and entering my wif, the order is placed.

## Using the orderbook to fulfill orders
Let's check the first 5 orders:
```
beempy orderbook -l 5
```
```
+--------------+----------------------------------------------+--------------+-------------------------------------------+
| Asks Sum HBD |                                  Sell Orders | Bids Sum HBD |                                Buy Orders |
+--------------+----------------------------------------------+--------------+-------------------------------------------+
|        66.15 |  260.432 HIVE 66.148 HBD @ 0.253993 HBD/HIVE |         0.44 |  1.725 HIVE 0.438 HBD @ 0.253913 HBD/HIVE |
|       240.43 | 637.769 HIVE 174.284 HBD @ 0.273271 HBD/HIVE |         0.70 |  1.032 HIVE 0.262 HBD @ 0.253876 HBD/HIVE |
|       267.93 |  100.000 HIVE 27.500 HBD @ 0.275000 HBD/HIVE |         0.91 |  0.842 HIVE 0.211 HBD @ 0.250594 HBD/HIVE |
|       283.93 |   53.344 HIVE 16.002 HBD @ 0.299978 HBD/HIVE |         0.91 |  0.004 HIVE 0.001 HBD @ 0.250000 HBD/HIVE |
|       296.29 |   41.191 HIVE 12.357 HBD @ 0.299993 HBD/HIVE |         6.64 | 23.778 HIVE 5.731 HBD @ 0.241021 HBD/HIVE |
+--------------+----------------------------------------------+--------------+-------------------------------------------+
```
I can now sell 1 HBD @ 0.253993 HBD/HIVE as shown in the Asks column and the order should be fulfilled without waiting. Let's try:
```
 beempy sell -a holger80 1 HBD 0.253993
```
This time, I can enter the wif without asking for the price. The orderbook is empty this time:
```
beempy openorders  holger80 
```
```
+---------+---------+-------+---------+
| Orderid | Created | Order | Account |
+---------+---------+-------+---------+
+---------+---------+-------+---------+
```
The blockexplorer shows that my order was fulfilled:
![image.png](https://files.peakd.com/file/peakd-hive/holger80/FpiIlfLa-image.png)

I hope this help as long as the internal market has no interface.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 494 others
properties (23)
authorholger80
permlinkuse-beempy-to-access-the-internal-hive-hbd-market
categoryhive
json_metadata{"app":"peakd/2020.03.10","format":"markdown","tags":["hive","beem","market","hbd"],"links":["https://pixabay.com/de/photos/%C3%A4pfel-bauernmarkt-gesch%C3%A4ft-kaufen-1841132/","https://github.com/holgern/beem"],"image":["https://files.peakd.com/file/peakd-hive/holger80/Vun5k1Ut-image.png","https://files.peakd.com/file/peakd-hive/holger80/FpiIlfLa-image.png"]}
created2020-03-24 20:57:21
last_update2020-03-24 20:57:21
depth0
children9
last_payout2020-03-31 20:57:21
cashout_time1969-12-31 23:59:59
total_payout_value33.966 HBD
curator_payout_value33.075 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length6,485
author_reputation358,857,509,568,825
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,184
net_rshares160,081,227,198,901
author_curate_reward""
vote details (558)
@gexi ·
Finds großartig was du beem(py) leistest, danke für die Arbeit die du da reingesteck hast!
properties (22)
authorgexi
permlinkq7qwfg
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2020-03-25 10:42:54
last_update2020-03-25 10:42:54
depth1
children0
last_payout2020-04-01 10:42:54
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_length90
author_reputation2,071,037,581,586
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,574,080
net_rshares0
@maxsieg ·
![steemtrade.png](https://files.peakd.com/file/peakd-hive/maxsieg/g6vkgX9o-steemtrade.png)
but there is an interface by @mahdiyari
https://wallet.mahdiyari.info/market
its just been widely ignored...
properties (22)
authormaxsieg
permlinkre-holger80-q7pvja
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.12"}
created2020-03-24 21:26:00
last_update2020-03-24 21:26:00
depth1
children4
last_payout2020-03-31 21:26:00
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_length199
author_reputation4,035,631,210,399
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,394
net_rshares0
@stupid ·
Isn't that STEEM/SBD?
properties (22)
authorstupid
permlinkre-maxsieg-q7pxdz
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.12"}
created2020-03-24 22:06:03
last_update2020-03-24 22:06:03
depth2
children3
last_payout2020-03-31 22:06:03
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_reputation20,051,924,899,809
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,772
net_rshares0
@donchate ·
Its a clone/fork of the original Steemit interface
properties (22)
authordonchate
permlinkq7tnfh
categoryhive
json_metadata{"app":"hiveblog/0.1"}
created2020-03-26 22:21:18
last_update2020-03-26 22:21:18
depth3
children0
last_payout2020-04-02 22:21:18
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_length50
author_reputation956,784,034,700
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,593,329
net_rshares0
@maxsieg ·
nope dont be fooled by those words. this is hive :D
properties (22)
authormaxsieg
permlinkre-stupid-q7pxm2
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.12"}
created2020-03-24 22:10:51
last_update2020-03-24 22:10:51
depth3
children1
last_payout2020-03-31 22:10:51
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_length51
author_reputation4,035,631,210,399
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,811
net_rshares0
@steemstem ·
re-holger80-use-beempy-to-access-the-internal-hive-hbd-market-20200327t011456900z
<div class='text-justify'> <div class='pull-left'> <img width='120' src='https://res.cloudinary.com/drrz8xekm/image/upload/v1553698283/weenlqbrqvvczjy6dayw.jpg'> </div>
This post has been voted on by the <b>HiveSTEM curation team</b> and voting trail. It is elligible for support from @curie and @minnowbooster.

If you appreciate the work we are doing, then consider supporting our witness [@stem.witness](https://hivesigner.com/sign/account_witness_vote?approve=1&witness=stem.witness). Additional witness support to the [curie witness](https://hivesigner.com/sign/account_witness_vote?approve=1&witness=curie) would be appreciated as well.

For additional information please join us on the [SteemSTEM discord]( https://discord.gg/BPARaqn) and to get to know the rest of the community!

Please consider using the <a href='https://stem.openhive.network'>stem.openhive.network</a> app and including @steemstem as a beneficiary of this post. This could yield a stronger support.
properties (22)
authorsteemstem
permlinkre-holger80-use-beempy-to-access-the-internal-hive-hbd-market-20200327t011456900z
categoryhive
json_metadata{"app":"steemstem"}
created2020-03-27 01:14:57
last_update2020-03-27 01:14:57
depth1
children0
last_payout2020-04-03 01:14:57
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_length977
author_reputation262,017,435,115,313
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,594,888
net_rshares0
@stupid ·
I wonder how come there is so much of trade volume without even a friendly interface!
properties (22)
authorstupid
permlinkre-holger80-q7pxgi
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.12"}
created2020-03-24 22:07:33
last_update2020-03-24 22:07:33
depth1
children1
last_payout2020-03-31 22:07: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_length85
author_reputation20,051,924,899,809
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,786
net_rshares0
@stupid ·
Okay gotcha! All existing market orders on Steem internal market exist for Hive/HBD market too. I thought I missed the HBD airdrop for my SBD lying in the internal market. Thankfully, I found it here :) 
properties (22)
authorstupid
permlinkre-stupid-q7pybp
categoryhive
json_metadata{"tags":["hive"],"app":"peakd/2020.03.12"}
created2020-03-24 22:26:18
last_update2020-03-24 22:26:18
depth2
children0
last_payout2020-03-31 22:26:18
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_length203
author_reputation20,051,924,899,809
root_title"Use beempy to access the internal HIVE/HBD market"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,568,962
net_rshares0