Steem engine trading bot

in #steem-engine5 years ago (edited)

Hey y'all, haven't blogged in a while, been busy with coding, working and whatnot. I've learnt to code in the meantime and have published several scripts that many of you may find useful. In this post we'll be taking a look at my latest release, which is steem-engine trading bot.
You can find the bot at:
https://github.com/uspikk/longshort
You can also go to my github and use whatever you see or find useful.
Now this robot will:
*trade your coins for you
*provide market liquidity
*if the market moves, provide you with a set return

This bot will not:
*predict the market
*guarantee you returns

this bot has two inbuilt trading features and two side features that are useful.
The first feature is long:
the long feature will buy a steem-engine coin from the market and resell said coin for a higher price.
long.png
(sorry for potato)
As you can see in the picture, the robot buys 0.53393986 WEED token for 0.06298999 STEEMP then resells the same ammount of WEED for 5% higher price. If someone comes along and buys the token for the higher price, then the bot makes profit.

The second feature is short:
the short feature will sell a steem-engine coin to the highest bidder, then buys back the same coin for a cheaper price, thus getting more tokens
short.png
(sorry for potato)

The third feature is bundling orders:
If the bot creates a order that has the matching price of an old order, it will bundle those orders togheter. Meaning it will cancel old orders and generate a new bigger order.
bundle.png

The fourth feature is renewing all orders after x cycles:
If you publish a order on steem engine it doesn't stay there forever and will expire a month after creating the order. So to mitigate that I have coded a feature to renew all orders on the coins that the bot is trading on. This is a configurable feature that the user can configure in the config.js file.
config.png

Now this was a quick overview of my trading bot, you can find all the installion notes on github and if you have any more questions, you can ask them in the comments below. I hope to create many more useful bots for the steem ecosystem in the times to come. Have a good day!

Sort:  

Noice! Might need something like that in near future :) @tipu curate

Was just checking on SE to see who is suppressing the price of ENG (probs the guys who mine it) and saw your trading bot in full action. Noice work!

How does your bot handle loss? In a scenario, where you have bought X for Y, but before you manage to sell it for Y+1, the price drops rapidly much lower. Will it sell the tokens for loss or hold the higher selling price?

The orders will stay up indefinitely, since the bot renews all orders. if the price falls the bot will create orders all the way down. It'll stay at a loss until the orders get filled. However i only use the long feature on coins that have potential to move upwards and I use the short feature on all the coins that I mine with my miners(or in game currency that I earn from various steem games). So on many markets I make money if the coin goes up or down, doesn't matter really.

I'm not a trader but i will check this out!

Leave some feedback when you do.

This is pretty interesting. Steem-engine suffers greatly from low liquidity. I think it's worth trying it in practice.


@ubg progemas

Shame that I didn't see your post yesterday. That's fucking awesome my man. You've advanced fast in coding, continue in the same pace!

^_^

Is that..... The labyrinth wurm?!?!?

I have created a standalone renew script on my github and also a bundler(not yet on my github) Im already planning to update this script to have short to long and long to short features with database(basically rewriting the entire script).

Happy to see you making sick things mate, cant wait for your future bots/scripts or why not even more advanced one on this.

Congratulations @ubg! You received a personal award!

Thank you for the witness votes you made to support your Steem community and for keeping the Steem blockchain decentralized

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Congratulations @ubg! You received a personal award!

Look's like you do not like Justin. Did you really downvote him?

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

Use your witness votes and get the Community Badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 98129.50
ETH 3322.67
USDT 1.00
SBD 3.05