Skip to main content

Trade Webhooks

Event Types​

Event TypeCategoryDescription
trade_transaction_createdtradeA new trade has been created
trade_transaction_status_updatedtradeThe status of a trade has changed

Details Schema​

FieldTypeDescription
transactionIdstringTrade identifier (UUID)
productstringThe product traded, in BASE-QUOTE form (e.g. BTC-USD)
typestringOrder type: market
sidestringbuy or sell
statusstringThe trade's status: pending, success or failed
previousStatusstringThe status before this change, on trade_transaction_status_updated. Omitted when there is none
quantitystringQuantity, as a decimal string
quantityCurrencystringCurrency of quantity
quoteQuantitystringQuote quantity, as a decimal string
quoteCurrencystringCurrency of quoteQuantity
ratestringRate, as a decimal string

Webhook Samples​

Trade Transaction Created​

{
"webhookId": "00000000-0000-0000-0000-000000000000",
"type": "trade_transaction_created",
"accountId": "00000000-0000-0000-0000-000000000000",
"timestamp": "2025-01-01T00:00:00Z",
"details": {
"transactionId": "00000000-0000-0000-0000-000000000000",
"product": "BTC-USD",
"type": "market",
"side": "buy",
"status": "pending",
"quantity": "0.001",
"quantityCurrency": "BTC",
"quoteQuantity": "100",
"quoteCurrency": "USD",
"rate": "100000"
},
"systemNotes": "Do not rely solely on this webhook for final state. Always verify the current status via the API to ensure consistency. Consult the developer documentation and guides for more information."
}

Trade Transaction Status Updated​

{
"webhookId": "00000000-0000-0000-0000-000000000000",
"type": "trade_transaction_status_updated",
"accountId": "00000000-0000-0000-0000-000000000000",
"timestamp": "2025-01-01T00:00:00Z",
"details": {
"transactionId": "00000000-0000-0000-0000-000000000000",
"product": "BTC-USD",
"type": "market",
"side": "buy",
"status": "success",
"previousStatus": "pending",
"quantity": "0.001",
"quantityCurrency": "BTC",
"quoteQuantity": "100",
"quoteCurrency": "USD",
"rate": "100000"
},
"systemNotes": "Do not rely solely on this webhook for final state. Always verify the current status via the API to ensure consistency. Consult the developer documentation and guides for more information."
}

Support and Resources​

If you need assistance or have any questions, our support team is here to help. You can contact our support team at support@blockwyre.com.

Stay Updated​

Stay up-to-date with the latest news, updates, and features from BlockWyre by following us on social media:

We are excited to have you on board and look forward to seeing how you leverage BlockWyre's powerful tools to enhance your financial operations. Happy integrating!