matteo-ferrara / gex-tracker Goto Github PK
View Code? Open in Web Editor NEWDealers' gamma exposure (GEX) tracker
Dealers' gamma exposure (GEX) tracker
Followed the README instructions, when run python main.py, I got the following errors:
C:\dev\GEX\gex-tracker\gex-tracker\main.py:11: MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>'. Alternatively, directly use the seaborn API instead.
plt.style.use("seaborn-dark")
Enter desired ticker:spx
Traceback (most recent call last):
File "C:\Users\mikeq\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 960, in json
return complexjson.loads(self.content.decode(encoding), **kwargs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json\decoder.py",
line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\json\decoder.py",
line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
File "C:\dev\GEX\gex-tracker\gex-tracker\main.py", line 158, in
run(ticker)
File "C:\dev\GEX\gex-tracker\gex-tracker\main.py", line 21, in run
spot_price, option_data = scrape_data(ticker)
File "C:\dev\GEX\gex-tracker\gex-tracker\main.py", line 41, in scrape_data
json.dump(data.json(), f)
File "C:\Users\mikeq\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\requests\models.py", line 968, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The script is great. Thank you for sharing it.
However, I'm having challenges generating charts for certain stocks. Today, for example, the chart is empty for GME.
Other tickers, like AAPL, AMZN, SPY, work just fine.
Thanks for your help.
UPDATE: nevermind. I don't know why it was not working before, but now it's fine with any ticker. Sorry.
Hi @Matteo-Ferrara,
nice project! unfortunately when I enter the ticker to analyze the json file remains empty. should I add the data in the file taken from CBOE?
thanks
Hi, i have a question if i want to know the specific expiration date or strike how can i get it?
Thanks a lot!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.