Skip to content

Commit

Permalink
get_crypto_quote* functions had incorrect docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
garettmd committed Dec 11, 2020
1 parent e0c9a89 commit 01c5202
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions robin_stocks/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,16 @@ def get_crypto_quote(symbol, info=None):
:type info: Optional[str]
:returns: [dict] If info parameter is left as None then the list will contain a dictionary of key/value pairs for each ticker. \
Otherwise, it will be a list of strings where the strings are the values of the key that corresponds to info.
:Dictionary Keys: * asset_currency
* display_only
:Dictionary Keys: * ask_price
* bid_price
* high_price
* id
* max_order_size
* min_order_size
* min_order_price_increment
* min_order_quantity_increment
* name
* quote_currency
* low_price
* mark_price
* open_price
* symbol
* tradability
* volume
"""
id = get_crypto_info(symbol, info='id')
url = urls.crypto_quote(id)
Expand All @@ -147,17 +145,15 @@ def get_crypto_quote_from_id(id, info=None):
:type info: Optional[str]
:returns: [dict] If info parameter is left as None then the list will contain a dictionary of key/value pairs for each ticker. \
Otherwise, it will be a list of strings where the strings are the values of the key that corresponds to info.
:Dictionary Keys: * asset_currency
* display_only
:Dictionary Keys: * ask_price
* bid_price
* high_price
* id
* max_order_size
* min_order_size
* min_order_price_increment
* min_order_quantity_increment
* name
* quote_currency
* low_price
* mark_price
* open_price
* symbol
* tradability
* volume
"""
url = urls.crypto_quote(id)
Expand Down

0 comments on commit 01c5202

Please sign in to comment.