Quote a deposit order on any pool
/dex/pools/{poolNft}/orders/deposit/checkThe shares a deposit order offering amountX and amountY would get now, and the excess of the side the pool cannot match, which comes back. X is ERG for an ERG/token pool.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Request body
LDPoolDepositRequest · application/jsonamountXstringrequiredamountYstringrequiredexecutorFeestringnanoERG the filler keeps. Omitted, from lithosdex.orders.
maxMinerFeestringMost of the executor fee a broadcast fill may pay as a network fee. Below executorFee.
Responses
200The quoteLDPoolDepositQuote▶
poolNFTstringrequiredsharesstringrequiredtakenXstringrequiredtakenYstringrequiredexcessXstringrequiredReturned, since the pool cannot match it
excessYstringrequiredshareOfSupplynumber · doublerequiredprovisionBoxValuestringrequiredexecutorFeestringrequiredmaxMinerFeestringrequiredtotalErgRequiredstringrequirednanoERG the order box holds
▶
tokensRequiredLDTokenAmount[]requiredTokens the order box holds
tokenIdstringrequiredamountstringrequiredRaw token units. Decimal string.
ergReturnedstringrequirednetworkFeestringrequired
400The request is malformed, or names a token the pool does not hold.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No LithosDex pool with that NFT, or no live provision with that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503The pool index is still building, or the node could not be read. Retry.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description