Skip to content

Credit balances

Subscribe to get dynamic credit balance updates.

Subscribe to credit balances

Subscribe credit updates request example

{ "creditBalanceSubscriptionRequest": { "type": "CREDIT", "customerAccountList": [ "Margin", "Cash" ], "providersList": [ "<brokername>" ], "action": "SUBSCRIBE" } }

Request body

Attribute Description
typestring: (required) Balance type CREDIT.
customerAccountListarray [string]: (required) The account types:
  • Margin: Margin balance.
  • Cash: Cash balance.
providersListarray [string]: (required) A list of broker IDs to request balances from.
actionstring: (required) Requested action SUBSCRIBE.

Returns

Credit balance example

{ "creditDetails": [ { "orgName": "<customername>", "balances": [ … ] } ] }
Attribute Description
orgNamestring: Requesting customer ID.
balancesarray [balances object]: Balances by broker and account type (Margin|Cash).
legalEntitystring: Account type (Margin|Cash).
providerstring: Broker ID of balances.
limitCurrencystring: The currency in which credit amounts are denominated.
accountBalancedouble: Credit balance amount.
marginAvailabledouble: Credit margin available to the requesting customer. This includes the applied margin factor, if any.
marginUseddouble: Total credit utilized by the requesting customer.
unrealizedPnLdouble: Intraday unsettled PnL (customer's net receivables minus their net payables).
currentBalancedouble: Current credit balance amount.