@rhino.fi/client-js
Version:
16 lines (10 loc) • 378 B
JavaScript
const post = require('../lib/dvf/post-authenticated')
const validateAssertions = require('../lib/validators/validateAssertions')
module.exports = async (dvf, token, nonce, signature) => {
if (token) {
validateAssertions(dvf, { token })
}
const endpoint = '/v1/trading/r/getDeposits'
const data = { token }
return post(dvf, endpoint, nonce, signature, data)
}