mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
pkg/exchange: add limit maker type to place order
This commit is contained in:
parent
516c5e8137
commit
b6261c2516
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user