Available market subtypes

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

Permission: NONE Security: SIGNED


GET

/ver1/accounts/types_to_connect


Query Parameters

type string required Name of the exchange in the 3Commas system

name string required Name for exchange account

api_key string required API-key for this exchange account

secret string required Secret-key for this exchange account

Use endpoint Supported markets list and parameter market_codeto get value for parameter type in 3Commas.

Parameters Response

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

Example Request

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

Example Response and errors

Status: 200 OK

 {
        "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
    }
]
Status: 400 Bad Request

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

Last updated

Was this helpful?