Migrate plugins to lib directory
This commit is contained in:
parent
09b29bba56
commit
e7ab8223c2
27 changed files with 869 additions and 858 deletions
14
lib/plugins/exchange/mock-exchange/mock-exchange.js
Normal file
14
lib/plugins/exchange/mock-exchange/mock-exchange.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
module.exports = {
|
||||
buy,
|
||||
sell
|
||||
}
|
||||
|
||||
function buy (account, cryptoAtoms, fiatCode, cryptoCode) {
|
||||
console.log('[mock] buying %s %s for %s', cryptoAtoms.toString(), cryptoCode, fiatCode)
|
||||
return Promise.resolve()
|
||||
}
|
||||
|
||||
function sell (account, cryptoAtoms, fiatCode, cryptoCode) {
|
||||
console.log('[mock] selling %s %s for %s', cryptoAtoms.toString(), cryptoCode, fiatCode)
|
||||
return Promise.resolve()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue