New Pool
New Pool data stream.
Connect
- websocat
- wscat
websocat wss://api.datamaxiplus.com/ws/v1/dex/new-pool -H 'X-DTMX-APIKEY: $YOUR_API_KEY'
wscat -c 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 ischain@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 whileexchange
is optional param.
- schema
- example
Response
c
represents chain of new pool evente
represents exchange of new pool eventb
represents base token of new pool eventq
represents quote token of new pool eventba
represents base address of base tokenqa
represents quote address of base tokenpa
represents the address of new created poolid
represents unique id of new pool event
- schema
- example
{
"c": string,
"e": string,
"b": string,
"w": string,
"ba": string,
"qa": string,
"pa": string,
"id": string,
}
{
"c": "kaia_mainnet",
"e": "klayswap",
"b": "WKLAY",
"q": "KRWO",
"ba": "0x19aac5f612f524b754ca7e7c41cbfa2e981a4432",
"qa": "0x7fc692699f2216647a0e06225d8bdf8cdee40e7f",
"pa": "0x7d2fb366476eedbe99d6ccd753d212a74a315d0c",
"id": null
}