Pancakeswap
Note
This connector is available in Gateway Legacy (v2.2). For installation instructions, refer to the Installation Guide.
đ Connector Info¶
- Exchange Type: Decentralized Exchange (DEX)
- Market Type: Automatic Market Maker (AMM)
| Component | Status | Notes |
|---|---|---|
| 2ī¸âŖ AMM Connector | â | |
| 3ī¸âŖ Range AMM Connector | Not built | |
| đ¯ AMM Data Feed | â |
âšī¸ Exchange Info¶
- Website: https://pancakeswap.finance
- CoinMarketCap: https://coinmarketcap.com/exchanges/pancakeswap/
- CoinGecko: https://www.coingecko.com/en/exchanges/pancakeswap
- Fees: https://docs.pancakeswap.finance/products/pancakeswap-exchange/pancakeswap-pools
đ How to Connect¶
Create a wallet on one of the supported networks below:
| Chain | Networks |
|---|---|
binance-smart-chain |
mainnet, testnet |
From inside the Hummingbot client, run gateway connect pancakeswap in order to connect your wallet:
Which chain do you want pancakeswap to connect to? (binance-smart-chain) >>>
Which network do you want pancakeswap to connect to? (mainnet, testnet) >>>
Enter your binance-smart-chain-mainnet private key >>>>
If connection is successful (binance-smart-chain-mainnet):
2ī¸âŖ AMM Connector¶
Integration to this DEX's swap pricing and execution endpoints
- ID:
pancakeswap - Connection Type: REST via Gateway
- API Docs: https://docs.pancakeswap.finance/
- Folder: https://github.com/hummingbot/gateway/tree/main/src/connectors/pancakeswap
- Default Configs: https://github.com/hummingbot/gateway/blob/main/src/templates/pancakeswap.yml
Endpoints¶
/amm/price/amm/trade/amm/estimateGas
For more info, run Gateway and go to
đ¯ AMM Data Feed¶
Data feed of this exchange's real-time prices
- ID:
pancakeswap_[CHAIN]_[NETWORK] - Connection Type: REST via Gateway
- Folder: https://github.com/hummingbot/hummingbot/blob/master/hummingbot/data_feed/amm_gateway_data_feed.py