Main Menu

[RELEASE] LiqBot 0.1 (alpha)

Started by mauritso, May 05, 2016, 12:22:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Valentin | Lin9uxis

We have released a post on Steem about the LiqBot configuration https://steemit.com/bitshares/@linouxis9/liqbot-0. Please check it out if you do have any questions about the LiqBot's Configuration.

Enjoy!

Akado

#10
Quote from: ripplexiaoshan on May 05, 2016, 03:44:08 PM
amazing! but what happens if a lot of people are using the same bot strategy? are they competing or conflicting?

Users can change parameters like "allowed_spread_percentage" so as long as they're different they should compete instead of conflict.

Would be nice to collect data on the performance of the bot.

+5% for sharing it. Usually people have to pay for this kind of stuff. This is the kind of news that should go to bitshares.org so everyone could see. Assuming it's safe and profitable (even if by a little), service providers like OpenLedger, theDex, Maker, etc, could use it as incentive for their own markets.
[url="https://metaexchange.info"]https://metaexchange.info[/url] | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

xeroc


ripplexiaoshan

amazing! but what happens if a lot of people are using the same bot strategy? are they competing or conflicting? 
BTS committee member:jademont

ebit

telegram:ebit521
[url="https://weibo.com/ebiter"]https://weibo.com/ebiter[/url]

hcf27

 +5%

I have used this bot and I love it, its really simple to use....this is the kind of bot people pay for! the fact that you are offering it to the community as an open source project speaks really good about you guys.

We would be using this bot for BitARS for sure.

Thanks a lot!

mauritso

#5
Quote from: . on May 05, 2016, 01:15:17 PM
Interesting and potentially very useful to populate emerging markets,
could you please tell if LiqBot could work also @ Bitsquare ? http://bitsquare.io
It's a p2p decentralised Exchange offering Fiat Currency , BTC and ALT trading:
BTS is supported but has still no market offers; we should gain some exposure

It currently supports every market with BTS on the bitshares exchange. (So USD:BTS, CNY:BTS, other assets:BTS), it could be adapted to work with any pair on the bitshares exchange. So if you have an asset on bitshares this could be used.

EDIT:
Looked into Bitsquare a bit, this code won't work for that as it is a completely different platform.
BTS: maurits

.

Interesting and potentially very useful to populate emerging markets,
could you please tell if LiqBot could work also @ Bitsquare ? http://bitsquare.io
It's a p2p decentralised Exchange offering Fiat Currency , BTC and ALT trading:
BTS is supported but has still no market offers; we should gain some exposure


Chris4210

Wow cool. I always wanted my personal trading bot. This one looks very good. I will try it  +5% +5%
Vote Chris4210 for Committee Member [url="http://bit.ly/1WKC03B"]http://bit.ly/1WKC03B[/url]! | [url="//www.payger.com"]www.Payger.com[/url] - Payments + Messenger | [url="//www.bitshareshub.io"]www.BitShareshub.io[/url] - Community based fanpage for the BitShares Blockchain

mauritso

#1
This is the first (alpha) release of the bot I have been working on with @linouxis9, the goal was to make a bot that could provide liquidity in the markets that are going to be used by the Smartcoins Point Of Sale (POS) systems of bitshares-munich. I am hoping to get some bug reports/feedback from people that are interested and want to try it.

https://github.com/linouxis9/bitshares2-liquiditybots

Features:

  • Creates an account
  • Lends bitassets
  • Maintains collateral ratio (@xeroc 's work)
  • Places and watches orders replacing them when needed

This account is running the bot currently: http://cryptofresh.com/u/liquidity-bot-mauritso

How it looks on an almost empty market:

(The bot has almost no CAD in this graph)

Output:


Requirements:

  • General linux/unix knowledge (alpha stages)
  • docker
  • docker-compose

How to setup:

cli-wallet startup options in: ./cli-wallet-start.sh
bot config in: ./docker-exchangebot/exchangebot/config.py

  • git clone https://github.com/linouxis9/bitshares2-liquiditybots.git
  • Change the account name in the config (this account will be created on startup. You can also put in an existing wallet in ./wallet/ and set account to the account in the wallet.
  • Put a wallet_password in there.
  • Tweak the bot parameters to your liking, pay attention to borrow, if you don't want the bot to lend bit assets set it to False (and remove the MaintainCollateralRatio bot).
  • docker-compose up
  • send funds to the bot account
  • ctrl+c
  • docker-compose start
  • check the output with: docker-compose logs
What does the bot do?

The default config will create an account, tell you to send bts/funds to it and after a restart it start operating. It lends bit assets with the bts (this can be turned of in the config) and started placing/watching/replacing orders, as well as keeping the collateral ratio of the debt positions the bot made between certain bounds.

Strategy:

Currently the bot places a buy and sell order on each configured markets if it has enough funds to place an order. The orders are placed at a specified spread percentage. After placing the orders the bot continuously watches the orders and replaces them if they drift more than allowed_spread_percentage.

Example:
spread_percentage = 4
allowed_spread_percentage = 2

The bot will place orders at -2% (bids) and +2% (asks) and will replace those orders if they get outside the allowed_spread_percentage of 2. That means that the orders will be replaced at -3%/-1% (bids) and 1%/3% (asks).

Profitable?

The bot costs less than 3 bts a day to run.
Currently I have no real data about bot performance, because there isn't much happening on the markets.

Thanks to:
BTS: maurits