mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +00:00
kraken futures: add support for market orders (#870)
Kraken Futures supports a `mkt` order type which is a market order at best price with a 1% order protection.
This commit is contained in:
@@ -13,6 +13,7 @@ var (
|
||||
order.Stop: "stp",
|
||||
order.PostOnly: "post",
|
||||
order.TakeProfit: "take_profit",
|
||||
order.Market: "mkt",
|
||||
}
|
||||
|
||||
validSide = []string{"buy", "sell"}
|
||||
|
||||
@@ -116,7 +116,7 @@ func (k *Kraken) FuturesSendOrder(ctx context.Context, orderType order.Type, sym
|
||||
size, limitPrice, stopPrice float64) (FuturesSendOrderData, error) {
|
||||
var resp FuturesSendOrderData
|
||||
|
||||
if ioc {
|
||||
if ioc && orderType != order.Market {
|
||||
orderType = order.ImmediateOrCancel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user