exchange - kraken - minor changes
This commit is contained in:
parent
5748c9bc13
commit
8a5bad7c3e
@ -77,7 +77,7 @@ class Kraken(Exchange):
|
|||||||
(side == "buy" and stop_loss < float(order['price']))
|
(side == "buy" and stop_loss < float(order['price']))
|
||||||
))
|
))
|
||||||
|
|
||||||
@ retrier(retries=0)
|
@retrier(retries=0)
|
||||||
def stoploss(self, pair: str, amount: float,
|
def stoploss(self, pair: str, amount: float,
|
||||||
stop_price: float, order_types: Dict, side: str) -> Dict:
|
stop_price: float, order_types: Dict, side: str) -> Dict:
|
||||||
"""
|
"""
|
||||||
@ -135,7 +135,7 @@ class Kraken(Exchange):
|
|||||||
"""
|
"""
|
||||||
leverages = {}
|
leverages = {}
|
||||||
try:
|
try:
|
||||||
for pair, market in self._api.load_markets().items():
|
for pair, market in self.markets.items():
|
||||||
info = market['info']
|
info = market['info']
|
||||||
leverage_buy = info['leverage_buy']
|
leverage_buy = info['leverage_buy']
|
||||||
leverage_sell = info['leverage_sell']
|
leverage_sell = info['leverage_sell']
|
||||||
|
Loading…
Reference in New Issue
Block a user