AlcorDocs

Account

Trades, liquidity positions and swap history of an account.

History and positions of one account on the chain of the host you call.

Spot trades

Spot trades the account took part in, as buyer or seller, newest first.

GET https://wax.alcor.exchange/api/v2/account/<account>/deals

Parameters

NameTypeRequiredDescription
accountstringyesAccount name, in the path
marketnumbernoOnly trades of this spot market id
fromnumbernoRange start, unix seconds. Used only together with to
tonumbernoRange end, unix seconds
limitnumbernoNumber of trades. Default 500
skipnumbernoTrades to skip, for paging

Example

curl "https://wax.alcor.exchange/api/v2/account/alcordexfund/deals?limit=1"
[
  {
    "_id": "6ac07c9e48ec8ec3f10389bc",
    "market": 26,
    "type": "buymatch",
    "trx_id": "4cbcefed8b0608063fb2001bfc3527e7eee19bfa8c612a3df882524f42177e81",
    "unit_price": 0.2699,
    "ask": 1148.4228,
    "bid": 309.95930066,
    "asker": "jjrbg.wam",
    "bidder": "alcordexfund",
    "time": "2026-10-03T03:55:10.500Z"
  }
]

Response fields

NameTypeDescription
_idstringTrade id
marketnumberSpot market id
typestringbuymatch: a buy order took the trade. sellmatch: a sell order took it
trx_idstringTransaction id
unit_pricenumberTrade price
bidderstringAccount of the order that took the trade
askerstringAccount of the resting order it matched
bidnumberAmount the bidder paid
asknumberAmount the bidder received
timestringTrade time, ISO 8601

Positions

Open AMM liquidity positions of the account, with their value and fees.

GET https://wax.alcor.exchange/api/v2/account/<account>/positions

Example

curl https://wax.alcor.exchange/api/v2/account/alcordexfund/positions
[
  {
    "id": 152287,
    "owner": "alcordexfund",
    "pool": 12397,
    "tickLower": -100,
    "tickUpper": 100,
    "liquidity": "800386663698",
    "inRange": true,
    "amountA": "3763.075641 USDC",
    "amountB": "4220.481815 USDT",
    "feesA": "0.220932 USDC",
    "feesB": "0.369956 USDT",
    "totalValue": 7984.15,
    "totalFeesUSD": 0.59,
    "depositedUSDTotal": 7983.4609,
    "collectedFees": { "tokenA": 0, "tokenB": 0, "inUSD": 0, "lastCollectTime": null },
    "pNl": 0.59,
    "closed": false,
    "lockedUntil": null,
    "isLocked": false
  }
]

The fields are those of Pool positions.

Position history

Liquidity events of the account's positions (deposits, withdrawals and fee collections), newest first.

GET https://wax.alcor.exchange/api/v2/account/<account>/positions-history

Parameters

NameTypeRequiredDescription
accountstringyesAccount name, in the path
limitnumbernoNumber of events. Default 200
skipnumbernoEvents to skip, for paging

Example

curl "https://wax.alcor.exchange/api/v2/account/alcordexfund/positions-history?limit=1"
[
  {
    "_id": "6acdedec428d9e14968e17b8",
    "id": 152287,
    "pool": 12397,
    "owner": "alcordexfund",
    "type": "burn",
    "tokenA": 918.880068,
    "tokenB": 1077.024205,
    "tokenAUSDPrice": 1,
    "tokenBUSDPrice": 1,
    "totalUSDValue": 1995.9043,
    "trx_id": "6fb2c3280f4cbdc1f5d799ca67916c89ab1ebde126af808d96f766addde1c75a",
    "time": "2026-10-13T08:38:04.000Z"
  }
]

Response fields

NameTypeDescription
_idstringRecord id
idnumberPosition id
poolnumberPool id
ownerstringPosition owner
typestringmint (liquidity added), burn (liquidity removed) or collect (fees collected)
tokenA, tokenBnumberToken amounts of the event
tokenAUSDPrice, tokenBUSDPricenumberUSD prices of the tokens at the time
totalUSDValuenumberEvent value, USD
trx_idstringTransaction id
timestringEvent time, ISO 8601

Swap history

AMM swaps the account sent or received, newest first.

GET https://wax.alcor.exchange/api/v2/account/<account>/swap-history

Parameters

NameTypeRequiredDescription
accountstringyesAccount name, in the path
limitnumbernoNumber of swaps. Default 200
skipnumbernoSwaps to skip, for paging

Example

curl "https://wax.alcor.exchange/api/v2/account/alcordexfund/swap-history?limit=1"
[
  {
    "_id": "6acd57da428d9e14961928bf",
    "pool": 12501,
    "trx_id": "71d2fced1fe31e5b4219e4abe79a2cc4a4161a0ae8ea87dc9b73901b39a85195",
    "sender": "alcordexfund",
    "sqrtPriceX64": "138046174607188499",
    "totalUSDVolume": 5.5362025,
    "tokenA": 1000,
    "tokenB": -5.600885,
    "time": "2026-10-12T21:57:41.000Z"
  }
]

The fields are those of Pool swaps.

On this page