func NewLimitOrder(orderID int64, sender sdk.AccAddress, kind OrderKind, amount sdk.Coin, price sdk.Coin, expiresAt time.Time) LimitOrder {
	newLimitOrder := LimitOrder{
		OrderID:   orderID,
		Sender:    sender,
		Kind:      kind,
		Amount:    amount,
		Price:     price,
		ExpiresAt: expiresAt,
	}
	return newLimitOrder
}
NewLimitOrder creates a new limit order
package exchange
import (
	"fmt"
	"time"
	sdk "github.com/cosmos/cosmos-sdk/types"
)
type OrderKind byte
const (
	BuyOrder OrderKind = 0x01
	SellOrder OrderKind = 0x02
)
type LimitOrder struct {
	OrderID   int64          `json:"order_id"`
	Sender    sdk.AccAddress `json:"sender"`
	Kind      OrderKind      `json:"kind"`
	Amount    sdk.Coin       `json:"amount"`
	Price     sdk.Coin       `json:"price"`
	ExpiresAt time.Time      `json:"expires_at"`
}
type ProcessedLimitOrder struct {
	OrderID    int64    `json:"order_id"`
	OpenAmount sdk.Coin `json:"open_amt"`
}
type FilledLimitOrder struct {
	OrderID      int64    `json:"order_id"`
	FilledAmount sdk.Coin `json:"filled_amt"`
	FilledPrice  sdk.Coin `json:"filled_price"`
}