mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
14 lines
338 B
Python
14 lines
338 B
Python
"""
|
|
Slim wrapper around ccxt's Precise (string math)
|
|
To have imports from freqtrade - and support float initializers
|
|
"""
|
|
|
|
from ccxt import Precise
|
|
|
|
|
|
class FtPrecise(Precise):
|
|
def __init__(self, number, decimals=None):
|
|
if not isinstance(number, str):
|
|
number = str(number)
|
|
super().__init__(number, decimals)
|