{
    "schemes": [],
    "swagger": "2.0",
    "info": {
        "description": "",
        "title": "",
        "contact": {},
        "version": ""
    },
    "host": "",
    "basePath": "/v1/elysium",
    "paths": {
        "/exchanges": {
            "get": {
                "description": "Get exchanges",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        }
                    }
                }
            }
        },
        "/health": {
            "get": {
                "description": "Health check",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/handler.BaseResponse"
                        }
                    }
                }
            }
        },
        "/quote": {
            "get": {
                "description": "Get the best route for a token swap",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "route"
                ],
                "summary": "Get route",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Token In",
                        "name": "tokenIn",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Token Out",
                        "name": "tokenOut",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Amount In",
                        "name": "amountIn",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Exchanges",
                        "name": "exchanges",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "description": "Slippage",
                        "name": "slippage",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Save",
                        "name": "gasSave",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Include",
                        "name": "gasInclude",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Price",
                        "name": "gasPrice",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Excluded Pools, comma separated",
                        "name": "excludedPools",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Excluded Exchanges, comma separated",
                        "name": "excludedExchanges",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Integrator fee in bps of 10000, max 100",
                        "name": "feeBps",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Address paid the integrator fee, required on swap when feeBps \u003e 0",
                        "name": "feeReceiver",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Fee token side: out (default) or in (not available yet)",
                        "name": "feeBy",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/handler.routeResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/handler.BaseResponse"
                        }
                    }
                }
            }
        },
        "/swap": {
            "get": {
                "description": "Get route and encode data for swap",
                "consumes": [
                    "application/json"
                ],
                "produces": [
                    "application/json"
                ],
                "tags": [
                    "route"
                ],
                "summary": "Get route and encode data",
                "parameters": [
                    {
                        "type": "string",
                        "description": "Token In",
                        "name": "tokenIn",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Token Out",
                        "name": "tokenOut",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Amount In",
                        "name": "amountIn",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Exchanges",
                        "name": "exchanges",
                        "in": "query"
                    },
                    {
                        "type": "number",
                        "description": "Slippage",
                        "name": "slippage",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Save",
                        "name": "gasSave",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Include",
                        "name": "gasInclude",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Gas Price",
                        "name": "gasPrice",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Min Amount Out",
                        "name": "minAmountOut",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Deadline",
                        "name": "deadline",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Receiver",
                        "name": "receiver",
                        "in": "query",
                        "required": true
                    },
                    {
                        "type": "string",
                        "description": "Source",
                        "name": "source",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Excluded Pools, comma separated",
                        "name": "excludedPools",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Excluded Exchanges, comma separated",
                        "name": "excludedExchanges",
                        "in": "query"
                    },
                    {
                        "type": "integer",
                        "description": "Integrator fee in bps of 10000, max 100",
                        "name": "feeBps",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Address paid the integrator fee, required on swap when feeBps \u003e 0",
                        "name": "feeReceiver",
                        "in": "query"
                    },
                    {
                        "type": "string",
                        "description": "Fee token side: out (default) or in (not available yet)",
                        "name": "feeBy",
                        "in": "query"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "schema": {
                            "$ref": "#/definitions/handler.SwapResponse"
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "schema": {
                            "$ref": "#/definitions/handler.BaseResponse"
                        }
                    }
                }
            }
        }
    },
    "definitions": {
        "handler.BaseResponse": {
            "type": "object",
            "properties": {
                "error": {
                    "type": "string"
                },
                "status": {
                    "type": "string"
                }
            }
        },
        "handler.EncodeData": {
            "type": "object",
            "properties": {
                "data": {
                    "type": "string"
                },
                "router": {
                    "type": "string"
                }
            }
        },
        "handler.IntegratorFeeResponse": {
            "type": "object",
            "properties": {
                "amount": {
                    "type": "string"
                },
                "amountUsd": {
                    "type": "number"
                },
                "bps": {
                    "type": "integer"
                },
                "by": {
                    "type": "string"
                },
                "receiver": {
                    "type": "string"
                },
                "token": {
                    "type": "string"
                }
            }
        },
        "handler.Split": {
            "type": "object",
            "properties": {
                "amountIn": {
                    "type": "string"
                },
                "amountOut": {
                    "type": "string"
                },
                "swaps": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/handler.Swap"
                    }
                }
            }
        },
        "handler.Swap": {
            "type": "object",
            "properties": {
                "amountIn": {
                    "type": "string"
                },
                "amountOut": {
                    "type": "string"
                },
                "data": {},
                "exchange": {
                    "type": "string"
                },
                "pool": {
                    "type": "string"
                },
                "timestamp": {
                    "type": "integer"
                },
                "tokenIn": {
                    "type": "string"
                },
                "tokenOut": {
                    "type": "string"
                },
                "type": {
                    "type": "string"
                }
            }
        },
        "handler.SwapResponse": {
            "type": "object",
            "properties": {
                "quote": {
                    "$ref": "#/definitions/handler.routeResponse"
                },
                "requestId": {
                    "type": "string"
                },
                "tx": {
                    "$ref": "#/definitions/handler.EncodeData"
                }
            }
        },
        "handler.routeResponse": {
            "type": "object",
            "properties": {
                "amountIn": {
                    "type": "string"
                },
                "amountInUsd": {
                    "type": "number"
                },
                "amountOut": {
                    "type": "string"
                },
                "amountOutUsd": {
                    "type": "number"
                },
                "gasPrice": {
                    "type": "string"
                },
                "integratorFee": {
                    "$ref": "#/definitions/handler.IntegratorFeeResponse"
                },
                "minAmountOut": {
                    "type": "string"
                },
                "priceImpactPercent": {
                    "type": "number"
                },
                "requestId": {
                    "type": "string"
                },
                "splits": {
                    "type": "array",
                    "items": {
                        "$ref": "#/definitions/handler.Split"
                    }
                },
                "tokenIn": {
                    "type": "string"
                },
                "tokenOut": {
                    "type": "string"
                },
                "totalGas": {
                    "type": "integer"
                },
                "totalGasUsd": {
                    "type": "number"
                }
            }
        }
    }
}