Skip to content

Perp

🛠 Connector Info

  • Exchange Type: Decentralized Exchange (DEX)
  • Market Type: Central Limit Order Book (CLOB)
Component Status Notes
🔀 Spot Connector Not available
🔀 Perp Connector ✅
đŸ•¯ AMM Data Feed ✅

ℹī¸ Exchange Info

🔑 How to Connect

Create a wallet on one of the supported networks below:

Chain Networks
ethereum optimism

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

Which chain do you want perp to connect to? (ethereum) >>>
Which network do you want perp to connect to? (optimism) >>>
Enter your ethereum-optimism private key >>>>

If connection is successful:

The perp connector now uses wallet [pubKey] on ethereum-optimism

🔀 Spot Connector

Integration to spot markets API endpoints

Endpoints

  • /amm/perp/market-prices
  • /amm/perp/market-status
  • /amm/perp/pairs
  • /amm/perp/position
  • /amm/perp/balance
  • /amm/perp/open
  • /amm/perp/close

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="perp_ethereum_optimism",
        trading_pairs={"WAVAX-USDC", "PERP-USDC"},
        order_amount_in_base=Decimal("1"),
    )