ZagTrader

Category 5: Securities markets

MT502 Order to Buy or Sell

Written and maintained by ZagTrader. Last reviewed . How this page is sourced and checked

The MT502 is the order an investment manager or other instructing party sends to a broker to buy or sell a quantity of securities, and the order a fund investor or platform sends to a transfer agent to subscribe to or redeem fund units. The same message, with another function code, cancels or replaces an order sent earlier.

Message type
MT502
Category
5
Structure
12 sequences, 47 fields listed

When MT502 is used

The MT502 starts the trade initiation and confirmation flow. The instructing party (an investment manager, a bank’s client desk, a fund distributor) sends it to the executing party (a broker, or a fund’s transfer agent or order handling agent). Where permitted it can also go from an executing party straight to a point of execution such as an exchange, and between brokers. The executing party answers with MT509 status messages (order received, rejected, cancelled), may advise executions with an MT513, and confirms the trade with an MT515. Allocation of a block order across funds follows with an MT514, affirmation of the confirmation with an MT517, and the settlement instructions to the custodians with MT540 to MT543.

Order details sit in sequence B (ORDRDET): the direction (22H::BUSE), the payment type (22H::PAYM), the expiry of the order (98a::EXPI), at least one trading party (B2, TRADPRTY), and the security (35B). The order size is either a quantity (36B::ORDR) or a cash amount (19A::ORDR). For a limit or stop order, the price goes in sequence B1 (PRIC) as 90a::LIMI or 90a::STOP, and the type of order and its time limit in 22F::TOOR (for example LMTO limit, MAKT at market) and 22F::TILI (for example GDAY good for the day, GTCA good until cancelled).

