From 13df6c6d20d78b876c3185687dee5a71f0623662 Mon Sep 17 00:00:00 2001 From: UjjwalGupta49 Date: Thu, 30 Oct 2025 14:49:40 +0530 Subject: [PATCH 1/4] feat: default params for API playground --- docs.json | 6 ++++++ openapi-spec/ultra/ultra.yaml | 18 +++++++----------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/docs.json b/docs.json index 78015604..bdb69157 100644 --- a/docs.json +++ b/docs.json @@ -17,6 +17,12 @@ "background": { "decoration": "gradient" }, + "api": { + "playground": { + "display": "interactive", + "prefill": true + } + }, "navigation": { "tabs": [ { diff --git a/openapi-spec/ultra/ultra.yaml b/openapi-spec/ultra/ultra.yaml index b4abb3ab..bf0015db 100644 --- a/openapi-spec/ultra/ultra.yaml +++ b/openapi-spec/ultra/ultra.yaml @@ -107,14 +107,14 @@ paths: - If no additional referral params are passed in, the fee will be the Ultra default fee only and can include additional fees for gasless support mechanism platformFee: type: object + description: | + - This field shows the platform fee only, does not include fee for gas + - Platform fee can either be the Ultra default fee or your integrator fee properties: amount: type: string feeBps: - type: number - description: | - - This field shows the platform fee only, does not include fee for gas - - Platform fee can either be the Ultra default fee or your integrator fee + type: number required: - feeBps signatureFeeLamports: @@ -323,13 +323,7 @@ paths: - **Only include** Meteora DLMM: `excludeRouters=` and `excludeDexes=` schema: type: string - - in: query - name: payer - description: | - - The address of an external gas payer to pay for the network fees and rent on behalf of the taker - schema: - type: string - required: false + /execute: post: summary: execute @@ -616,6 +610,7 @@ paths: name: mints schema: type: string + default: "So11111111111111111111111111111111111111112,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" required: true description: | - Comma separated list of mints to get information for @@ -689,6 +684,7 @@ paths: name: query schema: type: string + default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" required: true description: | - Search for a token and its information by its symbol, name or mint address From 9b2bc5ae338201cc7808a5ccb804b0eda687fc1b Mon Sep 17 00:00:00 2001 From: UjjwalGupta49 Date: Thu, 30 Oct 2025 17:25:13 +0530 Subject: [PATCH 2/4] feat: default params for order and holdings --- openapi-spec/ultra/ultra.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openapi-spec/ultra/ultra.yaml b/openapi-spec/ultra/ultra.yaml index bf0015db..636c1d13 100644 --- a/openapi-spec/ultra/ultra.yaml +++ b/openapi-spec/ultra/ultra.yaml @@ -252,21 +252,25 @@ paths: name: inputMint schema: type: string + default: "So11111111111111111111111111111111111111112" required: true - in: query name: outputMint schema: type: string + default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" required: true - in: query name: amount schema: type: string + default: "10000000" required: true - in: query name: taker schema: type: string + default: "vBXNsd5SRtTPpW7GWv3wREA6Ztm2jCWp5eqqTsVhyG5" required: false - in: query name: payer @@ -496,6 +500,7 @@ paths: parameters: - schema: type: string + default: "vBXNsd5SRtTPpW7GWv3wREA6Ztm2jCWp5eqqTsVhyG5" in: path name: address required: true From 56b60901bf8e3f10fa53f5540ca8931b8c11d0e3 Mon Sep 17 00:00:00 2001 From: UjjwalGupta49 Date: Thu, 30 Oct 2025 19:02:45 +0530 Subject: [PATCH 3/4] feat: default-prams for lend --- openapi-spec/lend/lend.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/openapi-spec/lend/lend.yaml b/openapi-spec/lend/lend.yaml index 337aee16..4be85bbc 100644 --- a/openapi-spec/lend/lend.yaml +++ b/openapi-spec/lend/lend.yaml @@ -239,10 +239,13 @@ components: properties: asset: type: string + default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" signer: type: string + default: "vBXNsd5SRtTPpW7GWv3wREA6Ztm2jCWp5eqqTsVhyG5" amount: type: string + default: "5" example: asset: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" signer: "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf" @@ -257,10 +260,13 @@ components: properties: asset: type: string + default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" signer: type: string + default: "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf" shares: type: string + default: "1000000" example: asset: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" signer: "HYbxGkNvEwvZ14RzJHPB9h3dWfXjxwAEhkyzJRHx1hBf" From 961a79a006925744702b0661131097b55de0a961 Mon Sep 17 00:00:00 2001 From: UjjwalGupta49 Date: Thu, 30 Oct 2025 19:13:48 +0530 Subject: [PATCH 4/4] feat: default-params for trigger orders --- openapi-spec/trigger/trigger.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openapi-spec/trigger/trigger.yaml b/openapi-spec/trigger/trigger.yaml index d66a1642..66750db1 100644 --- a/openapi-spec/trigger/trigger.yaml +++ b/openapi-spec/trigger/trigger.yaml @@ -35,6 +35,7 @@ paths: properties: maker: type: string + default: "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3" computeUnitPrice: type: string default: auto @@ -54,7 +55,9 @@ paths: orders: - 6fe8ByaiFHisjnYnH5qdpyiNtkn89mMBQUemRkVmKhro - 9jwzPKHxcrSozdrTYzPnTqy7psRvNGxaYUAiiyxwZKjj - computeUnitPrice: auto + computeUnitPrice: + type: string + default: auto responses: '200': description: | @@ -152,21 +155,27 @@ paths: properties: inputMint: type: string + default: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v" outputMint: type: string + default: "So11111111111111111111111111111111111111112" maker: type: string + default: "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3" payer: type: string + default: "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3" params: type: object properties: makingAmount: type: string description: Amount of input mint to swap + default: "100000000" takingAmount: type: string description: Amount of output mint to receive + default: "50000000" expiredAt: type: string slippageBps: @@ -307,8 +316,10 @@ paths: properties: maker: type: string + default: "jdocuPgEAjMfihABsPgKEvYtsmMzjUHeq9LX4Hvs7f3" order: type: string + default: "6fe8ByaiFHisjnYnH5qdpyiNtkn89mMBQUemRkVmKhro" computeUnitPrice: type: string default: auto