这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@metaverse-monk
Copy link

This is my first contribution. I ran into this issue while using the Gateway Jupiter connector from source. These changes resolved the error and allowed the /jupiter/price endpoint to function as expected.

What this does

  • Adds support for baseToken and quoteToken fields in the /jupiter/price endpoint
  • This fixes validation errors that occur when trying to call the endpoint with token mint addresses

Why it matters

Without these changes, valid requests using the expected mint address fields fail validation. These changes enable developers to properly integrate Jupiter connector in secure HTTPS mode using token mints.

How to test

  1. Launch Gateway in HTTPS mode
  2. Use curl to hit /jupiter/price with this body:
{
  "chain": "solana",
  "network": "mainnet-beta",
  "connector": "jupiter",
  "baseToken": "So11111111111111111111111111111111111111112",
  "quoteToken": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "amount": "1000000",
  "side": "SELL",
  "base": true,
  "quote": false
}

@fengtality
Copy link
Contributor

This PR is no longer needed since the Hummingbot client on development has been updated to the new Gateway endpoints.

@fengtality fengtality closed this Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants