Documentation ¶
Index ¶
- type Client
- func (client *Client) AvailFunds() float64
- func (client *Client) AvailShort() float64
- func (client *Client) CancelOrder(id int64) (bool, error)
- func (client *Client) CommunicateBook(bookChan chan<- exchange.Book) exchange.Book
- func (client *Client) Currency() string
- func (client *Client) CurrencyCode() byte
- func (client *Client) Done()
- func (client *Client) Fee() float64
- func (client *Client) GetOrderStatus(id int64) (exchange.Order, error)
- func (client *Client) HasCryptoFee() bool
- func (client *Client) MaxPos() float64
- func (client *Client) Position() float64
- func (client *Client) Priority() int
- func (client *Client) SendOrder(action, otype string, amount, price float64) (int64, error)
- func (client *Client) SetMaxPos(maxPos float64)
- func (client *Client) SetPosition(pos float64)
- func (client *Client) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains all exchange information
func New ¶
func New(key, secret, symbol, currency string, priority int, fee, availShort, availFunds float64) *Client
New returns a pointer to a Client instance
func (*Client) AvailFunds ¶
AvailFunds returns the exchange available funds
func (*Client) AvailShort ¶
AvailShort returns the exchange quantity available for short selling
func (*Client) CancelOrder ¶
CancelOrder cancels an order on the exchange
func (*Client) CommunicateBook ¶
CommunicateBook sends the latest available book data on the supplied channel
func (*Client) CurrencyCode ¶
CurrencyCode returns the exchange currency code
func (*Client) GetOrderStatus ¶
GetOrderStatus gets the status of an order on the exchange
func (*Client) HasCryptoFee ¶
HasCrytpoFee returns true if fee is taken in cryptocurrency on buys
func (*Client) SetPosition ¶
SetPosition sets the exchange position
Click to show internal directories.
Click to hide internal directories.