Payout queue
FIFO payout queue length, instantly payable cash, and a wallet's rank
Wallet queue position
/accounts/{walletAddress}/queuePath parameters
walletAddressstringrequiredWallet address
Pattern^(0[xX])?[0-9a-fA-F]{1,64}$Example0x77b909b550ed11c45f1378c03c0954c0d77d320cdc938e35509564b1e505ce0d
Responses
Whether the wallet has a queued claim, its net, and its FIFO rank; its claims (at most 200) with position, owed and owedAhead; and the queue length, total owed and LP cash (null until the exchange is indexed).
application/json
dataAccountQueuerequiredA wallet's place in the payout queue, with its disclosure fields.
Wins the LP cannot pay at once wait in the FIFO payout queue (there is no pool-equity OI cap).
claimsQueueClaim[]requiredThe wallet's queued claims in FIFO order, at most 200.
hasClaimbooleanrequiredWhether the wallet has a queued claim.
lpCashstring | nullThe exchange's
lp_cash(base units); null while the exchange is unindexed.Pattern^-?(0|[1-9][0-9]*)n$Example1850000000000nnetstringrequiredSum of the nets still owed to the wallet on its queued claims (base units).
Pattern^-?(0|[1-9][0-9]*)n$Example100000000nownerstringrequiredPattern^0x[0-9a-f]{64}$Example0x77b909b550ed11c45f1378c03c0954c0d77d320cdc938e35509564b1e505ce0dqueueLengthstringrequiredQueued claims overall.
Pattern^-?(0|[1-9][0-9]*)n$Example24nrankstring | null1-based FIFO place of the wallet's first queued claim; null without one.
Pattern^-?(0|[1-9][0-9]*)n$Example17ntotalOwedstringrequiredThe exchange's
total_owed(base units; the sum of the queued nets until indexed).Pattern^-?(0|[1-9][0-9]*)n$Example1850000000000n
Example request
curl 'https://api.parchment.trade/accounts/0x77b909b550ed11c45f1378c03c0954c0d77d320cdc938e35509564b1e505ce0d/queue'const res = await fetch("https://api.parchment.trade/accounts/0x77b909b550ed11c45f1378c03c0954c0d77d320cdc938e35509564b1e505ce0d/queue");
const { data } = await res.json();Example response (200)
{
"data": {
"claims": [
{
"claimId": "5531n",
"owed": "100000000n",
"owedAhead": "100000000n",
"position": "17n"
}
],
"hasClaim": true,
"lpCash": "1850000000000n",
"net": "100000000n",
"owner": "0x77b909b550ed11c45f1378c03c0954c0d77d320cdc938e35509564b1e505ce0d",
"queueLength": "24n",
"rank": "17n",
"totalOwed": "1850000000000n"
}
}Payout queue
/queueResponses
Queue length, total owed, LP cash, the instantly payable amount, and owedToLpCashBps (null without LP cash).
application/json
dataQueueSummaryrequiredinstantlyPayablestring | nullPortion of
total_owedpayable now (base units, at mostlp_cash); null withoutlp_cash.Pattern^-?(0|[1-9][0-9]*)n$Example1850000000000nlengthstringrequiredNumber of queued claims.
Pattern^-?(0|[1-9][0-9]*)n$Example24nlpCashstring | nullLP cash (base units); null while the exchange is unindexed.
Pattern^-?(0|[1-9][0-9]*)n$Example1850000000000nowedToLpCashBpsstring | nullfloor(totalOwed * 10000 / lpCash);10000= owed equals cash. null whenlp_cashis unknown or 0.Pattern^-?(0|[1-9][0-9]*)n$Example3100ntotalOwedstringrequiredSum of queued claims (base units).
Pattern^-?(0|[1-9][0-9]*)n$Example1850000000000n
Example request
curl 'https://api.parchment.trade/queue'const res = await fetch("https://api.parchment.trade/queue");
const { data } = await res.json();Example response (200)
{
"data": {
"instantlyPayable": "1850000000000n",
"length": "24n",
"lpCash": "1850000000000n",
"owedToLpCashBps": "3100n",
"totalOwed": "1850000000000n"
}
}