Documentation ¶
Index ¶
- type TradeV3
- type TradesV3
- func (tv3 *TradesV3) Ascend(iter func(btree.Item) bool)
- func (tv3 *TradesV3) Descend(iter func(btree.Item) bool)
- func (tv3 *TradesV3) Get(id int64) btree.Item
- func (tv3 *TradesV3) GetSymbolname() string
- func (tv3 *TradesV3) Lock()
- func (tv3 *TradesV3) ResetEvent(err error)
- func (tv3 *TradesV3) Set(val btree.Item)
- func (tv3 *TradesV3) TradeEventStart() (err error)
- func (tv3 *TradesV3) Unlock()
- func (tv3 *TradesV3) Update(val btree.Item)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TradeV3 ¶
type TradeV3 struct { ID int64 `json:"id"` Symbol string `json:"symbol"` OrderID int64 `json:"orderId"` OrderListId int64 `json:"orderListId"` Price string `json:"price"` Quantity string `json:"qty"` QuoteQuantity string `json:"quoteQty"` Commission string `json:"commission"` CommissionAsset string `json:"commissionAsset"` Time int64 `json:"time"` IsBuyer bool `json:"isBuyer"` IsMaker bool `json:"isMaker"` IsBestMatch bool `json:"isBestMatch"` IsIsolated bool `json:"isIsolated"` }
type TradesV3 ¶
type TradesV3 struct { Init types.InitFunction // contains filtered or unexported fields }
func New ¶
func New( stop chan struct{}, symbolname string, startTradeStream func(*TradesV3) types.StreamFunction, initCreator func(*TradesV3) types.InitFunction) *TradesV3
func (*TradesV3) GetSymbolname ¶
func (*TradesV3) ResetEvent ¶
func (*TradesV3) TradeEventStart ¶
Click to show internal directories.
Click to hide internal directories.