Documentation ¶
Index ¶
- type AssetCandleRequest
- type Comissions
- type Expiration
- type PointStore
- func (cc *PointStore) Count(candle int) (c int)
- func (cc *PointStore) Delete(candle int, key int64)
- func (cc *PointStore) DeleteMultiple(candle int, key []int64)
- func (cc *PointStore) GetFirst(candle int) (result Points, ok bool)
- func (cc *PointStore) GetLast(candle int) (result Points, ok bool)
- func (cc *PointStore) LoadAll(candle int) (c []Points)
- func (cc *PointStore) MakeMap() (c map[int][]Points)
- func (cc *PointStore) Store(candle int, key int64, data Points)
- type Points
- type Schedule
- type SendPoints
- type SendStatus
- type Spot
- type SpotItems
- type SyncMap
- func (rm *SyncMap) Count() (value int)
- func (rm *SyncMap) Delete(key int64)
- func (rm *SyncMap) DeleteMultiple(key []int64)
- func (rm *SyncMap) GetFirst() (result Points, ok bool)
- func (rm *SyncMap) GetLast() (result Points, ok bool)
- func (rm *SyncMap) Load(key int64) (value Points, ok bool)
- func (rm *SyncMap) LoadAll() (value []Points)
- func (rm *SyncMap) Store(key int64, value Points)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssetCandleRequest ¶
type AssetCandleRequest struct { ID string `json:"id"` Candle []int `json:"candle"` Provider string `json:"provider"` }
AssetCandleRequest -
type Comissions ¶
Comissions -
type Expiration ¶
type Expiration struct { Time int64 `json:"time"` Period int `json:"period"` DeadTime int `json:"dead_time"` Others map[string]interface{} }
Expiration -
type PointStore ¶
PointStore -
func (*PointStore) DeleteMultiple ¶
func (cc *PointStore) DeleteMultiple(candle int, key []int64)
DeleteMultiple -
func (*PointStore) GetFirst ¶
func (cc *PointStore) GetFirst(candle int) (result Points, ok bool)
GetFirst -
type Points ¶
type Points struct { Close float64 `json:"close"` Open float64 `json:"open"` High float64 `json:"high"` Low float64 `json:"low"` Ask float64 `json:"ask"` Bid float64 `json:"bid"` To int64 `json:"to"` From int64 `json:"from"` At int64 `json:"at"` Size int `json:"size"` CandleColor string `json:"candleColor"` }
Points -
type Schedule ¶
type Schedule struct { Status string `json:"status"` OpeningAt time.Duration `json:"openingAt"` ClosingAt time.Duration `json:"closingAt"` From int64 `json:"from"` To int64 `json:"to"` }
Schedule -
type SendPoints ¶
type SendPoints struct { AssetID string ServerTime int64 Provider string SendTime time.Time Current map[int]Points Candles map[int][]Points Others map[string]interface{} RequestID string }
SendPoints -
type SendStatus ¶
type SendStatus struct { AssetID string ServerTime time.Time Provider string SendTime time.Time Current map[int]Points RequestID string }
SendStatus -
type Spot ¶
type Spot struct { Call SpotItems `json:"call"` Put SpotItems `json:"put"` Value int64 `json:"value"` }
Spot -
Click to show internal directories.
Click to hide internal directories.