Return JSON without Price or AvgPrice on Market Orders.

People, when I send the market order, this is return of JSON when the orders is filled (Image below).

But the most important information is the price that was filled, they didn’t get back to me, they return 0.

Do you know if it’s a bug or this always happens for market orders?

Screenshot_81

When placing Market Orders the user has the option to control the response type received using the newOrderRespType parameter.

If newOrderRespType is set to ACK, the endpoint will not wait for the order to fill and will return the NEW order state. Since the endpoint did not wait for the order to fill, the state does not contain information regarding trades.

If newOrderRespType is set to RESULT, the endpoint will wait for the order to fill and will return the FILLED order state, assuming nothing goes wrong. This state will include information regarding any trade responsible for the change of state.