Documentation ¶
Index ¶
- Variables
- type Candlestick
- type ExportedList
- type List
- func (l *List) Delete(t ...timestamp.Timestamp)
- func (l List) Exchange() string
- func (l List) First() (timestamp.Timestamp, Candlestick, bool)
- func (l List) Get(ts timestamp.Timestamp) (Candlestick, bool)
- func (l *List) HasUncomplete() bool
- func (l List) ID() ListID
- func (l List) Last() (timestamp.Timestamp, Candlestick, bool)
- func (l List) Len() int
- func (l *List) Loop(callback func(ts timestamp.Timestamp, cs Candlestick) (bool, error)) error
- func (l List) MarshalJSON() ([]byte, error)
- func (l *List) Merge(l2 List, options *timeseries.MergeOptions) error
- func (l *List) MergeTimeSeries(ts timeseries.TimeSeries, options *timeseries.MergeOptions) error
- func (l List) Pair() pair.Pair
- func (l List) Period() period.Period
- func (l *List) ReplaceUncomplete(l2 List) error
- func (l *List) Set(ts timestamp.Timestamp, c Candlestick) error
- func (l *List) UnmarshalJSON(data []byte) error
- type ListID
- type Request
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Candlestick ¶
type Candlestick struct { Open float64 `bson:"open" json:"open,omitempty"` High float64 `bson:"high" json:"high,omitempty"` Low float64 `bson:"low" json:"low,omitempty"` Close float64 `bson:"close" json:"close,omitempty"` Volume float64 `bson:"volume" json:"volume,omitempty"` Uncomplete bool `bson:"complete" json:"uncomplete,omitempty"` }
func (Candlestick) Equal ¶
func (cs Candlestick) Equal(b Candlestick) bool
type ExportedList ¶
type ExportedList struct { // in:body // Candlesticks exchange // Required: true Exchange string `json:"exchange"` // Candlesticks pair // Required: true Pair pair.Pair `json:"pair"` // Candlesticks period // Required: true Period string `json:"period"` // List of requeste candlesticks by time (RFC3339Nano) // Required: true // Example: {"2006-01-02T15:04:05.999Z":{"close":0,"high":0,"low":0,"open":0}} Candlesticks map[timestamp.Timestamp]Candlestick `json:"candlesticks,omitempty"` }
swagger:model CandlestickList
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) HasUncomplete ¶
func (List) MarshalJSON ¶
func (*List) Merge ¶
func (l *List) Merge(l2 List, options *timeseries.MergeOptions) error
func (*List) MergeTimeSeries ¶
func (l *List) MergeTimeSeries(ts timeseries.TimeSeries, options *timeseries.MergeOptions) error
func (*List) ReplaceUncomplete ¶
func (*List) UnmarshalJSON ¶
type Request ¶
type Request struct { // in:query // // Candlesticks exchange // Required: true Exchange string `json:"exchange" schema:"exchange,ruired"` // Candlesticks base symbol // Required: true BaseSymbol string `json:"base_symbol" schema:"base_symbol,ruired"` // Candlesticks quote symbol // Required: true QuoteSymbol string `json:"quote_symbol" schema:"quote_symbol,ruired"` // Candlesticks period // Required: true PeriodName string `json:"period_name" schema:"period_name,ruired"` // Start time for candlesticks // Required: false Start *timestamp.Timestamp `json:"start" schema:"start"` // End time for candlesticks // Required: false End *timestamp.Timestamp `json:"end" schema:"end"` // contains filtered or unexported fields }
Candlesticks ruest payload swagger:parameters candlesticks
Click to show internal directories.
Click to hide internal directories.