Skip to content

Commit

Permalink
refactor(gateway): change time in force value for limit orders
Browse files Browse the repository at this point in the history
  • Loading branch information
rluisr committed Feb 17, 2024
1 parent 87b6452 commit 46a9181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/adapter/gateway/bybit_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ func (r *BybitRepository) CreateOrder(req *domain.Order) error {
}

if req.Type == "Limit" {
postOnly := bybit.TimeInForcePostOnly
tif := bybit.TimeInForceImmediateOrCancel

orderParam.OrderType = bybit.OrderTypeLimit
orderParam.Price = &req.Price
orderParam.TimeInForce = &postOnly
orderParam.TimeInForce = &tif
}

if req.Side == "Buy" {
Expand Down

0 comments on commit 46a9181

Please sign in to comment.