Documentation
¶
Index ¶
- type Coinbase
- func (e *Coinbase) CancelOrders(ctx context.Context, orderID ...string) error
- func (e *Coinbase) CreateLimitOrder(ctx context.Context, order ordergo.Limit) (ordergo, error)
- func (e *Coinbase) GetBalance(ctx context.Context, asset trading.Asset) (int64, error)
- func (e *Coinbase) GetLastPrice(ctx context.Context, p trading.Pair) (string, error)
- func (e *Coinbase) ListOpenOrders(ctx context.Context) ([]ordergo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coinbase ¶
Coinbase represents a client that is able to talk to the coinbase advanced trading api.
func NewCoinbase ¶
NewCoinbase acts as the default constructor for the Coinbase exchange type. This method will attempt to load authentication credentials from the environment, returning an error if any are missing.
func (*Coinbase) CancelOrders ¶
func (*Coinbase) CreateLimitOrder ¶
func (*Coinbase) GetBalance ¶
func (*Coinbase) GetLastPrice ¶
GetLastPrice obtains the last price for the pair on binance.
Click to show internal directories.
Click to hide internal directories.