Skip to main content
POST
/
updateBotBrokerKeys
updateBotBrokerKeys
curl --request POST \
  --url https://alphainsider.com/api/updateBotBrokerKeys \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "bot_id": "<string>",
  "broker_keys": {
    "live": true,
    "bitfinex_key": "<string>",
    "bitfinex_secret": "<string>",
    "binance_key": "<string>",
    "binance_secret": "<string>",
    "alpaca_key": "<string>",
    "alpaca_secret": "<string>"
  }
}
'
{
  "success": true,
  "response": {
    "bot_id": "oSDsXkKq8nq8_quqrySSK",
    "user_id": "user_1",
    "leverage": "2.000000000000000",
    "slippage": "0.005000000000000",
    "rebalance_on_start": true,
    "close_on_stop": true,
    "broker": "alpaca",
    "type": "stock",
    "live": false,
    "account_id": "PA3815FAJZJV",
    "status": "on",
    "notifications": [],
    "updated_at": "2024-10-23T15:15:08.758Z",
    "created_at": "2024-10-23T14:53:11.748Z"
  }
}

Headers

Authorization
string<JWT>
required

User API token.

Body

application/json
bot_id
string
required

Bot ID.

broker_keys
object
required

Broker keys.

Response

Request was successful.