BitShares Forum

Main => General Discussion => Topic started by: xeroc on May 28, 2016, 09:46:43 am

Title: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: xeroc on May 28, 2016, 09:46:43 am
I am proud to now publicly announce the first release of StakeMachine.
What is it?

It is a Python tool that offers:

    a unified framework for writing bots for the DEX
    a simple market making strategy
    the liquidity-providing strategy developed by @mauritso
    more strategies to come soon.

Simple Market Making

A simple market making strategy (i.e. providing liquidity) works as follows:

    Get the last price for your market
    Place a buy order at last price * 95%
    Place a sell order at last price * 105%
    Wait for any of the two orders to get filled
    Cancel the other order
    Go to 1.

This strategy is very simple and tries to makes a profit from the spread. The more volatile a market is, the more profit it will (probably) make you.

More on Steem:
https://steemit.com/bitshares/@xeroc/stakemachine-trading-infrastructure-and-simple-market-making-bot-for-bitshares--opensource-bot-for-bitshares
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: infovortice2013 on May 28, 2016, 11:54:35 am
thanks Xeroc,,

how much liquidity is needed to run such bot and not go to bankrupt , an stimation, i really have no idea to use this bots market makers but for btc heard need about 50 btc to run them properly.
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: pc on May 28, 2016, 12:23:29 pm
This strategy is very simple and makes a profit from the spread.

If I were you I'd avoid such statements, and instead put big fat disclaimers all over the place...
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: xeroc on May 28, 2016, 01:42:40 pm
This strategy is very simple and makes a profit from the spread.

If I were you I'd avoid such statements, and instead put big fat disclaimers all over the place...
Thanks for the warning .. there is a big fat disclaimer in the readme .. i'll update the op ..
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: xeroc on May 28, 2016, 01:44:54 pm


thanks Xeroc,,

how much liquidity is needed to run such bot and not go to bankrupt , an stimation, i really have no idea to use this bots market makers but for btc heard need about 50 btc to run them properly.

I cant answer that question as i am not a trader .. my estimations were thar you could run it already with 10 bucks ..
i will add another strategy that does more moth and is easier to explain (portfolio rebalancing)
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: ebit on May 28, 2016, 01:56:43 pm
Very exciting!
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: ElMato on June 01, 2016, 07:40:07 am
+5% will try it out

Sent from my XT1063 using Tapatalk

Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: renkcub on October 17, 2017, 12:33:58 am
Hello!
Is anyone using this actively? If not, where is all the Dex volume these days coming from, besides BTSBOTS?

I would like to use StakeMachine, but it seems to be missing some basic functionality.

For example, say I am running BTS:BitUSD, and the bot runs out of BitUSD due to buying BTS, it does not wait to sell some back and continue firing BTS sell orders. Instead, it gives an error (about insufficient BitUSD balance) and shuts down.

Seems like a design oversight.

Has anyone fixed up or used this bot lately?

Or are people running other bots?

I'm wondering where all the new volume has come from last 6 months. Doubt it's from this bot.
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: Methodise on October 17, 2017, 07:17:13 pm
I'm back on the case with StakeMachine. I'll let you know when I come up with a solution to your specific problem.
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: renkcub on October 18, 2017, 02:52:52 am
I'm back on the case with StakeMachine. I'll let you know when I come up with a solution to your specific problem.

Excellent!
Title: Re: [StakeMachine] Trading infrastructure and simple market making bot for Bitshares
Post by: Methodise on October 22, 2017, 02:03:09 am
https://github.com/xeroc/stakemachine/issues/15