Documentation ¶
Index ¶
- type Balance
- type Conversion
- type Manager
- type Order
- type Telegram
- type WS
- func (s *WS) AlterOrder(pair, volume, limitPrice string, tradeIntent int, orderID int64) (int64, string, error)
- func (s *WS) CancelOrder(orderID int64) (int64, error)
- func (s *WS) Close()
- func (s *WS) Connect(g *errgroup.Group) error
- func (s *WS) CreateOrder(pair, volume, limitPrice string, tradeIntent int) (int64, string, error)
- func (s *WS) GetBalance() (int64, error)
- func (s *WS) GetOrder(orderID int64) (int64, error)
- func (s *WS) GetOrderBookAndSubscribe(pairs string) (int64, error)
- func (s *WS) GetOrderByExtID(extID string) (int64, error)
- func (s *WS) GetPairsAndSubscribe() (int64, error)
- func (s *WS) Start(ctx context.Context) error
- func (s *WS) SubscribeAccounting(includeDeals bool) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balance ¶
type Balance struct {
// contains filtered or unexported fields
}
func NewBalance ¶
func (*Balance) UpdateStorageBalances ¶
type Conversion ¶
type Conversion struct {
// contains filtered or unexported fields
}
func NewConversion ¶
func NewConversion(storage *storage.Storage, logger *zerolog.Logger) *Conversion
func (*Conversion) GetAskUSDTPrice ¶
func (s *Conversion) GetAskUSDTPrice(currency string) *big.Float
func (*Conversion) GetBidUSDTPrice ¶
func (s *Conversion) GetBidUSDTPrice(currency string) *big.Float
func (*Conversion) GetUSDTPrice ¶
func (s *Conversion) GetUSDTPrice(currency string) (*big.Float, error)
type Order ¶
type Order struct {
// contains filtered or unexported fields
}
func (*Order) CancelOrder ¶
func (*Order) SendCancelOrderRequest ¶
func (*Order) UpdateOrderState ¶
type WS ¶
type WS struct {
// contains filtered or unexported fields
}
func (*WS) AlterOrder ¶
func (*WS) CreateOrder ¶
func (*WS) GetBalance ¶
func (*WS) GetOrderBookAndSubscribe ¶
func (*WS) GetPairsAndSubscribe ¶
Click to show internal directories.
Click to hide internal directories.