Binance storniert alle ausstehenden Aufträge für Handelspaare (Demonstration der IO-Erweiterung)
3
Follow
1503
Followers
Binance annulliert alle Transaktionen mit unvollendeten Auftragspaaren und nutzt die IO-Schnittstelle, die als Beispiel für die Verbindung von Learning IO-Schnittstellen zur Unterstützung von API-Schnittstellen dienen kann
Source
JavaScript
function cancellAll(){
try{
var openOrders = exchange.IO('api', 'GET', '/api/v3/openOrders');
for (var i=0; i<openOrders.length; i++){
var order = openOrders[i];
var currency = '';
if (order.symbol.endsWith('USDT')){
currency = order.symbol.slice(0,order.symbol.length-4) + '_' + 'USDT';
}
else{
currency = order.symbol.slice(0,order.symbol.length-3) + '_' + order.symbol.slice(order.symbol.length-3,order.symbol.length);Related strategies
Comment
All comments (0)
No data
- 1
