Brr
February 28, 2022, 7:01am
1
Hi,
Just wanna ask where can I get the updated price after the order was executed?
I know that the symbol ticker is the price of the symbol/market pair, but I need to know the price when was the order is executed.
I don’t know if its the price
field in the new order api or query order api response since the value is always 0
.
References:
Salah
February 28, 2022, 8:50am
2
Store the order itself in a variable and print the response you get… You’ll see the info of your order with the price at the execution.
rmc135
February 28, 2022, 7:25pm
3
I have the same question. If the new order executes immediately and you request a FULL response, an array of the trade(s) that occur to fill the order will be returned. None of the other API calls like openOrders or allOrders seem to offer this FULL response. (If they would even work after the order is finished?). So how can you see the individual fills for a completed order which doesn’t execute immediately?
dino
March 1, 2022, 4:39am
4
subscribe to the websocket user data stream, you will have the price in the executionReport event.
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [General WSS information](#general-wss-information)
- [API Endpoints](#api-endpoints)
- [Create a listenKey](#create-a-listenkey)
- [Ping/Keep-alive a listenKey](#pingkeep-alive-a-listenkey)
- [Close a listenKey](#close-a-listenkey)
- [Web Socket Payloads](#web-socket-payloads)
- [Account Update](#account-update)
- [Balance Update](#balance-update)
- [Order Update](#order-update)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
# User Data Streams for Binance (2021-01-01)
# General WSS information
* The base API endpoint is: **https://api.binance.com**
* A User Data Stream `listenKey` is valid for 60 minutes after creation.
This file has been truncated. show original
rmc135
March 3, 2022, 6:58am
5
A webstream doesn’t show past events, right? If this is the case then I have to be subscribed (and successfully connected) at the moment the trade occurs, which seems clunky. Are there any plans to make account trade history a REST API call?
dino
March 8, 2022, 1:55am
6
you can get all trade history from the restful endpoint /myTrades with order price.
rmc135
March 8, 2022, 3:58am
7
This still just gives a single price, presumably the average if there’s slippage?
Do either id or orderId returned by this call appear in public market data calls, such /trades or /historicalTrades ?
dino
March 8, 2022, 11:52pm
8
orderId is NOT shown in the public market trade data.