From 6c6774891c2272af8bc6480688e980d97e9ca56e Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 14 Nov 2025 21:50:47 +0100 Subject: [PATCH 1/4] add neutron docs --- config.json | 27 +- .../get-markets-collateral.endpoint.mdx | 8 + .../neutron/get-markets-leverage.endpoint.mdx | 8 + .../neutron/get-markets-price.endpoint.mdx | 8 + ...arkets-unrealized-pnl-ranking.endpoint.mdx | 8 + .../neutron/get-megavault-flow.endpoint.mdx | 8 + .../neutron/get-orderbook-depth.endpoint.mdx | 8 + .../get-orderbook-slippage.endpoint.mdx | 8 + ...et-positions-duration-metrics.endpoint.mdx | 8 + ...et-positions-long-short-ratio.endpoint.mdx | 8 + openAPI/neutron.json | 742 ++++++++++++++++++ 11 files changed, 840 insertions(+), 1 deletion(-) create mode 100644 docs/reference/neutron/get-markets-collateral.endpoint.mdx create mode 100644 docs/reference/neutron/get-markets-leverage.endpoint.mdx create mode 100644 docs/reference/neutron/get-markets-price.endpoint.mdx create mode 100644 docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx create mode 100644 docs/reference/neutron/get-megavault-flow.endpoint.mdx create mode 100644 docs/reference/neutron/get-orderbook-depth.endpoint.mdx create mode 100644 docs/reference/neutron/get-orderbook-slippage.endpoint.mdx create mode 100644 docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx create mode 100644 docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx create mode 100644 openAPI/neutron.json diff --git a/config.json b/config.json index bbe0e13..618ac57 100644 --- a/config.json +++ b/config.json @@ -33,7 +33,8 @@ "stride.json", "xion.json", "snapshots.json", - "stablecoins.json" + "stablecoins.json", + "neutron.json" ], "codeLanguages": [ "curl", @@ -408,6 +409,30 @@ ] } ] + }, + { + "groupName": "Neutron", + "subpages": [ + { + "groupName": "Market", + "subpages": [ + "reference/neutron/get-orderbook-slippage", + "reference/neutron/get-orderbook-depth", + "reference/neutron/get-positions-duration-metrics", + "reference/neutron/get-positions-long-short-ratio", + "reference/neutron/get-markets-leverage", + "reference/neutron/get-markets-price", + "reference/neutron/get-markets-collateral", + "reference/neutron/get-markets-unrealized-pnl-ranking" + ] + }, + { + "groupName": "Megavault", + "subpages": [ + "reference/neutron/get-megavault-flow" + ] + } + ] } ] } diff --git a/docs/reference/neutron/get-markets-collateral.endpoint.mdx b/docs/reference/neutron/get-markets-collateral.endpoint.mdx new file mode 100644 index 0000000..2b9f2f3 --- /dev/null +++ b/docs/reference/neutron/get-markets-collateral.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/collateral +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-markets-leverage.endpoint.mdx b/docs/reference/neutron/get-markets-leverage.endpoint.mdx new file mode 100644 index 0000000..028b306 --- /dev/null +++ b/docs/reference/neutron/get-markets-leverage.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/leverage +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-markets-price.endpoint.mdx b/docs/reference/neutron/get-markets-price.endpoint.mdx new file mode 100644 index 0000000..60a4d47 --- /dev/null +++ b/docs/reference/neutron/get-markets-price.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/price +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx b/docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx new file mode 100644 index 0000000..7c2cc99 --- /dev/null +++ b/docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/unrealized_pnl_ranking +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-megavault-flow.endpoint.mdx b/docs/reference/neutron/get-megavault-flow.endpoint.mdx new file mode 100644 index 0000000..eafd9de --- /dev/null +++ b/docs/reference/neutron/get-megavault-flow.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /megavault/flow +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-orderbook-depth.endpoint.mdx b/docs/reference/neutron/get-orderbook-depth.endpoint.mdx new file mode 100644 index 0000000..1edceea --- /dev/null +++ b/docs/reference/neutron/get-orderbook-depth.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/orderbook/depth +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx b/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx new file mode 100644 index 0000000..a0de501 --- /dev/null +++ b/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/orderbook/slippage +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx b/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx new file mode 100644 index 0000000..9ac103f --- /dev/null +++ b/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/positions/duration_metrics +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx b/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx new file mode 100644 index 0000000..dc616c8 --- /dev/null +++ b/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /market/positions/long_short_ratio +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/openAPI/neutron.json b/openAPI/neutron.json new file mode 100644 index 0000000..5317526 --- /dev/null +++ b/openAPI/neutron.json @@ -0,0 +1,742 @@ +{ + "openapi": "3.0.0", + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "info": { + "version": "1.0.0", + "title": "Neutron API" + }, + "components": { + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer" + } + }, + "schemas": {}, + "parameters": {} + }, + "paths": { + "/market/orderbook/slippage": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getOrderbookSlippage", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + }, + { + "schema": { + "type": "string", + "default": "1000" + }, + "required": false, + "name": "trade_size", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "sell_spot_price": { + "type": "number" + }, + "sell_true_price": { + "type": "number" + }, + "sell_slippage": { + "type": "number" + }, + "buys_spot_price": { + "type": "number" + }, + "buys_true_price": { + "type": "number" + }, + "buys_slippage": { + "type": "number" + } + }, + "required": [ + "sell_spot_price", + "sell_true_price", + "sell_slippage", + "buys_spot_price", + "buys_true_price", + "buys_slippage" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Orderbook Slippage" + } + }, + "/market/orderbook/depth": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getOrderbookDepth", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "default": "1" + }, + "required": true, + "name": "market", + "in": "query" + }, + { + "schema": { + "type": "string", + "default": "1" + }, + "required": false, + "name": "slippage_tolerance", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "spot_price": { + "type": "number" + }, + "ask_price_limit": { + "type": "number" + }, + "bid_price_limit": { + "type": "number" + }, + "asks_depth": { + "type": "number" + }, + "bids_depth": { + "type": "number" + }, + "total_depth": { + "type": "number" + } + }, + "required": [ + "spot_price", + "ask_price_limit", + "bid_price_limit", + "asks_depth", + "bids_depth", + "total_depth" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Orderbook Depth" + } + }, + "/market/positions/duration_metrics": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getPositionsDurationMetrics", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "median_duration_minutes": { + "type": "number" + }, + "max_duration_minutes": { + "type": "number" + }, + "min_duration_minutes": { + "type": "number" + }, + "mean_duration_minutes": { + "type": "number" + } + }, + "required": [ + "median_duration_minutes", + "max_duration_minutes", + "min_duration_minutes", + "mean_duration_minutes" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Positions Duration Metrics" + } + }, + "/market/positions/long_short_ratio": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getPositionsLongShortRatio", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + }, + { + "schema": { + "type": "string", + "enum": [ + "hour", + "day", + "week", + "month" + ], + "default": "hour" + }, + "required": false, + "name": "granularity", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labels": { + "type": "string" + }, + "mean_acitve_long_positions": { + "type": "number" + }, + "mean_active_short_positions": { + "type": "number" + }, + "mean_long_short_ratio": { + "type": "number", + "nullable": true + } + }, + "required": [ + "labels", + "mean_acitve_long_positions", + "mean_active_short_positions", + "mean_long_short_ratio" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Positions Long Short Ratio" + } + }, + "/market/leverage": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getMarketsLeverage", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labels": { + "type": "string" + }, + "leverage_mean": { + "type": "number" + }, + "leverage_1st_qtle": { + "type": "number" + }, + "leverage_2st_qtle": { + "type": "number" + }, + "leverage_3st_qtle": { + "type": "number" + } + }, + "required": [ + "labels", + "leverage_mean", + "leverage_1st_qtle", + "leverage_2st_qtle", + "leverage_3st_qtle" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Markets Leverage" + } + }, + "/market/price": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getMarketsPrice", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labels": { + "type": "string" + }, + "price_in_usdc": { + "type": "number" + }, + "deviation_from_oracle": { + "type": "number", + "nullable": true + } + }, + "required": [ + "labels", + "price_in_usdc", + "deviation_from_oracle" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Markets Price" + } + }, + "/market/collateral": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getMarketsCollateral", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + }, + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labels": { + "type": "string" + }, + "collateral_mean": { + "type": "number" + }, + "collateral_1st_qtle": { + "type": "number" + }, + "collateral_2st_qtle": { + "type": "number" + }, + "collateral_3st_qtle": { + "type": "number" + } + }, + "required": [ + "labels", + "collateral_mean", + "collateral_1st_qtle", + "collateral_2st_qtle", + "collateral_3st_qtle" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Markets Collateral" + } + }, + "/megavault/flow": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getMegavaultFlow", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "start_date", + "in": "query" + }, + { + "schema": { + "type": "string", + "description": "Date in the format YYYY-MM-DD HH:MM:SS" + }, + "required": false, + "name": "end_date", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "labels": { + "type": "string" + }, + "total_inflow": { + "type": "number" + }, + "top_inflow": { + "type": "number" + }, + "top_inflow_tx_id": { + "type": "string" + }, + "total_outflow": { + "type": "number" + }, + "top_outflow": { + "type": "number" + }, + "top_outflow_tx_id": { + "type": "string" + } + }, + "required": [ + "labels", + "total_inflow", + "top_inflow", + "top_inflow_tx_id", + "total_outflow", + "top_outflow", + "top_outflow_tx_id" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Megavault Flow" + } + }, + "/market/unrealized_pnl_ranking": { + "get": { + "servers": [ + { + "url": "https://dydx.numia.xyz" + } + ], + "operationId": "getMarketsUnrealizedPnlRanking", + "tags": [], + "parameters": [ + { + "schema": { + "type": "string" + }, + "required": true, + "name": "market", + "in": "query" + } + ], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "market": { + "type": "string", + "description": "Dydx market" + }, + "address": { + "type": "string", + "nullable": true, + "description": "Address of the user" + }, + "unrealized_pnl": { + "type": "number", + "description": "Unrealized PnL of the user" + }, + "updated_at": { + "type": "string", + "description": "Timestamp of the last update" + } + }, + "required": [ + "market", + "address", + "unrealized_pnl", + "updated_at" + ] + } + } + } + } + } + }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Markets Unrealized PnL Ranking" + } + } + } +} From 6dc047811b4828b61abddae8f46b26dbb5bf52c2 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 14 Nov 2025 21:55:21 +0100 Subject: [PATCH 2/4] add api-config --- scripts/src/api-config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/src/api-config.ts b/scripts/src/api-config.ts index ee374cc..db70eaf 100644 --- a/scripts/src/api-config.ts +++ b/scripts/src/api-config.ts @@ -77,6 +77,12 @@ export const apiConfig: ApiSection[] = [ oasFile: "https://api-docs.numia.xyz/xion/openapi.json", title: "Xion", }, + { + name: "neutron", + categoryName: "Advanced APIs", + oasFile: "https://api-docs.numia.xyz/neutron/openapi.json", + title: "Neutron", + }, { name: "snapshots", categoryName: "Tools", From bf3914cbd0080afe2bfa30339e56eeb5efb0aa76 Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 14 Nov 2025 22:18:36 +0100 Subject: [PATCH 3/4] fix --- config.json | 19 +- ...int.mdx => get-dex-liquidity.endpoint.mdx} | 2 +- ...ndpoint.mdx => get-dex-pairs.endpoint.mdx} | 2 +- ...ndpoint.mdx => get-dex-price.endpoint.mdx} | 2 +- .../neutron/get-dex-swap-volume.endpoint.mdx | 8 + ...dpoint.mdx => get-dex-trades.endpoint.mdx} | 2 +- .../neutron/get-orderbook-depth.endpoint.mdx | 8 - .../get-orderbook-slippage.endpoint.mdx | 8 - ...et-positions-duration-metrics.endpoint.mdx | 8 - ...et-positions-long-short-ratio.endpoint.mdx | 8 - ...nt.mdx => get-trading-volume.endpoint.mdx} | 2 +- openAPI/neutron.json | 1238 +++++++---------- 12 files changed, 541 insertions(+), 766 deletions(-) rename docs/reference/neutron/{get-markets-unrealized-pnl-ranking.endpoint.mdx => get-dex-liquidity.endpoint.mdx} (77%) rename docs/reference/neutron/{get-markets-price.endpoint.mdx => get-dex-pairs.endpoint.mdx} (85%) rename docs/reference/neutron/{get-markets-collateral.endpoint.mdx => get-dex-price.endpoint.mdx} (78%) create mode 100644 docs/reference/neutron/get-dex-swap-volume.endpoint.mdx rename docs/reference/neutron/{get-markets-leverage.endpoint.mdx => get-dex-trades.endpoint.mdx} (78%) delete mode 100644 docs/reference/neutron/get-orderbook-depth.endpoint.mdx delete mode 100644 docs/reference/neutron/get-orderbook-slippage.endpoint.mdx delete mode 100644 docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx delete mode 100644 docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx rename docs/reference/neutron/{get-megavault-flow.endpoint.mdx => get-trading-volume.endpoint.mdx} (84%) diff --git a/config.json b/config.json index 618ac57..2395862 100644 --- a/config.json +++ b/config.json @@ -414,22 +414,19 @@ "groupName": "Neutron", "subpages": [ { - "groupName": "Market", + "groupName": "DEX", "subpages": [ - "reference/neutron/get-orderbook-slippage", - "reference/neutron/get-orderbook-depth", - "reference/neutron/get-positions-duration-metrics", - "reference/neutron/get-positions-long-short-ratio", - "reference/neutron/get-markets-leverage", - "reference/neutron/get-markets-price", - "reference/neutron/get-markets-collateral", - "reference/neutron/get-markets-unrealized-pnl-ranking" + "reference/neutron/get-dex-pairs", + "reference/neutron/get-dex-liquidity", + "reference/neutron/get-dex-price", + "reference/neutron/get-dex-trades", + "reference/neutron/get-dex-swap-volume" ] }, { - "groupName": "Megavault", + "groupName": "Trading", "subpages": [ - "reference/neutron/get-megavault-flow" + "reference/neutron/get-trading-volume" ] } ] diff --git a/docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx b/docs/reference/neutron/get-dex-liquidity.endpoint.mdx similarity index 77% rename from docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx rename to docs/reference/neutron/get-dex-liquidity.endpoint.mdx index 7c2cc99..689fea8 100644 --- a/docs/reference/neutron/get-markets-unrealized-pnl-ranking.endpoint.mdx +++ b/docs/reference/neutron/get-dex-liquidity.endpoint.mdx @@ -1,5 +1,5 @@ --- -route: GET /market/unrealized_pnl_ranking +route: GET /dex/liquidity/{denom0}/{denom1} --- {/* Don't change the file name or the metadata in this file */} diff --git a/docs/reference/neutron/get-markets-price.endpoint.mdx b/docs/reference/neutron/get-dex-pairs.endpoint.mdx similarity index 85% rename from docs/reference/neutron/get-markets-price.endpoint.mdx rename to docs/reference/neutron/get-dex-pairs.endpoint.mdx index 60a4d47..8401c7e 100644 --- a/docs/reference/neutron/get-markets-price.endpoint.mdx +++ b/docs/reference/neutron/get-dex-pairs.endpoint.mdx @@ -1,5 +1,5 @@ --- -route: GET /market/price +route: GET /dex/pairs --- {/* Don't change the file name or the metadata in this file */} diff --git a/docs/reference/neutron/get-markets-collateral.endpoint.mdx b/docs/reference/neutron/get-dex-price.endpoint.mdx similarity index 78% rename from docs/reference/neutron/get-markets-collateral.endpoint.mdx rename to docs/reference/neutron/get-dex-price.endpoint.mdx index 2b9f2f3..9ebd078 100644 --- a/docs/reference/neutron/get-markets-collateral.endpoint.mdx +++ b/docs/reference/neutron/get-dex-price.endpoint.mdx @@ -1,5 +1,5 @@ --- -route: GET /market/collateral +route: GET /dex/price/{denom0}/{denom1} --- {/* Don't change the file name or the metadata in this file */} diff --git a/docs/reference/neutron/get-dex-swap-volume.endpoint.mdx b/docs/reference/neutron/get-dex-swap-volume.endpoint.mdx new file mode 100644 index 0000000..91657f6 --- /dev/null +++ b/docs/reference/neutron/get-dex-swap-volume.endpoint.mdx @@ -0,0 +1,8 @@ +--- +route: GET /dex/swap-volume/{denom0}/{denom1} +--- + +{/* Don't change the file name or the metadata in this file */} +import PriceTag from "@site/src/components/PriceTag"; + + diff --git a/docs/reference/neutron/get-markets-leverage.endpoint.mdx b/docs/reference/neutron/get-dex-trades.endpoint.mdx similarity index 78% rename from docs/reference/neutron/get-markets-leverage.endpoint.mdx rename to docs/reference/neutron/get-dex-trades.endpoint.mdx index 028b306..1ecdbdf 100644 --- a/docs/reference/neutron/get-markets-leverage.endpoint.mdx +++ b/docs/reference/neutron/get-dex-trades.endpoint.mdx @@ -1,5 +1,5 @@ --- -route: GET /market/leverage +route: GET /dex/trades/{denom0}/{denom1} --- {/* Don't change the file name or the metadata in this file */} diff --git a/docs/reference/neutron/get-orderbook-depth.endpoint.mdx b/docs/reference/neutron/get-orderbook-depth.endpoint.mdx deleted file mode 100644 index 1edceea..0000000 --- a/docs/reference/neutron/get-orderbook-depth.endpoint.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -route: GET /market/orderbook/depth ---- - -{/* Don't change the file name or the metadata in this file */} -import PriceTag from "@site/src/components/PriceTag"; - - diff --git a/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx b/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx deleted file mode 100644 index a0de501..0000000 --- a/docs/reference/neutron/get-orderbook-slippage.endpoint.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -route: GET /market/orderbook/slippage ---- - -{/* Don't change the file name or the metadata in this file */} -import PriceTag from "@site/src/components/PriceTag"; - - diff --git a/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx b/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx deleted file mode 100644 index 9ac103f..0000000 --- a/docs/reference/neutron/get-positions-duration-metrics.endpoint.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -route: GET /market/positions/duration_metrics ---- - -{/* Don't change the file name or the metadata in this file */} -import PriceTag from "@site/src/components/PriceTag"; - - diff --git a/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx b/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx deleted file mode 100644 index dc616c8..0000000 --- a/docs/reference/neutron/get-positions-long-short-ratio.endpoint.mdx +++ /dev/null @@ -1,8 +0,0 @@ ---- -route: GET /market/positions/long_short_ratio ---- - -{/* Don't change the file name or the metadata in this file */} -import PriceTag from "@site/src/components/PriceTag"; - - diff --git a/docs/reference/neutron/get-megavault-flow.endpoint.mdx b/docs/reference/neutron/get-trading-volume.endpoint.mdx similarity index 84% rename from docs/reference/neutron/get-megavault-flow.endpoint.mdx rename to docs/reference/neutron/get-trading-volume.endpoint.mdx index eafd9de..f439938 100644 --- a/docs/reference/neutron/get-megavault-flow.endpoint.mdx +++ b/docs/reference/neutron/get-trading-volume.endpoint.mdx @@ -1,5 +1,5 @@ --- -route: GET /megavault/flow +route: GET /trading/volume --- {/* Don't change the file name or the metadata in this file */} diff --git a/openAPI/neutron.json b/openAPI/neutron.json index 5317526..d643ab5 100644 --- a/openAPI/neutron.json +++ b/openAPI/neutron.json @@ -1,742 +1,544 @@ { - "openapi": "3.0.0", - "servers": [ - { - "url": "https://neutron.numia.xyz" - } - ], - "security": [ - { - "bearerAuth": [] - } - ], - "info": { - "version": "1.0.0", - "title": "Neutron API" - }, - "components": { - "securitySchemes": { - "bearerAuth": { - "type": "http", - "scheme": "bearer" - } + "openapi": "3.0.0", + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "security": [ + { + "bearerAuth": [] + } + ], + "info": { + "version": "1.0.0", + "title": "Neutron API" }, - "schemas": {}, - "parameters": {} - }, - "paths": { - "/market/orderbook/slippage": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getOrderbookSlippage", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - }, - { - "schema": { - "type": "string", - "default": "1000" - }, - "required": false, - "name": "trade_size", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "sell_spot_price": { - "type": "number" - }, - "sell_true_price": { - "type": "number" - }, - "sell_slippage": { - "type": "number" - }, - "buys_spot_price": { - "type": "number" - }, - "buys_true_price": { - "type": "number" - }, - "buys_slippage": { - "type": "number" - } - }, - "required": [ - "sell_spot_price", - "sell_true_price", - "sell_slippage", - "buys_spot_price", - "buys_true_price", - "buys_slippage" - ] - } - } - } + "components": { + "securitySchemes": { + "bearerAuth": { + "type": "http", + "scheme": "bearer" } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Orderbook Slippage" - } + "schemas": {}, + "parameters": {} }, - "/market/orderbook/depth": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getOrderbookDepth", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "default": "1" - }, - "required": true, - "name": "market", - "in": "query" - }, - { - "schema": { - "type": "string", - "default": "1" - }, - "required": false, - "name": "slippage_tolerance", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "spot_price": { - "type": "number" - }, - "ask_price_limit": { - "type": "number" - }, - "bid_price_limit": { - "type": "number" - }, - "asks_depth": { - "type": "number" - }, - "bids_depth": { - "type": "number" - }, - "total_depth": { - "type": "number" - } - }, - "required": [ - "spot_price", - "ask_price_limit", - "bid_price_limit", - "asks_depth", - "bids_depth", - "total_depth" - ] - } + "paths": { + "/dex/pairs": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getDexPairs", + "tags": [], + "sidebar": "dex", + "attributes": { + "x-sidebar": "dex" + }, + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "token_0": { + "type": "string", + "description": "First token in the pair" + }, + "token_1": { + "type": "string", + "description": "Second token in the pair" + }, + "created_at_height": { + "type": "string", + "description": "Block height when the pair was created" + }, + "updated_at_height": { + "type": "string", + "description": "Block height when the pair was last updated" + }, + "created_at": { + "type": "string", + "description": "Timestamp when the pair was created" + }, + "updated_at": { + "type": "string", + "description": "Timestamp when the pair was last updated" + } + }, + "required": [ + "token_0", + "token_1", + "created_at_height", + "updated_at_height", + "created_at", + "updated_at" + ] + } + }, + "meta": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the field" + }, + "type": { + "type": "string", + "description": "Data type of the field in the database" + }, + "units": { + "type": "string", + "description": "" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "height": { + "type": "string" + } + }, + "required": [ + "data", + "meta", + "height" + ] + } + } + } + } } - } } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Orderbook Depth" - } - }, - "/market/positions/duration_metrics": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getPositionsDurationMetrics", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "median_duration_minutes": { - "type": "number" - }, - "max_duration_minutes": { - "type": "number" - }, - "min_duration_minutes": { - "type": "number" - }, - "mean_duration_minutes": { - "type": "number" - } - }, - "required": [ - "median_duration_minutes", - "max_duration_minutes", - "min_duration_minutes", - "mean_duration_minutes" - ] - } + "/dex/liquidity/{denom0}/{denom1}": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getDexLiquidity", + "tags": [], + "sidebar": "dex", + "attributes": { + "x-sidebar": "dex" + }, + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "index": { + "type": "string", + "description": "Tick index" + }, + "reserves_0": { + "type": "string", + "nullable": true, + "description": "Reserves for denom0" + }, + "reserves_1": { + "type": "string", + "nullable": true, + "description": "Reserves for denom1" + } + }, + "required": [ + "index" + ] + } + }, + "meta": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the field" + }, + "type": { + "type": "string", + "description": "Data type of the field in the database" + }, + "units": { + "type": "string", + "description": "" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "height": { + "type": "string" + }, + "time": { + "type": "string" + } + }, + "required": [ + "data", + "meta", + "height", + "time" + ] + } + } + } + } } - } } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Positions Duration Metrics" - } - }, - "/market/positions/long_short_ratio": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getPositionsLongShortRatio", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - }, - { - "schema": { - "type": "string", - "enum": [ - "hour", - "day", - "week", - "month" - ], - "default": "hour" - }, - "required": false, - "name": "granularity", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "labels": { - "type": "string" - }, - "mean_acitve_long_positions": { - "type": "number" - }, - "mean_active_short_positions": { - "type": "number" - }, - "mean_long_short_ratio": { - "type": "number", - "nullable": true - } - }, - "required": [ - "labels", - "mean_acitve_long_positions", - "mean_active_short_positions", - "mean_long_short_ratio" - ] - } + "/dex/price/{denom0}/{denom1}": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getDexPrice", + "tags": [], + "sidebar": "dex", + "attributes": { + "x-sidebar": "dex" + }, + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "time": { + "type": "string", + "description": "Timestamp for the OHLC period" + }, + "open": { + "type": "number", + "description": "Opening tick index" + }, + "high": { + "type": "number", + "description": "Highest tick index" + }, + "low": { + "type": "number", + "description": "Lowest tick index" + }, + "close": { + "type": "number", + "description": "Closing tick index" + } + }, + "required": [ + "time", + "open", + "high", + "low", + "close" + ] + } + }, + "meta": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the field" + }, + "type": { + "type": "string", + "description": "Data type of the field in the database" + }, + "units": { + "type": "string", + "description": "" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "height": { + "type": "string" + }, + "time": { + "type": "string" + } + }, + "required": [ + "data", + "meta", + "height", + "time" + ] + } + } + } + } } - } } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Positions Long Short Ratio" - } - }, - "/market/leverage": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getMarketsLeverage", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "labels": { - "type": "string" - }, - "leverage_mean": { - "type": "number" - }, - "leverage_1st_qtle": { - "type": "number" - }, - "leverage_2st_qtle": { - "type": "number" - }, - "leverage_3st_qtle": { - "type": "number" - } - }, - "required": [ - "labels", - "leverage_mean", - "leverage_1st_qtle", - "leverage_2st_qtle", - "leverage_3st_qtle" - ] - } + "/dex/trades/{denom0}/{denom1}": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getDexTrades", + "tags": [], + "sidebar": "dex", + "attributes": { + "x-sidebar": "dex" + }, + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "time": { + "type": "string" + }, + "height": { + "type": "string" + }, + "tx": { + "type": "string" + }, + "buy": { + "type": "string", + "nullable": true + }, + "sell": { + "type": "string", + "nullable": true + }, + "buy_at": { + "type": "number", + "nullable": true + }, + "sell_at": { + "type": "number", + "nullable": true + } + }, + "required": [ + "time", + "height" + ] + } + }, + "meta": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the field" + }, + "type": { + "type": "string", + "description": "Data type of the field in the database" + }, + "units": { + "type": "string", + "description": "" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "height": { + "type": "string" + }, + "time": { + "type": "string" + } + }, + "required": [ + "data", + "meta", + "height" + ] + } + } + } + } } - } } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Markets Leverage" - } - }, - "/market/price": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getMarketsPrice", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "labels": { - "type": "string" - }, - "price_in_usdc": { - "type": "number" - }, - "deviation_from_oracle": { - "type": "number", - "nullable": true - } - }, - "required": [ - "labels", - "price_in_usdc", - "deviation_from_oracle" - ] - } + "/dex/swap-volume/{denom0}/{denom1}": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getDexSwapVolume", + "tags": [], + "sidebar": "dex", + "attributes": { + "x-sidebar": "dex" + }, + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "time": { + "type": "string", + "description": "Timestamp for the volume period" + }, + "volume": { + "type": "string", + "description": "Volume amount" + } + }, + "required": [ + "time", + "volume" + ] + } + }, + "meta": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of the field" + }, + "type": { + "type": "string", + "description": "Data type of the field in the database" + }, + "units": { + "type": "string", + "description": "" + } + }, + "required": [ + "name", + "type" + ] + } + }, + "height": { + "type": "string" + }, + "time": { + "type": "string" + } + }, + "required": [ + "data", + "meta", + "height", + "time" + ] + } + } + } + } } - } } - } }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Markets Price" - } - }, - "/market/collateral": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getMarketsCollateral", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - }, - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "labels": { - "type": "string" - }, - "collateral_mean": { - "type": "number" - }, - "collateral_1st_qtle": { - "type": "number" - }, - "collateral_2st_qtle": { - "type": "number" - }, - "collateral_3st_qtle": { - "type": "number" - } - }, - "required": [ - "labels", - "collateral_mean", - "collateral_1st_qtle", - "collateral_2st_qtle", - "collateral_3st_qtle" - ] - } + "/trading/volume": { + "get": { + "servers": [ + { + "url": "https://neutron.numia.xyz" + } + ], + "operationId": "getTradingVolume", + "tags": [], + "responses": { + "200": { + "description": "Status: 200", + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "type": "object", + "properties": { + "day": { + "type": "string" + }, + "value": { + "type": "number" + } + }, + "required": [ + "day", + "value" + ] + } + } + } + } + } } - } } - } - }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Markets Collateral" - } - }, - "/megavault/flow": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getMegavaultFlow", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "start_date", - "in": "query" - }, - { - "schema": { - "type": "string", - "description": "Date in the format YYYY-MM-DD HH:MM:SS" - }, - "required": false, - "name": "end_date", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "labels": { - "type": "string" - }, - "total_inflow": { - "type": "number" - }, - "top_inflow": { - "type": "number" - }, - "top_inflow_tx_id": { - "type": "string" - }, - "total_outflow": { - "type": "number" - }, - "top_outflow": { - "type": "number" - }, - "top_outflow_tx_id": { - "type": "string" - } - }, - "required": [ - "labels", - "total_inflow", - "top_inflow", - "top_inflow_tx_id", - "total_outflow", - "top_outflow", - "top_outflow_tx_id" - ] - } - } - } - } - } - }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Megavault Flow" - } - }, - "/market/unrealized_pnl_ranking": { - "get": { - "servers": [ - { - "url": "https://dydx.numia.xyz" - } - ], - "operationId": "getMarketsUnrealizedPnlRanking", - "tags": [], - "parameters": [ - { - "schema": { - "type": "string" - }, - "required": true, - "name": "market", - "in": "query" - } - ], - "responses": { - "200": { - "description": "Status: 200", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "type": "object", - "properties": { - "market": { - "type": "string", - "description": "Dydx market" - }, - "address": { - "type": "string", - "nullable": true, - "description": "Address of the user" - }, - "unrealized_pnl": { - "type": "number", - "description": "Unrealized PnL of the user" - }, - "updated_at": { - "type": "string", - "description": "Timestamp of the last update" - } - }, - "required": [ - "market", - "address", - "unrealized_pnl", - "updated_at" - ] - } - } - } - } - } - }, - "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", - "summary": "Get Markets Unrealized PnL Ranking" - } + } } - } } From d1321e24410740dfefb4aa0174e4fa23141c005f Mon Sep 17 00:00:00 2001 From: Alvaro Date: Fri, 14 Nov 2025 22:30:45 +0100 Subject: [PATCH 4/4] fix again --- openAPI/neutron.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openAPI/neutron.json b/openAPI/neutron.json index d643ab5..c2f8889 100644 --- a/openAPI/neutron.json +++ b/openAPI/neutron.json @@ -38,6 +38,8 @@ "attributes": { "x-sidebar": "dex" }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get DEX Pairs", "responses": { "200": { "description": "Status: 200", @@ -139,6 +141,8 @@ "attributes": { "x-sidebar": "dex" }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get DEX Liquidity", "responses": { "200": { "description": "Status: 200", @@ -229,6 +233,8 @@ "attributes": { "x-sidebar": "dex" }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get DEX Price", "responses": { "200": { "description": "Status: 200", @@ -329,6 +335,8 @@ "attributes": { "x-sidebar": "dex" }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get DEX Trades", "responses": { "200": { "description": "Status: 200", @@ -430,6 +438,8 @@ "attributes": { "x-sidebar": "dex" }, + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get DEX Swap Volume", "responses": { "200": { "description": "Status: 200", @@ -511,6 +521,8 @@ ], "operationId": "getTradingVolume", "tags": [], + "description": "import PriceTag from \"@site/src/components/PriceTag\";\n\n", + "summary": "Get Trading Volume", "responses": { "200": { "description": "Status: 200",