bfx-api-node-core
Version:
Core Bitfinex Node API
17 lines (13 loc) • 306 B
JavaScript
const sendWS = require('../../ws2/send')
/**
* Cancels the requested order ID
*
* @param {Manager} m
* @param {number} wsID - socket ID
* @param {number} id - order ID to cancel
*/
module.exports = (m, wsID, id) => {
const ws = m.getWS(wsID)
sendWS(ws, [0, 'oc', null, { id }])
}