ALix BETA
from
https://www.coinerella.com/index.php/ALix
What is ALix?
ALix, the
Derived from the words “automated liquidity” and “index”
Is an API feed service for NuBits, currently in beta.
It calculates the average trading volume of a trading pair (NBT/X, X/NBT) and displays this in different time frames.
What’s it for?
Well, that’s up to the community. I imagine this to become a major part of T1 liquidity distribution, mainly for ALPs.
The idea behind it: Have the liquidity where the trade volume is.
Quick example:
NuPool needs to find out which liquidity targets to choose for the next period.
Sam and I would look at the ALix values for e. g. 30 days (which will be available soon) on the Bittrex and Poloniex pairs and we would have a good idea what happened on the trading pair, volume wise.
We can take this into calculation, might lower our targets after all and would thus reduce costs for Nu.
Upcoming:
- DONE: further improved resilience for data collection
- 30% DONE fancy charts
- DONE: more pairs
- more time frames (90 left)
What’s after the Beta?
If this beta is a success, I’ll draft a custodian grant request to get a six month contract for providing this feed.
This draft will include a high availability server structure.
ALix might seem simple at the moment, but it took me a lot of working hours (nearing three digits) to get a functional beta, which I’m confident to present to the community. I hope you find it useful.
Documentation
Available methods:
VOLUME
pairs_available
https://alix.coinerella.com/volume/?pairs_available
Returns all trading pairs currently supported by ALix.
Example:
{"error":"false","available":[{"pair":"poloniex_btc_nbt"},{"pair":"bittrex_btc_nbt"}]}
frames_available
https://alix.coinerella.com/volume/?frames_available
Returns all time frames currently supported by ALix. Time frames are measured in seconds.
Example:
{"error":"false","available":{"86400":"1","259200":"3","604800":"7"}}
pair
https://alix.coinerella.com/volume/?pair=**x**&frame=**y**
Returns the ALix data for the requested pair X in time frame Y.
Example: https://alix.coinerella.com/volume/?pair=poloniex_btc_nbt&frame=7
{"error":"false","pair":"poloniex_btc_nbt","frame":"7","volume":"74084.68313822","columns":"7","alix":"10583.526162603"}
Note: The “columns” value shows the number of stored data arrays for the pair in said time frame and is currently used for debugging purposes only.
We check whether our gathered data doesn’t contain more than one data array per day.
In this example the total volume for 7 days was 74084.68313822. This value is divided by the number in the “columns” value, which should be identical with the “frame” value, to get the “alix” result.
WALLS
New in the beta:
https://alix.coinerella.com/walls/ with 15 minute moving average
https://alix.coinerella.com/walls/?4h with 4 hour moving average
Graphic overview of the current liquidity.
Want the raw data?
Current data: https://alix.coinerella.com/walls/?json
15min moving average json: https://alix.coinerella.com/walls/?json15min
4h moving average json: https://alix.coinerella.com/walls/?json4h
Provides the current t1 buy and sell walls on the pairs with 1.5 tolerance from the last bitstamp/bitfinex/coinbase price (fail over in that order.) Updates every minute.
Example:
{“timestamp”:1446214562,“btc_usd”:“322.39”,“exchanges”:[{“pair”:“poloniex_btc_nbt”,“amount”:{“tolerance”:“1.5”,“ask_total”:19531.08521977,“bid_total”:32229.36249618}},{“pair”:“bittrex_btc_nbt”,“amount”:{“tolerance”:“1.5”,“ask_total”:9197.12037344,“bid_total”:7246.15995558}}]}
Happy to hear your feedback on this!