Account Updated

A detail in the accounts object has been updated

Event Type

Description

accounts.updated

Any detail in the accounts object has been updated. This will show the previous state and the current state of the object.

{
  "id": "event_773a8a45-75fc-4143-8673-9dcfef576328",
  "type": "accounts.updated",
  "timestamp": "2019-03-28T22:46:47.821071506Z",
  "payload": {
    "previous": {
      "status": {
        "name": "OPEN",
        "description": "Open"
      },
      "bod": {
        "moneyMarket": 0,
        "equityValue": 22738.32,
        "cashAvailableForWithdrawal": 0,
        "cashAvailableForTrading": 0,
        "updatedWhen": "2019-03-28T07:18:02.879Z",
        "cashBalance": 0
      }
    },
    "current": {
      "status": {
        "name": "OPEN_NO_NEW_TRADES",
        "description": "Open - No new trades"
      },
      "bod": {
        "moneyMarket": 0,
        "equityValue": 22738.32,
        "cashAvailableForWithdrawal": 0,
        "cashAvailableForTrading": 0,
        "updatedWhen": "2019-03-28T22:46:47.777Z",
        "cashBalance": 0
      }
    },
    "accountID": "711c012d-7a3c-4c25-be20-a6613ede1a3a.1559212256121",
    "accountNo": "DWYZ000001",
    "userID": "711c012d-7a3c-4c25-be20-a6613ede1a3a"
  }
}

Results Explained

Attribute

Type

Description

id

string

unique event identifier

type

string

the type of event

timestamp

string

time when the event was created

payload

object

contains the details of the event

payload.previous

object

contains details of the account prior to the update event. See Get Account Details for more details on the accounts object.

payload.current

object

contains the status of the account. See Get Account Details for more details on the accounts object.