Documentation ¶
Index ¶
- func GetCurrencyToJson(cd CurrencyData) ([]byte, error)
- type AppExchange
- type Currency
- func (c *Currency) Balances(assets []string) ([]domain.Balance, error)
- func (c *Currency) Buy(pair domain.Pair, amount decimal.Decimal) (*domain.Order, error)
- func (c *Currency) CancelOrder(orderId string, pair domain.Pair) error
- func (c *Currency) GetHistoryOrders(pairs []domain.Pair) ([]domain.Order, error)
- func (c *Currency) GetOpenOrders(filter *domain.OrderFilter) ([]domain.Order, error)
- func (c *Currency) GetOrderFee(pair domain.Pair, amount decimal.Decimal, price decimal.Decimal) (domain.Balance, error)
- func (c *Currency) GetPairFee(pair domain.Pair) (domain.Balance, error)
- func (c *Currency) LastPrice(pair domain.Pair) (decimal.Decimal, error)
- func (c Currency) Name() string
- func (c *Currency) Sell(pair domain.Pair, amount decimal.Decimal, price decimal.Decimal) (*domain.Order, error)
- type CurrencyData
- type ExchangeId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrencyToJson ¶
func GetCurrencyToJson(cd CurrencyData) ([]byte, error)
Types ¶
type AppExchange ¶
type AppExchange struct{}
func (AppExchange) GetExchangeByJson ¶
func (ae AppExchange) GetExchangeByJson(exchangeId int, data []byte) domain.Exchange
type Currency ¶
type Currency struct {
// contains filtered or unexported fields
}
func GetCurrencyFromJson ¶
func (*Currency) CancelOrder ¶
func (*Currency) GetHistoryOrders ¶
func (*Currency) GetOpenOrders ¶
func (*Currency) GetOrderFee ¶
func (*Currency) GetPairFee ¶
type CurrencyData ¶
type ExchangeId ¶
type ExchangeId int
const ( CurrencyId ExchangeId = iota MaxExchangeId ExchangeId = iota )
Click to show internal directories.
Click to hide internal directories.