Current Liquidity

8 connections. but i don’t think it matters. if it takes more than 15min to propagate liquidity, we have trouble with nu network.

My ALix nud has around 50 connections, so I suspect that the majority of liquidity providers are directly connected to it.
It might have a time plus. I’m not sure.

I had two nud’'s running. one in N America and one in Asia. They both had 8 connections and agreed with each other well.

I have three running in central Europe, also all agreeing with each other.

Can I get some advice on how to calculate, please? Do we have any neat way I can know how much is required where to balance everything?

I want to refill or balance zoro’s and Cybnate’s dual-side gateways at Poloniex. Only balancing should be my concern unless I want to increase the amount, right? How much do gateway operations cost/profit Nu in trades (excluding operator fees)?

Is there any limits or thresholds set as rules or guidelines for gateways about how much should be kept on them respectively?

Because my math skills are fleeting, I’ll publish my calculations for verification.

Balance zoro’s Poloniex gateway

(rounded)
Buy side: 0
Sell side: 27146

27146 / 2 = 13573
13573 USD = 29.31768 BTC

Send: 29.31 BTC
Receive: 13573 US-NBT

That was easy. What about when there is still some on both sides …

Practise

Buy side: 7533
Sell side: 17529

17529 - 7533 = 9996
9996 / 2 = 4998
4998 USD = 10.79568 BTC

Send: 10.79 BTC
Receive: 4998 US-NBT

Correct?


We only have ≈13.20 BTC in FLOT BTC Multisig #2.

I was being very pragmatic about it and heading to a 50/50 balancing of @zoro’s gateway account, because the bid side was lower than the ask side network wide.
I initiated a deposit of 29 BTC; 13.2 BTC from FLOT, 15.8 BTC from JordanLee:

@zoro already withdrew 13,500 NBT

I didn’t consider @Cybnate’s gateway. Shame on me.
Balancing is more straight-forward than increasing or lowering the amount, right.

That will require a bit of diligence to find out.
Basically you have to sum up all deposits/withdrawals and their respective USD value and compare it with the current account balance.
As @zoro’s and my gateway operate at a big offset, you can safely assume that they rather make Nu money when funds get traded there - unless the NuBot is stuck and the orders can’t be moved. In that case the gain will be reduced and worst case Nu makes s slight loss.
The only vector for ongoing loss in gateway operation/trading is the volatility risk combined with the hedging - as long as Poloniex doesn’t default or the funds get lost in another way.

As the gateways are an important line of defence that kicks in after ALP and NuLagoon failed, I recommend to keep at least $20k on each side. I can’t give you an algorithm how to calculate that number. It’s what my gut feeling tells me.
Do you remember what a pain the permanent balancing was when NuPool failed (LP pulled funds), NuLagoon didn’t have sufficient funds there and all that kept the peg was a pair of NuBots trading at a too small spread?
I speak of early this year.
The NuBots I operated had way more than $20k each side and it was still hard to prevent sides from running dry during the BTC swings.

I guess with an offset of above 1.5% and a funding of $20k each side, a bot operation on Poloniex is well suited to provide a viable line of defence.

Looks reasonable.

1 Like

I won’t beg for it :slight_smile: It is there anyway. But FLOT may consider adding some buy side to my gateway. Even though it is on 0.7% offset on either side I still made 200 NBT in the last 6 weeks or so. Bot is stable now. My Nu wallet issues have been resolved. Only the odd known PyBot glitch which resolves itself automatically within 15 minutes.

1 Like

What about $2,000 in BTC to your Poloniex account in exchange of 2,000 NBT?
The current liquidity situation network wide does rather have an overweight on buy side, but the gateways on Poloniex look poorly funded on the buy side:

Mon Apr 25 20:13:08 UTC 2016
###
status of the gateways in total:
bid total 1230 USD, bid side ratio 6%
ask total 17670 USD, ask side ratio 93%

This output includes the PyBot funds from Bittrex!

Bot status Poloniex only:

