And it works great. This issue did only become transparent with buy and sell side under close inspection.
The issue is not only related to the gateway function I created with NuBot, but also with orders that are completely filled.
It would really be great to make NuBot place orders anew if they are completely filled (even if the price doesn’t change) or filled to a threshold (which will make the change more complex).
Thank you for including it in the road map!
My understanding is that this is even more far away from the terms and the intention of the NuBot gateways.
But as @JordanLee didn’t request the NBT nor FLOT, they are still on my account and I can use them in the sell side gateway if the liquidity situation gets dire. At the moment there’s close to 30 BTC on sell side and over 30 BTC equivalent on buy side within the allowed spread:
That would mean the NBT end up at sell side while I receive BTC? What about this:
I read this as implicit agreement to short the buy side and the sell side gateway; or more clearly: to use the NBT traded by the buy side gateway and make them available for the sell side gateway without sending them to @JordanLee just to get them sent back to the NBT deposit address of my Poloniex account.
I really think that Nu needs to consider a combination of providing liquidity with funds owned by Nu and funds by liquidity providers who get compensated for that.
The disadvantage is exposure to exchange default etc. (we all know why we wanted to get rid of that).
But not having liquidity operations with funds owned by Nu leaves Nu with no direct way of steering liquidity volume.
The advantage of doing it is to have direct control over T1.
The compensation to incentivize providing liquidity needs some improvement, before it can be considered reliable.
Blocks & Chains Exchange will change the game completely, because it’s possible to provide liquidity with funds in Nu property with no bigger risk than holding them in multi sig addresses (which FLOT already does).
Meanwhile (before BCE is live and before the incentives to provide liquidity have been adjusted) it might not be the worst idea to provide a kind of “volume floor” on supported exchanges with Nu funded operations (not the compensation, but the funds). The floor just needs to be enough to keep the peg.
Or in one sentence: if there’s nobody providing liquidity at an officially supported exchange (for whatever reason), Nu should at least put [insert number here] USD value on each side.
But what’s the benefit of doing that instead of just using them on the sell side NuBot?
The drawbacks are the need to send (BTC) and receive (NBT) funds, changed exchange rates between sending and receiving funds, the need to trust one party (being trusted with Nu funds, I would require the NBT to be sent first - would @zoro trust receiving NBT from me after having sent the BTC?), etc.
I’m already feeling uncomfortable sitting on 10k worth of NBT on my Poloniex account and feeling an increased responsibility for the peg on Poloniex I literally watched Poloniex the last hours in short intervals.
Trading the funds instead of just putting them in orders is just too much for me without having a proper mandate for it. Just putting them there is bending the rules to some degree.
The terms of the buy and sell side gateways to which the NSR holders agreed to don’t deal with trading the funds. In fact the buy side gateway terms explicitly state that
Shorting that sending process (sending the NBT to FLOT or @JordanLee just to receive them back on the sell side gateway deposit address) by putting the NBT on sell side is as far as I dare to go and only because I read an implicit agreement of @JordanLee to that procedure.
Let me start with: (partly) done!
A detailed explanation follows.
And btw. - I’m very glad to be relieved from the NBT!
Unfortunately blockexplorer.nu is stuck again and I got worried not seeing the transaction although Poloniex reported it as sent. But I started with a withdrawal of 1 NBT to the FLOT multisig address so I didn’t worry too much.
What follow is probably off topic, please contact me in private if you think we go too much deep into details.
Wait, lets go through it.
The expected behaviour that I was able to test multiple times is this :
If the size of T1 wall is detected to be <10% of the full size of the wall (explicitly declared in config) for more than 4 minutes consecutevly, then the orders are reset
Are you saying that sell walls are not replenished ? not even after 5 minutes of being depleted?
The NuBot used here was configured for buy side only (by configuring sell side to “bookSellwall”: 0.0,). And that worked just fine.
The buy orders must have been replenished. All 25 BTC were traded for NBT without manual interaction (except for restarting NuBot to have the funds put into orders immediately).
Only I don’t know whether the threshold of 10% triggered that or a moving price.
At first sight the trade history on Poloniex doesn’t tell that either.
If you want, you can have the log of NuBot.
From my view everything went fine with the buy side gateway. But you have a PM regarding NuBot in general
edit: according to the most recent trades on Poloniex it’s a new day:
but my withdrawal limit hasn’t been reset. Maybe it takes 24 hours and not another day to reset it. Will keep an eye on it to send the rest (3,200.26 NBT) to BqyRzFtWXDmjxrYpyJD42MLE5xc8FrB4js.
edit2: the daily limit on Poloniex indeed has a 24 hour reset and is not based on calendar days. 3,200.26 NBT have been withdrawn to BqyRzFtWXDmjxrYpyJD42MLE5xc8FrB4js.
With this withdrawal all NBT that were traded from BTC by my buy side gateway have been sent to FLOT.
This turn is complete with this transaction.
The buy side is greater than the sell side in both NuLagoon and the overall network. We can buy 10,000 NBT from @JordanLee or @FLOT now. Please contact us. Thank you.
I propose to sell 10000 NBT to NuLagoon, at about 0.00234834 BTC each, which is the lowest ask on Poloniex at this moment.
The effective offset is less than 0.2% above 1USD, or about 0.25% above the highest bid (0.00234243). If @henry will deposit 23.4834 BTC to the FLOT BTC address 3QDWJ2yqJ5iTUg6cSpAwxx95ba3NG97hzG, a member of FLOT NBT group will propose a transaction to an address of @henry’s choosing, which may be published or privately told to FLOT.
FLOT BTC buy side shall refund NuLagoon if the transaction cannot gather the consensus of FLOT.
The justification of this transaction:
Tier 2 and 3 have about 20k more in sell side than buy side (getliquidityinfo)
This can be a case for which the NBT entry gateway was made for - if NBT need to be put on T1 at Poloniex and arranging a trade might take too long.
The deposit address is known to FLOT and @JordanLee.
I verified that it is running (by connecting to the session).
Anybody could verify it by looking at the broadcast liquidity information:
At the moment the liquidity situation at Poloniex looks fine. Was it corrected by @henry and @JordanLee in the background or did the market correct itself?
That’s why trying to balance from T4 will never work well.
I didn’t call for direct intervention by T4. For a good part of an hour Tier 1 sell side was basically 0. So I asked NuLagoon to balance it with Tier 3, and then FLOT to balance NuLagoon. By the time I’ve typed up all the above and sorted out some details, it went up to a more normal range. Now Tier 1 is pretty much balanced, though NuLagoon is not.
There was no other good way to swiftly deal with that situation apart from a responsive Tier 3, which is not available right now, whether it’s your gateway or NuLagoon. Luckily that situation didn’t end up threatening the peg, just wasted my time.