---
slug: check-support
title: Check DCA Support
sidebar_position: 9
language_tabs: false
toc_footers: []
includes: []
search: true
highlight_theme: ''
headingLevel: 2
---

Check whether the given securities support DCA recurring investment.

<CliCommand>
longbridge dca check AAPL.US 700.HK
</CliCommand>


## SDK

| Language | Link |
|---|---|
| Python | [longbridge.openapi.dca._d_c_a_context](https://longbridge.github.io/openapi/python/reference_all/#longbridge.openapi.dca._d_c_a_context) |
| Rust | [longbridge::<SDKLinks module="dca" klass="DCAContext" method="check_support" />::dca#_d_c_a_context](https://longbridge.github.io/openapi/rust/longbridge/<SDKLinks module="dca" klass="DCAContext" method="check_support" />/struct.dca.html#method._d_c_a_context) |
| Go | [dca.check_support](https://pkg.go.dev/github.com/longbridge/openapi-go/<SDKLinks module="dca" klass="DCAContext" method="check_support" />#dca.check_support) |
| Node.js | [dca#DCAContext](https://longbridge.github.io/openapi/nodejs/classes/dca.html#dcacontext) |
| Java | [dca.getDCAContext](https://longbridge.github.io/openapi/java/com/longbridge/<SDKLinks module="dca" klass="DCAContext" method="check_support" />/dca.html#getDCAContext) |
| C++ | [longbridge::<SDKLinks module="dca" klass="DCAContext" method="check_support" />::dca::_d_c_a_context](https://longbridge.github.io/openapi/cpp/classlongbridge_1_1<SDKLinks module="dca" klass="DCAContext" method="check_support" />_1_1_dca.html) |


## Parameters

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| symbols | string[] | YES | List of security symbols to check |

## Request Example

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

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

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

resp = ctx.check_support(["AAPL.US", "700.HK"])
print(resp)
```

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

```python
import asyncio
from longbridge.openapi import AsyncDCAContext, 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 = AsyncDCAContext.create(config)

    resp = await ctx.check_support(["AAPL.US", "700.HK"])
    print(resp)

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

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

```javascript
const { Config, DCAContext, 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 = DCAContext.new(config)
  const resp = await ctx.checkSupport(['AAPL.US', '700.HK'])
  console.log(resp)
}
main().catch(console.error)
```

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

```java
import com.longbridge.*;
import com.longbridge.dca.*;
import java.util.Arrays;

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);
             DCAContext ctx = DCAContext.create(config)) {
            var resp = ctx.checkSupport(Arrays.asList("AAPL.US", "700.HK")).get();
            System.out.println(resp);
        }
    }
}
```

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

```rust
use std::sync::Arc;
use longbridge::{oauth::OAuthBuilder, dca::DCAContext, 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 = DCAContext::new(config);
    let resp = ctx.check_support(vec!["AAPL.US".into(), "700.HK".into()]).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/dca"
)

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 := dca.NewFromCfg(conf)
	if err != nil {
		log.Fatal(err)
	}
	defer c.Close()
	resp, err := c.CheckSupport(context.Background(), []string{"AAPL.US", "700.HK"})
	if err != nil {
		log.Fatal(err)
	}
	fmt.Printf("%+v\n", resp)
}
```

  </TabItem>
</Tabs>

## Response


### Response Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "infos": [
      {
        "symbol": "AAPL.US",
        "support_regular_saving": true
      },
      {
        "symbol": "700.HK",
        "support_regular_saving": false
      }
    ]
  }
}
```

### Response Status

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

## Schemas

### DcaSupportListResponse

<a id="DcaSupportListResponse"></a>

| Name | Type | Required | Description |
| ---- | ---- | -------- | ----------- |
| infos | object[] | true | List of DCA support results |
| ∟ symbol | string | true | Security symbol |
| ∟ support_regular_saving | boolean | true | Whether DCA is supported |
