Skip to main content
GET
/
getBotInfo
getBotInfo
curl --request GET \
  --url https://alphainsider.com/api/getBotInfo \
  --header 'Authorization: <authorization>'
{
  "success": true,
  "response": {
    "bot_id": "h_zZfeqsX9o8hgB8DVc0P",
    "user_id": "user_1",
    "broker": "alpaca",
    "type": "stock",
    "live": false,
    "account_id": "PA3815FAJZJV",
    "broker_status": "valid",
    "broker_details": {
      "margin_type": "reg_t",
      "value": "93003.68",
      "buying_power": "186007.36",
      "min_total": "1",
      "max_leverage": "2",
      "initial_buying_power_percent": "0.95",
      "positions": [
        {
          "broker_stock_id": "COIN",
          "amount": "105.16414",
          "bid": "338",
          "ask": "356.99"
        },
        {
          "broker_stock_id": "INTC",
          "amount": "-617.19069",
          "bid": "34.08",
          "ask": "0"
        },
        {
          "broker_stock_id": "PLTR",
          "amount": "156.39204",
          "bid": "179.7",
          "ask": "179.76"
        },
        {
          "broker_stock_id": "TSLA",
          "amount": "12.45853",
          "bid": "405.26",
          "ask": "0"
        },
        {
          "broker_stock_id": "XYZ",
          "amount": "348.94207",
          "bid": "73.28",
          "ask": "76.81"
        }
      ]
    }
  }
}

Headers

Authorization
string<JWT>
required

User API token.

Query Parameters

bot_id
string
required

Bot ID.

Response

Request was successful.