Skip to content

Commit

Permalink
Remove unnecessary imports/prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavness committed Dec 6, 2021
1 parent 9a80018 commit d0f11f7
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/AlphaVantageDriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,23 +118,14 @@ def __init__(self, apikey = "") -> None:
@av_rate_limit
@pack_into_dated_dict(key_sample = "4.")
def fx(self, full_history = False, symbol = "", to = ""):
x = self.fx_driver.get_currency_exchange_daily(from_symbol = symbol, to_symbol = to, outputsize = "full" if full_history else "compact")
import pprint
pprint.pprint(x)
return x
return self.fx_driver.get_currency_exchange_daily(from_symbol = symbol, to_symbol = to, outputsize = "full" if full_history else "compact")

@av_rate_limit
@pack_into_dated_dict(key_sample = "4a.")
def crypto(self, symbol = "", to = "USD"):
x = self.cc_driver.get_digital_currency_daily(symbol, to)
import pprint
pprint.pprint(x)
return x
return self.cc_driver.get_digital_currency_daily(symbol, to)

@av_rate_limit
@pack_into_dated_dict(key_sample = "4.")
def mkt(self, full_history = False, symbol = ""):
x = self.mkt_driver.get_daily(symbol = symbol, outputsize = "full" if full_history else "compact")
import pprint
pprint.pprint(x)
return x
return self.mkt_driver.get_daily(symbol = symbol, outputsize = "full" if full_history else "compact")

0 comments on commit d0f11f7

Please sign in to comment.