ccxt: Bybit order error

Hi, I am getting this error below when I try to create an order on Bybit. I am sure the parameters should be correct. Also, I have some other private calls before that in my code which work and fetch data just fine.

  • OS: Kubuntu 20.10 (beta)
  • Programming language version: Python 3.7.5
  • CCXT version: 1.33.53
print ((await Client.privatePostOrderCreate({"order_type": "Limit", "symbol": BaseInstrument, "side": "Buy", "qty": BaseQuantity, "time_in_force": "PostOnly", "price": self.BuyPostPrices.pop(self.BuyPostPrices.index(max(self.BuyPostPrices)))})))
raise ExchangeError(feedback)  # unknown message
ccxt.base.errors.ExchangeError: bybit {"ret_code":10004,"ret_msg":"error sign! origin_string[api_key=\u0026order_type=Limit\u0026price=11288.0\u0026qty=1\u0026recv_window=5000\u0026side=Buy\u0026symbol=BTCUSD\u0026time_in_force=PostOnly\u0026timestamp=1598386304084]","ext_code":"","ext_info":"","result":null,"time_now":"1598386304.170475"}

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 30 (11 by maintainers)

Commits related to this issue

Most upvoted comments

import ccxt
print(ccxt.__version__)
1.33.53

Seems to have been fixed for me as well, thanks.

Fixed! You sir a legend, thank you for resolving this!

Hey @kroitor, I know you are busy, wanted to check if had a chance to look at his or if there is currently a workaround, kind of surprised no one else is reporting this…

@CryptoGnome i’ll check that and will get back to you asap.

Yeah, I haven’t checked that, sorry, though it still seems a bit odd to me that this matters at all in the present day and logs itself as an auth problem(?). Never mind, thanks a lot for your time, I appreciate it knowing you must have a lot of work to do on the project. Take care.

This is the clip I was using FYI - Thanks for the amazing support @kroitor

exchange.create_limit_sell_order(self.pair, abs(self.size), int(self.takeprofit), {'reduce_only': True})