Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IExchange ¶
type IExchange interface { AccountBalance() ([]Balance, error) AccountSymbolBalance(symbol string) (decimal.Decimal, error) BalanceToUSD(bal *Balance) (decimal.Decimal, error) GetRate(symbol ...string) (decimal.Decimal, error) BuyAll(symbol ...string) *Status SellAll(symbol ...string) *Status GetOrder(id int64, symbol ...string) (*Order, error) CancelOrder(id int64, symbol ...string) error GetKlines(opts ...draw.KlinesOpts) (*draw.Klines, error) SetScale(scale string) SetSymbol(symbol string) }
Click to show internal directories.
Click to hide internal directories.