Hi i saw a api for see a open order ,i want create a app , for see in realtime my open order is possible by websocket have this data in realtime ? example if by my cell i remove a open order immidiatly in my app by websocket disappear , thanks
https://binance-docs.github.io/apidocs/spot/en/#payload-order-update
You can use the user data stream to receive order updates. You have to generate a listenKey using your API key.
thanks i will study
hi i look but i have some question , i want call with wscat , is possible to do that ?
example for return order in javascript i must use this code
// URL connection
const accountAndOrderAndTransfers = new WebSocket("wss://dex.binance.org/api/ws/bnb1m4m9etgf3ca5wpgkqe5nr6r33a4ynxfln3yz4v");
// Or Subscribe method
const conn = new WebSocket("wss://dex.binance.org/api/ws");
conn.onopen = function(evt) {
conn.send(JSON.stringify({ method: "subscribe", topic: "orders", address: "bnb1m4m9etgf3ca5wpgkqe5nr6r33a4ynxfln3yz4v" }));
}
is possible cal with wscat ?
wscat -c wss://dex.binance.org/api/ws/bnb1m4m9etgf3ca5wpgkqe5nr6r33a4ynxfln3yz4v
and this is bnb1m4m9etgf3ca5wpgkqe5nr6r33a4ynxfln3yz4 what is this the api key ?? or secreatkey ??
thanks at all