Skip to content

Please add VIX real time graph, there no VIX real time in yahoo. #163

@githubbla

Description

@githubbla
import requests

url = 'https://www.cboe.com/tradable_products/vix/quote/'
headers = {
    'accept': '*/*',
    'accept-language': 'en-US,en;q=0.9,ru;q=0.8',
    'cache-control': 'no-cache',
    'cookie': 'CboePrivacyPolicy_20211104=1',
    'pragma': 'no-cache',
    'priority': 'u=1, i',
    'referer': 'https://www.cboe.com/tradable_products/vix/',
    'sec-ch-ua': '"Google Chrome";v="125", "Chromium";v="125", "Not.A/Brand";v="24"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"macOS"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36',
    'x-requested-with': 'XMLHttpRequest',
}

response = requests.get(url, headers=headers)
data = response.json()
vix_value = data['data']['quote']

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