AlmondTill/G3N API

NewFxRateInput

input type

Create-input for an FxRate.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the window coordinate <from>/<to> <mode payload> from <startAt>; when supplied it must be non-blank.
organizationIdIDno
logicalFacilityIdIDno
fromCurrencyString String!yesThe from (tendered/foreign) currency — a platform-registry code inside the anchor organization's allowed set.
toCurrencyString String!yesThe TO (settlement) currency — a platform-registry code inside the anchor organization's allowed set; must differ from fromCurrency.
modeString String!yesabsolute (buy+sell required) | adjust (adjustPpm required, feeMinor optional; org/LF only) | par (no rate fields; org/LF only).
buyRateMicroIntnoAbsolute only — integer micro to-per-from (1.25 = 1250000).
sellRateMicroIntnoAbsolute only — integer micro to-per-from.
adjustPpmIntnoAdjust only — signed, non-zero, ±500000 (±50%).
feeMinorIntnoAdjust only, optional — TO-currency minor units, reducing the credited amount.
startAtStringnoThe window start (inclusive; UTC ISO-8601). Optional — absent = effective NOW (server-stamped); explicit values must be >= the server now (no past starts).
endAtString String!yesThe window end (exclusive; UTC ISO-8601). Always required (far-future = the standing rate); must be strictly after startAt.

Used by