Binance.API.Csharp.Client icon indicating copy to clipboard operation
Binance.API.Csharp.Client copied to clipboard

Issue with binanceClient.GetOrder Price shows as 0.00000000

Open mdobson8 opened this issue 7 years ago • 2 comments

When I create an order and then retrieve the details using 'GetOrder', I can get all the details from the order but the buy price always shows as 0.00000000, the order has FILLED so it is not that it is waiting to place or anything as it is a market buy. I'd really appreciate any help with this as it's driving me mad...

mdobson8 avatar Jan 26 '18 23:01 mdobson8

Same for me!! I've checked the binance api , and it seems that it can return two types of response: RESULT AND FULL. How can we get the fULL? Response RESULT: { "symbol": "BTCUSDT", "orderId": 28, "clientOrderId": "6gCrw2kRUAF9CvJDGP16IP", "transactTime": 1507725176595, "price": "0.00000000", "origQty": "10.00000000", "executedQty": "10.00000000", "status": "FILLED", "timeInForce": "GTC", "type": "MARKET", "side": "SELL" } Response FULL:

{ "symbol": "BTCUSDT", "orderId": 28, "clientOrderId": "6gCrw2kRUAF9CvJDGP16IP", "transactTime": 1507725176595, "price": "0.00000000", "origQty": "10.00000000", "executedQty": "10.00000000", "status": "FILLED", "timeInForce": "GTC", "type": "MARKET", "side": "SELL", "fills": [ { "price": "4000.00000000", "qty": "1.00000000", "commission": "4.00000000", "commissionAsset": "USDT" }, { "price": "3999.00000000", "qty": "5.00000000", "commission": "19.99500000", "commissionAsset": "USDT" }, { "price": "3998.00000000", "qty": "2.00000000", "commission": "7.99600000", "commissionAsset": "USDT" }, { "price": "3997.00000000", "qty": "1.00000000", "commission": "3.99700000", "commissionAsset": "USDT" }, { "price": "3995.00000000", "qty": "1.00000000", "commission": "3.99500000", "commissionAsset": "USDT" } ] }

JavierMaura avatar Jan 31 '18 18:01 JavierMaura

I created a new class and added the extra attributes, but 'fills' still does not work, it just errors every time. Anyone got this working?

mdobson8 avatar Feb 01 '18 11:02 mdobson8