<filename>vendor/polygon-io/api/src/Rest/Reference/TickerNews.php<?php

namespace PolygonIO\Rest\Reference;

use PolygonIO\Rest\RestResource;

/**
 * Class TickerNews
 *
 * @package PolygonIO\rest\reference
 * @deprecated
 */
class TickerNews extends RestResource
{
    protected $defaultParams = [
        'perPage' => 50,
        'page' => 1,
    ];

    /**
     * @param $tickerSymbol
     * @param  array  $params
     *
     * @return array
     *
     * @throws \GuzzleHttp\Exception\GuzzleException
     */
    public function get(string $tickerSymbol, array $params = []): array
    {
        return $this->_get('/v1/meta/symbols/' . $tickerSymbol . '/news', $params);
    }
}
