diff --git a/.gitbook/assets/erase (1).json b/.gitbook/assets/erase (1).json index 7ea34ec..23c77fb 100644 --- a/.gitbook/assets/erase (1).json +++ b/.gitbook/assets/erase (1).json @@ -859,5 +859,179 @@ } } } + }, + "definitions": { + "ApiResponse": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "format": "int32" + }, + "type": { + "type": "string" + }, + "message": { + "type": "string" + } + } + }, + "Category": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + } + }, + "xml": { + "name": "Category" + } + }, + "Pet": { + "type": "object", + "required": [ + "name", + "photoUrls" + ], + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "category": { + "$ref": "#/definitions/Category" + }, + "name": { + "type": "string", + "example": "doggie" + }, + "photoUrls": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "type": "string", + "xml": { + "name": "photoUrl" + } + } + }, + "tags": { + "type": "array", + "xml": { + "wrapped": true + }, + "items": { + "xml": { + "name": "tag" + }, + "$ref": "#/definitions/Tag" + } + }, + "status": { + "type": "string", + "description": "pet status in the store", + "enum": [ + "available", + "pending", + "sold" + ] + } + }, + "xml": { + "name": "Pet" + } + }, + "Tag": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "name": { + "type": "string" + } + }, + "xml": { + "name": "Tag" + } + }, + "Order": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "petId": { + "type": "integer", + "format": "int64" + }, + "quantity": { + "type": "integer", + "format": "int32" + }, + "shipDate": { + "type": "string", + "format": "date-time" + }, + "status": { + "type": "string", + "description": "Order Status", + "enum": [ + "placed", + "approved", + "delivered" + ] + }, + "complete": { + "type": "boolean" + } + }, + "xml": { + "name": "Order" + } + }, + "User": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "format": "int64" + }, + "username": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "email": { + "type": "string" + }, + "password": { + "type": "string" + }, + "phone": { + "type": "string" + }, + "userStatus": { + "type": "integer", + "format": "int32", + "description": "User Status" + } + }, + "xml": { + "name": "User" + } + } } } \ No newline at end of file diff --git a/.gitbook/assets/erase.json b/.gitbook/assets/erase.json index 23c77fb..7ea34ec 100644 --- a/.gitbook/assets/erase.json +++ b/.gitbook/assets/erase.json @@ -859,179 +859,5 @@ } } } - }, - "definitions": { - "ApiResponse": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "type": { - "type": "string" - }, - "message": { - "type": "string" - } - } - }, - "Category": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Category" - } - }, - "Pet": { - "type": "object", - "required": [ - "name", - "photoUrls" - ], - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "category": { - "$ref": "#/definitions/Category" - }, - "name": { - "type": "string", - "example": "doggie" - }, - "photoUrls": { - "type": "array", - "xml": { - "wrapped": true - }, - "items": { - "type": "string", - "xml": { - "name": "photoUrl" - } - } - }, - "tags": { - "type": "array", - "xml": { - "wrapped": true - }, - "items": { - "xml": { - "name": "tag" - }, - "$ref": "#/definitions/Tag" - } - }, - "status": { - "type": "string", - "description": "pet status in the store", - "enum": [ - "available", - "pending", - "sold" - ] - } - }, - "xml": { - "name": "Pet" - } - }, - "Tag": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "name": { - "type": "string" - } - }, - "xml": { - "name": "Tag" - } - }, - "Order": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "petId": { - "type": "integer", - "format": "int64" - }, - "quantity": { - "type": "integer", - "format": "int32" - }, - "shipDate": { - "type": "string", - "format": "date-time" - }, - "status": { - "type": "string", - "description": "Order Status", - "enum": [ - "placed", - "approved", - "delivered" - ] - }, - "complete": { - "type": "boolean" - } - }, - "xml": { - "name": "Order" - } - }, - "User": { - "type": "object", - "properties": { - "id": { - "type": "integer", - "format": "int64" - }, - "username": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "email": { - "type": "string" - }, - "password": { - "type": "string" - }, - "phone": { - "type": "string" - }, - "userStatus": { - "type": "integer", - "format": "int32", - "description": "User Status" - } - }, - "xml": { - "name": "User" - } - } } } \ No newline at end of file diff --git a/developers/api-references.md b/developers/api-references.md index 36ef92f..aa9416c 100644 --- a/developers/api-references.md +++ b/developers/api-references.md @@ -2,71 +2,13 @@ The following endpoints are available at [https://api.alexlab.co/](https://api.alexlab.co/). -Documentation is also available in json format at [https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json). - -### General +Documentation is also available in json format at [https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% swagger src="https://api.alexlab.co/swagger-api.json" path="undefined" method="undefined" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/pool_volume/{pool_token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/volume_24h/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/volume_7d/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/pool_liquidity/{pool_token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/liquidity/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/fee/{pool_token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/stats/tvl" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/stats/tvl/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/stats/total_supply/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/price/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/pool_token_price/{pool_token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/pool_token_stats" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - -{% swagger src="https://api.alexlab.co/swagger-api.json" path="/v1/price_history/{token}" method="get" %} -[https://api.alexlab.co/swagger-api.json](https://api.alexlab.co/swagger-api.json) -{% endswagger %} - ### DEX -{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/pairs" summary="" %} +{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/pairs" summary="/v1/pairs" %} {% swagger-description %} Returns all existing pairs {% endswagger-description %} @@ -96,7 +38,7 @@ Returns all existing pairs {% endswagger-response %} {% endswagger %} -{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/tickers" summary="" %} +{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/tickers" summary="/v1/tickers" %} {% swagger-description %} Returns all markets statistics for the last 24 hours {% endswagger-description %} @@ -126,7 +68,7 @@ Returns all markets statistics for the last 24 hours {% endswagger-response %} {% endswagger %} -{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/historical_swaps" summary="" %} +{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/historical_swaps" summary="/v1/historical_swaps/{ticker}" %} {% swagger-description %} Returns all existing historical trades {% endswagger-description %} @@ -164,7 +106,7 @@ Specifies number of recent block heights to be returned, default value is 1000 {% endswagger-response %} {% endswagger %} -{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/orderbook" summary="" %} +{% swagger method="get" path="" baseUrl="https://api.alexlab.co/v1/orderbook" summary="/v1/orderbook/{ticker_id}" %} {% swagger-description %} Returns orderbook information {% endswagger-description %} diff --git a/whitepaper/automated-market-making-of-alex.md b/whitepaper/automated-market-making-of-alex.md index 3ce311b..57b3889 100644 --- a/whitepaper/automated-market-making-of-alex.md +++ b/whitepaper/automated-market-making-of-alex.md @@ -325,7 +325,7 @@ $$ \begin{split} &\frac{dy}{dr}=L^{\frac{1}{1-t}}\frac{e^{-(1-t)r}}{(1+e^{-(1-t)r})^{\frac{2-t}{1-t}}}\\ &L_{\text{Uniswap}}=\frac{2}{t}L^{\frac{1}{1-t}}\left(e^{\frac{r(1-t)}{2}}+e^{\frac{-r(1-t)}{2}}\right)^{\frac{-2+t}{1-t}}\\ &=\frac{2}{t}L^{\frac{1}{1-t}}\big\{2\cosh\left[\frac{r(1-t)}{2}\right]\big\}^{\frac{-2+t}{1-t}} \end{split} $$ -![Figure 3](<../.gitbook/assets/liquidity (2) (2) (2) (2) (2) (2) (2) (1) (1).png>) +![Figure 3](<../.gitbook/assets/liquidity (2) (2) (2) (2) (2) (2) (2) (1).png>) Figure 3 plots $$L_{\text{Uniswap}}$$ against interest rate $$r$$ regarding various levels of $$t$$. When $$0