{
"type": "price_trigger_swap.created",
"id": "A3QBMX-O6RLF-UTVGNA",
"client_order_id": "CLIENT-ORDER-EXAMPLE",
"user_id": "AA55 N84G QOIR A67A",
"timestamp": "2025-01-01T00:00:01+00:00",
"requested": {
"trade": {
"from": {
"symbol": "USD",
"amount": "100.00"
},
"to": {
"symbol": "BTC"
}
},
"when": {
"base": {
"symbol": "BTC"
},
"quote": {
"symbol": "USD"
},
"drops_to": "50000.00"
}
}
}Webhooks
Price trigger swap created
A price-trigger swap was created and is waiting for its price condition.
WEBHOOK
price_trigger_swap.created
{
"type": "price_trigger_swap.created",
"id": "A3QBMX-O6RLF-UTVGNA",
"client_order_id": "CLIENT-ORDER-EXAMPLE",
"user_id": "AA55 N84G QOIR A67A",
"timestamp": "2025-01-01T00:00:01+00:00",
"requested": {
"trade": {
"from": {
"symbol": "USD",
"amount": "100.00"
},
"to": {
"symbol": "BTC"
}
},
"when": {
"base": {
"symbol": "BTC"
},
"quote": {
"symbol": "USD"
},
"drops_to": "50000.00"
}
}
}Body
application/json
Shared partner payload for price-trigger-swap lifecycle webhooks.
Price-trigger-swap id.
Public id of the user the swap belongs to.
RFC3339 UTC time of the lifecycle transition.
Event type discriminator.
Available options:
price_trigger_swap.created Trade and trigger condition originally requested.
Show child attributes
Show child attributes
Partner-supplied order id, when provided at creation.
Response
2XX
Return any 2xx status to acknowledge receipt.