Documentation ¶
Index ¶
- type OrderBuilder
- func (o *OrderBuilder) AtExchange(exchange string) *OrderBuilder
- func (o *OrderBuilder) Build() (*order.Submit, error)
- func (o *OrderBuilder) ForCurrencyPair(pair currency.Pair) *OrderBuilder
- func (o *OrderBuilder) ForPrice(price float64) *OrderBuilder
- func (o *OrderBuilder) SetQuoteAmount(quoteAmount float64) *OrderBuilder
- func (o *OrderBuilder) SetReduceOnly(reduce bool) *OrderBuilder
- func (o *OrderBuilder) SetSide(side order.Side) *OrderBuilder
- func (o *OrderBuilder) UseImmediateOrCancel(immediateOrCancel bool) *OrderBuilder
- func (o *OrderBuilder) UseOrderType(orderType order.Type) *OrderBuilder
- func (o *OrderBuilder) WithAmount(amount float64) *OrderBuilder
- func (o *OrderBuilder) WithAssetType(assetType asset.Item) *OrderBuilder
- func (o *OrderBuilder) WithPostOnly(postOnly bool) *OrderBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderBuilder ¶
OrderBuilder is a struct that holds the order details
func NewOrderBuilder ¶
func NewOrderBuilder() *OrderBuilder
NewOrderBuilder returns a new instance of OrderBuilder
func (*OrderBuilder) AtExchange ¶
func (o *OrderBuilder) AtExchange(exchange string) *OrderBuilder
func (*OrderBuilder) ForCurrencyPair ¶
func (o *OrderBuilder) ForCurrencyPair(pair currency.Pair) *OrderBuilder
func (*OrderBuilder) ForPrice ¶
func (o *OrderBuilder) ForPrice(price float64) *OrderBuilder
func (*OrderBuilder) SetQuoteAmount ¶
func (o *OrderBuilder) SetQuoteAmount(quoteAmount float64) *OrderBuilder
func (*OrderBuilder) SetReduceOnly ¶
func (o *OrderBuilder) SetReduceOnly(reduce bool) *OrderBuilder
func (*OrderBuilder) SetSide ¶
func (o *OrderBuilder) SetSide(side order.Side) *OrderBuilder
func (*OrderBuilder) UseImmediateOrCancel ¶
func (o *OrderBuilder) UseImmediateOrCancel(immediateOrCancel bool) *OrderBuilder
func (*OrderBuilder) UseOrderType ¶
func (o *OrderBuilder) UseOrderType(orderType order.Type) *OrderBuilder
func (*OrderBuilder) WithAmount ¶
func (o *OrderBuilder) WithAmount(amount float64) *OrderBuilder
func (*OrderBuilder) WithAssetType ¶
func (o *OrderBuilder) WithAssetType(assetType asset.Item) *OrderBuilder
func (*OrderBuilder) WithPostOnly ¶
func (o *OrderBuilder) WithPostOnly(postOnly bool) *OrderBuilder
Click to show internal directories.
Click to hide internal directories.