Skip to main content

New Pool

New Pool data stream.

Connect

websocat wss://api.datamaxiplus.com/ws/v1/dex/new-pool -H 'X-DTMX-APIKEY: $YOUR_API_KEY'

Subscribe

  • method specifies the type of request.

  • params list represents of symbols on exchanges that user wants to subscribe. The format of parameter is chain@exchange (e.g. "kaia_mainnet@klayswap"). You can request the list of supported chains with /api/v1/dex/chains exchanges with /api/v1/dex/exchanges endpoint.

  • The id uniquely identifies the subscription request.

  • chain is mandatory while exchange is optional param.

{
"method": "SUBSCRIBE",
"params": [
string
],
"id": int32
}

Response

  • c represents chain of new pool event
  • e represents exchange of new pool event
  • b represents base token of new pool event
  • q represents quote token of new pool event
  • ba represents base address of base token
  • qa represents quote address of base token
  • pa represents the address of new created pool
  • id represents unique id of new pool event
{
"c": string,
"e": string,
"b": string,
"w": string,
"ba": string,
"qa": string,
"pa": string,
"id": string,
}