Mon Apr 25 20:23:32 UTC 2016
status of mOD dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP -A 2
        "BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP" : {
            "buy" : 0.0,
            "sell" : 0.0
status of zoro dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo -A 2
        "BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo" : {
            "buy" : 1.02,
            "sell" : 13646.1263
status of Cybnate dual side PyBot at Poloniex:
nud getliquiditydetails B | grep B954pkUEdkeT1G5Lq14Cisij5no3RVxHYe -A 20 | grep poloniex -A 2
        "1:NBTBTC:poloniex:LiquidBits" : {
            "buy" : 0.0,
            "sell" : 2000.0

Sounds good to me as it would balance the funds. Can you please remind or point me to what FLOT address to withdraw?

Edit: just looking at the market and it turned around. Sold a whole lot NBT. Maybe better to wait. I don’t even have 2000 NBT. Most of it has been sold!

2 Likes

Liquidity; ALix T1 + gateways (poloniex dual side, numerous sell side):

Gateway status at Poloniex (dual side), NuLagoon MLP at Poloniex and several sell side only exchanges

Tue Apr 26 21:00:01 UTC 2016
status of mOD dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP -A 2
        "BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP" : {
            "buy" : 0.0,
            "sell" : 0.0
status of zoro dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo -A 2
        "BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo" : {
            "buy" : 1.03,
            "sell" : 13646.1263
status of Cybnate dual side PyBot at Poloniex:
nud getliquiditydetails B | grep B954pkUEdkeT1G5Lq14Cisij5no3RVxHYe -A 20 | grep poloniex -A 2
        "1:NBTBTC:poloniex:LiquidBits" : {
            "buy" : 2788.5508,
            "sell" : 0.0
status of NuLagoon dual side NuBot at Poloniex:
nud getliquiditydetails B | grep BTRnV9uLSPVJw4jn1JMV2Ki2cfFqPYip9o -A 1000 | grep poloniex -A 2 | tail -n 1  | awk -F':' ... and some more stuff
        "1:NBTBTC:poloniex:0.3.2a_1461655085872_1cba01" : {
            "buy" : 10991.9043,
            "sell" : 0.0
--
        "2:NBTBTC:poloniex:0.3.2a_1461655085872_1cba01" : {
            "buy" : 13.13,
            "sell" : 0.0
status of mOD single side NuBot at hitbtc:
nud getliquiditydetails B | grep BETwD8nSjtj9ADSvej2na34xmsMYwPRymv -A 200 | grep hitbtc | tail -n 1 | awk -F':' ...and some more stuff'
        "1:NBTBTC:hitbtc:0.4.1_1461097479835_167440" : {
            "buy" : 0.0,
            "sell" : 499.98
--
        "2:NBTBTC:hitbtc:0.4.1_1461097479835_167440" : {
            "buy" : 0.09,
            "sell" : 1499.936
2 Likes

@zoro, don’t wonder, that the 13.2 BTC are not found in the liquidity or the gateway report - the tx isn’t confimed yet

Liquidity; ALix T1 + gateways (poloniex dual side, numerous sell side):

Gateway status at Poloniex (dual side), NuLagoon MLP at Poloniex and several sell side only exchanges

Wed Apr 27 20:08:28 UTC 2016
status of mOD dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP -A 2
        "BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP" : {
            "buy" : 0.0,
            "sell" : 0.0
status of zoro dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo -A 2
        "BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo" : {
            "buy" : 106.8389,
            "sell" : 13539.307
status of Cybnate dual side PyBot at Poloniex:
nud getliquiditydetails B | grep B954pkUEdkeT1G5Lq14Cisij5no3RVxHYe -A 20 | grep poloniex -A 2
        "1:NBTBTC:poloniex:LiquidBits" : {
            "buy" : 0.0,
            "sell" : 0.0
status of Cybnate dual side PyBot at Bittrex:
nud getliquiditydetails B | grep B954pkUEdkeT1G5Lq14Cisij5no3RVxHYe -A 20 | grep bittrex -A 2
        "1:NBTBTC:bittrex:LiquidBits" : {
            "buy" : 1114.1826,
            "sell" : 1000.0
status of NuLagoon dual side NuBot at Poloniex:
nud getliquiditydetails B | grep BTRnV9uLSPVJw4jn1JMV2Ki2cfFqPYip9o -A 1000 | grep poloniex -A 2 | tail -n 1  | awk -F':' ... and some more stuff
        "1:NBTBTC:poloniex:0.3.2a_1461745245383_cd3e19" : {
            "buy" : 9081.7307,
            "sell" : 1583.0477
--
        "2:NBTBTC:poloniex:0.3.2a_1461745245383_cd3e19" : {
            "buy" : 0.0,
            "sell" : 0.0
status of huafei sell side only NuBot at bter
nud getliquidityinfo B | grep BRUuKfGur7CZSLy65gYUPJUQyQZeT1XQnD -A 2
        "BRUuKfGur7CZSLy65gYUPJUQyQZeT1XQnD" : {
            "buy" : 207.91,
            "sell" : 1815.1109
status of mOD single side NuBot at hitbtc:
nud getliquiditydetails B | grep BETwD8nSjtj9ADSvej2na34xmsMYwPRymv -A 1000 | grep hitbtc | tail -n 1 | awk -F':' ...and some more stuff'
        "1:NBTBTC:hitbtc:0.4.1_1461097479835_167440" : {
            "buy" : 0.0,
            "sell" : 499.98
--
        "2:NBTBTC:hitbtc:0.4.1_1461097479835_167440" : {
            "buy" : 0.09,
            "sell" : 1499.936

Liquidity; ALix T1 + gateways (poloniex dual side, numerous sell side):

Gateway status at Poloniex (dual side), NuLagoon MLP at Poloniex and several sell side only exchanges

Thu Apr 28 21:00:01 UTC 2016
status of mOD dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP -A 2
        "BFGMPykfKxXZ1otrCZcsbnTwJjKHPP9dsP" : {
            "buy" : 0.0,
            "sell" : 0.0
status of zoro dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo -A 2
        "BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo" : {
            "buy" : 6779.52,
            "sell" : 12804.6083
status of Cybnate dual side PyBot at Poloniex:
nud getliquiditydetails B | grep B954pkUEdkeT1G5Lq14Cisij5no3RVxHYe -A 20 | grep poloniex -A 2
        "1:NBTBTC:poloniex:LiquidBits" : {
            "buy" : 0.0,
            "sell" : 1600.0
status of NuLagoon dual side NuBot at Poloniex:
nud getliquiditydetails B | grep BTRnV9uLSPVJw4jn1JMV2Ki2cfFqPYip9o -A 1000 | grep poloniex -A 2 | tail -n 1  | awk -F':' ... and some more stuff
        "1:NBTBTC:poloniex:0.3.2a_1461839009005_0fc025" : {
            "buy" : 9000.8587,
            "sell" : 1584.2261
--
        "2:NBTBTC:poloniex:0.3.2a_1461839009005_0fc025" : {
            "buy" : 0.0,
            "sell" : 0.0
status of mOD single side NuBot at hitbtc:
nud getliquiditydetails B | grep BETwD8nSjtj9ADSvej2na34xmsMYwPRymv -A 200 | grep hitbtc | tail -n 1 | awk -F':' ...and some more stuff'
        "1:NBTBTC:hitbtc:0.4.1_1461864577473_0377b4" : {
            "buy" : 0.0,
            "sell" : 500.0
--
        "2:NBTBTC:hitbtc:0.4.1_1461864577473_0377b4" : {
            "buy" : 0.09,
            "sell" : 1499.916
1 Like

There are some weird zeros on ALix although the walls exist on the few exchanges I examined. This should be due to price feed errors but it hasn’t recovered for quite some time. By some rough estimation I think we actually have about 10k surplus on buy side.

If you look at the orders, you’ll find out that they are outside the spread of 1.5% that is tracked by ALix.
E.g. 0.00219472 translates to a BTC rate of $455. The current rate is below that:

Looks like ALix works fine, but some NuBots or other bots don’t - or they use a strange price feed.

I can’t tell you about my NuBot as I currently operate none at Poloniex.

My sell side NuBot at hitBTC is running, though (which is by design outside the spread tracked by ALix):

09:13:05.082 [priceTriggerTask] WARN  - **SELL** orders re-initialized on  **hitbtc** :  3/3 placed successfully
total amount placed : 1999.915
Tier1 order size : 500.0
Tier2 cumulative order size : 1499.915 (2 orders)
 [c.n.n.s.S.StrategySecondaryPegUtils:247]
09:13:13.054 [checkNud] INFO  - Executing class com.nubits.nubot.tasks.CheckNudTask [com.nubits.nubot.tasks.CheckNudTask:37]
09:13:43.054 [checkNud] INFO  - Executing class com.nubits.nubot.tasks.CheckNudTask [com.nubits.nubot.tasks.CheckNudTask:37]
09:13:45.618 [Strategy Secondary Task] INFO  - Already shifting walls. [com.nubits.nubot.strategy.Secondary.StrategySecondaryPegTask:89]
09:13:45.694 [checkOrders] WARN  - Liquidity is not being sent, a wall shift is happening. Will send on next execution. [c.n.n.t.CheckOrdersTask:150]
09:14:13.053 [checkNud] INFO  - Executing class com.nubits.nubot.tasks.CheckNudTask [com.nubits.nubot.tasks.CheckNudTask:37]
09:14:15.666 [priceTriggerTask] INFO  - Order placed = OrderToPlace{type=SELL, pair=nbtbtc, size=500.0, price=0.00232793} [com.nubits.nubot.models.MultipleOrdersResponse:88]
09:14:15.669 [priceTriggerTask] INFO  - Order ID = 7d8e8e87e198
 [com.nubits.nubot.models.MultipleOrdersResponse:89]
09:14:15.672 [priceTriggerTask] INFO  - Order placed = OrderToPlace{type=SELL, pair=nbtbtc, size=525.008012, price=0.00233939} [com.nubits.nubot.models.MultipleOrdersResponse:88]
09:14:15.674 [priceTriggerTask] INFO  - Order ID = 3df096049d96
 [com.nubits.nubot.models.MultipleOrdersResponse:89]
09:14:15.676 [priceTriggerTask] INFO  - Order placed = OrderToPlace{type=SELL, pair=nbtbtc, size=974.906988, price=0.00282102} [com.nubits.nubot.models.MultipleOrdersResponse:88]
09:14:15.678 [priceTriggerTask] INFO  - Order ID = 93e121e5b20d
 [com.nubits.nubot.models.MultipleOrdersResponse:89]
09:14:15.680 [priceTriggerTask] INFO  - initOrders BUY [com.nubits.nubot.strategy.Secondary.StrategySecondaryPegUtils:178]
09:14:16.026 [priceTriggerTask] INFO  - No need to execute BUY orders : available balance value is less than 2 NBT.  Balance : 0.00020302 [com.nubits.nubot.strategy.Secondary.StrategySecondaryPegUtils:205]
09:14:26.617 [Strategy Secondary Task] INFO  - Already shifting walls. [com.nubits.nubot.strategy.Secondary.StrategySecondaryPegTask:89]
09:14:28.029 [priceTriggerTask] WARN  - Wall shift successful [c.n.n.s.S.StrategySecondaryPegTask:206]
09:14:28.037 [priceTriggerTask] INFO  - New price computed [Mon May 02 09:14:28 UTC 2016,bitfinex,BTC,439.89,USD,0.00231035,0.00219146,] [com.nubits.nubot.tasks.PriceMonitorTriggerTask:483]
09:14:43.054 [checkNud] INFO  - Executing class com.nubits.nubot.tasks.CheckNudTask [com.nubits.nubot.tasks.CheckNudTask:37]
09:14:51.954 [priceTriggerTask] INFO  - Price Updated. bitfinex:1 BTC = 439.01 USD [com.nubits.nubot.tasks.PriceMonitorTriggerTask:359]
09:14:51.963 [priceTriggerTask] INFO  - Walls need to be shifted [com.nubits.nubot.tasks.PriceMonitorTriggerTask:386]
09:14:51.966 [priceTriggerTask] INFO  - Sell Price 0.00231498  | Buy Price  0.00219585 [com.nubits.nubot.tasks.PriceMonitorTriggerTask:443]
09:14:51.969 [priceTriggerTask] WARN  - Strategy received a price change notification. [c.n.n.s.S.StrategySecondaryPegTask:162]
status of mOD single side NuBot at hitbtc:
nud getliquiditydetails B | grep BETwD8nSjtj9ADSvej2na34xmsMYwPRymv -A 1000 | grep hitbtc | tail -n 1 | awk -F':' ...and some more stuff'
        "1:NBTBTC:hitbtc:0.4.1_1461864577473_0377b4" : {
            "buy" : 0.0,
            "sell" : 500.0
--
        "2:NBTBTC:hitbtc:0.4.1_1461864577473_0377b4" : {
            "buy" : 0.09,
            "sell" : 1499.915
1 Like

Perhaps ALix should trace spread up to 2% ?

Or make the spread adjustable. Not knowing the design behind ALix I don’t know how much effort that might be.
Would be great to have an upper and a lower limit.
That way you could track the status of ALP/MLP and gateways (as long as they operate outside the ALP or MLP spread) independently.

ALP/MLP: 0% < spread <= 1.5%
gateways: 1.5% < spread < x%
all liquidity: 0% < spread < x%

Yes, this is possible.

Help me fill in the numbers

Poloniex:
T1 <= 1.5%
Gateways > 1.5% AND < ?

Is your NuBot at Poloniex running fine?

It reports:

status of zoro dual side NuBot at Poloniex:
nud getliquidityinfo B | grep BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo -A 2
        "BJs4YbtaqCmxeHLiR6zzjnZEotYVFAPfMo" : {
            "buy" : 6885.21,
            "sell" : 12804.6083

The offset is 0.01, leading to a spread of 2%, right (outside what ALix tracks)?

These two orders look like being placed by your NuBot:

They have an offset of roughly 5% (1/0.00215132=464; 464/442=1.049).
Something seems to be wrong with the price feed NuBots use.
@woolly_sammoth, @desrever any idea what’s wrong with the price feed? It looks like the BTC price used by NuBot is way off.

1 Like

2.5%

I fear there’s no consensus on x.
But as I wouldn’t hesitate to operate NuBot gateways at 2% offset (I already did!), I’d make it 4%. To have some room for increasing the offset, maybe you should make it 5%

My suggestion would be:
T1.1 <= 1.5%
T1.2 > 1.5% AND < 5%

This is an attempt to revive a discussion about T1.1 and T1.2