Exchange Currency Command (v1)

Command to book a foreign-exchange conversion

Architecture

Schema

Message Schema

9 properties

Base type for all commands in the system

id string
required

Unique identifier for the message, typically a UUID

debit object
required

Debit side of a currency exchange (the currency being sold)

credit object
required

Credit side of a currency exchange (the currency being bought)

fixedAmountSide string
required

Indicates which side of the exchange is fixed. When `DEBIT`, the debit amount is fixed and the credit amount is derived from the rate. When `CREDIT`, the credit amount is fixed and the debit amount is derived from the rate.

Allowed values: DEBIT CREDIT
amount number
required

The fixed amount, expressed in the currency of the side identified by `fixedAmountSide`