Documentation
¶
Index ¶
Constants ¶
View Source
const ( OrderStatusOpen = "OPEN" OrderStatusPartialFilled = "PARTIAL_FILLED" OrderStatusFilled = "FILLED" OrderStatusCancelled = "CANCELLED" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderItem ¶
type OrderItem struct {
Quantity *big.Int `json:"quantity,omitempty"`
Price *big.Int `json:"price,omitempty"`
ExchangeAddress common.Address `json:"exchangeAddress,omitempty"`
UserAddress common.Address `json:"userAddress,omitempty"`
BaseToken common.Address `json:"baseToken,omitempty"`
QuoteToken common.Address `json:"quoteToken,omitempty"`
Status string `json:"status,omitempty"`
Side string `json:"side,omitempty"`
Type string `json:"type,omitempty"`
Hash common.Hash `json:"hash,omitempty"`
Signature *Signature `json:"signature,omitempty"`
FilledAmount *big.Int `json:"filledAmount,omitempty"`
Nonce *big.Int `json:"nonce,omitempty"`
PairName string `json:"pairName,omitempty"`
CreatedAt time.Time `json:"createdAt,omitempty"`
UpdatedAt time.Time `json:"updatedAt,omitempty"`
OrderID uint64 `json:"orderID,omitempty"`
// *OrderMeta
NextOrder []byte `json:"-"`
PrevOrder []byte `json:"-"`
OrderList []byte `json:"-"`
Key string `json:"key"`
}
OrderItem : info that will be store in database
type OrderItemBSON ¶
type OrderItemBSON struct {
Quantity string `json:"quantity,omitempty" bson:"quantity"`
Price string `json:"price,omitempty" bson:"price"`
ExchangeAddress string `json:"exchangeAddress,omitempty" bson:"exchangeAddress"`
UserAddress string `json:"userAddress,omitempty" bson:"userAddress"`
BaseToken string `json:"baseToken,omitempty" bson:"baseToken"`
QuoteToken string `json:"quoteToken,omitempty" bson:"quoteToken"`
Status string `json:"status,omitempty" bson:"status"`
Side string `json:"side,omitempty" bson:"side"`
Type string `json:"type,omitempty" bson:"type"`
Hash string `json:"hash,omitempty" bson:"hash"`
Signature *SignatureRecord `json:"signature,omitempty" bson:"signature"`
FilledAmount string `json:"filledAmount,omitempty" bson:"filledAmount"`
Nonce string `json:"nonce,omitempty" bson:"nonce"`
PairName string `json:"pairName,omitempty" bson:"pairName"`
CreatedAt time.Time `json:"createdAt,omitempty" bson:"createdAt"`
UpdatedAt time.Time `json:"updatedAt,omitempty" bson:"updatedAt"`
OrderID string `json:"orderID,omitempty" bson:"orderID"`
NextOrder string `json:"nextOrder,omitempty" bson:"nextOrder"`
PrevOrder string `json:"prevOrder,omitempty" bson:"prevOrder"`
OrderList string `json:"orderList,omitempty" bson:"orderList"`
Key string `json:"key" bson:"key"`
}
type SignatureRecord ¶
Click to show internal directories.
Click to hide internal directories.