Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update server urls #58

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/matchedOrders.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "This endpoint retrieves all matched orders, where `Orderbook` has picked up the order. Pagination is optional for limiting the results.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/matchedOrdersById.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves a matched order using its unique order ID from the order book. It returns the order details if the order has been picked up by `Orderbook`.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/matchedOrdersByUser.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves all unmatched orders for a specific user, identified by their unique address, with optional pagination. It returns the orders that have been initiated and picked up by `Orderbook`.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/ordersCountByUser.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Fetches the total number of orders for a specific user based on their address.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/unmatchedOrders.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves all unmatched orders, where users have initiated the order but `Orderbook` has not yet picked it up. Pagination is optional for limiting the results.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/unmatchedOrdersById.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves a unmatched order using its unique order ID from the order book. It returns the order details if the order has not been picked up by `Orderbook`.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
2 changes: 1 addition & 1 deletion static/swagger/auctionhouse/unmatchedOrdersByUser.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Retrieves all unmatched orders for a specific user, identified by their unique address, with optional pagination. It returns the orders that have been initiated but not yet picked up by `Orderbook`.",
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com"
"url": "https://orderbook.garden.finance"
}
],
"parameters": [
Expand Down
6 changes: 3 additions & 3 deletions static/swagger/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
},
"servers": [
{
"url": "https://evm-swapper-relay.onrender.com",
"url": "https://orderbook.garden.finance",
"description": "Auth, Gasless, Orderbook server"
},
{
"url":"https://quote-knrp.onrender.com",
"url": "https://price.garden.finance",
"description": "Quote server"
}
],
Expand Down Expand Up @@ -102,4 +102,4 @@
"$ref": "./quote/price.json"
}
}
}
}
184 changes: 91 additions & 93 deletions static/swagger/quote/fiat.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,97 @@
{
"get": {
"operationId": "usdForOrderPair",
"summary": "Get USD prices for an order pair.",
"description": "Retrieves the USD prices for the input and output tokens associated with the specified order pair, providing accurate and up-to-date pricing information.",
"servers": [
{
"url": "https://quote-knrp.onrender.com"
}
],
"security": [],
"parameters": [
{
"name": "order_pair",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "The order pair for which USD prices are needed.",
"example": "ethereum:USDC::arbitrum:USDT"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved USD prices.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Specifies the source and destination chain and asset in the format {fromChain}:{fromAsset}::{toChain}:{toAsset}",
"properties": {
"status":{
"type": "string",
"enum": ["Ok","Error"],
"description": "An enum representing the possible outcomes of the endpoint, indicating whether the request was successful.",
"example": "Ok"
},
"data": {
"type": "object",
"properties": {
"input_token_price": {
"type": "number",
"format": "double",
"description": "The USD price of the input token in the order pair.",
"example": 97056.37479601552
},
"output_token_price": {
"type": "number",
"format": "double",
"description": "The USD price of the output token in the order pair.",
"example": 97056.37479601552
}
}
}
}
}
"get": {
"operationId": "usdForOrderPair",
"summary": "Get USD prices for an order pair.",
"description": "Retrieves the USD prices for the input and output tokens associated with the specified order pair, providing accurate and up-to-date pricing information.",
"servers": [
{
"url": "https://price.garden.finance"
}
],
"security": [],
"parameters": [
{
"name": "order_pair",
"in": "query",
"required": true,
"schema": {
"type": "string",
"description": "The order pair for which USD prices are needed.",
"example": "ethereum:USDC::arbitrum:USDT"
}
}
],
"responses": {
"200": {
"description": "Successfully retrieved USD prices.",
"content": {
"application/json": {
"schema": {
"type": "object",
"description": "Specifies the source and destination chain and asset in the format {fromChain}:{fromAsset}::{toChain}:{toAsset}",
"properties": {
"status": {
"type": "string",
"enum": ["Ok", "Error"],
"description": "An enum representing the possible outcomes of the endpoint, indicating whether the request was successful.",
"example": "Ok"
},
"data": {
"type": "object",
"properties": {
"input_token_price": {
"type": "number",
"format": "double",
"description": "The USD price of the input token in the order pair.",
"example": 97056.37479601552
},
"output_token_price": {
"type": "number",
"format": "double",
"description": "The USD price of the output token in the order pair.",
"example": 97056.37479601552
}
}
}
},
"400": {
"description": "Failed to retrieve USD prices.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["Ok","Error"],
"example": "Error",
"description": "An enum representing the possible outcomes of the endpoint, indicating whether the request was successful."
},
"error": {
"type": "object",
"properties":{
"code": {
"type": "number",
"description":"The numeric status code indicating the type of error or response.",
"example": 400
},
"message": {
"type": "string",
"description": "A descriptive message providing details about the error or response.",
"example": "failed to get fiat values: Asset not found : ethereum:usdc"
}
}
}
}
}
}
}
}
}
},
"400": {
"description": "Failed to retrieve USD prices.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": ["Ok", "Error"],
"example": "Error",
"description": "An enum representing the possible outcomes of the endpoint, indicating whether the request was successful."
},
"error": {
"type": "object",
"properties": {
"code": {
"type": "number",
"description": "The numeric status code indicating the type of error or response.",
"example": 400
},
"message": {
"type": "string",
"description": "A descriptive message providing details about the error or response.",
"example": "failed to get fiat values: Asset not found : ethereum:usdc"
}
}
}
}
}
},
"tags": [
"Quote"
]
}
}
}
}
}
},
"tags": ["Quote"]
}
}
Loading
Loading