Hi all, I am trying to get all my trades or all open order but i receive error message 502 bad get away.
Please see below my code
allTrades: function (symbol) {
client.myTrades(symbol)
.then(response => client.logger.log(response.data))
.catch(error => client.logger.error(error))
},
allOpenOrders: function (symbol) {
client.cancelOpenOrders(symbol, {
recvWindow: 3000
}).then(response => client.logger.log(response.data))
.catch(error => client.logger.error(error))
}![binance|690x386](upload://4I4Ww24uAUIkblTF4S4DvhAkD70.jpeg)
Can someone help me, please?
Thanks Leo