> For the complete documentation index, see [llms.txt](https://3commas.gitbook.io/3commas-official-api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://3commas.gitbook.io/3commas-official-api-docs/account/available-market-subtypes.md).

# Available market subtypes

**Description:** Returns the available account types for connection by user for specific exchange and pair of keys<br>

**Permission:** NONE\
**Security:** SIGNED\ <br>

***

<mark style="color:blue;">**GET**</mark>

<mark style="color:blue;">**/ver1/accounts/types\_to\_connect**</mark>

***

<br>

## Query Parameters<br>

**type**     `string`     <mark style="color:orange;">required</mark>\
Name of the exchange in the 3Commas system

**name**     `string`     <mark style="color:orange;">required</mark>\
Name for exchange account

**api\_key**     `string`     <mark style="color:orange;">required</mark>\
API-key for this exchange account

**secret**     `string`     <mark style="color:orange;">required</mark>\
Secret-key for this exchange account

<br>

{% hint style="info" %}
Use endpoint [Supported markets list](/3commas-official-api-docs/market-data/supported-markets-list.md) and parameter `market_code`to get value for parameter `type` in 3Commas.
{% endhint %}

<br>

## Parameters Response<br>

**type**     `string`\
The exchange code available to connect

**connected**     `boolean`\
Indicates whether the exchange is currently connected (`true`) or not (`false`)

**available**     `boolean`\
Secret-key for this exchange account

**unified**     `boolean`\
Shows the exchange supports an unified account. Using for Bybit exchange\
`true` is if it supports

<br>

## Example Request<br>

```json
GET
/ver1/accounts/types_to_connect?type=binance&name=binance123&api_key=6q4zuON***XKi8kOMepGT***xcxkBlIACvhY***8Qr97MsAT9***p4qe9Uezqrrd&secret=7CfL1slT***8xzCsgzA***4yfNGvOav***QO
```

<br>

## Example Response and errors<br>

<details>

<summary>Status: 200 OK</summary>

<br>

```json
 {
        "type": "binance",
        "connected": false,
        "available": true,
        "unified": false
    },
    {
        "type": "binance_margin",
        "connected": false,
        "available": true,
        "unified": false
    },
    {
        "type": "binance_futures",
        "connected": true,
        "available": true,
        "unified": false
    },
    {
        "type": "binance_futures_coin",
        "connected": true,
        "available": true,
        "unified": false
    }
]
```

</details>

<details>

<summary>Status: 400 Bad Request</summary>

<br>

```json
{
    "error": "record_invalid",
    "error_description": "Invalid parameters",
    "error_attributes": {
        "type": [
            "does not have a valid value"
        ]
    }
}
```

</details>
