Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct {
ID string `json:"id"`
Type OrderType `json:"type"`
Amount int64 `json:"amount"` // Amount in base units (e.g., satoshis)
Price int64 `json:"price"` // Price in base units
Side string `json:"side"` // "buy" or "sell"
Timestamp time.Time `json:"timestamp"`
// Additional fields for order routing
MaxSlippage int64 `json:"max_slippage"` // Maximum allowed slippage in basis points
RouteHint string `json:"route_hint"` // Optional hint for preferred route
}
Order represents a trading order
Click to show internal directories.
Click to hide internal directories.