I installed the test API and set it up. I am using Visual Studio 2019 and C# and the JKord/Binance.Net wrapper.
When I placed (as a test user, using a test account) an order to purchase 0.2 BTC TestBinance.Spot.Order.PlaceOrder(“BTCUSDT”, OrderSide.Sell, OrderType.Market, 0.2m)
The result was a success, but only 0.178721 was actually purchased.
It purchased these in 3 fills:
1- Price 38277,42 Quantity 0,168454
2- Price 37548,01 Quantity 0,000267
3- Price 30000 Quantity 0,01
After that there were no open orders.
Is this a correct behaviour like in real time?
I assume that after a sale or purchase, you need to check how much actually was sold or purchased?
In the third fill the price was against 30.000, but the 2nd was 37548. That is more than 20% difference within milliseconds?? (PS at that time the actual price for BTC was about 38K)
I also assume that this is due to the fact that I am using the test version of the API. Perhaps there were not enough people on the test website and that only one order was on the orderbook for 30.000.
In real life this than would not have happened.
Doing this test a couple of times I noticed that in not all cases coins were actually purchased or sold. However there also was no error (the sale or purchase was a success). Again I assume this is if there is perhaps nobody on that test website at that time?
Hope someone will give me an answer.