orderbuilder

package
v0.0.0-...-a5f00ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: ISC Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderBuilder

type OrderBuilder struct {
	Order order.Submit
}

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) Build

func (o *OrderBuilder) Build() (*order.Submit, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL