Skip to main content
GET
/
v1
/
accounts
/
{account_id}
/
watchlist
Python (SDK)
from finance_dev import FinanceDev, models
import os


with FinanceDev(
    security=models.Security(
        client_id=os.getenv("FINANCEDEV_CLIENT_ID", ""),
        client_secret=os.getenv("FINANCEDEV_CLIENT_SECRET", ""),
    ),
) as fd_client:

    res = fd_client.watchlist.watchlist_get_watchlist(account_id="acc_xyz789")

    # Handle response
    print(res)
{
  "user_id": 98765,
  "watchlist": [
    {
      "id": 12345,
      "name": "Tech Stocks",
      "symbols": [
        "AAPL",
        "GOOGL",
        "MSFT",
        "TSLA"
      ]
    },
    {
      "id": 12346,
      "name": "Healthcare",
      "symbols": [
        "JNJ",
        "PFE",
        "UNH",
        "ABBV"
      ]
    },
    {
      "id": 12347,
      "name": "Energy",
      "symbols": [
        "XOM",
        "CVX",
        "COP"
      ]
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

account_id
string
required

Account identifier

Example:

"acc_xyz789"

Response

Account watchlists retrieved successfully

user_id
integer<int64>

User ID associated with the account

watchlist
object[]

Array of watchlists