Sample Implementation Code

Integrate the Volatility dataset into your existing local terminal scripts, data pipelines, or algorithmic testing programs.

Terminal Request Syntax (cURL)

curl "https://www.hedginglab.com/api/beta/v1/hvi_daily/?apikey=YOUR_KEY"
curl "https://www.hedginglab.com/api/beta/v1/hvi_daily/?apikey=YOUR_KEY&format=csv"

Make sure to replace the placeholder parameter with your unique authentication signature string array. If you haven't assigned or instantiated a string token yet, visit the active configurations within the API Generation Guide .

Python Integration Snippet

test.py

Create an empty processing document path file titled test.py and drop the following runtime network logic parameters straight inside:


import requests
url = "https://www.hedginglab.com/api/beta/v1/hvi_daily/?apikey=demo&format=csv"
response = requests.get(url)
print(response.text)

Executing the Local Program Instance

Ensure your terminal window path is target-locked on the present working directory folder containing your created file script, then run:

python3 test.py

Expected Payload Result Matrix (CSV Output Sample)

track_date,symbol,full_name,next_earning_date,earning_time,market,current_price,short_interest,avg_volume,dollar_volume,HVI_7day,HVI_14day,IV_30day,IV_60day,IV_Change_2days_ago,HV_5,HV_10,HV_20,earning_hvi,earning_movement
2021-05-14,AAPL,Apple Inc.,07/19/2021,EST,NASDAQ,127.45,0.77,102300000,10428130037,2.68,3.85,25.706,23.963,,31.641,29.808,23.635,5.77,6.27