Quote filling an offer
/forwards/offers/{boxId}/fill/checkWhat filling an offer takes from this wallet and the side it would hold. offer.fillable says whether a fill sent now would be accepted, and offer.refusal why not. No body.
Path parameters
boxIdstringrequiredOffer box id, as listed by
GET /forwards/offersorGET /forwards/positions.
Responses
200Quote for the fillDFFillQuote▶
▶
offerDFOfferViewrequiredboxIdstringrequiredmakerstringrequiredAddress the maker is paid to.
makerSidestringrequiredlongis paid when the window's mean difficulty is above the strike,shortwhen below.one oflongshortstrikestringrequiredDifficulty the window's mean is measured against.
notionalstringrequiredLIT base units.
marginstringrequiredEach side's margin, a fifth of the notional, and the most either side can lose of it.
windowStartinteger · int32requiredwindowLengthinteger · int32requiredwindowEndinteger · int32requiredThe window's last epoch.
expiryinteger · int32requiredThe last height a fill can be mined at.
lastFillHeightinteger · int32requiredThe last height a fill can actually be mined at: the expiry, or earlier when the window would start less than 2 epochs after the fill.
litstringrequiredLIT base units the offer holds.
nanoErgsstringrequiredtakerLitstringrequiredLIT base units a fill takes from the taker.
takerNanoErgsstringrequirednanoERG a fill takes from the taker, network fee included.
impliedMovenumber · doubleThe strike against the current difficulty, as a fraction.
impliedMoveNextnumber · doubleThe strike against
nextDifficulty, when known.minebooleanrequiredWhether this wallet made the offer.
fillablebooleanrequiredWhether this wallet's fill sent now would be accepted.
refusalstringWhy not, when
fillableis false.
takerSidestringrequiredThe side this wallet takes, opposite the maker's.
one oflongshorttakerLitstringrequiredtakerNanoErgsstringrequiredNetwork fee included.
networkFeestringrequiredmaxLossstringrequiredThe most this wallet can lose, its margin plus 7.5 LIT.
warningsstring[]required
400`boxId` is not a box id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No unspent offer has that id.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
422No accumulator is deployed.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node unavailable. 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