Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
Taker Kraken: resolve an order bug (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeviaVir authored Jun 10, 2017
1 parent b9eb88f commit ac5b391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/exchanges/kraken/exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ module.exports = function container(get, set, clear) {
ordertype: (opts.order_type === 'maker' ? 'limit' : 'market'),
volume: opts.size,
trading_agreement: c.kraken.tosagree,
oflags: opts.post_only === true ? 'post' : undefined
oflags: opts.post_only === true && opts.order_type === 'maker' ? 'post' : undefined
}
if ('price' in opts) {
params.price = opts.price
Expand All @@ -203,7 +203,7 @@ module.exports = function container(get, set, clear) {
status: 'open',
price: opts.price,
size: opts.size,
post_only: !!opts.post_only,
post_only: (opts.order_type === 'maker' ? !!opts.post_only : false),
created_at: new Date().getTime(),
filled_size: '0'
}
Expand Down

0 comments on commit ac5b391

Please sign in to comment.