Documentation ¶
Index ¶
- type Session
- func (s *Session) AddBuyOrder(oid int64)
- func (s *Session) GetActiveBuyExtOrderID() string
- func (s *Session) GetActiveBuyOrderID() int64
- func (s *Session) GetActiveBuyOrderRequestID() string
- func (s *Session) GetBuyOrders() map[int64]int64
- func (s *Session) GetBuyTotal() *big.Float
- func (s *Session) GetIsDone() bool
- func (s *Session) GetIsNeedToCreateBuyOrder() bool
- func (s *Session) GetPrevBuyOrderID() int64
- func (s *Session) SetActiveBuyExtOrderID(extID string)
- func (s *Session) SetActiveBuyOrderID(oid int64)
- func (s *Session) SetActiveBuyOrderRequestID(rid string)
- func (s *Session) SetBuyOrderExecutedFlags(oid int64)
- func (s *Session) SetBuyTotal(buyTotal *big.Float)
- func (s *Session) SetIsDone(isDone bool)
- func (s *Session) SetIsNeedToCreateBuyOrder(isNeedToCreateBuyOrder bool)
- func (s *Session) SetPrevBuyOrderID(oid int64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { ID string `json:"id"` ActiveBuyExtOrderID string `json:"active_buy_ext_order_id"` PrevBuyOrderID int64 `json:"prev_buy_order_id"` ActiveBuyOrderID int64 `json:"active_buy_order_id"` CompletedBuyOrders goAtomic.Int64 `json:"completed_buy_orders"` BuyTotal *big.Float `json:"buy_total"` BuyOrders map[int64]int64 `json:"buy_orders"` IsNeedToCreateBuyOrder bool `json:"is_need_to_create_buy_order"` IsDone bool `json:"is_done"` // contains filtered or unexported fields }
func NewSession ¶
func (*Session) AddBuyOrder ¶
func (*Session) GetActiveBuyExtOrderID ¶
func (*Session) GetActiveBuyOrderID ¶
func (*Session) GetActiveBuyOrderRequestID ¶
func (*Session) GetBuyOrders ¶
func (*Session) GetBuyTotal ¶
func (*Session) GetIsNeedToCreateBuyOrder ¶
func (*Session) GetPrevBuyOrderID ¶
func (*Session) SetActiveBuyExtOrderID ¶
func (*Session) SetActiveBuyOrderID ¶
func (*Session) SetActiveBuyOrderRequestID ¶
func (*Session) SetBuyOrderExecutedFlags ¶
func (*Session) SetBuyTotal ¶
func (*Session) SetIsNeedToCreateBuyOrder ¶
func (*Session) SetPrevBuyOrderID ¶
Click to show internal directories.
Click to hide internal directories.