MCPcopy Create free account
hub / github.com/ccxt/ccxt / parseOrderStatus

Method parseOrderStatus

js/src/bingx.js:3884–3896  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

3882 }, market);
3883 }
3884 parseOrderStatus(status) {
3885 const statuses = {
3886 'NEW': 'open',
3887 'PENDING': 'open',
3888 'PARTIALLY_FILLED': 'open',
3889 'RUNNING': 'open',
3890 'FILLED': 'closed',
3891 'CANCELED': 'canceled',
3892 'CANCELLED': 'canceled',
3893 'FAILED': 'canceled',
3894 };
3895 return this.safeString(statuses, status, status);
3896 }
3897 /**
3898 * @method
3899 * @name bingx#cancelOrder

Callers 1

parseOrderMethod · 0.95

Calls 1

safeStringMethod · 0.45

Tested by

no test coverage detected