Author Topic: Delegates Please Publish Feeds More Often  (Read 20100 times)

0 Members and 1 Guest are viewing this topic.

Offline amencon

  • Sr. Member
  • ****
  • Posts: 227
    • View Profile
Sounds simple enough, thanks for the direction.

Offline bytemaster

When attempting to write a market maker the slow movement of the feed can be difficult.

I would recommend the following:

if  REAL_PRICE < MEDIAN and YOUR_PRICE > MEDIAN publish price
if  you haven't published a price in the past 20 minutes
   if  REAL_PRICE > MEDIAN  and  YOUR_PRICE < MEDIAN and abs( YOUR_PRICE - REAL_PRICE ) / REAL_PRICE  > 0.005 publish price

The goal is to force the price down rapidly and allow it to creep up slowly.

By publishing prices more often it helps market makers maintain the peg and minimizes opportunity for shorts to sell USD below the peg that the market makers then have to absorb. 

If we can get updates flowing smoothly then we can gradually reduce the spread in the market maker bots. 

*note: all prices in USD per BTSX

When the price is rising don't publish more often than every 20 minutes...  I also reduced the publishing load if you are already above the median when the price is rising... republishing your price will not move the median so don't bother.

For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Wanted to pimp my script anyway .. gonna do what I can tomorrow evening and over the weekend .. thanks for giving a direction!

Offline bytemaster

When attempting to write a market maker the slow movement of the feed can be difficult.

I would recommend the following:

if  REAL_PRICE < MEDIAN and YOUR_PRICE > MEDIAN publish price
if  REAL_PRICE > MEDIAN  and  abs( YOUR_PRICE - REAL_PRICE ) / REAL_PRICE  > 0.005 publish price

The goal is to force the price down rapidly and allow it to creep up slowly.

By publishing prices more often it helps market makers maintain the peg and minimizes opportunity for shorts to sell USD below the peg that the market makers then have to absorb. 

If we can get updates flowing smoothly then we can gradually reduce the spread in the market maker bots. 

*note: all prices in USD per BTSX
For the latest updates checkout my blog: http://bytemaster.bitshares.org
Anything said on these forums does not constitute an intent to create a legal obligation or contract between myself and anyone else.   These are merely my opinions and I reserve the right to change them at any time.