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

Function assert_greater

python/ccxt/test/exchange/base/test_shared_methods.py:214–221  ·  view source on GitHub ↗
(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True)

Source from the content-addressed store, hash-verified

212
213
214def assert_greater(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True):
215 if key in skipped_properties:
216 return
217 log_text = log_template(exchange, method, entry)
218 value = exchange.safe_string(entry, key)
219 assert value is not None or allow_null, 'value is null' + log_text
220 if value is not None:
221 assert Precise.string_gt(value, compare_to), string_value(key) + ' key (with a value of ' + string_value(value) + ') was expected to be > ' + string_value(compare_to) + log_text
222
223
224def assert_greater_or_equal(exchange, skipped_properties, method, entry, key, compare_to, allow_null=True):

Callers 1

check_precision_accuracyFunction · 0.85

Calls 4

log_templateFunction · 0.85
string_valueFunction · 0.85
safe_stringMethod · 0.80
string_gtMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…