Skip to main content
WEBHOOK
tradeCompleted
{
  "clientId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
  "notification": {
    "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
    "contractTradeId": "24",
    "status": "pending",
    "rate": 0.915,
    "from": {
      "currency": "USDC",
      "amount": "<string>"
    },
    "to": {
      "currency": "USDC",
      "amount": "<string>"
    },
    "createDate": "2023-01-01T12:04:05Z",
    "updateDate": "2023-01-01T12:04:05Z",
    "quoteId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
    "settlementTransactionHash": "0x5ba96ea26172dde9a83b151d1a73f163bafe883f691b80e404b271b00eb86a0a",
    "contractTransactions": {
      "recordTrade": {
        "status": "success",
        "txHash": "0x522a01ed8750423ab213a3d4618f231e0984874509521e98977f017b452cd455",
        "errorDetails": "<string>"
      },
      "takerDeliver": {
        "status": "success",
        "txHash": "0x522a01ed8750423ab213a3d4618f231e0984874509521e98977f017b452cd455",
        "errorDetails": "<string>"
      },
      "makerDeliver": {
        "status": "success",
        "txHash": "0x522a01ed8750423ab213a3d4618f231e0984874509521e98977f017b452cd455",
        "errorDetails": "<string>"
      }
    }
  },
  "tenancyEnvironment": "TEST",
  "messageTraceId": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
  "userId": "<unknown>",
  "userGroupTypes": [],
  "notificationType": "stablefx.trade.completed"
}

Body

application/json

A webhook payload

clientId
string<uuid>

System-generated unique identifier of the resource.

Example:

"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"

notification
object

Detailed trade information including contract transactions

tenancyEnvironment
enum<string>

The tenancy environment of the trade.

Available options:
TEST,
LIVE
Example:

"TEST"

messageTraceId
string<uuid>

System-generated unique identifier of the resource.

Example:

"c4d1da72-111e-4d52-bdbf-2e74a2d803d5"

userId
null
userGroupTypes
string[]

The user group types.

notificationType
enum<string>
Available options:
stablefx.trade.completed

Response

200

Webhook received successfully