Skip to content

Commit

Permalink
examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Chavithra committed Jan 3, 2024
1 parent 1696281 commit 6ff35a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/quotecast/chart_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@
if chart:
for series in chart.series:
df = SeriesFormatter.format_series(series=series)
print(df.to_pandas())
print(df)
12 changes: 1 addition & 11 deletions examples/trading/config_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,8 @@
with open("config/config.json") as config_file:
config_dict = json.load(config_file)

credentials = Credentials(
int_account=None,
username=username,
password=password,
totp_secret_key=totp_secret_key,
one_time_password=one_time_password,
)

# SETUP TRADING API
credentials = Credentials.model_validate(obj=config_dict)
trading_api = TradingAPI(credentials=credentials)

# CONNECT
trading_api.connect()

# FETCH CONFIG TABLE
Expand Down

0 comments on commit 6ff35a3

Please sign in to comment.