Skip to main content

Metrics

Every successful /v1/quotes result carries a metrics object. All rates are decimals; prices are per 100 of face.

Price & accrual

FieldMeaning
dirty_pricefull price (present value of remaining cashflows)
clean_pricedirty price minus accrued interest
accrued_interestinterest accrued since the last coupon (coupon corrido)
accrued_daysdays of accrual at settlement

Yield

FieldMeaning
yieldthe yield, on the instrument's rate_type basis
current_yieldannual coupon ÷ price
tecTEC — the exact effective-annual purchase rate (not a heuristic)
yield_to_worstcallables only — min(YTM, all yields-to-call); present when options.yield_worst and applicable

Risk

FieldMeaning
macaulay_durationweighted-average time to cashflows (years)
modified_durationprice sensitivity to yield (−dP/dy ÷ P)
convexitysecond-order price/yield sensitivity
dv01money change in price per 1 bp yield move
sherman_ratioyield per unit of duration
duration_applicablefalse for PRICE_QUANTITY (risk metrics not meaningful)

Money amounts (when you supply an amount)

If the quote includes amount_kind / amount_value, the result adds an amounts block scaling the per-100 prices by the trade size:

FieldMeaning
nominalthe resolved face amount
clean_amountclean price × nominal / 100
accrued_amountaccrued × nominal / 100
dirty_amountdirty price × nominal / 100 (the settlement cash)
quantitynominal ÷ unit_nominal

Next coupon & cashflows

Every result includes a next_coupon summary (date, interest, amortization, total, present_value). Set options.with_cashflows: true to also receive the full discounted schedule (each flow with its date, amount, discount factor, and present value).

:::info How yields are solved When you quote by price, emrgex inverts price → yield with a Newton-Raphson + Brent hybrid solver bracketed for guaranteed convergence. A non-convergent solve returns a typed 422 error, never a silent wrong number. :::