GET
Get Option Chain
Get option chain for an optionable Symbol
Resource URL
https://api.tdameritrade.com/v1 /marketdata/chains
Query Parameters
Name | Values | Description |
---|---|---|
apikey |
Pass your OAuth User ID to make an unauthenticated request for delayed data. |
|
symbol |
Enter one symbol |
|
contractType |
Type of contracts to return in the chain. Can be CALL, PUT, or ALL. Default is ALL. |
|
strikeCount |
The number of strikes to return above and below the at-the-money price. |
|
includeQuotes |
Include quotes for options in the option chain. Can be |
|
strategy |
Passing a value returns a Strategy Chain. Possible values are |
|
interval |
Strike interval for spread strategy chains (see strategy param). |
|
strike |
Provide a strike price to return options only at that strike price. |
|
range |
Returns options for the given range. Possible values are: |
|
fromDate |
'Only return expirations after this date. For strategies, expiration refers to the nearest term expiration in the strategy. Valid ISO-8601 formats are: |
|
toDate |
'Only return expirations before this date. For strategies, expiration refers to the nearest term expiration in the strategy. Valid ISO-8601 formats are: |
|
volatility |
Volatility to use in calculations. Applies only to ANALYTICAL strategy chains (see strategy param). |
|
underlyingPrice |
Underlying price to use in calculations. Applies only to ANALYTICAL strategy chains (see strategy param). |
|
interestRate |
Interest rate to use in calculations. Applies only to ANALYTICAL strategy chains (see strategy param). |
|
daysToExpiration |
Days to expiration to use in calculations. Applies only to ANALYTICAL strategy chains (see strategy param). |
|
expMonth |
'Return only options expiring in the specified month. Month is given in the three character format. |
|
optionType |
'Type of contracts to return. Possible values are: |
Header Parameters
Name | Values | Description |
---|---|---|
Authorization |
Supply an access token to make an authenticated request. The format is |
Resource Summary |
|
Security |
|
Content Type |
application/json |
Response Summary
Resource Error Codes |
||
HTTP Code |
Description |
|
400 |
An error message indicating the caller must pass a non null value in the parameter. |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
An error message indicating optionchain for the symbol was not found. |
|
500 |
An error message indicating internal error in the service. |
Working...