Update docstring
This commit is contained in:
parent
f2b6ff910f
commit
c0bdb71810
@ -683,14 +683,16 @@ class Exchange:
|
|||||||
def get_precision_amount(self, pair: str) -> Optional[float]:
|
def get_precision_amount(self, pair: str) -> Optional[float]:
|
||||||
"""
|
"""
|
||||||
Returns the amount precision of the exchange.
|
Returns the amount precision of the exchange.
|
||||||
:param pair:
|
:param pair: Pair to get precision for
|
||||||
|
:return: precision for amount or None. Must be used in combination with precisionMode
|
||||||
"""
|
"""
|
||||||
return self.markets.get(pair, {}).get('precision', {}).get('amount', None)
|
return self.markets.get(pair, {}).get('precision', {}).get('amount', None)
|
||||||
|
|
||||||
def get_precision_price(self, pair: str) -> Optional[float]:
|
def get_precision_price(self, pair: str) -> Optional[float]:
|
||||||
"""
|
"""
|
||||||
Returns the price precision of the exchange.
|
Returns the price precision of the exchange.
|
||||||
:param pair:
|
:param pair: Pair to get precision for
|
||||||
|
:return: precision for price or None. Must be used in combination with precisionMode
|
||||||
"""
|
"""
|
||||||
return self.markets.get(pair, {}).get('precision', {}).get('price', None)
|
return self.markets.get(pair, {}).get('precision', {}).get('price', None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user