
namespace Alpaca.Markets
{
    public sealed partial class AlpacaTradingClient
    {
        /// <inheritdoc />
        public Task<IReadOnlyList<IWatchList>> ListWatchListsAsync(
            CancellationToken cancellationToken = default) =>
            _httpClient.GetAsync<IReadOnlyList<IWatchList>, List<JsonWatchList>>(
                "v2/watchlists", cancellationToken, _alpacaRestApiThrottler);

        /// <inheritdoc />
        public Task<IWatchList> CreateWatchListAsync(
            NewWatchListRequest request,
            CancellationToken cancellationToken = default) =>