Subscribe to get dynamic credit balance updates.
Subscribe credit updates request example
{ "creditBalanceSubscriptionRequest": { "type": "CREDIT", "customerAccountList": [ "Margin", "Cash" ], "providersList": [ "<brokername>" ], "action": "SUBSCRIBE" } }
Request body
| Attribute | Description |
|---|---|
type | string: (required) Balance type CREDIT. |
customerAccountList | array [string]: (required) The account types:
|
providersList | array [string]: (required) A list of broker IDs to request balances from. |
action | string: (required) Requested action SUBSCRIBE. |
Returns
Credit balance example
{ "creditDetails": [ { "orgName": "<customername>", "balances": [ … ] } ] }
| Attribute | Description |
|---|---|
orgName | string: Requesting customer ID. |
balances | array [balances object]: Balances by broker and account type (Margin|Cash). |
legalEntity | string: Account type (Margin|Cash). |
provider | string: Broker ID of balances. |
limitCurrency | string: The currency in which credit amounts are denominated. |
accountBalance | double: Credit balance amount. |
marginAvailable | double: Credit margin available to the requesting customer. This includes the applied margin factor, if any. |
marginUsed | double: Total credit utilized by the requesting customer. |
unrealizedPnL | double: Intraday unsettled PnL (customer's net receivables minus their net payables). |
currentBalance | double: Current credit balance amount. |