Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { // Type of order: // MARKET requires percentage // LIMIT // STOP_LOSS (SL) (or in the Binance API STOP_MARKET) Type futures.OrderType `json:"type"` // Symbol of the asset Symbol string `json:"symbol"` // Side or either buy or sell Side futures.SideType `json:"side"` // Used by LIMIT and MARKET // Percentage of futures balance to trade. Used by LIMIT and MARKET orders. Percentage float64 `json:"percentage"` // Used by LIMIT // Price to buy underlying asset. Used by LIMIT orders. Price string `json:"price"` // TimeInForce // GTC - Good Till Cancel // IOC - Immediate or Cancel // FOK - Fill or Kill // GTX - Good Till Crossing (Post Only) TimeInForce futures.TimeInForceType `json:"timeInForce"` // Used by STOP_MARKET // StopPrice closes the position at the market price StopPrice string `json:"stopPrice"` }
Order represents the Limit/Take Profit, Market, or Stop Loss orders presented in the trading signal
Click to show internal directories.
Click to hide internal directories.