---
slug: broker-holding-daily
title: Broker Holding Daily
sidebar_position: 8
language_tabs: false
toc_footers: []
includes: []
search: true
highlight_theme: ''
headingLevel: 2
---

Get daily holding history for a specific broker in an HK-listed security.

<CliCommand>
longbridge broker-holding daily 700.HK --broker B01224
</CliCommand>


## SDK

| Language | Link |
|---|---|
| Python | [longbridge.openapi.market._market_context](https://longbridge.github.io/openapi/python/reference_all/#longbridge.openapi.market._market_context) |
| Rust | [longbridge::<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />::market#_market_context](https://longbridge.github.io/openapi/rust/longbridge/<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />/struct.market.html#method._market_context) |
| Go | [market.broker_holding_daily](https://pkg.go.dev/github.com/longbridge/openapi-go/<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />#market.broker_holding_daily) |
| Node.js | [market#MarketContext](https://longbridge.github.io/openapi/nodejs/classes/market.html#marketcontext) |
| Java | [market.getMarketContext](https://longbridge.github.io/openapi/java/com/longbridge/<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />/market.html#getMarketContext) |
| C++ | [longbridge::<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />::market::_market_context](https://longbridge.github.io/openapi/cpp/classlongbridge_1_1<SDKLinks module="market" klass="MarketContext" method="broker_holding_daily" />_1_1_market.html) |


## Parameters

> **SDK method parameters.**

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| symbol | string | YES | HK security symbol, e.g. `700.HK` |
| broker_id | string | YES | Broker participant ID, e.g. `B01224` |

## Request Example

<Tabs groupId="request-example">
  <TabItem value="python" label="Python">

```python
from longbridge.openapi import MarketContext, Config, OAuthBuilder

oauth = OAuthBuilder("your-client-id").build(lambda url: print("Visit:", url))
config = Config.from_oauth(oauth)
ctx = MarketContext(config)

resp = ctx.broker_holding_daily("700.HK", "B01224")
print(resp)
```

  </TabItem>
  <TabItem value="python-async" label="Python (async)">

```python
import asyncio
from longbridge.openapi import AsyncMarketContext, Config, OAuthBuilder

async def main() -> None:
    oauth = await OAuthBuilder("your-client-id").build_async(lambda url: print("Visit:", url))
    config = Config.from_oauth(oauth)
    ctx = AsyncMarketContext.create(config)

    resp = await ctx.broker_holding_daily("700.HK", "B01224")
    print(resp)

if __name__ == "__main__":
    asyncio.run(main())
```

  </TabItem>
  <TabItem value="nodejs" label="Node.js">

```javascript
const { Config, MarketContext, OAuth } = require('longbridge')

async function main() {
  const oauth = await OAuth.build('your-client-id', (_, url) => {
    console.log('Open this URL to authorize: ' + url)
  })
  const config = Config.fromOAuth(oauth)
  const ctx = MarketContext.new(config)
  const resp = await ctx.brokerHoldingDaily('700.HK', 'B01224')
  console.log(resp)
}
main().catch(console.error)
```

  </TabItem>
  <TabItem value="java" label="Java">

```java
import com.longbridge.*;
import com.longbridge.market.*;

class Main {
    public static void main(String[] args) throws Exception {
        try (OAuth oauth = new OAuthBuilder("your-client-id").build(url -> System.out.println("Open to authorize: " + url)).get();
             Config config = Config.fromOAuth(oauth);
             MarketContext ctx = MarketContext.create(config)) {
            var resp = ctx.getBrokerHoldingDaily("700.HK", "B01224").get();
            System.out.println(resp);
        }
    }
}
```

  </TabItem>
  <TabItem value="rust" label="Rust">

```rust
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, market::MarketContext, Config};

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let oauth = OAuthBuilder::new("your-client-id").build(|url| println!("Open: {url}")).await?;
    let config = Arc::new(Config::from_oauth(oauth));
    let ctx = MarketContext::new(config);
    let resp = ctx.broker_holding_daily("700.HK", "B01224").await?;
    println!("{:?}", resp);
    Ok(())
}
```

  </TabItem>
  <TabItem value="go" label="Go">

```go
package main

import (
	"context"
	"fmt"
	"log"

	"github.com/longbridge/openapi-go/config"
	"github.com/longbridge/openapi-go/oauth"
	"github.com/longbridge/openapi-go/market"
)

func main() {
	o := oauth.New("your-client-id").
		OnOpenURL(func(url string) { fmt.Println("Open this URL to authorize:", url) })
	if err := o.Build(context.Background()); err != nil {
		log.Fatal(err)
	}
	conf, err := config.New(config.WithOAuthClient(o))
	if err != nil {
		log.Fatal(err)
	}
	c, err := market.NewFromCfg(conf)
	if err != nil {
		log.Fatal(err)
	}
	defer c.Close()
	resp, err := c.BrokerHoldingDaily(context.Background(), "700.HK", "B01224")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", resp)
}
```

  </TabItem>
</Tabs>

## Response


### Response Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "list": [
      {
        "date": "2026.05.13",
        "holding": "22903430",
        "chg": "7029132.0000",
        "ratio": "0.0025"
      },
      {
        "date": "2026.05.12",
        "holding": "15874298",
        "chg": "-2150000.0000",
        "ratio": "0.0017"
      }
    ]
  }
}
```

### Response Status

| Status | Description | Schema |
| ------ | ----------- | ------ |
| 200    | Success     | [BrokerHoldingDailyResponse](#BrokerHoldingDailyResponse) |
| 400    | Bad request | None   |

## Schemas

### BrokerHoldingDailyHistoryResponse

<a id="BrokerHoldingDailyHistoryResponse"></a>

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| list | object[] | true | Daily holding history records |
| ∟ date | string | true | Date (e.g. `2026.05.13`) |
| ∟ holding | string | false | Total shares held |
| ∟ chg | string | false | Daily change in shares |
| ∟ ratio | string | false | Holding ratio |
