Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for crypto currencies #5

Merged
merged 29 commits into from
Sep 10, 2017
Merged

Add support for crypto currencies #5

merged 29 commits into from
Sep 10, 2017

Conversation

lockefox
Copy link
Contributor

Using hitBTC add support for looking at crypto currencies

  • Adds .coins subgroup
  • Adds support for
    • Finding tickers: coin + currency FOREX style lookup keys
    • Reverse-lookup from coin->ticker
    • Generate quote data: OHLC, current price, %change
    • Look at the current orderbook for a given coin
  • Updates docs for new feeds
  • Sweet Sweet Test Coverage
    • Removed 3.7-dev from travis plan. Pandas vs 3.7 is causing more noise than signal

@coveralls
Copy link

coveralls commented Sep 10, 2017

Coverage Status

Coverage decreased (-0.1%) to 98.645% when pulling a66bb2e on btc into 9e4738c on master.

@coveralls
Copy link

coveralls commented Sep 10, 2017

Coverage Status

Coverage decreased (-0.1%) to 98.645% when pulling 5faf346 on btc into 9e4738c on master.

README.rst Outdated

- Ticker Info: get info about coin<->currency conversion metadata
- Price Quote: get latest OHLC data for given coin
- Price History: get history of coin price
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Price history not supported, don't put it in the README

"""
symbols_df = pd.DataFrame(get_supported_symbols_hitbtc())

unique_list = list(symbols_df[key_name].unique())
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure there's a test for unsupported key_name

LOGGER = config.LOGGER
HERE = path.abspath(path.dirname(__file__))

__all__ = ('get_orderbook_hitbtc', 'get_quote_hitbtc')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add 2 newlines before class

req.raise_for_status()

data = req.json()
if not symbol:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add comment: why if not symbol

data = req.json()

return data #return both bids/asks for other steps to clean up later

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a divider between helpers/real funcs

@coveralls
Copy link

coveralls commented Sep 10, 2017

Coverage Status

Coverage decreased (-0.1%) to 98.645% when pulling eb7c6ff on btc into 9e4738c on master.

@coveralls
Copy link

coveralls commented Sep 10, 2017

Coverage Status

Coverage decreased (-0.1%) to 98.645% when pulling 3c5953e on btc into 9e4738c on master.

@lockefox lockefox merged commit 81b1556 into master Sep 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants