MCPcopy Create free account
hub / github.com/ccxt/ccxt / test_parse_precision

Function test_parse_precision

python/ccxt/test/base/test_parse_precision.py:17–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15import ccxt.async_support as ccxt # noqa: F402
16
17def test_parse_precision():
18 exchange = ccxt.Exchange({
19 'id': 'sampleexchange',
20 })
21 assert exchange.parse_precision('15') == '0.000000000000001'
22 assert exchange.parse_precision('1') == '0.1'
23 assert exchange.parse_precision('0') == '1'
24 assert exchange.parse_precision('-5') == '100000'

Callers 1

base_tests_initFunction · 0.90

Calls 2

parse_precisionMethod · 0.95
ExchangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…