CoinAlpha / hummingbot

Hummingbot is open source software that helps you build trading bots that run on any exchange or blockchain
https://www.hummingbot.org
Apache License 2.0
168 stars 81 forks source link

Failed Test PR#342 - Error setting leverage #345

Closed rxlxrxsx closed 1 year ago

rxlxrxsx commented 1 year ago

Summary and Screenshots

Getting this error after starting the bot related to the leverage, I can confirm the leverage being used by the bot and exchange is the same, I also tried cross and isolated mode but still getting the error.

Screen Shot 2023-04-14 at 9 55 02 PM
2023-04-15 11:14:31,094 - 3313062 - hummingbot.connector.derivative.phemex_perpetual.phemex_perpetual_derivative.PhemexPerpetualDerivative - NETWORK - Error setting leverage 1 for DOGE-USDT: TE_ERR_INCONSISTENT_POS_MODE

Steps To Reproduce

  1. Clone and install branch
  2. Run the client
  3. Connect Phemex API key
  4. Create a perpetual market making strategy using Phemex
  5. Start the strategy

Test Result Comparison

N/A, new connector

Attachments

Logs and config: phemex_leverage_order.zip

vic-en commented 1 year ago

I pushed a commit that should solve this.

mrhzysbl commented 1 year ago

Tested and confirmed working on commit b3c3df3.