Add exchange account
Description: Adds a new exchange account
Please note that connections using manually created API keys are available only to Expert plan subscribers and exclusively for Binance sub-accounts.
Permission: ACCOUNTS_WRITE Security: SIGNED
POST
/ver1/accounts/new
Body Parameters
type string
required
3Commas of exchange code entity
name string
required
Name of this exchange account
api_key string
required
API-key from this exchange account
secret string
required
Secret-key from this exchange account
address string
required
Address of wallet. This parameter is required when type
is set to ethereumwallet
customer_id string
required
Unique customer ID provided by the Bitstamp exchange.
This parameter is required when type
is set to Bitstamp
passphrase string
required
Secret phrase from this exchange account.
This parameter is required when type
is set to Coinbase
types_to_create `array[string]`
required
Array of related account types to be created.
For example: [binance_margin
]
Response Parameters
id integer
ID of the exchange account entity
name string
The name for the exchange account defined by the user
exchange_name string
Name of this exchange account
market_icon string
The URL link to the icon for this exchange
market_code string
3Commas of exchange code entity
auto_balance_period integer
The interval, in hours, at which automatic portfolio balancing occurs
auto_balance_portfolio_id integer
ID of the portfolio for which automatic balancing has been initiated
autobalance_enabled boolean
Indicates whether auto balance mode is enabled for this account (true
) or not (false
)
auto_balance_error string
or null
A description comes up to explain why autobalance failed
last_auto_balance string
or null
ISO 8601 datetime of when this Auto balance was last time
hedge_mode_available boolean
Indicates whether hedge mode is available for this account (true
) or not (false
)
hedge_mode_enabled boolean
Indicates whether hedge mode is enabled for this account (true
) or not (false
)
is_locked boolean
Indicates if the account is locked (true
) or not (false
)
lock_reason string
or null
The reason for locking this account when is_locked
is true
smart_trading_supported boolean
Indicates if smart trading is supported (true
) or not (false
)
stats_supported boolean
Indicates whether statistic of profit are supported for this account (true
) or not (false
)
trading_supported boolean
Indicates if trading is supported at 3Commas (true
) or not (false
)
market_buy_supported boolean
Indicates whether creating a market buy order is supported on the exchange (true
) or not (false
)
market_sell_supported boolean
Indicates whether creating a market sell order is supported on the exchange (true
) or not (false
)
conditional_buy_supported boolean
Indicates whether creating a conditional buy order is supported on the exchange (true
) or not (false
)
bots_allowed boolean
Indicates whether DCA Bot is enabled for this account (true
) or not (false
)
bots_ttp_allowed boolean
Indicates whether the trailing take profit feature is enabled on this account (true
) or not (false
)
bots_tsl_allowed boolean
Indicates whether the trading stop loss feature is enabled on this account (true
) or not (false
)
multi_bots_allowed boolean
Indicates whether the Multi-Pair feature is supported for this account (true
) or not (false
)
fast_convert_available boolean
Indicates whether the [Sell All to BTC/USD](https://help.3commas.io/en/articles/5898691-rebalance-your-portfolio-with-sell-all-to-usdt-or-sell-all-to-btc) feature is enabled for this account (true
) or not (false
)
grid_bots_allowed boolean
Indicates whether Grid Bot is enabled for this account (true
) or not (false
)
api_key string
API key used for the account
api_key_invalid boolean
Indicates whether the API key for this account is invalid (true
) or not (false
)
api_keys_state string
Indicates the state of the API keys
deposit_enabled boolean
Indicates whether the Deposit feature is enabled for this account (true
) or not (false
)
available_include_in_summary boolean
Indicates whether this account is available to be included in the summary (true
) or not (false
)
include_in_summary boolean
Indicates whether this account included in the summary (true
) or not (false
)
supported_market_types array
The type of market supported by the connected exchange account
customer_id string
Unique customer ID provided by the Bitstamp exchange
btc_amount string
Amount of Bitcoin in the account
usd_amount string
Amount in USD in the account
day_profit_btc string
Daily profit in BTC
day_profit_usd string
Daily profit in USD
day_profit_btc_percentage number
Daily profit percentage in BTC
day_profit_usd_percentage number
Daily profit percentage in USD
btc_profit number
Monthly profit in BTC
usd_profit number
Monthly profit in USD
btc_profit_percentage number
Monthly profit percentage in BTC
usd_profit_percentage number
Monthly profit percentage in USD
total_btc_profit number
Total profit in BTC
total_usd_profit number
Total profit in USD
created_at string
ISO 8601 datetime of when this Account entity was created
updated_at string
ISO 8601 datetime of when this SmartTrade entity was updated
Example Request
POST /ver1/accounts/new
Body:
{
"type": "binance",
"name": "New account",
"api_key": "6q4zuONXKixxxxxxx3K46W34w...",
"secret": "7CfL1slTgxxxxxxxPDfoJSPxxxxIsOFx..."
}
Example Response and errors
Last updated
Was this helpful?