Skip to content

Add support for Greeks to OptionsData.get_chain_day  #25

@thammo4

Description

@thammo4

Relevant Tradier documentation: https://documentation.tradier.com/brokerage-api/markets/get-options-chains
Relevant Documentation Info/Example:

Parameter | Type | Param Type | Required | Values/Example | Default | Description

symbol | Query | String | Required | VXX | | Underlying symbol of the chain
expiration | Query | String | Required | 2019-05-17 | | Expiration for the chain
greeks | Query | String | Optional | true | false | Add greeks and volatility information

# Version 3.6.1    
import requests

response = requests.get('https://api.tradier.com/v1/markets/options/chains',
    params={'symbol': 'VXX', 'expiration': '2019-05-17', 'greeks': 'true'},
    headers={'Authorization': 'Bearer <TOKEN>', 'Accept': 'application/json'}
)
json_response = response.json()
print(response.status_code)
print(json_response)

Greeks weren't much of a concern when I first started developing this, but a recent interest in spread trades has changed my perspective

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions