Skip to content

New transaction history record

SEND Server to Client on wss://api.valr.com/ws/account

Sent when a new transaction history record is created on your account. This includes any event that affects your balances such as trades, deposits, withdrawals, fees, and rewards.

Authentication

This operation requires API key authentication (HMAC-SHA512 via query parameters or in-band AUTHENTICATE message).

Message

Event type: NEW_ACCOUNT_HISTORY_RECORD

Payload Schema

PropertyTypeRequiredDescription
transactionTypeobjectYes-
debitCurrencystringYes-
debitValuestringYes-
creditCurrencystringYes-
creditValuestringYes-
feeCurrencystringYes-
feeValuestringYes-
eventAtstringYes-

Example

json
"{\n    \"type\": \"NEW_ACCOUNT_HISTORY_RECORD\",\n    \"data\": {\n        \"transactionType\": {\n            \"type\": \"LIMIT_BUY\",\n            \"description\": \"Limit Buy\"\n        },\n        \"debitCurrency\": \"ZAR\",\n        \"debitValue\": \"9500.00\",\n        \"creditCurrency\": \"BTC\",\n        \"creditValue\": \"0.01000000\",\n        \"feeCurrency\": \"BTC\",\n        \"feeValue\": \"0.00001000\",\n        \"eventAt\": \"2024-09-27T12:01:00.000Z\"\n    }\n}"

Channel

Channel: account Address: wss://api.valr.com/ws/account