Create Webhook
Webhooks API
Create Webhook
Create a new webhook endpoint
POST
Create Webhook
Overview
Create a new webhook endpoint to receive order and trade event notifications. The webhook secret is only returned once at creation, so make sure to store it securely.Authentication
Your API key with Write scope
Request Body
Webhook endpoint URL (must be HTTPS in production)Example:
https://example.com/webhooks/dayaEvents to subscribe to (at least one required)Allowed values:
order.created, order.filled, order.partially_filled, order.cancelled, order.rejected, trade.executed, deposit.completedOptional description for the webhookExample:
My order notificationsRequest Examples
Response
Indicates if the request was successful
Human-readable response message
Created webhook with secret
Success Response
The
secret is a 64-character hex string (32 bytes). This is the raw secret used for HMAC-SHA256 signature verification.Error Responses
Available Events
| Event | Description |
|---|---|
order.created | New order accepted by matching engine |
order.filled | Order completely filled |
order.partially_filled | Order partially executed |
order.cancelled | Order cancelled |
order.rejected | Order rejected |
trade.executed | Trade executed involving your order |
deposit.completed | Deposit settled to your Daya Pro balance |
Important Notes
Webhook URLs must use HTTPS in production. HTTP is only allowed for local development testing.
Rate Limits
- 100 requests per minute per API key
- Maximum 5 webhooks per account
Next Steps
Webhook Verification
Learn how to verify webhook signatures
Webhook Events
See event payload details
List Webhooks
View all your webhooks
Update Webhook
Update webhook configuration