create account

How to use StellarBot, a free making market robot? by ety001

View this thread on: hive.blogpeakd.comecency.com
· @ety001 · (edited)
$53.81
How to use StellarBot, a free making market robot?
[StellarBot](https://stellarbot.top) is a free and [open source](https://github.com/ety001/stellar-bot) making market robot.

This tutorial will guide you through using this robot.

## Tutorial Start
**1.Open your stellar wallet and get your privatey key.**

![](https://steemitimages.com/DQme9xqh9UqYms6yvENKhbY9D8hBRna8YgP5WNT1vqwFCK6/image.png)

**2.Copy your private key and add it into your StellarBot config page (**ATTENTION:**: the robot won't send your private key to anywhere and anybody but save it in your browser.)**

![1.gif](https://steemitimages.com/DQmXQHFgyZMdnKviiYxQE6gmYh1RTwBJiZADRjUyt56nA45/1.gif)

When you see the public key and XLM balance, it means your configuration is successful.

**3.Add trustlines and assets which you 'll use to trade.**

![2.gif](https://steemitimages.com/DQmXe95PBdsZzM7oLy8xeiCQG8jzQBYLZoRTre15DbseGuQ/2.gif)

**4.Edit assets' amount you can hold**

![3.gif](https://steemitimages.com/DQmXcuusN7KeonS6dLroXm4SCRc8PxEZYMSXyq6hGa5ucgc/3.gif)

**5.Remove the trustline.(*Please empty the asset on the trustline and then remove the it*)**

![4.gif](https://steemitimages.com/DQmaU3fz5aQRJEd6CGaTDhDnf5bDPfALJYATNKuR6CbMMLd/4.gif)

**6.Add exchange pair. The robot will only work if the exchange pair is added.**

![5.gif](https://steemitimages.com/DQmW7h5csjntPex1CkdVNEig9S83d7UfKAHXYGdYoHeXT3c/5.gif)

**7.Config the exchange pair. This step is the most central step and the least understandable.**

![6.gif](https://steemitimages.com/DQmWLesd6BpxgSZzvkrUz66JZpW87c6AvR8UBqEt2teqQaK/6.gif)

When the robot is running, buying/selling orders will be made according to the parameters which configured in this step.

![123.png](https://steemitimages.com/DQmVYusikb6BzJgkRWsYCyBSasK8J5mARmmYSNXS9hLgxw3/123.png)

For example, in this snapshot I will explain how the robot works on the BTC/CNY pair.

*At this moment, BTC/XLM ask price is 41700 and CNY/XLM bid price is 0.823.*

First the robot will get the BTC/CNY price 40000, buying BTC rate 2% and buying order value 20 XLM.

> buying BTC order price = the highest buying BTC order price 40000 * ( 1 - buying BTC rate 2%) = 39200
>
> buying BTC order amount = buying order value 20 XLM  / (BTC/XLM ask price 41700)=  20 / 41700 = 0.0004796
>
> selling CNY amount = buying BTC order price * buying BTC amount = 39200 * 0.0004796 = 18.8000000

Since `selling CNY amount 18.8` is less than `CNY balance 1736.79`, and `BTC balance value 1.5894309` is less than `BTC MAX value 500`, the robot will place buying BTC order based on the calculation just made.

When the price grows than 40000, the robot will cancel current order and make a new buying order.

The calculation of making a selling order is similar to the process of making a buy order.

> selling BTC order price = the lowest buying CNY order price 200000 * ( 1 + buying CNY rate 2%) = 204000
> 
> selling BTC order amount = buying CNY value 20 XLM  / (CNY/XLM ask price 0.823) / (selling BTC order price 204000)=  20 / 0.823 / 204000 = 0.0001191
> 
> buying CNY amount = selling BTC order price * selling BTC amount = 204000 * 0.0001191 = 24.2964000

Since `BTC balance 0.0000391` is less than `selling BTC order amount 0.0001191`, the robot will not place selling BTC order.

**8.Remove the pair**

![7.gif](https://steemitimages.com/DQmYUv8eB1XRN1p3cVLAxmSwPHhfBqz3eVCt7SYpjqCtWbq/7.gif)

**9.Start the robot.**
* When the robot starts working, please keep browser opening and don't power off your computer.
* ***ATTENTION: Make sure that your computer will not be used by other people, because the private key stores in your brower!!!!***

![9.gif](https://steemitimages.com/DQmXAyV7P8uUJ71qRdK3tTRQKBjN5686r7goDNT5MRk6LJk/9.gif)

**10.You can check the orderbooks of some pairs at the bottom of the page.**

![8.gif](https://steemitimages.com/DQmNnn9QgGRqKe3T33amdXKu4vEHjUEetq5wmv9ERf786Hu/8.gif)


## Question

If you have any question, please feel free to add an issue on [Github](https://github.com/ety001/stellar-bot/issues) or email me work#domyself.me(change # to @).

You can also get in the [Telegram Group](https://t.me/joinchat/EGkaWhMSOna0dEKULvA8FA) for help.

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@ety001/how-to-use-stellarbot-a-free-making-market-robot">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , ,
properties (23)
authorety001
permlinkhow-to-use-stellarbot-a-free-making-market-robot
categoryutopian-io
json_metadata{"community":"utopian","app":"steemit/0.1","format":"markdown","repository":{"id":96456418,"name":"stellar-bot","full_name":"ety001/stellar-bot","html_url":"https://github.com/ety001/stellar-bot","fork":false,"owner":{"login":"ety001"}},"pullRequests":[],"platform":"github","type":"tutorials","tags":["utopian-io","cn","stellar-bot","cn-programming","programming"],"links":["https://stellarbot.top","https://github.com/ety001/stellar-bot","https://github.com/ety001/stellar-bot/issues","https://t.me/joinchat/EGkaWhMSOna0dEKULvA8FA","https://utopian.io/utopian-io/@ety001/how-to-use-stellarbot-a-free-making-market-robot"],"image":["https://steemitimages.com/DQme9xqh9UqYms6yvENKhbY9D8hBRna8YgP5WNT1vqwFCK6/image.png","https://steemitimages.com/DQmXQHFgyZMdnKviiYxQE6gmYh1RTwBJiZADRjUyt56nA45/1.gif","https://steemitimages.com/DQmXe95PBdsZzM7oLy8xeiCQG8jzQBYLZoRTre15DbseGuQ/2.gif","https://steemitimages.com/DQmXcuusN7KeonS6dLroXm4SCRc8PxEZYMSXyq6hGa5ucgc/3.gif","https://steemitimages.com/DQmaU3fz5aQRJEd6CGaTDhDnf5bDPfALJYATNKuR6CbMMLd/4.gif","https://steemitimages.com/DQmW7h5csjntPex1CkdVNEig9S83d7UfKAHXYGdYoHeXT3c/5.gif","https://steemitimages.com/DQmWLesd6BpxgSZzvkrUz66JZpW87c6AvR8UBqEt2teqQaK/6.gif","https://steemitimages.com/DQmVYusikb6BzJgkRWsYCyBSasK8J5mARmmYSNXS9hLgxw3/123.png","https://steemitimages.com/DQmYUv8eB1XRN1p3cVLAxmSwPHhfBqz3eVCt7SYpjqCtWbq/7.gif","https://steemitimages.com/DQmXAyV7P8uUJ71qRdK3tTRQKBjN5686r7goDNT5MRk6LJk/9.gif","https://steemitimages.com/DQmNnn9QgGRqKe3T33amdXKu4vEHjUEetq5wmv9ERf786Hu/8.gif"],"moderator":{"account":"roj","time":"2018-03-18T14:27:42.750Z","flagged":true,"reviewed":false,"pending":false},"questions":[],"score":null}
created2018-03-18 12:49:33
last_update2018-03-20 07:24:39
depth0
children3
last_payout2018-03-25 12:49:33
cashout_time1969-12-31 23:59:59
total_payout_value37.637 HBD
curator_payout_value16.168 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,319
author_reputation57,395,188,397,494
root_title"How to use StellarBot, a free making market robot?"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id45,133,628
net_rshares19,533,497,062,460
author_curate_reward""
vote details (18)
@jiyaur ·
wow very nice post
👍  
properties (23)
authorjiyaur
permlinkre-ety001-how-to-use-stellarbot-a-free-making-market-robot-20180319t012121841z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-03-19 01:21:33
last_update2018-03-19 01:21:33
depth1
children0
last_payout2018-03-26 01:21: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_length18
author_reputation42,728,911,886
root_title"How to use StellarBot, a free making market robot?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id45,241,533
net_rshares116,549,993
author_curate_reward""
vote details (1)
@maiyude ·
强大的机器人!
properties (22)
authormaiyude
permlinkre-ety001-how-to-use-stellarbot-a-free-making-market-robot-20180318t165904955z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.4.0"}
created2018-03-18 16:59:06
last_update2018-03-18 16:59:06
depth1
children0
last_payout2018-03-25 16:59:06
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_length7
author_reputation8,970,701,360,387
root_title"How to use StellarBot, a free making market robot?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id45,174,153
net_rshares0
@roj ·
Your contribution cannot be approved because it does not follow the [Utopian Rules](https://utopian.io/rules).

- Submissions presenting content creation and simple on-screen instruction will be rejected.


You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorroj
permlinkre-ety001-how-to-use-stellarbot-a-free-making-market-robot-20180318t142849545z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-03-18 14:28:51
last_update2018-03-18 14:28:51
depth1
children0
last_payout2018-03-25 14:28: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_length324
author_reputation12,636,295,215,793
root_title"How to use StellarBot, a free making market robot?"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id45,149,431
net_rshares0