Author Topic: [RELEASE] LiqBot 0.1 (alpha)  (Read 4750 times)

0 Members and 1 Guest are viewing this topic.

Offline 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!

Offline Akado

  • Hero Member
  • *****
  • Posts: 2752
    • View Profile
  • BitShares: akado
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.
« Last Edit: May 05, 2016, 06:53:42 pm by Akado »
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
wow .. impressive work!!!

Offline ripplexiaoshan

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 2300
    • View Profile
  • BitShares: jademont
amazing! but what happens if a lot of people are using the same bot strategy? are they competing or conflicting? 
BTS committee member:jademont

Offline ebit

  • Committee member
  • Hero Member
  • *
  • Posts: 1911
    • View Profile
  • BitShares: ebit
telegram:ebit521
https://weibo.com/ebiter

Offline hcf27

  • Full Member
  • ***
  • Posts: 116
    • View Profile
  • BitShares: 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!

Offline mauritso

  • Full Member
  • ***
  • Posts: 64
    • View Profile
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.
« Last Edit: May 05, 2016, 01:23:39 pm by mauritso »
BTS: maurits

Offline .

  • Newbie
  • *
  • Posts: 19
    • View Profile
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

Offline Valentin | Lin9uxis


Offline Chris4210

  • Sr. Member
  • ****
  • Posts: 431
  • Keep Building!
    • View Profile
    • www.payger.com
  • BitShares: 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 http://bit.ly/1WKC03B! | www.Payger.com - Payments + Messenger | www.BitShareshub.io - Community based fanpage for the BitShares Blockchain

Offline mauritso

  • Full Member
  • ***
  • Posts: 64
    • View Profile
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:
« Last Edit: May 05, 2016, 01:24:24 pm by mauritso »
BTS: maurits