Skip to content

Commit

Permalink
updating style for get_quote_cc to match get_quote_hitbtc
Browse files Browse the repository at this point in the history
  • Loading branch information
lockefox committed Sep 22, 2017
1 parent 7e8a3ef commit 0dfc225
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prosper/datareader/coins/prices.py
Expand Up @@ -303,7 +303,6 @@ def get_quote_cc(
coin_list,
currency='USD',
market_list=None,
#summary_keys=['symbol', 'name', 'change_pct', 'current_price', 'updated_at'],
to_yahoo=False,
logger=LOGGER
):
Expand All @@ -330,7 +329,7 @@ def get_quote_cc(
ticker_df = pd.DataFrame(get_ticker_cc(coin_list))

logger.info('--combining dataframes')
ticker_df = pd.merge(
quote_df = pd.merge(
ticker_df, coin_info_df,
how='inner',
left_on='FROMSYMBOL',
Expand All @@ -339,13 +338,14 @@ def get_quote_cc(

if to_yahoo:
logger.info('--converting headers to yahoo format')
ticker_df = columns_to_yahoo(
ticker_df,
quote_df = columns_to_yahoo(
quote_df,
info.Sources.cc
)

logger.debug(ticker_df)
return ticker_df
quote_df = quote_df[list(quote_df.columns.values)].apply(pd.to_numeric, errors='ignore')
logger.debug(quote_df)
return quote_df

def get_orderbook_hitbtc(
coin,
Expand Down

0 comments on commit 0dfc225

Please sign in to comment.