To include a part of a private conversation:
I’d really appreciate if it’d be possible to have another option next to
- “Use ALix Walls data for T1” and
- “Use reported liquidity for T1”
" Use ALix Walls for T1 PLUS include Nu gateway funds at T1.2"
###My reasoning is this:
while the gateway funds are ideally not really T1 (at best T1.2), the orders provided by the gateways get automatically replenished when consumed (even when only in parts).
So the T1.2 (and even T2) from the gateways should be included in the calculation, because these funds are automatically promoted to T1.2 and availabe to support the peg.
###Problems identified for doing that:
There’s no easy way to gather liquidity information from the gateways.
At the moment there are 3 in operation, all at Poloniex.
This status will change over time.
To include this liquidity information (just in case somebody finds it useful…), there are some things that should be considered:
- the information should be provided via json to make including it by ALix easy
- ideally each gateway uses a broadcast address that is only used for reporting the gateway liquidity
- the gateway addresses need to be kept up-to-date
- updating the script/addresses needs to be possible by several people
This leads me to the question:
can this be done by hosting and automatically updating a repo at github?
The idea would be to have a script run the evaluation locally and automatically upload the data json formatted to github - e.g. by crontab.
Data according to ALix (“Use ALix Walls data for T1”):
Data according to my script:
Fri Mar 11 09:30:18 UTC 2016
status of the gateways in total:
bid total 31752 USD, bid side ratio 65%
ask total 16578 USD, ask side ratio 34%
status of the ALP last 15 minutes:
bid total 34050 USD, bid side ratio 38%
ask total 55529 USD, ask side ratio 61%
status of the ALP last 4 hours:
bid total 37436 USD, bid side ratio 42%
ask total 51147 USD, ask side ratio 57%
status of the total liquidity; gateways and ALP (last 15 minutes):
bid total 65802 USD, bid side ratio 47%
ask total 72107 USD, ask side ratio 52%
status of the total liquidity; gateways and ALP (last 4 hours):
bid total 69188 USD, bid side ratio 50%
ask total 67725 USD, ask side ratio 49%