Options chain
get
Retrieves the options chain for a given ticker symbol.
Authorizations
Path parameters
tickerstringRequired
- The ticker symbol of the company.
Query parameters
strike_pricenumber · doubleOptional
- The strike price of the options.
option_typestring · enumOptionalPossible values:
- The type of option (call or put).
expiration_datestringOptional
- The expiration date of the options.
Header parameters
AuthorizationstringRequired
- The authorization token.
Responses
200
A promise that resolves to an `OptionsChainAPIResponse` object containing the options chain.
application/json
get
GET //financial-datasets/options-chain/{ticker} HTTP/1.1
Host: beta.usemoon.ai
Authorization: text
Accept: */*
200
A promise that resolves to an OptionsChainAPIResponse
object containing the options chain.
{
"success": true,
"message": "text",
"body": {
"to": "text",
"data": "text",
"value": "text",
"gasLimit": "text",
"nonce": "text",
"simulate": true,
"gas": "text",
"gasPrice": "text",
"maxFeePerGas": "text",
"maxPriorityFeePerGas": "text",
"chain_id": "text",
"encoding": "text",
"type": 1,
"accessList": [
{
"address": "text",
"storageKeys": [
"text"
]
}
],
"blobGas": "text",
"blobGasFeeCap": "text",
"blobHashes": [
"text"
],
"dryrun": true,
"input": "text",
"EOA": true,
"contract_address": "text",
"token_id": "text",
"token_ids": "text",
"approved": true,
"broadcast": true,
"alwaysIncrementNonce": true,
"asset": "text",
"amount": "text",
"interestRateMode": 1,
"referralCode": 1,
"onBehalfOf": "text",
"receiverAddress": "text",
"assets": [
"text"
],
"amounts": [
"text"
],
"modes": [
1
],
"params": "text",
"rateMode": 1,
"useAsCollateral": true,
"collateralAsset": "text",
"debtAsset": "text",
"user": "text",
"debtToCover": "text",
"receiveAToken": true,
"inputTokens": [
{
"tokenAddress": "text",
"amount": "text"
}
],
"outputTokens": [
{
"tokenAddress": "text",
"proportion": 1
}
],
"slippageLimitPercent": 1,
"minHealthFactor": "text",
"premiums": [
"text"
],
"initiator": "text",
"role": "text",
"account": "text",
"initialDeposit": "text",
"borrowAmount": "text"
},
"address": "text",
"data": [
{
"ticker": "text",
"type": "Call",
"strike_price": 1,
"expiration_date": "text",
"shares_per_contract": 1,
"volume": 1,
"open_interest": 1,
"bid_price": 1,
"bid_size": 1,
"ask_price": 1,
"ask_size": 1,
"last_trade_price": 1,
"last_trade_size": 1,
"last_trade_time": "text",
"last_trade_time_nanoseconds": 1
}
]
}