NetApr
The trade's carry at post-trade rates — the position net APR. annualUsd is the change in yearly carry the trade causes (deposit/withdraw legs earn, borrow/repay legs cost); aprPct puts it on the net equity the trade moves (the margin on an open) and is null when that equity is not positive (a pure leverage step, a swap). The bare figures exclude rewards; *Total include them.
annualUsdnumberrequired
annualUsdTotalnumberrequired
equityUsdnumberrequired
aprPctnumbernullablerequired
aprPctTotalnumbernullablerequired
legs object[]required
Array [
marketUidstringrequired
Market identifier, formatted lender:chainId:address.
sidestringrequired
Possible values: [deposit, borrow, withdraw, repay]
usdnumberrequired
Absolute USD size of the leg.
ratePctnumberrequired
Effective PROJECTED rate (IRM + intrinsic, %) the leg is priced at; the bare IRM rate where the overlay was unavailable.
ratePctTotalnumberrequired
ratePct with rewards folded in (+ on an earning leg, − on a paying leg).
]
NetApr
{
"annualUsd": 0,
"annualUsdTotal": 0,
"equityUsd": 0,
"aprPct": 0,
"aprPctTotal": 0,
"legs": [
{
"marketUid": "string",
"side": "deposit",
"usd": 0,
"ratePct": 0,
"ratePctTotal": 0
}
]
}