layer1:trade:conversion:created
Webhook Payload Structure
The webhook notification sends a JSON object containing details about the event. Here is an example payload:
{
"event": "layer1:trade:conversion:created",
"timestamp": null,
"data": {
"id": "65a726c7-e56f-4bf0-b65e-7225d8abd9ee",
"reference": "13963121-6626-4694-8fb8-9557db7b5a04",
"status": "PENDING",
"from": {
"asset": "EUR",
"amount": 100
},
"to": {
"asset": "LTC",
"amount": 1.386770212175842462
},
"orders": null,
"router": "VWAP",
"executor": "MAKER",
"movements": null,
"createdAt": null
}
}
Field Descriptions
Below is a detailed explanation of each field in the webhook payload:
Field | Type | Description |
---|---|---|
event | string | Identifies the type of event, e.g., "layer1:trade:conversion:created". |
timestamp | null | The time when the event was generated, can be null. |
data | object | Contains detailed information about the event. |
data.id | string | Unique identifier for the conversion event, in GUID format. |
data.reference | string | A reference identifier linked to the conversion, in GUID format. |
data.status | string | Current status of the conversion a the time of creation. |
data.from | object | Details about the currency from which is converted. |
data.from.asset | string | Type of asset being converted from. |
data.from.amount | number | Amount of the asset being converted. |
data.to | object | Details about the currency to which is converted. |
data.to.asset | string | Type of asset being converted to. |
data.to.amount | number | Amount of the asset after conversion. |
data.orders | null | Details of any orders involved in the conversion, can be null. |
data.router | string | Routing mechanism used for the conversion [VWAP]. |
data.executor | string | Execution type for the conversion [MAKER]. |
data.movements | null | Any movements related to the conversion, can be null. |
data.createdAt | null | The time when the conversion was created, can be null. |
Updated 6 months ago