Unified Routing API is a service to route and parameterize all Uniswap trade types.
Currently supported routing types:
- Classic: routes using Uniswap Routing API against the Uniswap v2 and Uniswap v3 AMM protocols
- DutchLimit: parameterizes a UniswapX Dutch Order to be executed by off-chain fillers
-
Create a .env file with the necessary dependencies
PARAMETERIZATION_API_URL=<> ROUTING_API_URL=<> SERVICE_URL=<> UNISWAP_API='<YourUrl>'
To deploy to your own AWS account,
yarn && yarn build
then
cdk deploy UnifiedRoutingStack
after successful deployment, you should see something like
✅ UnifiedRoutingStack
✨ Deployment time: 93.78s
Outputs:
UnifiedRoutingStack.UnifiedRoutingEndpointEE9D7262 = <your dev url>
UnifiedRoutingStack.Url = <your dev url>
The project currently has a GET hello-world
Api Gateway<>Lambda integration set up:
❯ curl <url>/prod/quote/hello-world
"hello world"%
-
Deploy your API using the intructions above.
-
Add your deployed API url to your
.env
file asUNISWAP_API
UNISWAP_API='<YourUrl>'
-
Run the tests with:
yarn test:integ