Your settled positions and closed offers
/forwards/historyapi_keyEvery position this wallet held a side of that has been settled or refunded, with what it received and its net after margins and rewards, and every offer it made that was filled or cancelled. Newest first, at most 200 of each. A settlement still unconfirmed appears once it confirms.
Responses
200This wallet's historyDFHistory▶
heightinteger · int32required▶
settledDFSettledView[]requiredboxIdstringrequiredsidestringrequiredone oflongshortbothstrikestringrequirednotionalstringrequiredmarginstringrequiredwindowStartinteger · int32requiredwindowLengthinteger · int32requiredwindowEndinteger · int32requiredtxIdstringrequiredThe settlement transaction.
settledHeightinteger · int32requiredsettledAtinteger · int64requiredUnix milliseconds of the block that confirmed the settlement.
refundbooleanrequiredWhether each side got its margin back because the window had left the accumulator.
windowMeanstringThe window's mean difficulty as the settlement read it. Absent for a refund.
payoutstringrequiredLIT base units the long side received on top of its margin, negative when the short side was paid.
receivedstringrequiredLIT base units this wallet's side or sides received, margins included.
netstringrequiredreceivedless what this wallet put in: each side's margin and its 7.5 LIT of rewards.
▶
offersDFPastOffer[]requiredboxIdstringrequiredmakerSidestringrequiredone oflongshortstrikestringrequirednotionalstringrequiredwindowStartinteger · int32requiredwindowLengthinteger · int32requiredexpiryinteger · int32requiredoutcomestringrequiredone offilledcancelledtxIdstringrequiredThe transaction that filled or cancelled it.
heightinteger · int32requiredtimestampinteger · int64requiredpositionBoxIdstringThe position a fill created.
realizedNetstringrequiredThe sum of every settled position's
net, in LIT base units.winsintegerrequiredSettled positions with a positive
net.lossesintegerrequiredSettled positions with a negative
net.truncatedbooleanrequiredWhether a scan stopped at its cap, so older history may be missing.
403Missing or wrong api_keyApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node or index unavailable. Never returns a partial list.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