Documentation
¶
Index ¶
- type Exchange
- func (e *Exchange) Cancel(id string, args ...any)
- func (ex *Exchange) CancelAll(args ...any)
- func (ex Exchange) CloseOrder(side u8.Side, options *Options)
- func (ex Exchange) Entry(id string, side u8.Side, data map[string]interface{})
- func (ex Exchange) Exit(id string, side u8.Side, data map[string]interface{})
- func (ex Exchange) GetAccount() (err error)
- func (ex Exchange) GetBalance() (balance *types.Balance, ok error)
- func (ex Exchange) GetPostions() (err error)
- func (ex Exchange) GetTrades() (err error)
- func (ex Exchange) OpenOrder(side u8.Side, options *Options)
- func (ex Exchange) RealPostions() (postionsList []*types.Positions, err error)
- func (ex Exchange) SubKline() (err error)
- func (ex Exchange) SubmitOrder(createdOrder types.SubmitOrder) (err error)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct { UserConfig *bbgo.Config Stream types.Stream Session *bbgo.ExchangeSession SessionName string Symbol string ExchangeId string // contains filtered or unexported fields }
func (Exchange) GetAccount ¶
func (Exchange) GetPostions ¶
func (Exchange) RealPostions ¶
func (Exchange) SubmitOrder ¶
func (ex Exchange) SubmitOrder(createdOrder types.SubmitOrder) (err error)
Click to show internal directories.
Click to hide internal directories.