UNPKG

dvf-client-js

Version:

<img src="https://avatars1.githubusercontent.com/u/56512535?s=200&v=4" align="right" />

14 lines (11 loc) 506 B
const post = require('../lib/dvf/post-authenticated') /** * Cancel all open orders for the current user * If `canceled` is true for the given order, it has been successfully canceled * otherwise it will be queued for cancellation unless it is no longer `active` * @returns {object[]} { orderId: string, canceled: boolean, active: boolean} */ module.exports = async (dvf, nonce, signature) => { const endpoint = '/v1/trading/w/cancelOpenOrders' return post(dvf, endpoint, nonce, signature, {}) }