# Deriv balance

Independent and unofficial. Not affiliated with or endorsed by any broker or platform named here. Educational only: nothing here is advice, and nothing here recommends a broker or a trade.

This is the markdown version of https://openbrokerapi.com/brokers/deriv/messages/balance, written from the same records as that page.

Risk warning: CFDs and spread bets are complex instruments and come with a high risk of losing money rapidly due to leverage. You can lose money on these products, and each provider publishes its own loss figure under FCA rules. You should consider whether you understand how they work and whether you can afford to take the high risk of losing your money. Automated and API trading can amplify losses through bugs, connectivity failures and runaway orders.

Returns the balance of the account the connection belongs to. With subscribe set to 1 a new message follows each time the balance changes.

- Message: `balance`
- Interface: Deriv WebSocket API
- Group: Account
- Status: verified. Source: [developers.deriv.com](https://developers.deriv.com/llms/balance.md), checked 2026-10-12.
- The definition file it was checked against: https://developers.deriv.com/schemas/balance_request.schema.json

This is a message of the Deriv WebSocket API, not an HTTP endpoint. It has no method and no path: it is sent as JSON over an open WebSocket connection. It is in no OpenAPI file on this site and the request builder does not list it.

## The message

- Name: `balance`
- Direction: Request, sent by the client
- Carried by: WebSocket. Deriv's page marks this call as needing a login with the trade scope, so it is sent on the connection of one account. The demo and real addresses are not opened as printed: POST /trading/v1/options/accounts/{accountId}/otp returns the address for one account with a one time password already in it.
- Demo account: `wss://api.derivws.com/trading/v1/options/ws/demo`
- Real account: `wss://api.derivws.com/trading/v1/options/ws/real`

## Fields

- `balance` (type integer, required): Always 1.
- `subscribe` (type integer, optional): 1 starts a stream: the balance is sent again whenever it changes. 0 or 1.
- `passthrough` (type object, optional): Anything you want carried through the call. It comes back unchanged inside echo_req.
- `req_id` (type integer, optional): A number of your own that is returned on the answer, so answers can be matched to requests.

## What arrives

`balance`: The balance now. On a stream the same message is sent again after each change.

- `balance.balance` (type number, required): The balance of the account.
- `balance.currency` (type string, required): The currency of the account.
- `balance.id` (type string, optional): The id of the stream on this connection.
- `balance.loginid` (type string, required): The login id of the account.
- `subscription.id` (type string, required): The id of the stream on this connection. Sent with forget to stop it. The subscription object is present only where the request asked for a stream.
- `echo_req` (type object, required): A copy of the request that was sent.
- `msg_type` (type string, required): Names the kind of answer. Here it is balance.
- `req_id` (type integer, optional): The number the request carried. Present only where the request had one.

## Sample

Written by this site from the fields recorded on this page. It has not been run against a terminal, a server or an account, and the values in it are placeholders. No credential is typed into it: where a field holds one, the placeholder says where it comes from. Nothing is entered on this site.

```json
{
  "balance": 1,
  "subscribe": 1
}
```

## Limits that apply at Deriv

- Headline limit: 80/min per logged in user (REST)
  - Scope: user, REST
  - Sources conflict: [developers.deriv.com](https://developers.deriv.com/llms/api-overview.md) states 60 REST requests per minute per token, checked 2026-10-12. Deriv's API overview in the text form it publishes for AI tools gives REST 60 requests a minute per token, where its Limits page gives 80 a minute per logged in user. The same overview also gives 100 WebSocket requests a second per connection, 100 active subscriptions per connection and 5 concurrent WebSocket connections per user, none of which the Limits page mentions. Deriv's own pages disagree; the conflict is labelled, not resolved. Pace against 60.
  - Status: conflicting. Source: [developers.deriv.com](https://developers.deriv.com/docs/limits/), checked 2026-10-12.
  - Note: From the Limits page: REST is also capped at 300 a minute and 1,000 per ten minutes per IP address. WebSocket budgets, each shared by the calls in its row, a minute and an hour: proposal, proposal_open_contract, buy and sell 360 and 14,400; balance and statement 100 and 2,000; portfolio and profit table 30 and 1,500; all other calls 220 and 14,400. ping sits outside these budgets at 10 a second per connection.

## Related Deriv messages: Account

- [portfolio](https://openbrokerapi.com/brokers/deriv/messages/portfolio): Lists the contracts the account holds open now. It is a single answer, not a stream.
- [profit_table](https://openbrokerapi.com/brokers/deriv/messages/profit-table): Returns the account's closed contracts with what each was bought and sold for, filtered by date and contract type and paged with limit and offset.
- [statement](https://openbrokerapi.com/brokers/deriv/messages/statement): Returns the account's transactions: buys, sells, deposits and withdrawals, filtered by date and type and paged with limit and offset.
- [transaction](https://openbrokerapi.com/brokers/deriv/messages/transaction): Opens a stream of the account's transactions: a message arrives for each buy, sell, deposit and withdrawal. subscribe must be 1, and without it no records are returned.

## More on Deriv

- [All Deriv messages](https://openbrokerapi.com/brokers/deriv/messages): 19 documented here, grouped by what they do.
- [List accounts: the call at each API](https://openbrokerapi.com/endpoints/accounts): The same job at every broker and platform API recorded here, HTTP or not.
- [Deriv API quickstart](https://openbrokerapi.com/brokers/deriv/quickstart)
- [All Deriv error codes](https://openbrokerapi.com/errors/deriv)
- [Deriv API page](https://openbrokerapi.com/brokers/deriv): The full record: access, authentication, limits and the source for each.

## Licence and how to cite

The records behind this page are all rights reserved. This file is the page itself, at its own address, in another format. It is not part of the CC BY 4.0 downloads listed at https://openbrokerapi.com/data. Quote from it with a link to the page.

Cite as: Deriv balance. Broker API Hub, https://openbrokerapi.com/brokers/deriv/messages/balance, newest check 2026-10-12.

Where you rely on a single figure, cite the source and the checked date printed beside it as well. Where this page and a broker's own documentation differ, the documentation wins.
