Skip to content

XSwap

🛠 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

🔑 How to Connect

Create a wallet on one of the supported networks below:

Chain Networks
xdc-chain xinfin, apothem

From inside the Hummingbot client, run gateway connect xswap in order to connect your wallet:

Which chain do you want xswap to connect to? (xdc-chain) >>>
Which network do you want xswap to connect to? (xinfin, apothem) >>>
Enter your xdc-chain-xinfin private key >>>>

If connection is successful:

The xswap connector now uses wallet [pubKey] on xdc-chain-xinfin

2ī¸âƒŖ AMM Connector

Integration to this DEX's swap pricing and execution endpoints

Endpoints

  • /amm/price
  • /amm/trade
  • /chain/allowances

For more info, run Gateway and go to in your browser to see detailed documentation for each endpoint.

đŸ•¯ AMM Data Feed

Data feed of this exchange's real-time prices

Usage

from hummingbot.data_feed.amm_gateway_data_feed import AmmGatewayDataFeed
prices = AmmGatewayDataFeed(
        connector_chain_network="xswap_xdc_xinfin",
        trading_pairs={"XSP-WXDC", "WXDC-xUSDT"},
        order_amount_in_base=Decimal("1"),
    )