0x Protocol¶
đ Connector Info¶
- Folder: https://github.com/hummingbot/gateway/tree/development/src/connectors/0x
- Default Configs: https://github.com/hummingbot/gateway/blob/development/src/templates/0x.yml
Component | Status | Notes |
---|---|---|
Router Connector | â | Professional DEX Aggregator with RFQ |
âšī¸ Exchange Info¶
- Website: https://0x.org
- CoinMarketCap: https://coinmarketcap.com/exchanges/0x-protocol/
- CoinGecko: https://www.coingecko.com/en/exchanges/0x_protocol
- Fees: https://0x.org/docs/introduction/0x-cheat-sheet#swap-api
- API Docs: https://0x.org/docs/api
đ How to Connect¶
0x Protocol operates on Ethereum and EVM-compatible networks.
Chain | Networks |
---|---|
ethereum |
mainnet , arbitrum , optimism , base , polygon , avalanche , bsc |
See Gateway Connect for instructions on connecting your wallet to Gateway.
Configuration¶
Configure 0x settings in /conf/connectors/0x.yml
:
allowedSlippage: 1.0
gasLimitEstimate: 350000
ttl: 30
apiEndpoint: "https://api.0x.org"
apiKey: null # Optional API key for higher rate limits
Configuration Parameters¶
- allowedSlippage: Maximum acceptable price slippage percentage
- gasLimitEstimate: Estimated gas limit for transactions
- ttl: Time-to-live for quotes in seconds
- apiEndpoint: 0x API endpoint URL
- apiKey: Optional API key for enhanced features and higher rate limits
Router Endpoints¶
Integration to 0x Protocol's professional-grade DEX aggregation
/connectors/0x/router/quote-swap
/connectors/0x/router/execute-quote
/connectors/0x/router/execute-swap
For more info, run Gateway in development mode and go to http://localhost:15888 in your browser to see detailed documentation for each endpoint.