EVM APIs
API for querying token and pool stats across various liquidity pools
Finance & banking#cryptocurrency
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
API for querying token and pool stats across various liquidity pools
Endpoints 13
swap
- GETgetPrice (Allowance Holder)
/swap/allowance-holder/price?chainId=0&buyToken=string&sellToken=stringGet the indicative price for a swap using Allowance Holder to set allowances - GETgetQuote (Allowance Holder)
/swap/allowance-holder/quote?chainId=0&buyToken=string&sellToken=string&taker=stringGet the firm quote for a swap using Allowance Holder to set allowances - GETgetPrice (Permit2)
/swap/permit2/price?chainId=0&buyToken=string&sellToken=stringGet the indicative price for a swap using Permit2 to set allowances - GETgetQuote (Permit2)
/swap/permit2/quote?chainId=0&buyToken=string&sellToken=string&taker=stringGet the firm quote for a swap using Permit2 to set allowances - GETgetChains
/swap/chainsGet list of supported chains for swap
gasless
- GETgetPrice
/gasless/price?chainId=0&buyToken=string&sellToken=string&sellAmount=stringGet the indicative price for a gasless swap - GETgetQuote
/gasless/quote?chainId=0&buyToken=string&sellToken=string&sellAmount=string&taker=stringGet the firm quote for a gasless swap - POSTsubmit
/gasless/submitSubmit a gasless swap - GETgetStatus
/gasless/status/:tradeHash?chainId=0Get the status of a gasless swap - GETgetChains
/gasless/chainsGet list of supported chains for gasless
sources
- GETgetSources
/sources?chainId=0Get the list of supported sources
tradeAnalytics
- GETgetSwapTrades
/trade-analytics/swapGet the list of completed swap trades. Returns a maximum of 200 trades per request. Visit here for more details about how the API works. - GETgetGaslessTrades
/trade-analytics/gaslessGet the list of completed gasless trades. Returns a maximum of 200 trades per request. Visit here for more details about how the API works.
API details
- Base URL
https://api.0x.org- Authentication
- None declared in the description
- Operations
- 13 operations on 13 pathsGET 12POST 1
- Main resources
- gasless 5swap 5tradeAnalytics 2sources 1
- Response formats
application/json- Description format
- OpenAPI 3.1.0, API version
1.0.0 - Links
- OpenAPI document
- Listed from
- 0x's published OpenAPI description
How to test the EVM APIs in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the EVM APIs collection, without the publisher's secrets.
- Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
- Send a requestPick an endpoint, for example “getPrice (Allowance Holder)” (GET /swap/allowance-holder/price?chainId=0&buyToken=string&sellToken=string), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the EVM APIs?
API for querying token and pool stats across various liquidity pools It is listed under Finance & banking and has 13 endpoints.
Who publishes the EVM APIs?
It is listed from 0x's public API description (an OpenAPI document), not published by 0x on Swastik Codes. Anyone who controls 0x.org can claim the profile by adding a DNS TXT record.
What is the base URL of the EVM APIs?
Requests go to https://api.0x.org. Endpoint paths are added to this base URL.
How do I authenticate with the EVM APIs?
Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.
How many endpoints does the EVM APIs have?
13 operations on 13 paths (12 GET, 1 POST). The largest groups are gasless, swap, tradeAnalytics, sources.
Is forking the EVM APIs free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.