JulyIghor / QtBitcoinTrader

Secure multi crypto exchange trading client
https://centrabit.com/downloads/
722 stars 371 forks source link

Multiple bids with same price #211

Closed DrrMrr closed 5 years ago

DrrMrr commented 6 years ago

Hi,

Somethimes is first bid executed two times. I've noticed only at first bid. I always generate n bids and the lowest is sometimes executed 2 times.

I'm trading on Bitfinex and trading pair is USD/BTC. Can you please check in your code why this is happening.

image

image

Thank you and best regards Damjan

JulyIghor commented 6 years ago

We can't reproduce this issue, it looks like duplicated items is just visual bug. Can you confirm that there is no duplicated transaction on website trade history?

DrrMrr commented 6 years ago

It can be. Because of Bitcoin price rising in recent weeks, I'm currently using different approach with only one bid. If I notice that again, I will reopen this "issue".

DrrMrr commented 6 years ago

Hi Ighor,

Happy new year 2018 and all the best in the coming year.

I'm reopening this ticket with more info. Below is an image and debug file where two buys where executed, but only one was in my open order. Can you please check that again?

Trader - debug.txt

slika

Best regards Damjan

JulyIghor commented 5 years ago

According to log, there was only one command to buy at this price

Buy: , "symbol": "iotbtc", "amount": "6.05", "price": "0.00026116", "exchange": "all", "side": "buy", "type": "exchange limit"

As you can see amount requested was 6.05, so it have been successfully placed in order book. Next someone bought many pieces at market price of amount 0.00157905 So you bought two pieces. There is no bug in duplicated commands, because it filtered by API feature called nonce.