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

Method pow

python/ccxt/dydx.py:1250–1256  ·  view source on GitHub ↗
(self, n: str, m: str)

Source from the content-addressed store, hash-verified

1248 return account
1249
1250 def pow(self, n: str, m: str):
1251 r = Precise.string_mul(n, '1')
1252 c = self.parse_to_int(m)
1253 # TODO: cap
1254 for i in range(1, c):
1255 r = Precise.string_mul(r, n)
1256 return r
1257
1258 def create_order_request(self, symbol: str, type: OrderType, side: OrderSide, amount: float, price: Num = None, params={}):
1259 reduceOnly = self.safe_bool_2(params, 'reduceOnly', 'reduce_only', False)

Callers 4

create_order_requestMethod · 0.95
parse_currencyMethod · 0.45
eip_message_for_orderMethod · 0.45
transferMethod · 0.45

Calls 3

string_mulMethod · 0.80
parse_to_intMethod · 0.80
rangeFunction · 0.50

Tested by

no test coverage detected