what are api to extract option greeks and option chain data
i have checked pya3, i dont see any api there
could you help with some basic example?
what are api to extract option greeks and option chain data
i have checked pya3, i dont see any api there
could you help with some basic example?
Kindy find the below GitHub link for the option greeks API
getting following error
{“type”:“https://tools.ietf.org/html/rfc7231#section-6.5.1",“title”:"One or more validation errors occurred.”,“status”:400,“traceId”:“00-350c5d96278528eb17d3844cded5a314-a209a2c2225a650a-00”,“errors”:{“$.token”:[“The JSON value could not be converted to System.String. Path: $.token | LineNumber: 0 | BytePositionInLine: 35.”]}}
my code is
from pya3 import *
from Optionchain import *
alice = Aliceblue(user_id=username, api_key=app_code)
Optionchainlogin(
user_id=alice.user_id,
session_id=alice.get_session_id())
any idea ?
The session_ID need to be converted to a string from json, By storing the value in a variable from there you can try to fetch the option chain, have a try in this way.
It worked, thanks
But currently it is extracting data for only nifty
How i can extract data for other stock options
And bank nifty?
And let me know if i can contribute to the coding of it.
Regards
Dalwinder singh
kindly the change the name value in the function called.