v1

latestOpenAPI 3.0.22026-07-24113565544.0 KB
Positions

List Account Positions

Retrives a list of Account Positions by accountID

get/accounts/{accountID}/summary/positions

Path parameters

accountIDstring required

The user's unique account identifier.

Example:cc07f91b-7ee1-4868-b8fc-823c70a1b932.1407775317759

Response

Retrieving an Account's Positions by accountID was Successful.

accountIDstring

The user's unique account identifier.

accountNostring

The user's unique account number, that is human readable.

tradingType'CASH' | 'MARGIN'

The type of trading the account will participate in.

updatedstring

Time of last update.

equityValuenumber double

The current total market value of the account's open equity positions.

optionsValuenumber double

The current total market value of the account's open option positions.

debtValuenumber double

The current total market value of the account's open debt positions.

positionsValuenumber double

The current total market value of the account's open positions.

Example response

{
  "accountID": "cc07f91b-7ee1-4868-b8fc-823c70a1b932.1407775317759",
  "accountNo": "DWBG000052",
  "tradingType": "CASH",
  "updated": "2017-06-16T15:35:30.617Z",
  "equityValue": 34275565.44,
  "optionsValue": 12345.67,
  "debtValue": 12345.67,
  "positionsValue": 34287911.11,
  "equityPositions": [
    {
      "symbol": "MS",
      "instrumentID": "3fb1e8a9-f7d5-4d90-95e2-43e7326b5636",
      "ISIN": "US023135BX34",
      "instrumentType": "EQUITY",
      "openQty": 31.65120151,
      "costBasis": 975.98,
      "marketValue": 4540.36,
      "side": "B",
      "priorClose": 144.29,
      "availableForTradingQty": 31.65120151,
      "avgPrice": 30.84,
      "mktPrice": 143.45,
      "unrealizedPL": 3564.38,
      "unrealizedDayPLPercent": -0.58,
      "unrealizedDayPL": -26.59
    }
  ],
  "optionsPositions": [
    {
      "symbol": "MS",
      "instrumentID": "3fb1e8a9-f7d5-4d90-95e2-43e7326b5636",
      "ISIN": "US023135BX34",
      "instrumentType": "EQUITY",
      "openQty": 31.65120151,
      "costBasis": 975.98,
      "marketValue": 4540.36,
      "side": "B",
      "priorClose": 144.29,
      "availableForTradingQty": 31.65120151,
      "avgPrice": 30.84,
      "mktPrice": 440.75,
      "unrealizedPL": 14.24,
      "unrealizedDayPLPercent": 1.65,
      "unrealizedDayPL": 0.54
    }
  ],
  "mutualFundsPositions": [
    {
      "symbol": "MS",
      "instrumentID": "3fb1e8a9-f7d5-4d90-95e2-43e7326b5636",
      "ISIN": "US023135BX34",
      "instrumentType": "EQUITY",
      "openQty": 31.65120151,
      "costBasis": 975.98,
      "marketValue": 4540.36,
      "side": "B",
      "priorClose": 144.29,
      "availableForTradingQty": 31.65120151,
      "avgPrice": 30.84
    }
  ],
  "debtPositions": [
    {
      "symbol": "MS",
      "instrumentID": "3fb1e8a9-f7d5-4d90-95e2-43e7326b5636",
      "ISIN": "US023135BX34",
      "instrumentType": "EQUITY",
      "openQty": 31.65120151,
      "costBasis": 975.98,
      "marketValue": 4540.36,
      "side": "B",
      "priorClose": 144.29,
      "availableForTradingQty": 31.65120151,
      "avgPrice": 30.84
    }
  ]
}