Understanding the Conversion Flow

This section describes the lifecycle of a conversion and order on the Layer1 platform, outlining the different statuses a conversion goes through from initiation, when it it first created by API request to a trading venue, to completion where your balances in a currency will be converted to another.

Conversion States

A Conversion will go through a series of statuses in the conversion workflow, with each status denoting a specific process has occurred:

StatusDescriptionFinal state
PENDINGThe conversion request is first created with the pending statusNo
PLACEDThe conversion order has been sent to trading venue(s)No
COMPLETEDThe successfully converted amount will be marked as completed. Any not completed will generate new orders in the placed status. This is a final stateYes
PENDING_CANCELA cancelled conversion will first transition into a pending cancel state when the cancellation has been requestedNo
CANCELLEDThe cancelled orders will be marked as cancelled. This is a final stateYes
FAILEDThe conversion had no successfully converted amount. This is a final stateYes

Order States

An order will go through a series of statuses in the conversion workflow, with each status denoting a specific process has occurred:

StatusDescriptionFinal state
PENDINGThe order created (from the conversion created) will start with the pending status. Order is awaiting submission to the trading venueNo
PLACEDThe order has been submitted to trading venueNo
COMPLETEDThe order is filled. This is a final stateYes
FAILEDThe order was unsuccessful with no financial impact. This is a final stateYes
PENDING_CANCELA cancelled order or expired order will first transition into a pending cancel statusNo
CANCELLEDThe order has been cancelled with the trading venue. This is a final stateYes

Now that you understand the different statuses a conversion and order goes through, you can issue your first conversion either via API or in the Layer1 Portal.