hummingbot / hummingbot

Open source software that helps you create and deploy high-frequency crypto trading bots
https://hummingbot.org
Apache License 2.0
8.08k stars 2.8k forks source link

Spot Perpetual Arbitrage - bot sells spot on binance #4288

Closed check1you closed 3 years ago

check1you commented 3 years ago

Describe the bug The bot tries to sell a spot on binance and gives an error that there is no coin. But you can't short on the spot. Shouldn't it be that he should buy spot and short futures? Can I change somewhere or is it how it should be?

cali-tomas commented 3 years ago

Hi @check1you, as per our docs, buy/sell order on the spot connector, while opening an opposing long/short position on the derivative connector. Can you send a screenshot of the bug you are pertaining to, config, and logfile? so we can have more details. Thanks

Here is the link to our docs https://docs.hummingbot.io/strategies/spot-perpetual-arbitrage/#how-it-works

RC-13 commented 3 years ago

@check1you The spot-perpetual arbitrage strategy looks for arbitrage opportunity both ways, if you run the status command, you will see two possible opportunity. If the profitability of one leg is equal or more than the percentage you specified (min_opening/closing_arbitrage_pct) then that will be the one that gets executed. For your case, the opportunity was found however, the bot is not capable of executing the transaction because you don't have sufficient balance in your spot account. For any arbitrage strategy, make sure to have sufficient asset for both token in each exchange. Closing this ticket since this is not a bug.