mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-30 05:52:23 +00:00
API Fix and Vsurf Improvements (#1272)
* Vsurf * Optimized * Simplified graph
This commit is contained in:
@@ -21,7 +21,8 @@ from oandapyV20.exceptions import V20Error
|
||||
from gamestonk_terminal import config_terminal as cfg
|
||||
from gamestonk_terminal.rich_config import console
|
||||
|
||||
client = API(access_token=cfg.OANDA_TOKEN, environment=cfg.OANDA_ACCOUNT_TYPE)
|
||||
if cfg.OANDA_ACCOUNT_TYPE != "REPLACE_ME":
|
||||
client = API(access_token=cfg.OANDA_TOKEN, environment=cfg.OANDA_ACCOUNT_TYPE)
|
||||
account = cfg.OANDA_ACCOUNT
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
"import warnings\n",
|
||||
"import sys\n",
|
||||
"import ipywidgets as widgets\n",
|
||||
"import plotly.graph_objs as go\n",
|
||||
"import plotly.express as px\n",
|
||||
"import plotly.graph_objects as go\n",
|
||||
"import numpy as np\n",
|
||||
"import pandas as pd\n",
|
||||
"from IPython.display import display\n",
|
||||
@@ -88,7 +87,7 @@
|
||||
" x=self.df.dte,\n",
|
||||
" y=self.df.strike,\n",
|
||||
" intensity=np.sqrt(z_dict[z]),\n",
|
||||
" colorscale=px.colors.sequential.Plasma,\n",
|
||||
" colorscale=\"Jet\",\n",
|
||||
" hovertemplate=strings[z],\n",
|
||||
" showscale=False,\n",
|
||||
" )\n",
|
||||
@@ -144,9 +143,9 @@
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "",
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": ""
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
|
||||
Reference in New Issue
Block a user