Skip to main content

Strikes

Get a list of current or historical option strike prices for an underlying symbol.

Making Requests

Use the strikes() method on the options resource to fetch strike prices:

Output FormatReturn TypeDescription
JSONStrikesReturns a Strikes object containing strike prices (default).
CSVStrikesReturns a Strikes object with CSV data accessible via getCsv().
HTMLStrikesReturns a Strikes object with HTML data accessible via getHtml().
HTML Not Yet Available

Format::HTML is included for forward compatibility, but HTML responses are not currently implemented by the Market Data API.

strikes

public function strikes(
string $symbol,
?string $expiration = null,
?string $date = null,
?Parameters $parameters = null
): Strikes

Get a list of current or historical option strike prices for an underlying symbol. If no optional parameters are used, the endpoint returns strikes for every expiration in the chain.

Parameters

  • symbol (string)

    The underlying ticker symbol for the options chain (e.g., "AAPL", "SPY").

  • expiration (string, optional)

    Limit the lookup of strikes to options that expire on a specific date. Accepted formats: ISO 8601, Unix timestamp, spreadsheet serial number.

  • date (string, optional)

    Look up a historical list of strikes from a specific previous trading day. If omitted, returns current trading day strikes (or last trading day when market is closed). Accepted formats: ISO 8601, Unix timestamp, spreadsheet serial number.

  • parameters (Parameters, optional)

    Universal parameters for customizing the output format. See Parameters for details.

Returns

  • Strikes

    A Strikes response object containing the list of strike prices.

<?php

use MarketDataApp\Client;

$client = new Client();

// Get all strikes for AAPL options
$strikes = $client->options->strikes('AAPL');

echo "AAPL Option Strikes:\n";
echo "====================\n";

// Strikes are returned for all expirations
echo "Total strikes available: " . count($strikes->strikes) . "\n\n";

// Show unique strike values
$uniqueStrikes = array_unique($strikes->strikes);
sort($uniqueStrikes);
echo "Sample strikes: " . implode(', ', array_slice($uniqueStrikes, 0, 10)) . "...\n";

Strikes

class Strikes extends ResponseBase
{
public string $status;
public array $strikes;
}

Represents a list of option strike prices.

Properties

  • status (string): Response status ("ok" or "no_data").
  • strikes (float[]): Array of strike prices as floating-point numbers.

Methods

  • getCsv(): Returns the raw CSV data (when using Format::CSV).
  • getHtml(): Returns the raw HTML data (when using Format::HTML).
  • isJson(): Returns true if the response contains JSON data.