Investment funds. Fund distributors and platforms use the MT502 to subscribe (22H::BUSE//SUBS), redeem (REDM) or switch between sub-funds (SWIF for the from leg, SWIT for the to leg, sent as consecutive messages). A fund order is normally a market order at the next net asset value, with no limit price, and is given either in units (36B::ORDR//UNIT) or as a cash amount (19A::ORDR). The order must reach the transfer agent before the fund’s dealing cut-off, or it is dealt at a later NAV. Swift restricts the use of the MT502 for investment funds to the members of its funds closed user group, and on the ISO 20022 side fund orders use the setr messages (see below).

23G gives the function. NEWM is a new order. CANC cancels an order sent earlier: put the SEME of the original in 20C::PREV in sequence A1 and repeat the order details; the executing party answers with an MT509 carrying a cancellation status (25D::CPRC, for example CAND or DEND when the order can no longer be cancelled). REPL replaces an order sent earlier, for example to change the limit price; the answer is an MT509 with a replacement status (25D::RPRC).

Pre-allocation. A block order can carry 22F::PRCO in sequence A to say how the later allocation should treat a partial fill (PROR pro-rata, FULL only when fully dealt, SPEC as given in a linked MT514).

Settlement details (sequence C) are optional in an order. Most brokers settle on standing settlement instructions agreed in advance, and the chain only needs to be in the order when it differs from the standing one.

MT502 format: sequences and fields

Sequence AGeneral InformationMandatory

Identifies the order and its function.

TagQualifierNameStatusFormatMeaning
16RStart of blockMGENLOpens the General Information block.
20CSEMESender's Message ReferenceM:4!c//16xYour unique reference for this order. Every MT509, MT513 and MT515 about the order quotes it back, and a cancellation or replacement points to it with 20C::PREV.
23GFunction of the MessageM4!c[/4!c]NEWM for a new order, CANC to cancel an order sent earlier, REPL to replace one. COPY, DUPL or CODU as subfunction mark a copy or duplicate.
98aPREPPreparation Date/TimeOA: :4!c//8!n C: :4!c//8!n6!n E: :4!c//8!n6!n[,3n][/[N]2!n[2!n]]When the order was created, usually 98C with date and time. Fund platforms use it to prove an order arrived before the dealing cut-off.
22FTRTRTrade Transaction Type IndicatorM:4!c/[8c]/4!cTRAD for a regular order. BASK, INDX, LIST and PROG mark basket, index, list and programme orders.
22FPRCOPre-Allocation Condition IndicatorO:4!c/[8c]/4!cHow a later allocation should treat partial fills and fractions: PROR (pro-rata), FULL (allocate only if fully dealt), SPEC (as in a linked allocation), NOFR, RDUP or RDWN for fractions.
16SEnd of blockMGENLCloses the General Information block.

Sequence A1LinkagesOptional, repeatable

One occurrence per linked reference. Field 20C is mandatory in every A1, with one qualifier per occurrence. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMLINKOpens the Linkages block.
22FLINKLinkage Type IndicatorO:4!c/[8c]/4!cHow this order depends on the linked one: WITH, BEFO, AFTE or INFO.
13aLINKLinked MessageOA: :4!c//3!c B: :4!c/[8c]/30xType of the linked message in option A, for example :13A::LINK//502.
20CPREVPrevious Message ReferenceM:4!c//16xThe SEME of the order being cancelled or replaced (23G CANC or REPL). In a fund switch, the to leg points to the SEME of the from leg.
20CMASTMaster ReferenceM:4!c//16xA reference that groups several orders, for example the two legs of a fund switch.
20CRELARelated Message ReferenceM:4!c//16xReference of a related message. BASK, INDX, LIST and PROG give the basket, index, list or programme reference.
20CCOMMCommon ReferenceM:4!c//16xA reference agreed by both parties.
16SEnd of blockMLINKCloses the Linkages block.

Sequence BOrder DetailsMandatory

The order. 22H::BUSE, 22H::PAYM, 98a::EXPI, at least one B2 and 35B are mandatory. The 22F list is long; common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMORDRDETOpens the Order Details block.
94aTRADPlace of TradeRepeatableOB: :4!c/[8c]/4!c[/30x] L: :4!c//18!c2!nWhere the order should be executed, for example EXCH with the market identifier code, or OTCO for over the counter.
22HBUSEBuy/Sell IndicatorM:4!c//4!cBUYI or SELL for securities; SUBS, REDM, SWIF and SWIT for fund subscriptions, redemptions and switches; IPOO for an initial public offering order.
22HPAYMPayment IndicatorM:4!c//4!cAPMT (against payment) or FREE.
22FTOORType of OrderRepeatableO:4!c/[8c]/4!cThe type of order, for example MAKT (at market), LMTO (limit), STOP (stop), STLI (stop limit), ALNO (all or none). Fund orders are normally MAKT.
22FTILITime LimitO:4!c/[8c]/4!cHow long the order is valid: GDAY (good for the day), GTCA (good until cancelled), GTHD (good through the expiry date), IOCA (immediate or cancel), FIKI (fill or kill), OPEN or CLOS (at the opening or closing).
22FTTCOTrade Transaction Condition IndicatorRepeatableO:4!c/[8c]/4!cConditions of the order, for example DIOR (a directed order, with the requested broker in B2 as RQBR) or cum or ex dividend and coupon.
22HCAOPCorporate Action Option Code IndicatorO:4!c//4!cFund orders: CASH (distributions paid in cash) or DRIP (reinvested).
98aEXPIExpiry Date/TimeMA: :4!c//8!n C: :4!c//8!n6!nWhen the order expires. Mandatory: a day order carries the trade date, and fund platforms commonly fill in a far-future date for orders without an expiry.
98aRSETRequested Settlement Date/TimeOA: :4!c//8!n B: :4!c/[8c]/4!c C: :4!c//8!n6!nSettlement date requested by the client, when it differs from the market standard.
92ACORACommission Rate AppliedO:4!c//[N]15dCommission rate requested, as a percentage. COWA gives a waived commission and SWRT the switch rate in a fund switch. The final rates come back in the MT515.
11AFXISCurrency to SellO:4!c//3!aCurrency the client pays with, when an FX is needed. FXIB is the currency to buy, for example the currency in which redemption proceeds should be paid.
36BORDROriginal Ordered QuantityRepeatableO:4!c//4!c/15dQuantity ordered: UNIT for shares and fund units, FAMT for bonds. Give the order either as a quantity or as an amount (19A::ORDR), not both. On a cancellation, 36B::CANC gives the quantity to cancel.
19AORDROrdered AmountO:4!c//[N]3!a15dCash amount to invest or to raise, for example a fund subscription for USD 100,000. On a cancellation, 19A::CANC gives the amount to cancel.
35BIdentification of the Financial InstrumentM[ISIN1!e12!c] [4*35x]The security or fund share class: ISIN and optional description. An unknown ISIN is rejected with reason DSEC in an MT509.
70ETPROTrade Instruction Processing NarrativeO:4!c//10*35xFree-text directives. Executing parties often treat narrative as a reason for manual handling.
16SEnd of blockMORDRDETCloses the Order Details block.

Sequence B1PriceOptional, repeatable

The price conditions of the order. 90a is mandatory in each occurrence.

TagQualifierNameStatusFormatMeaning
16RStart of blockMPRICOpens the Price block.
90aLIMILimit PriceMA: :4!c//4!c/[N]15d B: :4!c//4!c/3!a15dThe limit for a limit order: the highest price for a buy, the lowest for a sell. 90B with ACTU and the currency for shares, 90A with PRCT for bonds. STOP (stop price) and DEAL (deal price) are the other qualifiers.
22FPRICType of Price IndicatorO:4!c/[8c]/4!cWhether the price is gross or net of costs (GREX, NET1, NET2) or at par (PARV). MPLE gives a maximum price level.
16SEnd of blockMPRICCloses the Price block.

Sequence B2Trading PartiesMandatory, repeatable

One party per occurrence, at least one occurrence. The 95a party field is mandatory in each. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMTRADPRTYOpens the Trading Parties block.
95aBUYRBuyerMP: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35x R: :4!c/8c/34xThe buyer. On a client buy order or a fund subscription, the instructing party or its client. SELL is used for a sell or a redemption.
95aINVEInvestorMP: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35x R: :4!c/8c/34xThe investor whose assets are invested, when different from the instructing party. Other qualifiers: CLBR (clearing broker), STBR (step-in broker), INBR (introducing broker), BRCR (broker of credit), RQBR (requested broker).
97aSAFESafekeeping AccountOA: :4!c//35x B: :4!c/[8c]/4!c/35xThe party’s securities account, for example the fund account or the investor account at the fund register.
20CPROCProcessing ReferenceO:4!c//16xThe party’s own reference, for example the end investor’s order number.
22FINCAInvestor Capacity IndicatorO:4!c/[8c]/4!cClassification of the investor, for example ELIG (eligible counterparty), PROF (professional) or RETL (retail). TRCA gives the capacity in which a party acts.
16SEnd of blockMTRADPRTYCloses the Trading Parties block.

Sequence B3Financial Instrument AttributesOptional

Optional details about the security. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMFIAOpens the Financial Instrument Attributes block.
11ADENOCurrency of DenominationO:4!c//3!aCurrency of the security. Fund platforms use it as the currency in which the NAV is expected back in the MT515.
12aCLASClassification TypeOA: :4!c/[8c]/30x C: :4!c//6!cType of instrument, for example the CFI code in option C.
98AMATUMaturity DateO:4!c//8!nMaturity of a debt instrument. Other date qualifiers include COUP, ISSU and EXPI.
16SEnd of blockMFIACloses the Financial Instrument Attributes block.

Sequence CSettlement DetailsOptional

Only when the order should settle differently from the standing settlement instructions. When C is present, 22F::SETR is mandatory. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMSETDETOpens the Settlement Details block.
22FSETRType of Settlement Transaction IndicatorM:4!c/[8c]/4!cTRAD for a trade. Fund settlement flows can show SUBS or REDM.
22FSTCOSettlement Transaction Condition IndicatorRepeatableO:4!c/[8c]/4!cSettlement conditions, for example NPAR (no partial settlement).
16SEnd of blockMSETDETCloses the Settlement Details block.

Sequence C1Settlement PartiesOptional, repeatable

Settlement chain, one party per occurrence: PSET, DEAG/REAG, DECU/RECU, SELL/BUYR and the intermediaries. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMSETPRTYOpens the Settlement Parties block.
95aPSETPlace of SettlementMC: :4!c//2!a P: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35xThe CSD or ICSD where the trade should settle.
95aREAGReceiving AgentMP: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35x R: :4!c/8c/34xThe participant that receives the securities; DEAG is the one that delivers.
97aSAFESafekeeping AccountOA: :4!c//35x B: :4!c/[8c]/4!c/35xAccount of the party in the same occurrence.
16SEnd of blockMSETPRTYCloses the Settlement Parties block.

Sequence C2Cash PartiesOptional, repeatable

Cash side, for example where redemption proceeds should be paid. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMCSHPRTYOpens the Cash Parties block.
95aBENMBeneficiary of MoneyMP: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35x R: :4!c/8c/34xWho receives the cash. ACCW, DEBT, INTM and PAYE are the other cash parties.
97aCASHCash Payment AccountOA: :4!c//35x E: :4!c//34xThe account to be credited or debited; option E takes an IBAN.
16SEnd of blockMCSHPRTYCloses the Cash Parties block.

Sequence C3AmountsOptional, repeatable

Amounts known at order time, one 19A per occurrence. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMAMTOpens the Amounts block.
19ACHARCharges/FeesM:4!c//[N]3!a15dCharges known or agreed at order time. DEAL, EXEC, STAM and the other amount qualifiers are also available.
16SEnd of blockMAMTCloses the Amounts block.

Sequence DOther PartiesOptional, repeatable

Parties outside the trade and settlement chain. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMOTHRPRTYOpens the Other Parties block.
95aMEOROriginator of MessageMP: :4!c//4!a2!a2!c[3!c] Q: :4!c//4*35x R: :4!c/8c/34xThe party that originated the order when it is relayed by another party, for example through a fund order router. MERE is the final recipient; EXCH, TRRE, VEND and TRAG are the other qualifiers.
16SEnd of blockMOTHRPRTYCloses the Other Parties block.

Sequence ETwo Leg Transaction DetailsOptional

Only for orders that are one leg of a repo or similar two-leg deal. Common qualifiers only.

TagQualifierNameStatusFormatMeaning
16RStart of blockMREPOOpens the Two Leg Transaction Details block.
98aTERMClosing Date/TimeOA: :4!c//8!n B: :4!c/[8c]/4!c C: :4!c//8!n6!nDate of the closing leg, or OPEN in option B.
92aREPORepurchase RateOA: :4!c//[N]15dRepo rate of the deal.
16SEnd of blockMREPOCloses the Two Leg Transaction Details block.

Format notation: n digits, a upper-case letters, c upper-case letters and digits, x any character of the Swift character set, d a decimal number with a comma, ! fixed length, [ ] optional, 4*35x up to 4 lines of 35 characters. M mandatory, O optional, C conditional (a rule decides).

Rules worth knowing

  • Sequences A and B are mandatory, and B must contain at least one B2 (trading party). A1, B1, B3, C (with C1 to C3), D and E are optional.
  • When 23G is CANC or REPL, an A1 occurrence should hold 20C::PREV with the SEME of the order concerned, so that the receiver can find it.
  • Give the order size as either 36B::ORDR or 19A::ORDR. On a cancellation, the quantity or amount to cancel goes in 36B::CANC or 19A::CANC.
  • Network validated rules link some order fields, for example the type of order and the limit price, and the order and cancellation quantities. Their numbers differ between releases, so search for the error code you receive.
  • In the SR 2025 structure, B1 (price) may repeat, for example to give both a limit and a stop price; some older references show it as non-repeating.

MT502 example

Northwind Asset Management (FUNDGB2LXXX) orders its broker (BRKRAEADXXX) to buy 40,000 shares of ZAGTRADER DEMO PJSC on the exchange, as a day order with a limit of AED 4.90. The block is for two of its funds and will be allocated after execution with an MT514.

{1:F01FUNDGB2LAXXX0000000000}{2:I502BRKRAEADXXXXN}{4:
:16R:GENL
:20C::SEME//NW502261020007
:23G:NEWM
:98C::PREP//20261020083000
:22F::TRTR//TRAD
:22F::PRCO//PROR
:16S:GENL
:16R:ORDRDET
:94B::TRAD//EXCH/XDFM
:16R:PRIC
:90B::LIMI//ACTU/AED4,9
:16S:PRIC
:22H::BUSE//BUYI
:22H::PAYM//APMT
:22F::TOOR//LMTO
:22F::TILI//GDAY
:98A::EXPI//20261020
:16R:TRADPRTY
:95P::BUYR//FUNDGB2LXXX
:20C::PROC//BLK-20261020-07
:16S:TRADPRTY
:36B::ORDR//UNIT/40000,
:35B:ISIN AEZAGT000016
ZAGTRADER DEMO PJSC
:16S:ORDRDET
-}
Decode this example in the parser

Line by line

LineWhat it says
{1:F01FUNDGB2LAXXX0000000000}{2:I502BRKRAEADXXXXN}{4:Sender FUNDGB2LXXX (the investment manager), receiver BRKRAEADXXX (the broker).
:16R:GENL
:20C::SEME//NW502261020007Order reference.
:23G:NEWMNew order.
:98C::PREP//20261020083000
:22F::TRTR//TRAD
:22F::PRCO//PRORIf only part is filled, allocate pro-rata.
:16S:GENL
:16R:ORDRDET
:94B::TRAD//EXCH/XDFMExecute on the exchange.
:16R:PRIC
:90B::LIMI//ACTU/AED4,9Limit price AED 4.90 per share.
:16S:PRIC
:22H::BUSE//BUYIBuy.
:22H::PAYM//APMTAgainst payment.
:22F::TOOR//LMTOLimit order.
:22F::TILI//GDAYGood for the day.
:98A::EXPI//20261020Expires at the end of trade date.
:16R:TRADPRTY
:95P::BUYR//FUNDGB2LXXX
:20C::PROC//BLK-20261020-07The manager’s block order number.
:16S:TRADPRTY
:36B::ORDR//UNIT/40000,Quantity ordered.
:35B:ISIN AEZAGT000016
ZAGTRADER DEMO PJSC
:16S:ORDRDET
-}

No settlement details: the broker settles on the standing settlement instructions it holds for the manager’s funds.

The broker acknowledges with an MT509 (25D::IPRC//PACK), advises the fills with an MT513 and confirms each fund allocation with an MT515.

A fund subscription looks similar: 22H::BUSE//SUBS, 22F::TOOR//MAKT, no B1 price, 36B::ORDR or 19A::ORDR, and the fund share class ISIN in 35B.

All BICs and the ISIN are made up. The ISIN carries a valid check digit.

Common errors and rejects

  1. Order rejected: unknown security or account (MT509 REJT)

    The executing party answers with an MT509 carrying 25D::IPRC//REJT and a 24B reason such as DSEC (unknown instrument), SAFE (unknown account) or BUSE (invalid order type). Correct the static data and send a new order with a new reference.

  2. Both a quantity and an amount

    An order that gives both 36B::ORDR and 19A::ORDR is ambiguous, and fund platforms reject it. Send one or the other.

  3. Limit order without a limit price

    22F::TOOR//LMTO with no 90a::LIMI in sequence B1, or a limit given in the wrong price type (PRCT for shares, ACTU for bonds), cannot be executed as intended. Check the price type against the instrument.

  4. Fund order after the dealing cut-off

    A subscription or redemption that arrives after the fund’s cut-off is dealt at the next NAV or rejected, depending on the fund’s rules. 98C::PREP shows when the order was created, but the time that counts is when the transfer agent received it.

  5. Cancellation arrives too late (DEND)

    A CANC for an order that is already executed comes back in an MT509 with 25D::CPRC and DEND (cancellation denied). The executed part is then confirmed with an MT515 and must be reversed by a new opposite order if needed.

  6. Duplicate order reference (REFE)

    Reusing a SEME for a new order, for example after a rejection, can be rejected as a duplicate with reason REFE. Every order needs a new reference.

MT502 in ISO 20022

For investment funds, Swift’s MT and MX equivalence table (8 May 2024) maps the MT502 funds template to setr.010 (SubscriptionOrder), setr.004 (RedemptionOrder) and setr.013 (SwitchOrder), with setr.011, setr.005 and setr.014 for the matching cancellation requests. Clearstream’s Vestima user guide pairs them the same way: MT502 NEWM to setr.010, setr.004 or setr.013, and MT502 CANC to the cancellation requests.

For other securities the same table lists no ISO 20022 equivalent of the MT502, and it remains in use on FIN. Category 5 was not part of the November 2025 end of coexistence for payments.

MT502 questions

What is an MT502 message?
A Swift order to buy or sell securities, sent by an investment manager or other instructing party to its broker, or by a fund distributor to a transfer agent to subscribe to or redeem fund units. With 23G CANC or REPL it cancels or replaces an earlier order.
What is the difference between MT502 and MT515?
The MT502 is the order (client to broker). The MT515 is the confirmation of what was executed (broker to client). Status in between, such as order accepted or rejected, comes in an MT509.
How do I cancel an MT502?
Send an MT502 with 23G CANC, the original SEME in 20C::PREV inside sequence A1, and the order details repeated. The executing party answers with an MT509 with 23G CAST and a cancellation status in 25D::CPRC, such as CAND (cancelled) or DEND (denied).
Is the MT502 used for investment funds?
Yes, for subscriptions (SUBS), redemptions (REDM) and switches (SWIF and SWIT), restricted by Swift to members of its funds closed user group. In ISO 20022 the equivalents are setr.010, setr.004 and setr.013.
Is an MT502 a settlement instruction?
No. It is an order to trade. Once the trade is executed and confirmed, each side instructs its custodian with MT540 to MT543 (for example an MT541 for a purchase against payment).

All MT messages · Category 5 messages · ISO 20022 messages · Codes · Troubleshooting