Traditional Finance
These are the flows for a traditional trading API.
![Unit Sell with Execution](assets/unit-sell-with-execution.png)
Unit Sell with Execution
- Client sends sell order request.
- XFT processes: creates order, locks shares.
- XFT sends order creation webhook to Client.
- Client sends position update webhook to XFT.
- XFT submits order to trading partner, sends order processing webhook to Client.
- XFT executes part of the order, updates position and cash balance, sends execution and update webhooks to Client.
- XFT executes remaining order, repeats webhooks.
- XFT sends final order filled and settlement webhooks to Client.
![Nominal Buy with Execution](assets/nominal-buy-with-execution.png)
Nominal Buy with Execution
- Client sends buy order request.
- XFT processes: creates order, locks funds.
- XFT sends order creation webhook to Client.
- Client sends cash balance update webhook to XFT.
- XFT submits order to trading partner, sends order processing webhook to Client.
- XFT executes part of the order, updates cash balance and positions, sends execution and update webhooks to Client.
- XFT executes remaining order, repeats webhooks.
- XFT sends final order filled and settlement webhooks to Client.
![Get Instruments Base Data](assets/instruments-base-data.png)
Get Instruments Base Data
- Client requests instruments base data from XFT.
- XFT retrieves data from database.
- XFT sends instruments base data response to Client.
- Client checks for updates via webhook to XFT.
- XFT monitors for data changes and sends update webhook to Client if changes occur.
NAV-based order process and creation of ETF shares
- Investor places NAV-based order with AP.
- AP buys basket in the market.
- AP transfers basket to ETF for in-kind creation.
- ETF performs NAV fixing.
- AP provides cash to ETF for cash creation.
- ETF performs NAV fixing.
- ETF issues shares at NAV to AP.
- AP forwards ETF shares at NAV to Investor.
![nav-based order process ETF](assets/NAV-based order process and the resulting creation of ETF shares.png)