Skip to content

Commit

Permalink
Merge pull request #16 from sachinbhutani/patch-1
Browse files Browse the repository at this point in the history
fix NewMarketOrder
  • Loading branch information
hadrianl committed Jul 16, 2020
2 parents 6b3e576 + 5ce8419 commit 100ee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion order.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func NewLimitOrder(action string, lmtPrice float64, quantity float64) *Order {

func NewMarketOrder(action string, quantity float64) *Order {
o := NewOrder()
o.OrderType = "LMT"
o.OrderType = "MKT"
o.Action = action
o.TotalQuantity = quantity

Expand Down

0 comments on commit 100ee67

Please sign in to comment.