1

we are testing the 0x API our goal is to get more details, like the top 5 rates along with the best rate also routing information can anyone point me in the right direction, please by default, it only gives the best rate and not the 2nd or 3rd best.

1 Answer 1

0

For your use case, you need to fork 0X API and implement the way to fit your needs, docs on 0x API don't mention ways to customize the way you want.

If I was you I would go start checking these routes https://github.com/0xProject/0x-api/blob/master/src/routers/swap_router.ts and start check the endpoint that calculates the rates and customize it to also add more rates.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.