Skip to content

Commit

Permalink
pkg/exchange: add limit maker type to place order
Browse files Browse the repository at this point in the history
  • Loading branch information
bailantaotao committed Feb 20, 2024
1 parent 516c5e8 commit b6261c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/exchange/okex/exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (e *Exchange) SubmitOrder(ctx context.Context, order types.SubmitOrder) (*t

// set price field for limit orders
switch order.Type {
case types.OrderTypeStopLimit, types.OrderTypeLimit:
case types.OrderTypeStopLimit, types.OrderTypeLimit, types.OrderTypeLimitMaker:
orderReq.Price(order.Market.FormatPrice(order.Price))
case types.OrderTypeMarket:
// Because our order.Quantity unit is base coin, so we indicate the target currency to Base.
Expand Down

0 comments on commit b6261c2

Please sign in to comment.