Skip to content

Commit

Permalink
Bitfinex hotfix (DeviaVir#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir authored Jun 12, 2017
1 parent 14db474 commit b2f60bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extensions/exchanges/bitfinex/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ module.exports = function container (get, set, clear) {
buy: function (opts, cb) {
var func_args = [].slice.call(arguments)
var client = authedClient()
if (typeof opts.type === 'undefined' && typeof opts.order_type === 'maker') {
if (typeof opts.type === 'undefined' && opts.order_type === 'maker') {
opts.type = 'exchange limit'
}
else if (typeof opts.type === 'undefined' && typeof opts.order_type === 'taker') {
else if (typeof opts.type === 'undefined' && opts.order_type === 'taker') {
opts.type = 'exchange market'
}
if (typeof opts.post_only === 'undefined') {
Expand Down Expand Up @@ -159,10 +159,10 @@ module.exports = function container (get, set, clear) {
sell: function (opts, cb) {
var func_args = [].slice.call(arguments)
var client = authedClient()
if (typeof opts.type === 'undefined' && typeof opts.order_type === 'maker') {
if (typeof opts.type === 'undefined' && opts.order_type === 'maker') {
opts.type = 'exchange limit'
}
else if (typeof opts.type === 'undefined' && typeof opts.order_type === 'taker') {
else if (typeof opts.type === 'undefined' && opts.order_type === 'taker') {
opts.type = 'exchange market'
}
if (typeof opts.post_only === 'undefined') {
Expand Down

0 comments on commit b2f60bb

Please sign in to comment.