ogent

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 45 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type AddTickerOK

type AddTickerOK struct{}

AddTickerOK is response for AddTicker operation.

type AddTickerParams

type AddTickerParams struct {
	Ticker string
}

AddTickerParams is parameters of addTicker operation.

type BarGroupCreate

type BarGroupCreate struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarGroupCreate

func NewBarGroupCreate

func NewBarGroupCreate(e *ent.BarGroup) *BarGroupCreate

func NewBarGroupCreates

func NewBarGroupCreates(es []*ent.BarGroup) []BarGroupCreate

func (*BarGroupCreate) Decode

func (s *BarGroupCreate) Decode(d *jx.Decoder) error

Decode decodes BarGroupCreate from json.

func (*BarGroupCreate) Elem

func (bg *BarGroupCreate) Elem() BarGroupCreate

func (*BarGroupCreate) Encode

func (s *BarGroupCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupCreate) GetCount

func (s *BarGroupCreate) GetCount() int

GetCount returns the value of Count.

func (*BarGroupCreate) GetFirst

func (s *BarGroupCreate) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarGroupCreate) GetID

func (s *BarGroupCreate) GetID() int

GetID returns the value of ID.

func (*BarGroupCreate) GetLast

func (s *BarGroupCreate) GetLast() time.Time

GetLast returns the value of Last.

func (*BarGroupCreate) GetTimeRangeID

func (s *BarGroupCreate) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarGroupCreate) MarshalJSON

func (s *BarGroupCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupCreate) SetCount

func (s *BarGroupCreate) SetCount(val int)

SetCount sets the value of Count.

func (*BarGroupCreate) SetFirst

func (s *BarGroupCreate) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarGroupCreate) SetID

func (s *BarGroupCreate) SetID(val int)

SetID sets the value of ID.

func (*BarGroupCreate) SetLast

func (s *BarGroupCreate) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarGroupCreate) SetTimeRangeID

func (s *BarGroupCreate) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarGroupCreate) UnmarshalJSON

func (s *BarGroupCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarGroupList

type BarGroupList struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarGroupList

func NewBarGroupList

func NewBarGroupList(e *ent.BarGroup) *BarGroupList

func NewBarGroupLists

func NewBarGroupLists(es []*ent.BarGroup) []BarGroupList

func (*BarGroupList) Decode

func (s *BarGroupList) Decode(d *jx.Decoder) error

Decode decodes BarGroupList from json.

func (*BarGroupList) Elem

func (bg *BarGroupList) Elem() BarGroupList

func (*BarGroupList) Encode

func (s *BarGroupList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupList) GetCount

func (s *BarGroupList) GetCount() int

GetCount returns the value of Count.

func (*BarGroupList) GetFirst

func (s *BarGroupList) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarGroupList) GetID

func (s *BarGroupList) GetID() int

GetID returns the value of ID.

func (*BarGroupList) GetLast

func (s *BarGroupList) GetLast() time.Time

GetLast returns the value of Last.

func (*BarGroupList) GetTimeRangeID

func (s *BarGroupList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarGroupList) MarshalJSON

func (s *BarGroupList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupList) SetCount

func (s *BarGroupList) SetCount(val int)

SetCount sets the value of Count.

func (*BarGroupList) SetFirst

func (s *BarGroupList) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarGroupList) SetID

func (s *BarGroupList) SetID(val int)

SetID sets the value of ID.

func (*BarGroupList) SetLast

func (s *BarGroupList) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarGroupList) SetTimeRangeID

func (s *BarGroupList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarGroupList) UnmarshalJSON

func (s *BarGroupList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarGroupRead

type BarGroupRead struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarGroupRead

func NewBarGroupRead

func NewBarGroupRead(e *ent.BarGroup) *BarGroupRead

func NewBarGroupReads

func NewBarGroupReads(es []*ent.BarGroup) []BarGroupRead

func (*BarGroupRead) Decode

func (s *BarGroupRead) Decode(d *jx.Decoder) error

Decode decodes BarGroupRead from json.

func (*BarGroupRead) Elem

func (bg *BarGroupRead) Elem() BarGroupRead

func (*BarGroupRead) Encode

func (s *BarGroupRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupRead) GetCount

func (s *BarGroupRead) GetCount() int

GetCount returns the value of Count.

func (*BarGroupRead) GetFirst

func (s *BarGroupRead) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarGroupRead) GetID

func (s *BarGroupRead) GetID() int

GetID returns the value of ID.

func (*BarGroupRead) GetLast

func (s *BarGroupRead) GetLast() time.Time

GetLast returns the value of Last.

func (*BarGroupRead) GetTimeRangeID

func (s *BarGroupRead) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarGroupRead) MarshalJSON

func (s *BarGroupRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupRead) SetCount

func (s *BarGroupRead) SetCount(val int)

SetCount sets the value of Count.

func (*BarGroupRead) SetFirst

func (s *BarGroupRead) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarGroupRead) SetID

func (s *BarGroupRead) SetID(val int)

SetID sets the value of ID.

func (*BarGroupRead) SetLast

func (s *BarGroupRead) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarGroupRead) SetTimeRangeID

func (s *BarGroupRead) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarGroupRead) UnmarshalJSON

func (s *BarGroupRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarGroupRecordsList

type BarGroupRecordsList struct {
	ID           int       `json:"id"`
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
}

Ref: #/components/schemas/BarGroup_RecordsList

func NewBarGroupRecordsList

func NewBarGroupRecordsList(e *ent.BarRecord) *BarGroupRecordsList

func NewBarGroupRecordsLists

func NewBarGroupRecordsLists(es []*ent.BarRecord) []BarGroupRecordsList

func (*BarGroupRecordsList) Decode

func (s *BarGroupRecordsList) Decode(d *jx.Decoder) error

Decode decodes BarGroupRecordsList from json.

func (*BarGroupRecordsList) Elem

func (*BarGroupRecordsList) Encode

func (s *BarGroupRecordsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupRecordsList) GetClose

func (s *BarGroupRecordsList) GetClose() float64

GetClose returns the value of Close.

func (*BarGroupRecordsList) GetHigh

func (s *BarGroupRecordsList) GetHigh() float64

GetHigh returns the value of High.

func (*BarGroupRecordsList) GetID

func (s *BarGroupRecordsList) GetID() int

GetID returns the value of ID.

func (*BarGroupRecordsList) GetLow

func (s *BarGroupRecordsList) GetLow() float64

GetLow returns the value of Low.

func (*BarGroupRecordsList) GetOpen

func (s *BarGroupRecordsList) GetOpen() float64

GetOpen returns the value of Open.

func (*BarGroupRecordsList) GetTimestamp

func (s *BarGroupRecordsList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*BarGroupRecordsList) GetTransactions

func (s *BarGroupRecordsList) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*BarGroupRecordsList) GetVolume

func (s *BarGroupRecordsList) GetVolume() float64

GetVolume returns the value of Volume.

func (*BarGroupRecordsList) MarshalJSON

func (s *BarGroupRecordsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupRecordsList) SetClose

func (s *BarGroupRecordsList) SetClose(val float64)

SetClose sets the value of Close.

func (*BarGroupRecordsList) SetHigh

func (s *BarGroupRecordsList) SetHigh(val float64)

SetHigh sets the value of High.

func (*BarGroupRecordsList) SetID

func (s *BarGroupRecordsList) SetID(val int)

SetID sets the value of ID.

func (*BarGroupRecordsList) SetLow

func (s *BarGroupRecordsList) SetLow(val float64)

SetLow sets the value of Low.

func (*BarGroupRecordsList) SetOpen

func (s *BarGroupRecordsList) SetOpen(val float64)

SetOpen sets the value of Open.

func (*BarGroupRecordsList) SetTimestamp

func (s *BarGroupRecordsList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*BarGroupRecordsList) SetTransactions

func (s *BarGroupRecordsList) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*BarGroupRecordsList) SetVolume

func (s *BarGroupRecordsList) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*BarGroupRecordsList) UnmarshalJSON

func (s *BarGroupRecordsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarGroupRecordsList) Validate

func (s *BarGroupRecordsList) Validate() error

type BarGroupTimeRangeRead

type BarGroupTimeRangeRead struct {
	ID         int                         `json:"id"`
	Start      time.Time                   `json:"start"`
	End        time.Time                   `json:"end"`
	Count      int                         `json:"count"`
	IntervalID int                         `json:"interval_id"`
	Status     BarGroupTimeRangeReadStatus `json:"status"`
	UpdateTime time.Time                   `json:"update_time"`
}

Ref: #/components/schemas/BarGroup_TimeRangeRead

func NewBarGroupTimeRangeRead

func NewBarGroupTimeRangeRead(e *ent.BarTimeRange) *BarGroupTimeRangeRead

func NewBarGroupTimeRangeReads

func NewBarGroupTimeRangeReads(es []*ent.BarTimeRange) []BarGroupTimeRangeRead

func (*BarGroupTimeRangeRead) Decode

func (s *BarGroupTimeRangeRead) Decode(d *jx.Decoder) error

Decode decodes BarGroupTimeRangeRead from json.

func (*BarGroupTimeRangeRead) Elem

func (*BarGroupTimeRangeRead) Encode

func (s *BarGroupTimeRangeRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupTimeRangeRead) GetCount

func (s *BarGroupTimeRangeRead) GetCount() int

GetCount returns the value of Count.

func (*BarGroupTimeRangeRead) GetEnd

func (s *BarGroupTimeRangeRead) GetEnd() time.Time

GetEnd returns the value of End.

func (*BarGroupTimeRangeRead) GetID

func (s *BarGroupTimeRangeRead) GetID() int

GetID returns the value of ID.

func (*BarGroupTimeRangeRead) GetIntervalID

func (s *BarGroupTimeRangeRead) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*BarGroupTimeRangeRead) GetStart

func (s *BarGroupTimeRangeRead) GetStart() time.Time

GetStart returns the value of Start.

func (*BarGroupTimeRangeRead) GetStatus

GetStatus returns the value of Status.

func (*BarGroupTimeRangeRead) GetUpdateTime

func (s *BarGroupTimeRangeRead) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*BarGroupTimeRangeRead) MarshalJSON

func (s *BarGroupTimeRangeRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupTimeRangeRead) SetCount

func (s *BarGroupTimeRangeRead) SetCount(val int)

SetCount sets the value of Count.

func (*BarGroupTimeRangeRead) SetEnd

func (s *BarGroupTimeRangeRead) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*BarGroupTimeRangeRead) SetID

func (s *BarGroupTimeRangeRead) SetID(val int)

SetID sets the value of ID.

func (*BarGroupTimeRangeRead) SetIntervalID

func (s *BarGroupTimeRangeRead) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*BarGroupTimeRangeRead) SetStart

func (s *BarGroupTimeRangeRead) SetStart(val time.Time)

SetStart sets the value of Start.

func (*BarGroupTimeRangeRead) SetStatus

SetStatus sets the value of Status.

func (*BarGroupTimeRangeRead) SetUpdateTime

func (s *BarGroupTimeRangeRead) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*BarGroupTimeRangeRead) UnmarshalJSON

func (s *BarGroupTimeRangeRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarGroupTimeRangeRead) Validate

func (s *BarGroupTimeRangeRead) Validate() error

type BarGroupTimeRangeReadStatus

type BarGroupTimeRangeReadStatus string
const (
	BarGroupTimeRangeReadStatusPending      BarGroupTimeRangeReadStatus = "pending"
	BarGroupTimeRangeReadStatusCreated      BarGroupTimeRangeReadStatus = "created"
	BarGroupTimeRangeReadStatusClean        BarGroupTimeRangeReadStatus = "clean"
	BarGroupTimeRangeReadStatusConsolidated BarGroupTimeRangeReadStatus = "consolidated"
)

func (*BarGroupTimeRangeReadStatus) Decode

Decode decodes BarGroupTimeRangeReadStatus from json.

func (BarGroupTimeRangeReadStatus) Encode

func (s BarGroupTimeRangeReadStatus) Encode(e *jx.Encoder)

Encode encodes BarGroupTimeRangeReadStatus as json.

func (BarGroupTimeRangeReadStatus) MarshalJSON

func (s BarGroupTimeRangeReadStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarGroupTimeRangeReadStatus) MarshalText

func (s BarGroupTimeRangeReadStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarGroupTimeRangeReadStatus) UnmarshalJSON

func (s *BarGroupTimeRangeReadStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarGroupTimeRangeReadStatus) UnmarshalText

func (s *BarGroupTimeRangeReadStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarGroupTimeRangeReadStatus) Validate

func (s BarGroupTimeRangeReadStatus) Validate() error

type BarGroupUpdate

type BarGroupUpdate struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarGroupUpdate

func NewBarGroupUpdate

func NewBarGroupUpdate(e *ent.BarGroup) *BarGroupUpdate

func NewBarGroupUpdates

func NewBarGroupUpdates(es []*ent.BarGroup) []BarGroupUpdate

func (*BarGroupUpdate) Decode

func (s *BarGroupUpdate) Decode(d *jx.Decoder) error

Decode decodes BarGroupUpdate from json.

func (*BarGroupUpdate) Elem

func (bg *BarGroupUpdate) Elem() BarGroupUpdate

func (*BarGroupUpdate) Encode

func (s *BarGroupUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarGroupUpdate) GetCount

func (s *BarGroupUpdate) GetCount() int

GetCount returns the value of Count.

func (*BarGroupUpdate) GetFirst

func (s *BarGroupUpdate) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarGroupUpdate) GetID

func (s *BarGroupUpdate) GetID() int

GetID returns the value of ID.

func (*BarGroupUpdate) GetLast

func (s *BarGroupUpdate) GetLast() time.Time

GetLast returns the value of Last.

func (*BarGroupUpdate) GetTimeRangeID

func (s *BarGroupUpdate) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarGroupUpdate) MarshalJSON

func (s *BarGroupUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarGroupUpdate) SetCount

func (s *BarGroupUpdate) SetCount(val int)

SetCount sets the value of Count.

func (*BarGroupUpdate) SetFirst

func (s *BarGroupUpdate) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarGroupUpdate) SetID

func (s *BarGroupUpdate) SetID(val int)

SetID sets the value of ID.

func (*BarGroupUpdate) SetLast

func (s *BarGroupUpdate) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarGroupUpdate) SetTimeRangeID

func (s *BarGroupUpdate) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarGroupUpdate) UnmarshalJSON

func (s *BarGroupUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarRecordCreate

type BarRecordCreate struct {
	ID           int       `json:"id"`
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
}

Ref: #/components/schemas/BarRecordCreate

func NewBarRecordCreate

func NewBarRecordCreate(e *ent.BarRecord) *BarRecordCreate

func NewBarRecordCreates

func NewBarRecordCreates(es []*ent.BarRecord) []BarRecordCreate

func (*BarRecordCreate) Decode

func (s *BarRecordCreate) Decode(d *jx.Decoder) error

Decode decodes BarRecordCreate from json.

func (*BarRecordCreate) Elem

func (br *BarRecordCreate) Elem() BarRecordCreate

func (*BarRecordCreate) Encode

func (s *BarRecordCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarRecordCreate) GetClose

func (s *BarRecordCreate) GetClose() float64

GetClose returns the value of Close.

func (*BarRecordCreate) GetHigh

func (s *BarRecordCreate) GetHigh() float64

GetHigh returns the value of High.

func (*BarRecordCreate) GetID

func (s *BarRecordCreate) GetID() int

GetID returns the value of ID.

func (*BarRecordCreate) GetLow

func (s *BarRecordCreate) GetLow() float64

GetLow returns the value of Low.

func (*BarRecordCreate) GetOpen

func (s *BarRecordCreate) GetOpen() float64

GetOpen returns the value of Open.

func (*BarRecordCreate) GetTimestamp

func (s *BarRecordCreate) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*BarRecordCreate) GetTransactions

func (s *BarRecordCreate) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*BarRecordCreate) GetVolume

func (s *BarRecordCreate) GetVolume() float64

GetVolume returns the value of Volume.

func (*BarRecordCreate) MarshalJSON

func (s *BarRecordCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarRecordCreate) SetClose

func (s *BarRecordCreate) SetClose(val float64)

SetClose sets the value of Close.

func (*BarRecordCreate) SetHigh

func (s *BarRecordCreate) SetHigh(val float64)

SetHigh sets the value of High.

func (*BarRecordCreate) SetID

func (s *BarRecordCreate) SetID(val int)

SetID sets the value of ID.

func (*BarRecordCreate) SetLow

func (s *BarRecordCreate) SetLow(val float64)

SetLow sets the value of Low.

func (*BarRecordCreate) SetOpen

func (s *BarRecordCreate) SetOpen(val float64)

SetOpen sets the value of Open.

func (*BarRecordCreate) SetTimestamp

func (s *BarRecordCreate) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*BarRecordCreate) SetTransactions

func (s *BarRecordCreate) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*BarRecordCreate) SetVolume

func (s *BarRecordCreate) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*BarRecordCreate) UnmarshalJSON

func (s *BarRecordCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarRecordCreate) Validate

func (s *BarRecordCreate) Validate() error

type BarRecordGroupRead

type BarRecordGroupRead struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarRecord_GroupRead

func NewBarRecordGroupRead

func NewBarRecordGroupRead(e *ent.BarGroup) *BarRecordGroupRead

func NewBarRecordGroupReads

func NewBarRecordGroupReads(es []*ent.BarGroup) []BarRecordGroupRead

func (*BarRecordGroupRead) Decode

func (s *BarRecordGroupRead) Decode(d *jx.Decoder) error

Decode decodes BarRecordGroupRead from json.

func (*BarRecordGroupRead) Elem

func (*BarRecordGroupRead) Encode

func (s *BarRecordGroupRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarRecordGroupRead) GetCount

func (s *BarRecordGroupRead) GetCount() int

GetCount returns the value of Count.

func (*BarRecordGroupRead) GetFirst

func (s *BarRecordGroupRead) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarRecordGroupRead) GetID

func (s *BarRecordGroupRead) GetID() int

GetID returns the value of ID.

func (*BarRecordGroupRead) GetLast

func (s *BarRecordGroupRead) GetLast() time.Time

GetLast returns the value of Last.

func (*BarRecordGroupRead) GetTimeRangeID

func (s *BarRecordGroupRead) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarRecordGroupRead) MarshalJSON

func (s *BarRecordGroupRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarRecordGroupRead) SetCount

func (s *BarRecordGroupRead) SetCount(val int)

SetCount sets the value of Count.

func (*BarRecordGroupRead) SetFirst

func (s *BarRecordGroupRead) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarRecordGroupRead) SetID

func (s *BarRecordGroupRead) SetID(val int)

SetID sets the value of ID.

func (*BarRecordGroupRead) SetLast

func (s *BarRecordGroupRead) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarRecordGroupRead) SetTimeRangeID

func (s *BarRecordGroupRead) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarRecordGroupRead) UnmarshalJSON

func (s *BarRecordGroupRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarRecordList

type BarRecordList struct {
	ID           int       `json:"id"`
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
}

Ref: #/components/schemas/BarRecordList

func NewBarRecordList

func NewBarRecordList(e *ent.BarRecord) *BarRecordList

func NewBarRecordLists

func NewBarRecordLists(es []*ent.BarRecord) []BarRecordList

func (*BarRecordList) Decode

func (s *BarRecordList) Decode(d *jx.Decoder) error

Decode decodes BarRecordList from json.

func (*BarRecordList) Elem

func (br *BarRecordList) Elem() BarRecordList

func (*BarRecordList) Encode

func (s *BarRecordList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarRecordList) GetClose

func (s *BarRecordList) GetClose() float64

GetClose returns the value of Close.

func (*BarRecordList) GetHigh

func (s *BarRecordList) GetHigh() float64

GetHigh returns the value of High.

func (*BarRecordList) GetID

func (s *BarRecordList) GetID() int

GetID returns the value of ID.

func (*BarRecordList) GetLow

func (s *BarRecordList) GetLow() float64

GetLow returns the value of Low.

func (*BarRecordList) GetOpen

func (s *BarRecordList) GetOpen() float64

GetOpen returns the value of Open.

func (*BarRecordList) GetTimestamp

func (s *BarRecordList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*BarRecordList) GetTransactions

func (s *BarRecordList) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*BarRecordList) GetVolume

func (s *BarRecordList) GetVolume() float64

GetVolume returns the value of Volume.

func (*BarRecordList) MarshalJSON

func (s *BarRecordList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarRecordList) SetClose

func (s *BarRecordList) SetClose(val float64)

SetClose sets the value of Close.

func (*BarRecordList) SetHigh

func (s *BarRecordList) SetHigh(val float64)

SetHigh sets the value of High.

func (*BarRecordList) SetID

func (s *BarRecordList) SetID(val int)

SetID sets the value of ID.

func (*BarRecordList) SetLow

func (s *BarRecordList) SetLow(val float64)

SetLow sets the value of Low.

func (*BarRecordList) SetOpen

func (s *BarRecordList) SetOpen(val float64)

SetOpen sets the value of Open.

func (*BarRecordList) SetTimestamp

func (s *BarRecordList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*BarRecordList) SetTransactions

func (s *BarRecordList) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*BarRecordList) SetVolume

func (s *BarRecordList) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*BarRecordList) UnmarshalJSON

func (s *BarRecordList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarRecordList) Validate

func (s *BarRecordList) Validate() error

type BarRecordRead

type BarRecordRead struct {
	ID           int       `json:"id"`
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
}

Ref: #/components/schemas/BarRecordRead

func NewBarRecordRead

func NewBarRecordRead(e *ent.BarRecord) *BarRecordRead

func NewBarRecordReads

func NewBarRecordReads(es []*ent.BarRecord) []BarRecordRead

func (*BarRecordRead) Decode

func (s *BarRecordRead) Decode(d *jx.Decoder) error

Decode decodes BarRecordRead from json.

func (*BarRecordRead) Elem

func (br *BarRecordRead) Elem() BarRecordRead

func (*BarRecordRead) Encode

func (s *BarRecordRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarRecordRead) GetClose

func (s *BarRecordRead) GetClose() float64

GetClose returns the value of Close.

func (*BarRecordRead) GetHigh

func (s *BarRecordRead) GetHigh() float64

GetHigh returns the value of High.

func (*BarRecordRead) GetID

func (s *BarRecordRead) GetID() int

GetID returns the value of ID.

func (*BarRecordRead) GetLow

func (s *BarRecordRead) GetLow() float64

GetLow returns the value of Low.

func (*BarRecordRead) GetOpen

func (s *BarRecordRead) GetOpen() float64

GetOpen returns the value of Open.

func (*BarRecordRead) GetTimestamp

func (s *BarRecordRead) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*BarRecordRead) GetTransactions

func (s *BarRecordRead) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*BarRecordRead) GetVolume

func (s *BarRecordRead) GetVolume() float64

GetVolume returns the value of Volume.

func (*BarRecordRead) MarshalJSON

func (s *BarRecordRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarRecordRead) SetClose

func (s *BarRecordRead) SetClose(val float64)

SetClose sets the value of Close.

func (*BarRecordRead) SetHigh

func (s *BarRecordRead) SetHigh(val float64)

SetHigh sets the value of High.

func (*BarRecordRead) SetID

func (s *BarRecordRead) SetID(val int)

SetID sets the value of ID.

func (*BarRecordRead) SetLow

func (s *BarRecordRead) SetLow(val float64)

SetLow sets the value of Low.

func (*BarRecordRead) SetOpen

func (s *BarRecordRead) SetOpen(val float64)

SetOpen sets the value of Open.

func (*BarRecordRead) SetTimestamp

func (s *BarRecordRead) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*BarRecordRead) SetTransactions

func (s *BarRecordRead) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*BarRecordRead) SetVolume

func (s *BarRecordRead) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*BarRecordRead) UnmarshalJSON

func (s *BarRecordRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarRecordRead) Validate

func (s *BarRecordRead) Validate() error

type BarRecordUpdate

type BarRecordUpdate struct {
	ID           int       `json:"id"`
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
}

Ref: #/components/schemas/BarRecordUpdate

func NewBarRecordUpdate

func NewBarRecordUpdate(e *ent.BarRecord) *BarRecordUpdate

func NewBarRecordUpdates

func NewBarRecordUpdates(es []*ent.BarRecord) []BarRecordUpdate

func (*BarRecordUpdate) Decode

func (s *BarRecordUpdate) Decode(d *jx.Decoder) error

Decode decodes BarRecordUpdate from json.

func (*BarRecordUpdate) Elem

func (br *BarRecordUpdate) Elem() BarRecordUpdate

func (*BarRecordUpdate) Encode

func (s *BarRecordUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarRecordUpdate) GetClose

func (s *BarRecordUpdate) GetClose() float64

GetClose returns the value of Close.

func (*BarRecordUpdate) GetHigh

func (s *BarRecordUpdate) GetHigh() float64

GetHigh returns the value of High.

func (*BarRecordUpdate) GetID

func (s *BarRecordUpdate) GetID() int

GetID returns the value of ID.

func (*BarRecordUpdate) GetLow

func (s *BarRecordUpdate) GetLow() float64

GetLow returns the value of Low.

func (*BarRecordUpdate) GetOpen

func (s *BarRecordUpdate) GetOpen() float64

GetOpen returns the value of Open.

func (*BarRecordUpdate) GetTimestamp

func (s *BarRecordUpdate) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*BarRecordUpdate) GetTransactions

func (s *BarRecordUpdate) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*BarRecordUpdate) GetVolume

func (s *BarRecordUpdate) GetVolume() float64

GetVolume returns the value of Volume.

func (*BarRecordUpdate) MarshalJSON

func (s *BarRecordUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarRecordUpdate) SetClose

func (s *BarRecordUpdate) SetClose(val float64)

SetClose sets the value of Close.

func (*BarRecordUpdate) SetHigh

func (s *BarRecordUpdate) SetHigh(val float64)

SetHigh sets the value of High.

func (*BarRecordUpdate) SetID

func (s *BarRecordUpdate) SetID(val int)

SetID sets the value of ID.

func (*BarRecordUpdate) SetLow

func (s *BarRecordUpdate) SetLow(val float64)

SetLow sets the value of Low.

func (*BarRecordUpdate) SetOpen

func (s *BarRecordUpdate) SetOpen(val float64)

SetOpen sets the value of Open.

func (*BarRecordUpdate) SetTimestamp

func (s *BarRecordUpdate) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*BarRecordUpdate) SetTransactions

func (s *BarRecordUpdate) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*BarRecordUpdate) SetVolume

func (s *BarRecordUpdate) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*BarRecordUpdate) UnmarshalJSON

func (s *BarRecordUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarRecordUpdate) Validate

func (s *BarRecordUpdate) Validate() error

type BarTimeRangeCreate

type BarTimeRangeCreate struct {
	ID         int                      `json:"id"`
	Start      time.Time                `json:"start"`
	End        time.Time                `json:"end"`
	Count      int                      `json:"count"`
	IntervalID int                      `json:"interval_id"`
	Status     BarTimeRangeCreateStatus `json:"status"`
	UpdateTime time.Time                `json:"update_time"`
}

Ref: #/components/schemas/BarTimeRangeCreate

func NewBarTimeRangeCreate

func NewBarTimeRangeCreate(e *ent.BarTimeRange) *BarTimeRangeCreate

func NewBarTimeRangeCreates

func NewBarTimeRangeCreates(es []*ent.BarTimeRange) []BarTimeRangeCreate

func (*BarTimeRangeCreate) Decode

func (s *BarTimeRangeCreate) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeCreate from json.

func (*BarTimeRangeCreate) Elem

func (*BarTimeRangeCreate) Encode

func (s *BarTimeRangeCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeCreate) GetCount

func (s *BarTimeRangeCreate) GetCount() int

GetCount returns the value of Count.

func (*BarTimeRangeCreate) GetEnd

func (s *BarTimeRangeCreate) GetEnd() time.Time

GetEnd returns the value of End.

func (*BarTimeRangeCreate) GetID

func (s *BarTimeRangeCreate) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeCreate) GetIntervalID

func (s *BarTimeRangeCreate) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*BarTimeRangeCreate) GetStart

func (s *BarTimeRangeCreate) GetStart() time.Time

GetStart returns the value of Start.

func (*BarTimeRangeCreate) GetStatus

GetStatus returns the value of Status.

func (*BarTimeRangeCreate) GetUpdateTime

func (s *BarTimeRangeCreate) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*BarTimeRangeCreate) MarshalJSON

func (s *BarTimeRangeCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeCreate) SetCount

func (s *BarTimeRangeCreate) SetCount(val int)

SetCount sets the value of Count.

func (*BarTimeRangeCreate) SetEnd

func (s *BarTimeRangeCreate) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*BarTimeRangeCreate) SetID

func (s *BarTimeRangeCreate) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeCreate) SetIntervalID

func (s *BarTimeRangeCreate) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*BarTimeRangeCreate) SetStart

func (s *BarTimeRangeCreate) SetStart(val time.Time)

SetStart sets the value of Start.

func (*BarTimeRangeCreate) SetStatus

func (s *BarTimeRangeCreate) SetStatus(val BarTimeRangeCreateStatus)

SetStatus sets the value of Status.

func (*BarTimeRangeCreate) SetUpdateTime

func (s *BarTimeRangeCreate) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*BarTimeRangeCreate) UnmarshalJSON

func (s *BarTimeRangeCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeCreate) Validate

func (s *BarTimeRangeCreate) Validate() error

type BarTimeRangeCreateStatus

type BarTimeRangeCreateStatus string
const (
	BarTimeRangeCreateStatusPending      BarTimeRangeCreateStatus = "pending"
	BarTimeRangeCreateStatusCreated      BarTimeRangeCreateStatus = "created"
	BarTimeRangeCreateStatusClean        BarTimeRangeCreateStatus = "clean"
	BarTimeRangeCreateStatusConsolidated BarTimeRangeCreateStatus = "consolidated"
)

func (*BarTimeRangeCreateStatus) Decode

func (s *BarTimeRangeCreateStatus) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeCreateStatus from json.

func (BarTimeRangeCreateStatus) Encode

func (s BarTimeRangeCreateStatus) Encode(e *jx.Encoder)

Encode encodes BarTimeRangeCreateStatus as json.

func (BarTimeRangeCreateStatus) MarshalJSON

func (s BarTimeRangeCreateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarTimeRangeCreateStatus) MarshalText

func (s BarTimeRangeCreateStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarTimeRangeCreateStatus) UnmarshalJSON

func (s *BarTimeRangeCreateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeCreateStatus) UnmarshalText

func (s *BarTimeRangeCreateStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarTimeRangeCreateStatus) Validate

func (s BarTimeRangeCreateStatus) Validate() error

type BarTimeRangeGroupsList

type BarTimeRangeGroupsList struct {
	ID          int       `json:"id"`
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/BarTimeRange_GroupsList

func NewBarTimeRangeGroupsList

func NewBarTimeRangeGroupsList(e *ent.BarGroup) *BarTimeRangeGroupsList

func NewBarTimeRangeGroupsLists

func NewBarTimeRangeGroupsLists(es []*ent.BarGroup) []BarTimeRangeGroupsList

func (*BarTimeRangeGroupsList) Decode

func (s *BarTimeRangeGroupsList) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeGroupsList from json.

func (*BarTimeRangeGroupsList) Elem

func (*BarTimeRangeGroupsList) Encode

func (s *BarTimeRangeGroupsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeGroupsList) GetCount

func (s *BarTimeRangeGroupsList) GetCount() int

GetCount returns the value of Count.

func (*BarTimeRangeGroupsList) GetFirst

func (s *BarTimeRangeGroupsList) GetFirst() time.Time

GetFirst returns the value of First.

func (*BarTimeRangeGroupsList) GetID

func (s *BarTimeRangeGroupsList) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeGroupsList) GetLast

func (s *BarTimeRangeGroupsList) GetLast() time.Time

GetLast returns the value of Last.

func (*BarTimeRangeGroupsList) GetTimeRangeID

func (s *BarTimeRangeGroupsList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*BarTimeRangeGroupsList) MarshalJSON

func (s *BarTimeRangeGroupsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeGroupsList) SetCount

func (s *BarTimeRangeGroupsList) SetCount(val int)

SetCount sets the value of Count.

func (*BarTimeRangeGroupsList) SetFirst

func (s *BarTimeRangeGroupsList) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*BarTimeRangeGroupsList) SetID

func (s *BarTimeRangeGroupsList) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeGroupsList) SetLast

func (s *BarTimeRangeGroupsList) SetLast(val time.Time)

SetLast sets the value of Last.

func (*BarTimeRangeGroupsList) SetTimeRangeID

func (s *BarTimeRangeGroupsList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*BarTimeRangeGroupsList) UnmarshalJSON

func (s *BarTimeRangeGroupsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type BarTimeRangeIntervalRead

type BarTimeRangeIntervalRead struct {
	ID           int                              `json:"id"`
	Active       bool                             `json:"active"`
	Interval     BarTimeRangeIntervalReadInterval `json:"interval"`
	StockID      int                              `json:"stock_id"`
	DataSourceID int                              `json:"data_source_id"`
}

Ref: #/components/schemas/BarTimeRange_IntervalRead

func NewBarTimeRangeIntervalRead

func NewBarTimeRangeIntervalRead(e *ent.Interval) *BarTimeRangeIntervalRead

func NewBarTimeRangeIntervalReads

func NewBarTimeRangeIntervalReads(es []*ent.Interval) []BarTimeRangeIntervalRead

func (*BarTimeRangeIntervalRead) Decode

func (s *BarTimeRangeIntervalRead) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeIntervalRead from json.

func (*BarTimeRangeIntervalRead) Elem

func (*BarTimeRangeIntervalRead) Encode

func (s *BarTimeRangeIntervalRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeIntervalRead) GetActive

func (s *BarTimeRangeIntervalRead) GetActive() bool

GetActive returns the value of Active.

func (*BarTimeRangeIntervalRead) GetDataSourceID

func (s *BarTimeRangeIntervalRead) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*BarTimeRangeIntervalRead) GetID

func (s *BarTimeRangeIntervalRead) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeIntervalRead) GetInterval

GetInterval returns the value of Interval.

func (*BarTimeRangeIntervalRead) GetStockID

func (s *BarTimeRangeIntervalRead) GetStockID() int

GetStockID returns the value of StockID.

func (*BarTimeRangeIntervalRead) MarshalJSON

func (s *BarTimeRangeIntervalRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeIntervalRead) SetActive

func (s *BarTimeRangeIntervalRead) SetActive(val bool)

SetActive sets the value of Active.

func (*BarTimeRangeIntervalRead) SetDataSourceID

func (s *BarTimeRangeIntervalRead) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*BarTimeRangeIntervalRead) SetID

func (s *BarTimeRangeIntervalRead) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeIntervalRead) SetInterval

SetInterval sets the value of Interval.

func (*BarTimeRangeIntervalRead) SetStockID

func (s *BarTimeRangeIntervalRead) SetStockID(val int)

SetStockID sets the value of StockID.

func (*BarTimeRangeIntervalRead) UnmarshalJSON

func (s *BarTimeRangeIntervalRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeIntervalRead) Validate

func (s *BarTimeRangeIntervalRead) Validate() error

type BarTimeRangeIntervalReadInterval

type BarTimeRangeIntervalReadInterval string
const (
	BarTimeRangeIntervalReadIntervalTrades  BarTimeRangeIntervalReadInterval = "trades"
	BarTimeRangeIntervalReadInterval1min    BarTimeRangeIntervalReadInterval = "1min"
	BarTimeRangeIntervalReadIntervalDaily   BarTimeRangeIntervalReadInterval = "daily"
	BarTimeRangeIntervalReadIntervalMonthly BarTimeRangeIntervalReadInterval = "monthly"
	BarTimeRangeIntervalReadIntervalYearly  BarTimeRangeIntervalReadInterval = "yearly"
)

func (*BarTimeRangeIntervalReadInterval) Decode

Decode decodes BarTimeRangeIntervalReadInterval from json.

func (BarTimeRangeIntervalReadInterval) Encode

Encode encodes BarTimeRangeIntervalReadInterval as json.

func (BarTimeRangeIntervalReadInterval) MarshalJSON

func (s BarTimeRangeIntervalReadInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarTimeRangeIntervalReadInterval) MarshalText

func (s BarTimeRangeIntervalReadInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarTimeRangeIntervalReadInterval) UnmarshalJSON

func (s *BarTimeRangeIntervalReadInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeIntervalReadInterval) UnmarshalText

func (s *BarTimeRangeIntervalReadInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarTimeRangeIntervalReadInterval) Validate

type BarTimeRangeList

type BarTimeRangeList struct {
	ID         int                    `json:"id"`
	Start      time.Time              `json:"start"`
	End        time.Time              `json:"end"`
	Count      int                    `json:"count"`
	IntervalID int                    `json:"interval_id"`
	Status     BarTimeRangeListStatus `json:"status"`
	UpdateTime time.Time              `json:"update_time"`
}

Ref: #/components/schemas/BarTimeRangeList

func NewBarTimeRangeList

func NewBarTimeRangeList(e *ent.BarTimeRange) *BarTimeRangeList

func NewBarTimeRangeLists

func NewBarTimeRangeLists(es []*ent.BarTimeRange) []BarTimeRangeList

func (*BarTimeRangeList) Decode

func (s *BarTimeRangeList) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeList from json.

func (*BarTimeRangeList) Elem

func (btr *BarTimeRangeList) Elem() BarTimeRangeList

func (*BarTimeRangeList) Encode

func (s *BarTimeRangeList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeList) GetCount

func (s *BarTimeRangeList) GetCount() int

GetCount returns the value of Count.

func (*BarTimeRangeList) GetEnd

func (s *BarTimeRangeList) GetEnd() time.Time

GetEnd returns the value of End.

func (*BarTimeRangeList) GetID

func (s *BarTimeRangeList) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeList) GetIntervalID

func (s *BarTimeRangeList) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*BarTimeRangeList) GetStart

func (s *BarTimeRangeList) GetStart() time.Time

GetStart returns the value of Start.

func (*BarTimeRangeList) GetStatus

GetStatus returns the value of Status.

func (*BarTimeRangeList) GetUpdateTime

func (s *BarTimeRangeList) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*BarTimeRangeList) MarshalJSON

func (s *BarTimeRangeList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeList) SetCount

func (s *BarTimeRangeList) SetCount(val int)

SetCount sets the value of Count.

func (*BarTimeRangeList) SetEnd

func (s *BarTimeRangeList) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*BarTimeRangeList) SetID

func (s *BarTimeRangeList) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeList) SetIntervalID

func (s *BarTimeRangeList) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*BarTimeRangeList) SetStart

func (s *BarTimeRangeList) SetStart(val time.Time)

SetStart sets the value of Start.

func (*BarTimeRangeList) SetStatus

func (s *BarTimeRangeList) SetStatus(val BarTimeRangeListStatus)

SetStatus sets the value of Status.

func (*BarTimeRangeList) SetUpdateTime

func (s *BarTimeRangeList) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*BarTimeRangeList) UnmarshalJSON

func (s *BarTimeRangeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeList) Validate

func (s *BarTimeRangeList) Validate() error

type BarTimeRangeListStatus

type BarTimeRangeListStatus string
const (
	BarTimeRangeListStatusPending      BarTimeRangeListStatus = "pending"
	BarTimeRangeListStatusCreated      BarTimeRangeListStatus = "created"
	BarTimeRangeListStatusClean        BarTimeRangeListStatus = "clean"
	BarTimeRangeListStatusConsolidated BarTimeRangeListStatus = "consolidated"
)

func (*BarTimeRangeListStatus) Decode

func (s *BarTimeRangeListStatus) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeListStatus from json.

func (BarTimeRangeListStatus) Encode

func (s BarTimeRangeListStatus) Encode(e *jx.Encoder)

Encode encodes BarTimeRangeListStatus as json.

func (BarTimeRangeListStatus) MarshalJSON

func (s BarTimeRangeListStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarTimeRangeListStatus) MarshalText

func (s BarTimeRangeListStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarTimeRangeListStatus) UnmarshalJSON

func (s *BarTimeRangeListStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeListStatus) UnmarshalText

func (s *BarTimeRangeListStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarTimeRangeListStatus) Validate

func (s BarTimeRangeListStatus) Validate() error

type BarTimeRangeRead

type BarTimeRangeRead struct {
	ID         int                    `json:"id"`
	Start      time.Time              `json:"start"`
	End        time.Time              `json:"end"`
	Count      int                    `json:"count"`
	IntervalID int                    `json:"interval_id"`
	Status     BarTimeRangeReadStatus `json:"status"`
	UpdateTime time.Time              `json:"update_time"`
}

Ref: #/components/schemas/BarTimeRangeRead

func NewBarTimeRangeRead

func NewBarTimeRangeRead(e *ent.BarTimeRange) *BarTimeRangeRead

func NewBarTimeRangeReads

func NewBarTimeRangeReads(es []*ent.BarTimeRange) []BarTimeRangeRead

func (*BarTimeRangeRead) Decode

func (s *BarTimeRangeRead) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeRead from json.

func (*BarTimeRangeRead) Elem

func (btr *BarTimeRangeRead) Elem() BarTimeRangeRead

func (*BarTimeRangeRead) Encode

func (s *BarTimeRangeRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeRead) GetCount

func (s *BarTimeRangeRead) GetCount() int

GetCount returns the value of Count.

func (*BarTimeRangeRead) GetEnd

func (s *BarTimeRangeRead) GetEnd() time.Time

GetEnd returns the value of End.

func (*BarTimeRangeRead) GetID

func (s *BarTimeRangeRead) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeRead) GetIntervalID

func (s *BarTimeRangeRead) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*BarTimeRangeRead) GetStart

func (s *BarTimeRangeRead) GetStart() time.Time

GetStart returns the value of Start.

func (*BarTimeRangeRead) GetStatus

GetStatus returns the value of Status.

func (*BarTimeRangeRead) GetUpdateTime

func (s *BarTimeRangeRead) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*BarTimeRangeRead) MarshalJSON

func (s *BarTimeRangeRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeRead) SetCount

func (s *BarTimeRangeRead) SetCount(val int)

SetCount sets the value of Count.

func (*BarTimeRangeRead) SetEnd

func (s *BarTimeRangeRead) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*BarTimeRangeRead) SetID

func (s *BarTimeRangeRead) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeRead) SetIntervalID

func (s *BarTimeRangeRead) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*BarTimeRangeRead) SetStart

func (s *BarTimeRangeRead) SetStart(val time.Time)

SetStart sets the value of Start.

func (*BarTimeRangeRead) SetStatus

func (s *BarTimeRangeRead) SetStatus(val BarTimeRangeReadStatus)

SetStatus sets the value of Status.

func (*BarTimeRangeRead) SetUpdateTime

func (s *BarTimeRangeRead) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*BarTimeRangeRead) UnmarshalJSON

func (s *BarTimeRangeRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeRead) Validate

func (s *BarTimeRangeRead) Validate() error

type BarTimeRangeReadStatus

type BarTimeRangeReadStatus string
const (
	BarTimeRangeReadStatusPending      BarTimeRangeReadStatus = "pending"
	BarTimeRangeReadStatusCreated      BarTimeRangeReadStatus = "created"
	BarTimeRangeReadStatusClean        BarTimeRangeReadStatus = "clean"
	BarTimeRangeReadStatusConsolidated BarTimeRangeReadStatus = "consolidated"
)

func (*BarTimeRangeReadStatus) Decode

func (s *BarTimeRangeReadStatus) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeReadStatus from json.

func (BarTimeRangeReadStatus) Encode

func (s BarTimeRangeReadStatus) Encode(e *jx.Encoder)

Encode encodes BarTimeRangeReadStatus as json.

func (BarTimeRangeReadStatus) MarshalJSON

func (s BarTimeRangeReadStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarTimeRangeReadStatus) MarshalText

func (s BarTimeRangeReadStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarTimeRangeReadStatus) UnmarshalJSON

func (s *BarTimeRangeReadStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeReadStatus) UnmarshalText

func (s *BarTimeRangeReadStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarTimeRangeReadStatus) Validate

func (s BarTimeRangeReadStatus) Validate() error

type BarTimeRangeUpdate

type BarTimeRangeUpdate struct {
	ID         int                      `json:"id"`
	Start      time.Time                `json:"start"`
	End        time.Time                `json:"end"`
	Count      int                      `json:"count"`
	IntervalID int                      `json:"interval_id"`
	Status     BarTimeRangeUpdateStatus `json:"status"`
	UpdateTime time.Time                `json:"update_time"`
}

Ref: #/components/schemas/BarTimeRangeUpdate

func NewBarTimeRangeUpdate

func NewBarTimeRangeUpdate(e *ent.BarTimeRange) *BarTimeRangeUpdate

func NewBarTimeRangeUpdates

func NewBarTimeRangeUpdates(es []*ent.BarTimeRange) []BarTimeRangeUpdate

func (*BarTimeRangeUpdate) Decode

func (s *BarTimeRangeUpdate) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeUpdate from json.

func (*BarTimeRangeUpdate) Elem

func (*BarTimeRangeUpdate) Encode

func (s *BarTimeRangeUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*BarTimeRangeUpdate) GetCount

func (s *BarTimeRangeUpdate) GetCount() int

GetCount returns the value of Count.

func (*BarTimeRangeUpdate) GetEnd

func (s *BarTimeRangeUpdate) GetEnd() time.Time

GetEnd returns the value of End.

func (*BarTimeRangeUpdate) GetID

func (s *BarTimeRangeUpdate) GetID() int

GetID returns the value of ID.

func (*BarTimeRangeUpdate) GetIntervalID

func (s *BarTimeRangeUpdate) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*BarTimeRangeUpdate) GetStart

func (s *BarTimeRangeUpdate) GetStart() time.Time

GetStart returns the value of Start.

func (*BarTimeRangeUpdate) GetStatus

GetStatus returns the value of Status.

func (*BarTimeRangeUpdate) GetUpdateTime

func (s *BarTimeRangeUpdate) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*BarTimeRangeUpdate) MarshalJSON

func (s *BarTimeRangeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*BarTimeRangeUpdate) SetCount

func (s *BarTimeRangeUpdate) SetCount(val int)

SetCount sets the value of Count.

func (*BarTimeRangeUpdate) SetEnd

func (s *BarTimeRangeUpdate) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*BarTimeRangeUpdate) SetID

func (s *BarTimeRangeUpdate) SetID(val int)

SetID sets the value of ID.

func (*BarTimeRangeUpdate) SetIntervalID

func (s *BarTimeRangeUpdate) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*BarTimeRangeUpdate) SetStart

func (s *BarTimeRangeUpdate) SetStart(val time.Time)

SetStart sets the value of Start.

func (*BarTimeRangeUpdate) SetStatus

func (s *BarTimeRangeUpdate) SetStatus(val BarTimeRangeUpdateStatus)

SetStatus sets the value of Status.

func (*BarTimeRangeUpdate) SetUpdateTime

func (s *BarTimeRangeUpdate) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*BarTimeRangeUpdate) UnmarshalJSON

func (s *BarTimeRangeUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeUpdate) Validate

func (s *BarTimeRangeUpdate) Validate() error

type BarTimeRangeUpdateStatus

type BarTimeRangeUpdateStatus string
const (
	BarTimeRangeUpdateStatusPending      BarTimeRangeUpdateStatus = "pending"
	BarTimeRangeUpdateStatusCreated      BarTimeRangeUpdateStatus = "created"
	BarTimeRangeUpdateStatusClean        BarTimeRangeUpdateStatus = "clean"
	BarTimeRangeUpdateStatusConsolidated BarTimeRangeUpdateStatus = "consolidated"
)

func (*BarTimeRangeUpdateStatus) Decode

func (s *BarTimeRangeUpdateStatus) Decode(d *jx.Decoder) error

Decode decodes BarTimeRangeUpdateStatus from json.

func (BarTimeRangeUpdateStatus) Encode

func (s BarTimeRangeUpdateStatus) Encode(e *jx.Encoder)

Encode encodes BarTimeRangeUpdateStatus as json.

func (BarTimeRangeUpdateStatus) MarshalJSON

func (s BarTimeRangeUpdateStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (BarTimeRangeUpdateStatus) MarshalText

func (s BarTimeRangeUpdateStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*BarTimeRangeUpdateStatus) UnmarshalJSON

func (s *BarTimeRangeUpdateStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*BarTimeRangeUpdateStatus) UnmarshalText

func (s *BarTimeRangeUpdateStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (BarTimeRangeUpdateStatus) Validate

func (s BarTimeRangeUpdateStatus) Validate() error

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, opts ...ClientOption) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) AddTicker

func (c *Client) AddTicker(ctx context.Context, params AddTickerParams) error

AddTicker invokes addTicker operation.

Queue for adding entities by ticker.

POST /rest/entities/add/{ticker}

func (*Client) CreateBarGroup

func (c *Client) CreateBarGroup(ctx context.Context, request *CreateBarGroupReq) (CreateBarGroupRes, error)

CreateBarGroup invokes createBarGroup operation.

Creates a new BarGroup and persists it to storage.

POST /rest/bar-groups

func (*Client) CreateBarRecord

func (c *Client) CreateBarRecord(ctx context.Context, request *CreateBarRecordReq) (CreateBarRecordRes, error)

CreateBarRecord invokes createBarRecord operation.

Creates a new BarRecord and persists it to storage.

POST /rest/bar-records

func (*Client) CreateBarTimeRange

func (c *Client) CreateBarTimeRange(ctx context.Context, request *CreateBarTimeRangeReq) (CreateBarTimeRangeRes, error)

CreateBarTimeRange invokes createBarTimeRange operation.

Creates a new BarTimeRange and persists it to storage.

POST /rest/bar-time-ranges

func (*Client) CreateDataSource

func (c *Client) CreateDataSource(ctx context.Context, request *CreateDataSourceReq) (CreateDataSourceRes, error)

CreateDataSource invokes createDataSource operation.

Creates a new DataSource and persists it to storage.

POST /rest/data-sources

func (*Client) CreateDividend

func (c *Client) CreateDividend(ctx context.Context, request *CreateDividendReq) (CreateDividendRes, error)

CreateDividend invokes createDividend operation.

Creates a new Dividend and persists it to storage.

POST /rest/dividends

func (*Client) CreateEntity

func (c *Client) CreateEntity(ctx context.Context, request *CreateEntityReq) (CreateEntityRes, error)

CreateEntity invokes createEntity operation.

Creates a new Entity and persists it to storage.

POST /rest/entities

func (*Client) CreateExchange

func (c *Client) CreateExchange(ctx context.Context, request *CreateExchangeReq) (CreateExchangeRes, error)

CreateExchange invokes createExchange operation.

Creates a new Exchange and persists it to storage.

POST /rest/exchanges

func (*Client) CreateFinancial

func (c *Client) CreateFinancial(ctx context.Context, request *CreateFinancialReq) (CreateFinancialRes, error)

CreateFinancial invokes createFinancial operation.

Creates a new Financial and persists it to storage.

POST /rest/financials

func (*Client) CreateInterval

func (c *Client) CreateInterval(ctx context.Context, request *CreateIntervalReq) (CreateIntervalRes, error)

CreateInterval invokes createInterval operation.

Creates a new Interval and persists it to storage.

POST /rest/intervals

func (*Client) CreateMarketHours

func (c *Client) CreateMarketHours(ctx context.Context, request *CreateMarketHoursReq) (CreateMarketHoursRes, error)

CreateMarketHours invokes createMarketHours operation.

Creates a new MarketHours and persists it to storage.

POST /rest/market-hours

func (*Client) CreateMarketInfo

func (c *Client) CreateMarketInfo(ctx context.Context, request *CreateMarketInfoReq) (CreateMarketInfoRes, error)

CreateMarketInfo invokes createMarketInfo operation.

Creates a new MarketInfo and persists it to storage.

POST /rest/market-infos

func (*Client) CreateSplit

func (c *Client) CreateSplit(ctx context.Context, request *CreateSplitReq) (CreateSplitRes, error)

CreateSplit invokes createSplit operation.

Creates a new Split and persists it to storage.

POST /rest/splits

func (*Client) CreateTradeCondition

func (c *Client) CreateTradeCondition(ctx context.Context, request *CreateTradeConditionReq) (CreateTradeConditionRes, error)

CreateTradeCondition invokes createTradeCondition operation.

Creates a new TradeCondition and persists it to storage.

POST /rest/trade-conditions

func (*Client) CreateTradeCorrection

func (c *Client) CreateTradeCorrection(ctx context.Context, request *CreateTradeCorrectionReq) (CreateTradeCorrectionRes, error)

CreateTradeCorrection invokes createTradeCorrection operation.

Creates a new TradeCorrection and persists it to storage.

POST /rest/trade-corrections

func (*Client) CreateTradeRecord

func (c *Client) CreateTradeRecord(ctx context.Context, request *CreateTradeRecordReq) (CreateTradeRecordRes, error)

CreateTradeRecord invokes createTradeRecord operation.

Creates a new TradeRecord and persists it to storage.

POST /rest/trade-records

func (*Client) CreateTradeTimeRange

func (c *Client) CreateTradeTimeRange(ctx context.Context, request *CreateTradeTimeRangeReq) (CreateTradeTimeRangeRes, error)

CreateTradeTimeRange invokes createTradeTimeRange operation.

Creates a new TradeTimeRange and persists it to storage.

POST /rest/trade-time-ranges

func (*Client) DeleteBarGroup

func (c *Client) DeleteBarGroup(ctx context.Context, params DeleteBarGroupParams) (DeleteBarGroupRes, error)

DeleteBarGroup invokes deleteBarGroup operation.

Deletes the BarGroup with the requested ID.

DELETE /rest/bar-groups/{id}

func (*Client) DeleteBarRecord

func (c *Client) DeleteBarRecord(ctx context.Context, params DeleteBarRecordParams) (DeleteBarRecordRes, error)

DeleteBarRecord invokes deleteBarRecord operation.

Deletes the BarRecord with the requested ID.

DELETE /rest/bar-records/{id}

func (*Client) DeleteBarTimeRange

func (c *Client) DeleteBarTimeRange(ctx context.Context, params DeleteBarTimeRangeParams) (DeleteBarTimeRangeRes, error)

DeleteBarTimeRange invokes deleteBarTimeRange operation.

Deletes the BarTimeRange with the requested ID.

DELETE /rest/bar-time-ranges/{id}

func (*Client) DeleteDataSource

func (c *Client) DeleteDataSource(ctx context.Context, params DeleteDataSourceParams) (DeleteDataSourceRes, error)

DeleteDataSource invokes deleteDataSource operation.

Deletes the DataSource with the requested ID.

DELETE /rest/data-sources/{id}

func (*Client) DeleteDividend

func (c *Client) DeleteDividend(ctx context.Context, params DeleteDividendParams) (DeleteDividendRes, error)

DeleteDividend invokes deleteDividend operation.

Deletes the Dividend with the requested ID.

DELETE /rest/dividends/{id}

func (*Client) DeleteEntity

func (c *Client) DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)

DeleteEntity invokes deleteEntity operation.

Deletes the Entity with the requested ID.

DELETE /rest/entities/{id}

func (*Client) DeleteExchange

func (c *Client) DeleteExchange(ctx context.Context, params DeleteExchangeParams) (DeleteExchangeRes, error)

DeleteExchange invokes deleteExchange operation.

Deletes the Exchange with the requested ID.

DELETE /rest/exchanges/{id}

func (*Client) DeleteFinancial

func (c *Client) DeleteFinancial(ctx context.Context, params DeleteFinancialParams) (DeleteFinancialRes, error)

DeleteFinancial invokes deleteFinancial operation.

Deletes the Financial with the requested ID.

DELETE /rest/financials/{id}

func (*Client) DeleteInterval

func (c *Client) DeleteInterval(ctx context.Context, params DeleteIntervalParams) (DeleteIntervalRes, error)

DeleteInterval invokes deleteInterval operation.

Deletes the Interval with the requested ID.

DELETE /rest/intervals/{id}

func (*Client) DeleteMarketHours

func (c *Client) DeleteMarketHours(ctx context.Context, params DeleteMarketHoursParams) (DeleteMarketHoursRes, error)

DeleteMarketHours invokes deleteMarketHours operation.

Deletes the MarketHours with the requested ID.

DELETE /rest/market-hours/{id}

func (*Client) DeleteMarketInfo

func (c *Client) DeleteMarketInfo(ctx context.Context, params DeleteMarketInfoParams) (DeleteMarketInfoRes, error)

DeleteMarketInfo invokes deleteMarketInfo operation.

Deletes the MarketInfo with the requested ID.

DELETE /rest/market-infos/{id}

func (*Client) DeleteSplit

func (c *Client) DeleteSplit(ctx context.Context, params DeleteSplitParams) (DeleteSplitRes, error)

DeleteSplit invokes deleteSplit operation.

Deletes the Split with the requested ID.

DELETE /rest/splits/{id}

func (*Client) DeleteTradeCondition

func (c *Client) DeleteTradeCondition(ctx context.Context, params DeleteTradeConditionParams) (DeleteTradeConditionRes, error)

DeleteTradeCondition invokes deleteTradeCondition operation.

Deletes the TradeCondition with the requested ID.

DELETE /rest/trade-conditions/{id}

func (*Client) DeleteTradeCorrection

func (c *Client) DeleteTradeCorrection(ctx context.Context, params DeleteTradeCorrectionParams) (DeleteTradeCorrectionRes, error)

DeleteTradeCorrection invokes deleteTradeCorrection operation.

Deletes the TradeCorrection with the requested ID.

DELETE /rest/trade-corrections/{id}

func (*Client) DeleteTradeRecord

func (c *Client) DeleteTradeRecord(ctx context.Context, params DeleteTradeRecordParams) (DeleteTradeRecordRes, error)

DeleteTradeRecord invokes deleteTradeRecord operation.

Deletes the TradeRecord with the requested ID.

DELETE /rest/trade-records/{id}

func (*Client) DeleteTradeTimeRange

func (c *Client) DeleteTradeTimeRange(ctx context.Context, params DeleteTradeTimeRangeParams) (DeleteTradeTimeRangeRes, error)

DeleteTradeTimeRange invokes deleteTradeTimeRange operation.

Deletes the TradeTimeRange with the requested ID.

DELETE /rest/trade-time-ranges/{id}

func (*Client) ListBarGroup

func (c *Client) ListBarGroup(ctx context.Context, params ListBarGroupParams) (ListBarGroupRes, error)

ListBarGroup invokes listBarGroup operation.

List BarGroups.

GET /rest/bar-groups

func (*Client) ListBarGroupRecords

func (c *Client) ListBarGroupRecords(ctx context.Context, params ListBarGroupRecordsParams) (ListBarGroupRecordsRes, error)

ListBarGroupRecords invokes listBarGroupRecords operation.

List attached Records.

GET /rest/bar-groups/{id}/records

func (*Client) ListBarRecord

func (c *Client) ListBarRecord(ctx context.Context, params ListBarRecordParams) (ListBarRecordRes, error)

ListBarRecord invokes listBarRecord operation.

List BarRecords.

GET /rest/bar-records

func (*Client) ListBarTimeRange

func (c *Client) ListBarTimeRange(ctx context.Context, params ListBarTimeRangeParams) (ListBarTimeRangeRes, error)

ListBarTimeRange invokes listBarTimeRange operation.

List BarTimeRanges.

GET /rest/bar-time-ranges

func (*Client) ListBarTimeRangeGroups

func (c *Client) ListBarTimeRangeGroups(ctx context.Context, params ListBarTimeRangeGroupsParams) (ListBarTimeRangeGroupsRes, error)

ListBarTimeRangeGroups invokes listBarTimeRangeGroups operation.

List attached Groups.

GET /rest/bar-time-ranges/{id}/groups

func (*Client) ListDataSource

func (c *Client) ListDataSource(ctx context.Context, params ListDataSourceParams) (ListDataSourceRes, error)

ListDataSource invokes listDataSource operation.

List DataSources.

GET /rest/data-sources

func (*Client) ListDataSourceIntervals

func (c *Client) ListDataSourceIntervals(ctx context.Context, params ListDataSourceIntervalsParams) (ListDataSourceIntervalsRes, error)

ListDataSourceIntervals invokes listDataSourceIntervals operation.

List attached Intervals.

GET /rest/data-sources/{id}/intervals

func (*Client) ListDividend

func (c *Client) ListDividend(ctx context.Context, params ListDividendParams) (ListDividendRes, error)

ListDividend invokes listDividend operation.

List Dividends.

GET /rest/dividends

func (*Client) ListDividendStock

func (c *Client) ListDividendStock(ctx context.Context, params ListDividendStockParams) (ListDividendStockRes, error)

ListDividendStock invokes listDividendStock operation.

List attached Stocks.

GET /rest/dividends/{id}/stock

func (*Client) ListEntity

func (c *Client) ListEntity(ctx context.Context, params ListEntityParams) (ListEntityRes, error)

ListEntity invokes listEntity operation.

List Entities.

GET /rest/entities

func (*Client) ListEntityDividends

func (c *Client) ListEntityDividends(ctx context.Context, params ListEntityDividendsParams) (ListEntityDividendsRes, error)

ListEntityDividends invokes listEntityDividends operation.

List attached Dividends.

GET /rest/entities/{id}/dividends

func (*Client) ListEntityExchanges

func (c *Client) ListEntityExchanges(ctx context.Context, params ListEntityExchangesParams) (ListEntityExchangesRes, error)

ListEntityExchanges invokes listEntityExchanges operation.

List attached Exchanges.

GET /rest/entities/{id}/exchanges

func (*Client) ListEntityFinancials

func (c *Client) ListEntityFinancials(ctx context.Context, params ListEntityFinancialsParams) (ListEntityFinancialsRes, error)

ListEntityFinancials invokes listEntityFinancials operation.

List attached Financials.

GET /rest/entities/{id}/financials

func (*Client) ListEntityIntervals

func (c *Client) ListEntityIntervals(ctx context.Context, params ListEntityIntervalsParams) (ListEntityIntervalsRes, error)

ListEntityIntervals invokes listEntityIntervals operation.

List attached Intervals.

GET /rest/entities/{id}/intervals

func (*Client) ListEntitySplits

func (c *Client) ListEntitySplits(ctx context.Context, params ListEntitySplitsParams) (ListEntitySplitsRes, error)

ListEntitySplits invokes listEntitySplits operation.

List attached Splits.

GET /rest/entities/{id}/splits

func (*Client) ListExchange

func (c *Client) ListExchange(ctx context.Context, params ListExchangeParams) (ListExchangeRes, error)

ListExchange invokes listExchange operation.

List Exchanges.

GET /rest/exchanges

func (*Client) ListExchangeStocks

func (c *Client) ListExchangeStocks(ctx context.Context, params ListExchangeStocksParams) (ListExchangeStocksRes, error)

ListExchangeStocks invokes listExchangeStocks operation.

List attached Stocks.

GET /rest/exchanges/{id}/stocks

func (*Client) ListFinancial

func (c *Client) ListFinancial(ctx context.Context, params ListFinancialParams) (ListFinancialRes, error)

ListFinancial invokes listFinancial operation.

List Financials.

GET /rest/financials

func (*Client) ListFinancialStock

func (c *Client) ListFinancialStock(ctx context.Context, params ListFinancialStockParams) (ListFinancialStockRes, error)

ListFinancialStock invokes listFinancialStock operation.

List attached Stocks.

GET /rest/financials/{id}/stock

func (*Client) ListInterval

func (c *Client) ListInterval(ctx context.Context, params ListIntervalParams) (ListIntervalRes, error)

ListInterval invokes listInterval operation.

List Intervals.

GET /rest/intervals

func (*Client) ListIntervalBars

func (c *Client) ListIntervalBars(ctx context.Context, params ListIntervalBarsParams) (ListIntervalBarsRes, error)

ListIntervalBars invokes listIntervalBars operation.

List attached Bars.

GET /rest/intervals/{id}/bars

func (*Client) ListIntervalTrades

func (c *Client) ListIntervalTrades(ctx context.Context, params ListIntervalTradesParams) (ListIntervalTradesRes, error)

ListIntervalTrades invokes listIntervalTrades operation.

List attached Trades.

GET /rest/intervals/{id}/trades

func (*Client) ListMarketHours

func (c *Client) ListMarketHours(ctx context.Context, params ListMarketHoursParams) (ListMarketHoursRes, error)

ListMarketHours invokes listMarketHours operation.

List MarketHours.

GET /rest/market-hours

func (*Client) ListMarketInfo

func (c *Client) ListMarketInfo(ctx context.Context, params ListMarketInfoParams) (ListMarketInfoRes, error)

ListMarketInfo invokes listMarketInfo operation.

List MarketInfos.

GET /rest/market-infos

func (*Client) ListMarketInfoHours

func (c *Client) ListMarketInfoHours(ctx context.Context, params ListMarketInfoHoursParams) (ListMarketInfoHoursRes, error)

ListMarketInfoHours invokes listMarketInfoHours operation.

List attached Hours.

GET /rest/market-infos/{id}/hours

func (*Client) ListSplit

func (c *Client) ListSplit(ctx context.Context, params ListSplitParams) (ListSplitRes, error)

ListSplit invokes listSplit operation.

List Splits.

GET /rest/splits

func (*Client) ListTradeCondition

func (c *Client) ListTradeCondition(ctx context.Context, params ListTradeConditionParams) (ListTradeConditionRes, error)

ListTradeCondition invokes listTradeCondition operation.

List TradeConditions.

GET /rest/trade-conditions

func (*Client) ListTradeConditionRecord

func (c *Client) ListTradeConditionRecord(ctx context.Context, params ListTradeConditionRecordParams) (ListTradeConditionRecordRes, error)

ListTradeConditionRecord invokes listTradeConditionRecord operation.

List attached Records.

GET /rest/trade-conditions/{id}/record

func (*Client) ListTradeCorrection

func (c *Client) ListTradeCorrection(ctx context.Context, params ListTradeCorrectionParams) (ListTradeCorrectionRes, error)

ListTradeCorrection invokes listTradeCorrection operation.

List TradeCorrections.

GET /rest/trade-corrections

func (*Client) ListTradeCorrectionRecord

func (c *Client) ListTradeCorrectionRecord(ctx context.Context, params ListTradeCorrectionRecordParams) (ListTradeCorrectionRecordRes, error)

ListTradeCorrectionRecord invokes listTradeCorrectionRecord operation.

List attached Records.

GET /rest/trade-corrections/{id}/record

func (*Client) ListTradeRecord

func (c *Client) ListTradeRecord(ctx context.Context, params ListTradeRecordParams) (ListTradeRecordRes, error)

ListTradeRecord invokes listTradeRecord operation.

List TradeRecords.

GET /rest/trade-records

func (*Client) ListTradeRecordConditions

func (c *Client) ListTradeRecordConditions(ctx context.Context, params ListTradeRecordConditionsParams) (ListTradeRecordConditionsRes, error)

ListTradeRecordConditions invokes listTradeRecordConditions operation.

List attached Conditions.

GET /rest/trade-records/{id}/conditions

func (*Client) ListTradeRecordCorrection

func (c *Client) ListTradeRecordCorrection(ctx context.Context, params ListTradeRecordCorrectionParams) (ListTradeRecordCorrectionRes, error)

ListTradeRecordCorrection invokes listTradeRecordCorrection operation.

List attached Corrections.

GET /rest/trade-records/{id}/correction

func (*Client) ListTradeRecordExchange

func (c *Client) ListTradeRecordExchange(ctx context.Context, params ListTradeRecordExchangeParams) (ListTradeRecordExchangeRes, error)

ListTradeRecordExchange invokes listTradeRecordExchange operation.

List attached Exchanges.

GET /rest/trade-records/{id}/exchange

func (*Client) ListTradeTimeRange

func (c *Client) ListTradeTimeRange(ctx context.Context, params ListTradeTimeRangeParams) (ListTradeTimeRangeRes, error)

ListTradeTimeRange invokes listTradeTimeRange operation.

List TradeTimeRanges.

GET /rest/trade-time-ranges

func (*Client) ListTradeTimeRangeRecords

func (c *Client) ListTradeTimeRangeRecords(ctx context.Context, params ListTradeTimeRangeRecordsParams) (ListTradeTimeRangeRecordsRes, error)

ListTradeTimeRangeRecords invokes listTradeTimeRangeRecords operation.

List attached Records.

GET /rest/trade-time-ranges/{id}/records

func (*Client) ReadBarGroup

func (c *Client) ReadBarGroup(ctx context.Context, params ReadBarGroupParams) (ReadBarGroupRes, error)

ReadBarGroup invokes readBarGroup operation.

Finds the BarGroup with the requested ID and returns it.

GET /rest/bar-groups/{id}

func (*Client) ReadBarGroupTimeRange

func (c *Client) ReadBarGroupTimeRange(ctx context.Context, params ReadBarGroupTimeRangeParams) (ReadBarGroupTimeRangeRes, error)

ReadBarGroupTimeRange invokes readBarGroupTimeRange operation.

Find the attached BarTimeRange of the BarGroup with the given ID.

GET /rest/bar-groups/{id}/time-range

func (*Client) ReadBarRecord

func (c *Client) ReadBarRecord(ctx context.Context, params ReadBarRecordParams) (ReadBarRecordRes, error)

ReadBarRecord invokes readBarRecord operation.

Finds the BarRecord with the requested ID and returns it.

GET /rest/bar-records/{id}

func (*Client) ReadBarRecordGroup

func (c *Client) ReadBarRecordGroup(ctx context.Context, params ReadBarRecordGroupParams) (ReadBarRecordGroupRes, error)

ReadBarRecordGroup invokes readBarRecordGroup operation.

Find the attached BarGroup of the BarRecord with the given ID.

GET /rest/bar-records/{id}/group

func (*Client) ReadBarTimeRange

func (c *Client) ReadBarTimeRange(ctx context.Context, params ReadBarTimeRangeParams) (ReadBarTimeRangeRes, error)

ReadBarTimeRange invokes readBarTimeRange operation.

Finds the BarTimeRange with the requested ID and returns it.

GET /rest/bar-time-ranges/{id}

func (*Client) ReadBarTimeRangeInterval

func (c *Client) ReadBarTimeRangeInterval(ctx context.Context, params ReadBarTimeRangeIntervalParams) (ReadBarTimeRangeIntervalRes, error)

ReadBarTimeRangeInterval invokes readBarTimeRangeInterval operation.

Find the attached Interval of the BarTimeRange with the given ID.

GET /rest/bar-time-ranges/{id}/interval

func (*Client) ReadDataSource

func (c *Client) ReadDataSource(ctx context.Context, params ReadDataSourceParams) (ReadDataSourceRes, error)

ReadDataSource invokes readDataSource operation.

Finds the DataSource with the requested ID and returns it.

GET /rest/data-sources/{id}

func (*Client) ReadDividend

func (c *Client) ReadDividend(ctx context.Context, params ReadDividendParams) (ReadDividendRes, error)

ReadDividend invokes readDividend operation.

Finds the Dividend with the requested ID and returns it.

GET /rest/dividends/{id}

func (*Client) ReadEntity

func (c *Client) ReadEntity(ctx context.Context, params ReadEntityParams) (ReadEntityRes, error)

ReadEntity invokes readEntity operation.

Finds the Entity with the requested ID and returns it.

GET /rest/entities/{id}

func (*Client) ReadExchange

func (c *Client) ReadExchange(ctx context.Context, params ReadExchangeParams) (ReadExchangeRes, error)

ReadExchange invokes readExchange operation.

Finds the Exchange with the requested ID and returns it.

GET /rest/exchanges/{id}

func (*Client) ReadFinancial

func (c *Client) ReadFinancial(ctx context.Context, params ReadFinancialParams) (ReadFinancialRes, error)

ReadFinancial invokes readFinancial operation.

Finds the Financial with the requested ID and returns it.

GET /rest/financials/{id}

func (*Client) ReadInterval

func (c *Client) ReadInterval(ctx context.Context, params ReadIntervalParams) (ReadIntervalRes, error)

ReadInterval invokes readInterval operation.

Finds the Interval with the requested ID and returns it.

GET /rest/intervals/{id}

func (*Client) ReadIntervalDataSource

func (c *Client) ReadIntervalDataSource(ctx context.Context, params ReadIntervalDataSourceParams) (ReadIntervalDataSourceRes, error)

ReadIntervalDataSource invokes readIntervalDataSource operation.

Find the attached DataSource of the Interval with the given ID.

GET /rest/intervals/{id}/data-source

func (*Client) ReadIntervalStock

func (c *Client) ReadIntervalStock(ctx context.Context, params ReadIntervalStockParams) (ReadIntervalStockRes, error)

ReadIntervalStock invokes readIntervalStock operation.

Find the attached Entity of the Interval with the given ID.

GET /rest/intervals/{id}/stock

func (*Client) ReadMarketHours

func (c *Client) ReadMarketHours(ctx context.Context, params ReadMarketHoursParams) (ReadMarketHoursRes, error)

ReadMarketHours invokes readMarketHours operation.

Finds the MarketHours with the requested ID and returns it.

GET /rest/market-hours/{id}

func (*Client) ReadMarketHoursMarketInfo

func (c *Client) ReadMarketHoursMarketInfo(ctx context.Context, params ReadMarketHoursMarketInfoParams) (ReadMarketHoursMarketInfoRes, error)

ReadMarketHoursMarketInfo invokes readMarketHoursMarketInfo operation.

Find the attached MarketInfo of the MarketHours with the given ID.

GET /rest/market-hours/{id}/market-info

func (*Client) ReadMarketInfo

func (c *Client) ReadMarketInfo(ctx context.Context, params ReadMarketInfoParams) (ReadMarketInfoRes, error)

ReadMarketInfo invokes readMarketInfo operation.

Finds the MarketInfo with the requested ID and returns it.

GET /rest/market-infos/{id}

func (*Client) ReadSplit

func (c *Client) ReadSplit(ctx context.Context, params ReadSplitParams) (ReadSplitRes, error)

ReadSplit invokes readSplit operation.

Finds the Split with the requested ID and returns it.

GET /rest/splits/{id}

func (*Client) ReadSplitStock

func (c *Client) ReadSplitStock(ctx context.Context, params ReadSplitStockParams) (ReadSplitStockRes, error)

ReadSplitStock invokes readSplitStock operation.

Find the attached Entity of the Split with the given ID.

GET /rest/splits/{id}/stock

func (*Client) ReadTradeCondition

func (c *Client) ReadTradeCondition(ctx context.Context, params ReadTradeConditionParams) (ReadTradeConditionRes, error)

ReadTradeCondition invokes readTradeCondition operation.

Finds the TradeCondition with the requested ID and returns it.

GET /rest/trade-conditions/{id}

func (*Client) ReadTradeCorrection

func (c *Client) ReadTradeCorrection(ctx context.Context, params ReadTradeCorrectionParams) (ReadTradeCorrectionRes, error)

ReadTradeCorrection invokes readTradeCorrection operation.

Finds the TradeCorrection with the requested ID and returns it.

GET /rest/trade-corrections/{id}

func (*Client) ReadTradeRecord

func (c *Client) ReadTradeRecord(ctx context.Context, params ReadTradeRecordParams) (ReadTradeRecordRes, error)

ReadTradeRecord invokes readTradeRecord operation.

Finds the TradeRecord with the requested ID and returns it.

GET /rest/trade-records/{id}

func (*Client) ReadTradeRecordTimeRange

func (c *Client) ReadTradeRecordTimeRange(ctx context.Context, params ReadTradeRecordTimeRangeParams) (ReadTradeRecordTimeRangeRes, error)

ReadTradeRecordTimeRange invokes readTradeRecordTimeRange operation.

Find the attached TradeTimeRange of the TradeRecord with the given ID.

GET /rest/trade-records/{id}/time-range

func (*Client) ReadTradeTimeRange

func (c *Client) ReadTradeTimeRange(ctx context.Context, params ReadTradeTimeRangeParams) (ReadTradeTimeRangeRes, error)

ReadTradeTimeRange invokes readTradeTimeRange operation.

Finds the TradeTimeRange with the requested ID and returns it.

GET /rest/trade-time-ranges/{id}

func (*Client) ReadTradeTimeRangeInterval

func (c *Client) ReadTradeTimeRangeInterval(ctx context.Context, params ReadTradeTimeRangeIntervalParams) (ReadTradeTimeRangeIntervalRes, error)

ReadTradeTimeRangeInterval invokes readTradeTimeRangeInterval operation.

Find the attached Interval of the TradeTimeRange with the given ID.

GET /rest/trade-time-ranges/{id}/interval

func (*Client) SearchTicker

func (c *Client) SearchTicker(ctx context.Context, params SearchTickerParams) (*SearchTickerOK, error)

SearchTicker invokes searchTicker operation.

Searches for entities by ticker.

GET /rest/search/{ticker}

func (*Client) UpdateBarGroup

func (c *Client) UpdateBarGroup(ctx context.Context, request *UpdateBarGroupReq, params UpdateBarGroupParams) (UpdateBarGroupRes, error)

UpdateBarGroup invokes updateBarGroup operation.

Updates a BarGroup and persists changes to storage.

PATCH /rest/bar-groups/{id}

func (*Client) UpdateBarRecord

func (c *Client) UpdateBarRecord(ctx context.Context, request *UpdateBarRecordReq, params UpdateBarRecordParams) (UpdateBarRecordRes, error)

UpdateBarRecord invokes updateBarRecord operation.

Updates a BarRecord and persists changes to storage.

PATCH /rest/bar-records/{id}

func (*Client) UpdateBarTimeRange

func (c *Client) UpdateBarTimeRange(ctx context.Context, request *UpdateBarTimeRangeReq, params UpdateBarTimeRangeParams) (UpdateBarTimeRangeRes, error)

UpdateBarTimeRange invokes updateBarTimeRange operation.

Updates a BarTimeRange and persists changes to storage.

PATCH /rest/bar-time-ranges/{id}

func (*Client) UpdateDataSource

func (c *Client) UpdateDataSource(ctx context.Context, request *UpdateDataSourceReq, params UpdateDataSourceParams) (UpdateDataSourceRes, error)

UpdateDataSource invokes updateDataSource operation.

Updates a DataSource and persists changes to storage.

PATCH /rest/data-sources/{id}

func (*Client) UpdateDividend

func (c *Client) UpdateDividend(ctx context.Context, request *UpdateDividendReq, params UpdateDividendParams) (UpdateDividendRes, error)

UpdateDividend invokes updateDividend operation.

Updates a Dividend and persists changes to storage.

PATCH /rest/dividends/{id}

func (*Client) UpdateEntity

func (c *Client) UpdateEntity(ctx context.Context, request *UpdateEntityReq, params UpdateEntityParams) (UpdateEntityRes, error)

UpdateEntity invokes updateEntity operation.

Updates a Entity and persists changes to storage.

PATCH /rest/entities/{id}

func (*Client) UpdateExchange

func (c *Client) UpdateExchange(ctx context.Context, request *UpdateExchangeReq, params UpdateExchangeParams) (UpdateExchangeRes, error)

UpdateExchange invokes updateExchange operation.

Updates a Exchange and persists changes to storage.

PATCH /rest/exchanges/{id}

func (*Client) UpdateFinancial

func (c *Client) UpdateFinancial(ctx context.Context, request *UpdateFinancialReq, params UpdateFinancialParams) (UpdateFinancialRes, error)

UpdateFinancial invokes updateFinancial operation.

Updates a Financial and persists changes to storage.

PATCH /rest/financials/{id}

func (*Client) UpdateInterval

func (c *Client) UpdateInterval(ctx context.Context, request *UpdateIntervalReq, params UpdateIntervalParams) (UpdateIntervalRes, error)

UpdateInterval invokes updateInterval operation.

Updates a Interval and persists changes to storage.

PATCH /rest/intervals/{id}

func (*Client) UpdateMarketHours

func (c *Client) UpdateMarketHours(ctx context.Context, request *UpdateMarketHoursReq, params UpdateMarketHoursParams) (UpdateMarketHoursRes, error)

UpdateMarketHours invokes updateMarketHours operation.

Updates a MarketHours and persists changes to storage.

PATCH /rest/market-hours/{id}

func (*Client) UpdateMarketInfo

func (c *Client) UpdateMarketInfo(ctx context.Context, request *UpdateMarketInfoReq, params UpdateMarketInfoParams) (UpdateMarketInfoRes, error)

UpdateMarketInfo invokes updateMarketInfo operation.

Updates a MarketInfo and persists changes to storage.

PATCH /rest/market-infos/{id}

func (*Client) UpdateSplit

func (c *Client) UpdateSplit(ctx context.Context, request *UpdateSplitReq, params UpdateSplitParams) (UpdateSplitRes, error)

UpdateSplit invokes updateSplit operation.

Updates a Split and persists changes to storage.

PATCH /rest/splits/{id}

func (*Client) UpdateTradeCondition

func (c *Client) UpdateTradeCondition(ctx context.Context, request *UpdateTradeConditionReq, params UpdateTradeConditionParams) (UpdateTradeConditionRes, error)

UpdateTradeCondition invokes updateTradeCondition operation.

Updates a TradeCondition and persists changes to storage.

PATCH /rest/trade-conditions/{id}

func (*Client) UpdateTradeCorrection

UpdateTradeCorrection invokes updateTradeCorrection operation.

Updates a TradeCorrection and persists changes to storage.

PATCH /rest/trade-corrections/{id}

func (*Client) UpdateTradeRecord

func (c *Client) UpdateTradeRecord(ctx context.Context, request *UpdateTradeRecordReq, params UpdateTradeRecordParams) (UpdateTradeRecordRes, error)

UpdateTradeRecord invokes updateTradeRecord operation.

Updates a TradeRecord and persists changes to storage.

PATCH /rest/trade-records/{id}

func (*Client) UpdateTradeTimeRange

func (c *Client) UpdateTradeTimeRange(ctx context.Context, request *UpdateTradeTimeRangeReq, params UpdateTradeTimeRangeParams) (UpdateTradeTimeRangeRes, error)

UpdateTradeTimeRange invokes updateTradeTimeRange operation.

Updates a TradeTimeRange and persists changes to storage.

PATCH /rest/trade-time-ranges/{id}

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

ClientOption is client config option.

func WithClient

func WithClient(client ht.Client) ClientOption

WithClient specifies http client to use.

type CreateBarGroupReq

type CreateBarGroupReq struct {
	First       time.Time `json:"first"`
	Last        time.Time `json:"last"`
	Count       int       `json:"count"`
	TimeRangeID int       `json:"time_range_id"`
	TimeRange   int       `json:"time_range"`
	Records     []int     `json:"records"`
}

func (*CreateBarGroupReq) Decode

func (s *CreateBarGroupReq) Decode(d *jx.Decoder) error

Decode decodes CreateBarGroupReq from json.

func (*CreateBarGroupReq) Encode

func (s *CreateBarGroupReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateBarGroupReq) GetCount

func (s *CreateBarGroupReq) GetCount() int

GetCount returns the value of Count.

func (*CreateBarGroupReq) GetFirst

func (s *CreateBarGroupReq) GetFirst() time.Time

GetFirst returns the value of First.

func (*CreateBarGroupReq) GetLast

func (s *CreateBarGroupReq) GetLast() time.Time

GetLast returns the value of Last.

func (*CreateBarGroupReq) GetRecords

func (s *CreateBarGroupReq) GetRecords() []int

GetRecords returns the value of Records.

func (*CreateBarGroupReq) GetTimeRange

func (s *CreateBarGroupReq) GetTimeRange() int

GetTimeRange returns the value of TimeRange.

func (*CreateBarGroupReq) GetTimeRangeID

func (s *CreateBarGroupReq) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*CreateBarGroupReq) MarshalJSON

func (s *CreateBarGroupReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateBarGroupReq) SetCount

func (s *CreateBarGroupReq) SetCount(val int)

SetCount sets the value of Count.

func (*CreateBarGroupReq) SetFirst

func (s *CreateBarGroupReq) SetFirst(val time.Time)

SetFirst sets the value of First.

func (*CreateBarGroupReq) SetLast

func (s *CreateBarGroupReq) SetLast(val time.Time)

SetLast sets the value of Last.

func (*CreateBarGroupReq) SetRecords

func (s *CreateBarGroupReq) SetRecords(val []int)

SetRecords sets the value of Records.

func (*CreateBarGroupReq) SetTimeRange

func (s *CreateBarGroupReq) SetTimeRange(val int)

SetTimeRange sets the value of TimeRange.

func (*CreateBarGroupReq) SetTimeRangeID

func (s *CreateBarGroupReq) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*CreateBarGroupReq) UnmarshalJSON

func (s *CreateBarGroupReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateBarGroupRes

type CreateBarGroupRes interface {
	// contains filtered or unexported methods
}

type CreateBarRecordReq

type CreateBarRecordReq struct {
	Close        float64   `json:"close"`
	High         float64   `json:"high"`
	Low          float64   `json:"low"`
	Open         float64   `json:"open"`
	Timestamp    time.Time `json:"timestamp"`
	Volume       float64   `json:"volume"`
	Transactions int32     `json:"transactions"`
	Group        OptInt    `json:"group"`
}

func (*CreateBarRecordReq) Decode

func (s *CreateBarRecordReq) Decode(d *jx.Decoder) error

Decode decodes CreateBarRecordReq from json.

func (*CreateBarRecordReq) Encode

func (s *CreateBarRecordReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateBarRecordReq) GetClose

func (s *CreateBarRecordReq) GetClose() float64

GetClose returns the value of Close.

func (*CreateBarRecordReq) GetGroup

func (s *CreateBarRecordReq) GetGroup() OptInt

GetGroup returns the value of Group.

func (*CreateBarRecordReq) GetHigh

func (s *CreateBarRecordReq) GetHigh() float64

GetHigh returns the value of High.

func (*CreateBarRecordReq) GetLow

func (s *CreateBarRecordReq) GetLow() float64

GetLow returns the value of Low.

func (*CreateBarRecordReq) GetOpen

func (s *CreateBarRecordReq) GetOpen() float64

GetOpen returns the value of Open.

func (*CreateBarRecordReq) GetTimestamp

func (s *CreateBarRecordReq) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*CreateBarRecordReq) GetTransactions

func (s *CreateBarRecordReq) GetTransactions() int32

GetTransactions returns the value of Transactions.

func (*CreateBarRecordReq) GetVolume

func (s *CreateBarRecordReq) GetVolume() float64

GetVolume returns the value of Volume.

func (*CreateBarRecordReq) MarshalJSON

func (s *CreateBarRecordReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateBarRecordReq) SetClose

func (s *CreateBarRecordReq) SetClose(val float64)

SetClose sets the value of Close.

func (*CreateBarRecordReq) SetGroup

func (s *CreateBarRecordReq) SetGroup(val OptInt)

SetGroup sets the value of Group.

func (*CreateBarRecordReq) SetHigh

func (s *CreateBarRecordReq) SetHigh(val float64)

SetHigh sets the value of High.

func (*CreateBarRecordReq) SetLow

func (s *CreateBarRecordReq) SetLow(val float64)

SetLow sets the value of Low.

func (*CreateBarRecordReq) SetOpen

func (s *CreateBarRecordReq) SetOpen(val float64)

SetOpen sets the value of Open.

func (*CreateBarRecordReq) SetTimestamp

func (s *CreateBarRecordReq) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*CreateBarRecordReq) SetTransactions

func (s *CreateBarRecordReq) SetTransactions(val int32)

SetTransactions sets the value of Transactions.

func (*CreateBarRecordReq) SetVolume

func (s *CreateBarRecordReq) SetVolume(val float64)

SetVolume sets the value of Volume.

func (*CreateBarRecordReq) UnmarshalJSON

func (s *CreateBarRecordReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateBarRecordReq) Validate

func (s *CreateBarRecordReq) Validate() error

type CreateBarRecordRes

type CreateBarRecordRes interface {
	// contains filtered or unexported methods
}

type CreateBarTimeRangeReq

type CreateBarTimeRangeReq struct {
	Start      time.Time                   `json:"start"`
	End        time.Time                   `json:"end"`
	Count      int                         `json:"count"`
	IntervalID int                         `json:"interval_id"`
	Status     CreateBarTimeRangeReqStatus `json:"status"`
	UpdateTime time.Time                   `json:"update_time"`
	Interval   int                         `json:"interval"`
	Groups     []int                       `json:"groups"`
}

func (*CreateBarTimeRangeReq) Decode

func (s *CreateBarTimeRangeReq) Decode(d *jx.Decoder) error

Decode decodes CreateBarTimeRangeReq from json.

func (*CreateBarTimeRangeReq) Encode

func (s *CreateBarTimeRangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateBarTimeRangeReq) GetCount

func (s *CreateBarTimeRangeReq) GetCount() int

GetCount returns the value of Count.

func (*CreateBarTimeRangeReq) GetEnd

func (s *CreateBarTimeRangeReq) GetEnd() time.Time

GetEnd returns the value of End.

func (*CreateBarTimeRangeReq) GetGroups

func (s *CreateBarTimeRangeReq) GetGroups() []int

GetGroups returns the value of Groups.

func (*CreateBarTimeRangeReq) GetInterval

func (s *CreateBarTimeRangeReq) GetInterval() int

GetInterval returns the value of Interval.

func (*CreateBarTimeRangeReq) GetIntervalID

func (s *CreateBarTimeRangeReq) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*CreateBarTimeRangeReq) GetStart

func (s *CreateBarTimeRangeReq) GetStart() time.Time

GetStart returns the value of Start.

func (*CreateBarTimeRangeReq) GetStatus

GetStatus returns the value of Status.

func (*CreateBarTimeRangeReq) GetUpdateTime

func (s *CreateBarTimeRangeReq) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*CreateBarTimeRangeReq) MarshalJSON

func (s *CreateBarTimeRangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateBarTimeRangeReq) SetCount

func (s *CreateBarTimeRangeReq) SetCount(val int)

SetCount sets the value of Count.

func (*CreateBarTimeRangeReq) SetEnd

func (s *CreateBarTimeRangeReq) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*CreateBarTimeRangeReq) SetGroups

func (s *CreateBarTimeRangeReq) SetGroups(val []int)

SetGroups sets the value of Groups.

func (*CreateBarTimeRangeReq) SetInterval

func (s *CreateBarTimeRangeReq) SetInterval(val int)

SetInterval sets the value of Interval.

func (*CreateBarTimeRangeReq) SetIntervalID

func (s *CreateBarTimeRangeReq) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*CreateBarTimeRangeReq) SetStart

func (s *CreateBarTimeRangeReq) SetStart(val time.Time)

SetStart sets the value of Start.

func (*CreateBarTimeRangeReq) SetStatus

SetStatus sets the value of Status.

func (*CreateBarTimeRangeReq) SetUpdateTime

func (s *CreateBarTimeRangeReq) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*CreateBarTimeRangeReq) UnmarshalJSON

func (s *CreateBarTimeRangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateBarTimeRangeReq) Validate

func (s *CreateBarTimeRangeReq) Validate() error

type CreateBarTimeRangeReqStatus

type CreateBarTimeRangeReqStatus string
const (
	CreateBarTimeRangeReqStatusPending      CreateBarTimeRangeReqStatus = "pending"
	CreateBarTimeRangeReqStatusCreated      CreateBarTimeRangeReqStatus = "created"
	CreateBarTimeRangeReqStatusClean        CreateBarTimeRangeReqStatus = "clean"
	CreateBarTimeRangeReqStatusConsolidated CreateBarTimeRangeReqStatus = "consolidated"
)

func (*CreateBarTimeRangeReqStatus) Decode

Decode decodes CreateBarTimeRangeReqStatus from json.

func (CreateBarTimeRangeReqStatus) Encode

func (s CreateBarTimeRangeReqStatus) Encode(e *jx.Encoder)

Encode encodes CreateBarTimeRangeReqStatus as json.

func (CreateBarTimeRangeReqStatus) MarshalJSON

func (s CreateBarTimeRangeReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateBarTimeRangeReqStatus) MarshalText

func (s CreateBarTimeRangeReqStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateBarTimeRangeReqStatus) UnmarshalJSON

func (s *CreateBarTimeRangeReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateBarTimeRangeReqStatus) UnmarshalText

func (s *CreateBarTimeRangeReqStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateBarTimeRangeReqStatus) Validate

func (s CreateBarTimeRangeReqStatus) Validate() error

type CreateBarTimeRangeRes

type CreateBarTimeRangeRes interface {
	// contains filtered or unexported methods
}

type CreateDataSourceReq

type CreateDataSourceReq struct {
	Name      string `json:"name"`
	Address   string `json:"address"`
	Intervals []int  `json:"intervals"`
}

func (*CreateDataSourceReq) Decode

func (s *CreateDataSourceReq) Decode(d *jx.Decoder) error

Decode decodes CreateDataSourceReq from json.

func (*CreateDataSourceReq) Encode

func (s *CreateDataSourceReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDataSourceReq) GetAddress

func (s *CreateDataSourceReq) GetAddress() string

GetAddress returns the value of Address.

func (*CreateDataSourceReq) GetIntervals

func (s *CreateDataSourceReq) GetIntervals() []int

GetIntervals returns the value of Intervals.

func (*CreateDataSourceReq) GetName

func (s *CreateDataSourceReq) GetName() string

GetName returns the value of Name.

func (*CreateDataSourceReq) MarshalJSON

func (s *CreateDataSourceReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDataSourceReq) SetAddress

func (s *CreateDataSourceReq) SetAddress(val string)

SetAddress sets the value of Address.

func (*CreateDataSourceReq) SetIntervals

func (s *CreateDataSourceReq) SetIntervals(val []int)

SetIntervals sets the value of Intervals.

func (*CreateDataSourceReq) SetName

func (s *CreateDataSourceReq) SetName(val string)

SetName sets the value of Name.

func (*CreateDataSourceReq) UnmarshalJSON

func (s *CreateDataSourceReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateDataSourceRes

type CreateDataSourceRes interface {
	// contains filtered or unexported methods
}

type CreateDividendReq

type CreateDividendReq struct {
	CashAmount      float64                       `json:"cash_amount"`
	DeclarationDate time.Time                     `json:"declaration_date"`
	DividendType    CreateDividendReqDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                     `json:"ex_dividend_date"`
	Frequency       int                           `json:"frequency"`
	RecordDate      time.Time                     `json:"record_date"`
	PayDate         time.Time                     `json:"pay_date"`
	Stock           []int                         `json:"stock"`
}

func (*CreateDividendReq) Decode

func (s *CreateDividendReq) Decode(d *jx.Decoder) error

Decode decodes CreateDividendReq from json.

func (*CreateDividendReq) Encode

func (s *CreateDividendReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateDividendReq) GetCashAmount

func (s *CreateDividendReq) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*CreateDividendReq) GetDeclarationDate

func (s *CreateDividendReq) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*CreateDividendReq) GetDividendType

func (s *CreateDividendReq) GetDividendType() CreateDividendReqDividendType

GetDividendType returns the value of DividendType.

func (*CreateDividendReq) GetExDividendDate

func (s *CreateDividendReq) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*CreateDividendReq) GetFrequency

func (s *CreateDividendReq) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*CreateDividendReq) GetPayDate

func (s *CreateDividendReq) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*CreateDividendReq) GetRecordDate

func (s *CreateDividendReq) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*CreateDividendReq) GetStock

func (s *CreateDividendReq) GetStock() []int

GetStock returns the value of Stock.

func (*CreateDividendReq) MarshalJSON

func (s *CreateDividendReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateDividendReq) SetCashAmount

func (s *CreateDividendReq) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*CreateDividendReq) SetDeclarationDate

func (s *CreateDividendReq) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*CreateDividendReq) SetDividendType

func (s *CreateDividendReq) SetDividendType(val CreateDividendReqDividendType)

SetDividendType sets the value of DividendType.

func (*CreateDividendReq) SetExDividendDate

func (s *CreateDividendReq) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*CreateDividendReq) SetFrequency

func (s *CreateDividendReq) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*CreateDividendReq) SetPayDate

func (s *CreateDividendReq) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*CreateDividendReq) SetRecordDate

func (s *CreateDividendReq) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*CreateDividendReq) SetStock

func (s *CreateDividendReq) SetStock(val []int)

SetStock sets the value of Stock.

func (*CreateDividendReq) UnmarshalJSON

func (s *CreateDividendReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDividendReq) Validate

func (s *CreateDividendReq) Validate() error

type CreateDividendReqDividendType

type CreateDividendReqDividendType string
const (
	CreateDividendReqDividendTypeCD CreateDividendReqDividendType = "CD"
	CreateDividendReqDividendTypeSC CreateDividendReqDividendType = "SC"
	CreateDividendReqDividendTypeLT CreateDividendReqDividendType = "LT"
	CreateDividendReqDividendTypeST CreateDividendReqDividendType = "ST"
)

func (*CreateDividendReqDividendType) Decode

Decode decodes CreateDividendReqDividendType from json.

func (CreateDividendReqDividendType) Encode

Encode encodes CreateDividendReqDividendType as json.

func (CreateDividendReqDividendType) MarshalJSON

func (s CreateDividendReqDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateDividendReqDividendType) MarshalText

func (s CreateDividendReqDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateDividendReqDividendType) UnmarshalJSON

func (s *CreateDividendReqDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateDividendReqDividendType) UnmarshalText

func (s *CreateDividendReqDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateDividendReqDividendType) Validate

func (s CreateDividendReqDividendType) Validate() error

type CreateDividendRes

type CreateDividendRes interface {
	// contains filtered or unexported methods
}

type CreateEntityReq

type CreateEntityReq struct {
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
	Exchanges   []int       `json:"exchanges"`
	Intervals   []int       `json:"intervals"`
	Dividends   []int       `json:"dividends"`
	Splits      []int       `json:"splits"`
	Financials  []int       `json:"financials"`
}

func (*CreateEntityReq) Decode

func (s *CreateEntityReq) Decode(d *jx.Decoder) error

Decode decodes CreateEntityReq from json.

func (*CreateEntityReq) Encode

func (s *CreateEntityReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateEntityReq) GetActive

func (s *CreateEntityReq) GetActive() bool

GetActive returns the value of Active.

func (*CreateEntityReq) GetDelisted

func (s *CreateEntityReq) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*CreateEntityReq) GetDescription

func (s *CreateEntityReq) GetDescription() string

GetDescription returns the value of Description.

func (*CreateEntityReq) GetDividends

func (s *CreateEntityReq) GetDividends() []int

GetDividends returns the value of Dividends.

func (*CreateEntityReq) GetExchanges

func (s *CreateEntityReq) GetExchanges() []int

GetExchanges returns the value of Exchanges.

func (*CreateEntityReq) GetFinancials

func (s *CreateEntityReq) GetFinancials() []int

GetFinancials returns the value of Financials.

func (*CreateEntityReq) GetIntervals

func (s *CreateEntityReq) GetIntervals() []int

GetIntervals returns the value of Intervals.

func (*CreateEntityReq) GetListDate

func (s *CreateEntityReq) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*CreateEntityReq) GetName

func (s *CreateEntityReq) GetName() string

GetName returns the value of Name.

func (*CreateEntityReq) GetSplits

func (s *CreateEntityReq) GetSplits() []int

GetSplits returns the value of Splits.

func (*CreateEntityReq) GetTicker

func (s *CreateEntityReq) GetTicker() string

GetTicker returns the value of Ticker.

func (*CreateEntityReq) MarshalJSON

func (s *CreateEntityReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateEntityReq) SetActive

func (s *CreateEntityReq) SetActive(val bool)

SetActive sets the value of Active.

func (*CreateEntityReq) SetDelisted

func (s *CreateEntityReq) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*CreateEntityReq) SetDescription

func (s *CreateEntityReq) SetDescription(val string)

SetDescription sets the value of Description.

func (*CreateEntityReq) SetDividends

func (s *CreateEntityReq) SetDividends(val []int)

SetDividends sets the value of Dividends.

func (*CreateEntityReq) SetExchanges

func (s *CreateEntityReq) SetExchanges(val []int)

SetExchanges sets the value of Exchanges.

func (*CreateEntityReq) SetFinancials

func (s *CreateEntityReq) SetFinancials(val []int)

SetFinancials sets the value of Financials.

func (*CreateEntityReq) SetIntervals

func (s *CreateEntityReq) SetIntervals(val []int)

SetIntervals sets the value of Intervals.

func (*CreateEntityReq) SetListDate

func (s *CreateEntityReq) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*CreateEntityReq) SetName

func (s *CreateEntityReq) SetName(val string)

SetName sets the value of Name.

func (*CreateEntityReq) SetSplits

func (s *CreateEntityReq) SetSplits(val []int)

SetSplits sets the value of Splits.

func (*CreateEntityReq) SetTicker

func (s *CreateEntityReq) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*CreateEntityReq) UnmarshalJSON

func (s *CreateEntityReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateEntityRes

type CreateEntityRes interface {
	// contains filtered or unexported methods
}

type CreateExchangeReq

type CreateExchangeReq struct {
	Code   string `json:"code"`
	Name   string `json:"name"`
	Stocks []int  `json:"stocks"`
}

func (*CreateExchangeReq) Decode

func (s *CreateExchangeReq) Decode(d *jx.Decoder) error

Decode decodes CreateExchangeReq from json.

func (*CreateExchangeReq) Encode

func (s *CreateExchangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateExchangeReq) GetCode

func (s *CreateExchangeReq) GetCode() string

GetCode returns the value of Code.

func (*CreateExchangeReq) GetName

func (s *CreateExchangeReq) GetName() string

GetName returns the value of Name.

func (*CreateExchangeReq) GetStocks

func (s *CreateExchangeReq) GetStocks() []int

GetStocks returns the value of Stocks.

func (*CreateExchangeReq) MarshalJSON

func (s *CreateExchangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateExchangeReq) SetCode

func (s *CreateExchangeReq) SetCode(val string)

SetCode sets the value of Code.

func (*CreateExchangeReq) SetName

func (s *CreateExchangeReq) SetName(val string)

SetName sets the value of Name.

func (*CreateExchangeReq) SetStocks

func (s *CreateExchangeReq) SetStocks(val []int)

SetStocks sets the value of Stocks.

func (*CreateExchangeReq) UnmarshalJSON

func (s *CreateExchangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateExchangeRes

type CreateExchangeRes interface {
	// contains filtered or unexported methods
}

type CreateFinancialReq

type CreateFinancialReq struct {
	Stock []int `json:"stock"`
}

func (*CreateFinancialReq) Decode

func (s *CreateFinancialReq) Decode(d *jx.Decoder) error

Decode decodes CreateFinancialReq from json.

func (*CreateFinancialReq) Encode

func (s *CreateFinancialReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateFinancialReq) GetStock

func (s *CreateFinancialReq) GetStock() []int

GetStock returns the value of Stock.

func (*CreateFinancialReq) MarshalJSON

func (s *CreateFinancialReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateFinancialReq) SetStock

func (s *CreateFinancialReq) SetStock(val []int)

SetStock sets the value of Stock.

func (*CreateFinancialReq) UnmarshalJSON

func (s *CreateFinancialReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateFinancialRes

type CreateFinancialRes interface {
	// contains filtered or unexported methods
}

type CreateIntervalReq

type CreateIntervalReq struct {
	Active       bool                      `json:"active"`
	Interval     CreateIntervalReqInterval `json:"interval"`
	StockID      int                       `json:"stock_id"`
	DataSourceID int                       `json:"data_source_id"`
	DataSource   int                       `json:"data_source"`
	Stock        int                       `json:"stock"`
	Bars         []int                     `json:"bars"`
	Trades       []int                     `json:"trades"`
}

func (*CreateIntervalReq) Decode

func (s *CreateIntervalReq) Decode(d *jx.Decoder) error

Decode decodes CreateIntervalReq from json.

func (*CreateIntervalReq) Encode

func (s *CreateIntervalReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateIntervalReq) GetActive

func (s *CreateIntervalReq) GetActive() bool

GetActive returns the value of Active.

func (*CreateIntervalReq) GetBars

func (s *CreateIntervalReq) GetBars() []int

GetBars returns the value of Bars.

func (*CreateIntervalReq) GetDataSource

func (s *CreateIntervalReq) GetDataSource() int

GetDataSource returns the value of DataSource.

func (*CreateIntervalReq) GetDataSourceID

func (s *CreateIntervalReq) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*CreateIntervalReq) GetInterval

GetInterval returns the value of Interval.

func (*CreateIntervalReq) GetStock

func (s *CreateIntervalReq) GetStock() int

GetStock returns the value of Stock.

func (*CreateIntervalReq) GetStockID

func (s *CreateIntervalReq) GetStockID() int

GetStockID returns the value of StockID.

func (*CreateIntervalReq) GetTrades

func (s *CreateIntervalReq) GetTrades() []int

GetTrades returns the value of Trades.

func (*CreateIntervalReq) MarshalJSON

func (s *CreateIntervalReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateIntervalReq) SetActive

func (s *CreateIntervalReq) SetActive(val bool)

SetActive sets the value of Active.

func (*CreateIntervalReq) SetBars

func (s *CreateIntervalReq) SetBars(val []int)

SetBars sets the value of Bars.

func (*CreateIntervalReq) SetDataSource

func (s *CreateIntervalReq) SetDataSource(val int)

SetDataSource sets the value of DataSource.

func (*CreateIntervalReq) SetDataSourceID

func (s *CreateIntervalReq) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*CreateIntervalReq) SetInterval

func (s *CreateIntervalReq) SetInterval(val CreateIntervalReqInterval)

SetInterval sets the value of Interval.

func (*CreateIntervalReq) SetStock

func (s *CreateIntervalReq) SetStock(val int)

SetStock sets the value of Stock.

func (*CreateIntervalReq) SetStockID

func (s *CreateIntervalReq) SetStockID(val int)

SetStockID sets the value of StockID.

func (*CreateIntervalReq) SetTrades

func (s *CreateIntervalReq) SetTrades(val []int)

SetTrades sets the value of Trades.

func (*CreateIntervalReq) UnmarshalJSON

func (s *CreateIntervalReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateIntervalReq) Validate

func (s *CreateIntervalReq) Validate() error

type CreateIntervalReqInterval

type CreateIntervalReqInterval string
const (
	CreateIntervalReqIntervalTrades  CreateIntervalReqInterval = "trades"
	CreateIntervalReqInterval1min    CreateIntervalReqInterval = "1min"
	CreateIntervalReqIntervalDaily   CreateIntervalReqInterval = "daily"
	CreateIntervalReqIntervalMonthly CreateIntervalReqInterval = "monthly"
	CreateIntervalReqIntervalYearly  CreateIntervalReqInterval = "yearly"
)

func (*CreateIntervalReqInterval) Decode

func (s *CreateIntervalReqInterval) Decode(d *jx.Decoder) error

Decode decodes CreateIntervalReqInterval from json.

func (CreateIntervalReqInterval) Encode

func (s CreateIntervalReqInterval) Encode(e *jx.Encoder)

Encode encodes CreateIntervalReqInterval as json.

func (CreateIntervalReqInterval) MarshalJSON

func (s CreateIntervalReqInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (CreateIntervalReqInterval) MarshalText

func (s CreateIntervalReqInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*CreateIntervalReqInterval) UnmarshalJSON

func (s *CreateIntervalReqInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateIntervalReqInterval) UnmarshalText

func (s *CreateIntervalReqInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (CreateIntervalReqInterval) Validate

func (s CreateIntervalReqInterval) Validate() error

type CreateIntervalRes

type CreateIntervalRes interface {
	// contains filtered or unexported methods
}

type CreateMarketHoursReq

type CreateMarketHoursReq struct {
	Date       time.Time `json:"date"`
	StartTime  time.Time `json:"start_time"`
	EndTime    time.Time `json:"end_time"`
	MarketInfo OptInt    `json:"market_info"`
}

func (*CreateMarketHoursReq) Decode

func (s *CreateMarketHoursReq) Decode(d *jx.Decoder) error

Decode decodes CreateMarketHoursReq from json.

func (*CreateMarketHoursReq) Encode

func (s *CreateMarketHoursReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateMarketHoursReq) GetDate

func (s *CreateMarketHoursReq) GetDate() time.Time

GetDate returns the value of Date.

func (*CreateMarketHoursReq) GetEndTime

func (s *CreateMarketHoursReq) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*CreateMarketHoursReq) GetMarketInfo

func (s *CreateMarketHoursReq) GetMarketInfo() OptInt

GetMarketInfo returns the value of MarketInfo.

func (*CreateMarketHoursReq) GetStartTime

func (s *CreateMarketHoursReq) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*CreateMarketHoursReq) MarshalJSON

func (s *CreateMarketHoursReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateMarketHoursReq) SetDate

func (s *CreateMarketHoursReq) SetDate(val time.Time)

SetDate sets the value of Date.

func (*CreateMarketHoursReq) SetEndTime

func (s *CreateMarketHoursReq) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*CreateMarketHoursReq) SetMarketInfo

func (s *CreateMarketHoursReq) SetMarketInfo(val OptInt)

SetMarketInfo sets the value of MarketInfo.

func (*CreateMarketHoursReq) SetStartTime

func (s *CreateMarketHoursReq) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*CreateMarketHoursReq) UnmarshalJSON

func (s *CreateMarketHoursReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateMarketHoursRes

type CreateMarketHoursRes interface {
	// contains filtered or unexported methods
}

type CreateMarketInfoReq

type CreateMarketInfoReq struct {
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
	Hours      []int     `json:"hours"`
}

func (*CreateMarketInfoReq) Decode

func (s *CreateMarketInfoReq) Decode(d *jx.Decoder) error

Decode decodes CreateMarketInfoReq from json.

func (*CreateMarketInfoReq) Encode

func (s *CreateMarketInfoReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateMarketInfoReq) GetHours

func (s *CreateMarketInfoReq) GetHours() []int

GetHours returns the value of Hours.

func (*CreateMarketInfoReq) GetHoursEnd

func (s *CreateMarketInfoReq) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*CreateMarketInfoReq) GetHoursStart

func (s *CreateMarketInfoReq) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*CreateMarketInfoReq) MarshalJSON

func (s *CreateMarketInfoReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateMarketInfoReq) SetHours

func (s *CreateMarketInfoReq) SetHours(val []int)

SetHours sets the value of Hours.

func (*CreateMarketInfoReq) SetHoursEnd

func (s *CreateMarketInfoReq) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*CreateMarketInfoReq) SetHoursStart

func (s *CreateMarketInfoReq) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*CreateMarketInfoReq) UnmarshalJSON

func (s *CreateMarketInfoReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateMarketInfoRes

type CreateMarketInfoRes interface {
	// contains filtered or unexported methods
}

type CreateSplitReq

type CreateSplitReq struct {
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
	Stock         OptInt    `json:"stock"`
}

func (*CreateSplitReq) Decode

func (s *CreateSplitReq) Decode(d *jx.Decoder) error

Decode decodes CreateSplitReq from json.

func (*CreateSplitReq) Encode

func (s *CreateSplitReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateSplitReq) GetExecutionDate

func (s *CreateSplitReq) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*CreateSplitReq) GetFrom

func (s *CreateSplitReq) GetFrom() float64

GetFrom returns the value of From.

func (*CreateSplitReq) GetStock

func (s *CreateSplitReq) GetStock() OptInt

GetStock returns the value of Stock.

func (*CreateSplitReq) GetTo

func (s *CreateSplitReq) GetTo() float64

GetTo returns the value of To.

func (*CreateSplitReq) MarshalJSON

func (s *CreateSplitReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateSplitReq) SetExecutionDate

func (s *CreateSplitReq) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*CreateSplitReq) SetFrom

func (s *CreateSplitReq) SetFrom(val float64)

SetFrom sets the value of From.

func (*CreateSplitReq) SetStock

func (s *CreateSplitReq) SetStock(val OptInt)

SetStock sets the value of Stock.

func (*CreateSplitReq) SetTo

func (s *CreateSplitReq) SetTo(val float64)

SetTo sets the value of To.

func (*CreateSplitReq) UnmarshalJSON

func (s *CreateSplitReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateSplitReq) Validate

func (s *CreateSplitReq) Validate() error

type CreateSplitRes

type CreateSplitRes interface {
	// contains filtered or unexported methods
}

type CreateTradeConditionReq

type CreateTradeConditionReq struct {
	Condition string `json:"condition"`
	Record    []int  `json:"record"`
}

func (*CreateTradeConditionReq) Decode

func (s *CreateTradeConditionReq) Decode(d *jx.Decoder) error

Decode decodes CreateTradeConditionReq from json.

func (*CreateTradeConditionReq) Encode

func (s *CreateTradeConditionReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTradeConditionReq) GetCondition

func (s *CreateTradeConditionReq) GetCondition() string

GetCondition returns the value of Condition.

func (*CreateTradeConditionReq) GetRecord

func (s *CreateTradeConditionReq) GetRecord() []int

GetRecord returns the value of Record.

func (*CreateTradeConditionReq) MarshalJSON

func (s *CreateTradeConditionReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTradeConditionReq) SetCondition

func (s *CreateTradeConditionReq) SetCondition(val string)

SetCondition sets the value of Condition.

func (*CreateTradeConditionReq) SetRecord

func (s *CreateTradeConditionReq) SetRecord(val []int)

SetRecord sets the value of Record.

func (*CreateTradeConditionReq) UnmarshalJSON

func (s *CreateTradeConditionReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTradeConditionRes

type CreateTradeConditionRes interface {
	// contains filtered or unexported methods
}

type CreateTradeCorrectionReq

type CreateTradeCorrectionReq struct {
	Correction string `json:"correction"`
	Record     []int  `json:"record"`
}

func (*CreateTradeCorrectionReq) Decode

func (s *CreateTradeCorrectionReq) Decode(d *jx.Decoder) error

Decode decodes CreateTradeCorrectionReq from json.

func (*CreateTradeCorrectionReq) Encode

func (s *CreateTradeCorrectionReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTradeCorrectionReq) GetCorrection

func (s *CreateTradeCorrectionReq) GetCorrection() string

GetCorrection returns the value of Correction.

func (*CreateTradeCorrectionReq) GetRecord

func (s *CreateTradeCorrectionReq) GetRecord() []int

GetRecord returns the value of Record.

func (*CreateTradeCorrectionReq) MarshalJSON

func (s *CreateTradeCorrectionReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTradeCorrectionReq) SetCorrection

func (s *CreateTradeCorrectionReq) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*CreateTradeCorrectionReq) SetRecord

func (s *CreateTradeCorrectionReq) SetRecord(val []int)

SetRecord sets the value of Record.

func (*CreateTradeCorrectionReq) UnmarshalJSON

func (s *CreateTradeCorrectionReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTradeCorrectionRes

type CreateTradeCorrectionRes interface {
	// contains filtered or unexported methods
}

type CreateTradeRecordReq

type CreateTradeRecordReq struct {
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
	TimeRange   int       `json:"time_range"`
	Conditions  []int     `json:"conditions"`
	Correction  []int     `json:"correction"`
	Exchange    []int     `json:"exchange"`
}

func (*CreateTradeRecordReq) Decode

func (s *CreateTradeRecordReq) Decode(d *jx.Decoder) error

Decode decodes CreateTradeRecordReq from json.

func (*CreateTradeRecordReq) Encode

func (s *CreateTradeRecordReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTradeRecordReq) GetConditions

func (s *CreateTradeRecordReq) GetConditions() []int

GetConditions returns the value of Conditions.

func (*CreateTradeRecordReq) GetCorrection

func (s *CreateTradeRecordReq) GetCorrection() []int

GetCorrection returns the value of Correction.

func (*CreateTradeRecordReq) GetExchange

func (s *CreateTradeRecordReq) GetExchange() []int

GetExchange returns the value of Exchange.

func (*CreateTradeRecordReq) GetPrice

func (s *CreateTradeRecordReq) GetPrice() float64

GetPrice returns the value of Price.

func (*CreateTradeRecordReq) GetTimeRange

func (s *CreateTradeRecordReq) GetTimeRange() int

GetTimeRange returns the value of TimeRange.

func (*CreateTradeRecordReq) GetTimeRangeID

func (s *CreateTradeRecordReq) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*CreateTradeRecordReq) GetTimestamp

func (s *CreateTradeRecordReq) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*CreateTradeRecordReq) GetVolume

func (s *CreateTradeRecordReq) GetVolume() int32

GetVolume returns the value of Volume.

func (*CreateTradeRecordReq) MarshalJSON

func (s *CreateTradeRecordReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTradeRecordReq) SetConditions

func (s *CreateTradeRecordReq) SetConditions(val []int)

SetConditions sets the value of Conditions.

func (*CreateTradeRecordReq) SetCorrection

func (s *CreateTradeRecordReq) SetCorrection(val []int)

SetCorrection sets the value of Correction.

func (*CreateTradeRecordReq) SetExchange

func (s *CreateTradeRecordReq) SetExchange(val []int)

SetExchange sets the value of Exchange.

func (*CreateTradeRecordReq) SetPrice

func (s *CreateTradeRecordReq) SetPrice(val float64)

SetPrice sets the value of Price.

func (*CreateTradeRecordReq) SetTimeRange

func (s *CreateTradeRecordReq) SetTimeRange(val int)

SetTimeRange sets the value of TimeRange.

func (*CreateTradeRecordReq) SetTimeRangeID

func (s *CreateTradeRecordReq) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*CreateTradeRecordReq) SetTimestamp

func (s *CreateTradeRecordReq) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*CreateTradeRecordReq) SetVolume

func (s *CreateTradeRecordReq) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*CreateTradeRecordReq) UnmarshalJSON

func (s *CreateTradeRecordReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*CreateTradeRecordReq) Validate

func (s *CreateTradeRecordReq) Validate() error

type CreateTradeRecordRes

type CreateTradeRecordRes interface {
	// contains filtered or unexported methods
}

type CreateTradeTimeRangeReq

type CreateTradeTimeRangeReq struct {
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
	Interval   int       `json:"interval"`
	Records    []int     `json:"records"`
}

func (*CreateTradeTimeRangeReq) Decode

func (s *CreateTradeTimeRangeReq) Decode(d *jx.Decoder) error

Decode decodes CreateTradeTimeRangeReq from json.

func (*CreateTradeTimeRangeReq) Encode

func (s *CreateTradeTimeRangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*CreateTradeTimeRangeReq) GetEnd

func (s *CreateTradeTimeRangeReq) GetEnd() time.Time

GetEnd returns the value of End.

func (*CreateTradeTimeRangeReq) GetInterval

func (s *CreateTradeTimeRangeReq) GetInterval() int

GetInterval returns the value of Interval.

func (*CreateTradeTimeRangeReq) GetIntervalID

func (s *CreateTradeTimeRangeReq) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*CreateTradeTimeRangeReq) GetRecords

func (s *CreateTradeTimeRangeReq) GetRecords() []int

GetRecords returns the value of Records.

func (*CreateTradeTimeRangeReq) GetStart

func (s *CreateTradeTimeRangeReq) GetStart() time.Time

GetStart returns the value of Start.

func (*CreateTradeTimeRangeReq) MarshalJSON

func (s *CreateTradeTimeRangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*CreateTradeTimeRangeReq) SetEnd

func (s *CreateTradeTimeRangeReq) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*CreateTradeTimeRangeReq) SetInterval

func (s *CreateTradeTimeRangeReq) SetInterval(val int)

SetInterval sets the value of Interval.

func (*CreateTradeTimeRangeReq) SetIntervalID

func (s *CreateTradeTimeRangeReq) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*CreateTradeTimeRangeReq) SetRecords

func (s *CreateTradeTimeRangeReq) SetRecords(val []int)

SetRecords sets the value of Records.

func (*CreateTradeTimeRangeReq) SetStart

func (s *CreateTradeTimeRangeReq) SetStart(val time.Time)

SetStart sets the value of Start.

func (*CreateTradeTimeRangeReq) UnmarshalJSON

func (s *CreateTradeTimeRangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type CreateTradeTimeRangeRes

type CreateTradeTimeRangeRes interface {
	// contains filtered or unexported methods
}

type DataSourceCreate

type DataSourceCreate struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

Ref: #/components/schemas/DataSourceCreate

func NewDataSourceCreate

func NewDataSourceCreate(e *ent.DataSource) *DataSourceCreate

func NewDataSourceCreates

func NewDataSourceCreates(es []*ent.DataSource) []DataSourceCreate

func (*DataSourceCreate) Decode

func (s *DataSourceCreate) Decode(d *jx.Decoder) error

Decode decodes DataSourceCreate from json.

func (*DataSourceCreate) Elem

func (*DataSourceCreate) Encode

func (s *DataSourceCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DataSourceCreate) GetAddress

func (s *DataSourceCreate) GetAddress() string

GetAddress returns the value of Address.

func (*DataSourceCreate) GetID

func (s *DataSourceCreate) GetID() int

GetID returns the value of ID.

func (*DataSourceCreate) GetName

func (s *DataSourceCreate) GetName() string

GetName returns the value of Name.

func (*DataSourceCreate) MarshalJSON

func (s *DataSourceCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DataSourceCreate) SetAddress

func (s *DataSourceCreate) SetAddress(val string)

SetAddress sets the value of Address.

func (*DataSourceCreate) SetID

func (s *DataSourceCreate) SetID(val int)

SetID sets the value of ID.

func (*DataSourceCreate) SetName

func (s *DataSourceCreate) SetName(val string)

SetName sets the value of Name.

func (*DataSourceCreate) UnmarshalJSON

func (s *DataSourceCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DataSourceIntervalsList

type DataSourceIntervalsList struct {
	ID           int                             `json:"id"`
	Active       bool                            `json:"active"`
	Interval     DataSourceIntervalsListInterval `json:"interval"`
	StockID      int                             `json:"stock_id"`
	DataSourceID int                             `json:"data_source_id"`
}

Ref: #/components/schemas/DataSource_IntervalsList

func NewDataSourceIntervalsList

func NewDataSourceIntervalsList(e *ent.Interval) *DataSourceIntervalsList

func NewDataSourceIntervalsLists

func NewDataSourceIntervalsLists(es []*ent.Interval) []DataSourceIntervalsList

func (*DataSourceIntervalsList) Decode

func (s *DataSourceIntervalsList) Decode(d *jx.Decoder) error

Decode decodes DataSourceIntervalsList from json.

func (*DataSourceIntervalsList) Elem

func (*DataSourceIntervalsList) Encode

func (s *DataSourceIntervalsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DataSourceIntervalsList) GetActive

func (s *DataSourceIntervalsList) GetActive() bool

GetActive returns the value of Active.

func (*DataSourceIntervalsList) GetDataSourceID

func (s *DataSourceIntervalsList) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*DataSourceIntervalsList) GetID

func (s *DataSourceIntervalsList) GetID() int

GetID returns the value of ID.

func (*DataSourceIntervalsList) GetInterval

GetInterval returns the value of Interval.

func (*DataSourceIntervalsList) GetStockID

func (s *DataSourceIntervalsList) GetStockID() int

GetStockID returns the value of StockID.

func (*DataSourceIntervalsList) MarshalJSON

func (s *DataSourceIntervalsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DataSourceIntervalsList) SetActive

func (s *DataSourceIntervalsList) SetActive(val bool)

SetActive sets the value of Active.

func (*DataSourceIntervalsList) SetDataSourceID

func (s *DataSourceIntervalsList) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*DataSourceIntervalsList) SetID

func (s *DataSourceIntervalsList) SetID(val int)

SetID sets the value of ID.

func (*DataSourceIntervalsList) SetInterval

SetInterval sets the value of Interval.

func (*DataSourceIntervalsList) SetStockID

func (s *DataSourceIntervalsList) SetStockID(val int)

SetStockID sets the value of StockID.

func (*DataSourceIntervalsList) UnmarshalJSON

func (s *DataSourceIntervalsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DataSourceIntervalsList) Validate

func (s *DataSourceIntervalsList) Validate() error

type DataSourceIntervalsListInterval

type DataSourceIntervalsListInterval string
const (
	DataSourceIntervalsListIntervalTrades  DataSourceIntervalsListInterval = "trades"
	DataSourceIntervalsListInterval1min    DataSourceIntervalsListInterval = "1min"
	DataSourceIntervalsListIntervalDaily   DataSourceIntervalsListInterval = "daily"
	DataSourceIntervalsListIntervalMonthly DataSourceIntervalsListInterval = "monthly"
	DataSourceIntervalsListIntervalYearly  DataSourceIntervalsListInterval = "yearly"
)

func (*DataSourceIntervalsListInterval) Decode

Decode decodes DataSourceIntervalsListInterval from json.

func (DataSourceIntervalsListInterval) Encode

Encode encodes DataSourceIntervalsListInterval as json.

func (DataSourceIntervalsListInterval) MarshalJSON

func (s DataSourceIntervalsListInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DataSourceIntervalsListInterval) MarshalText

func (s DataSourceIntervalsListInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DataSourceIntervalsListInterval) UnmarshalJSON

func (s *DataSourceIntervalsListInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DataSourceIntervalsListInterval) UnmarshalText

func (s *DataSourceIntervalsListInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DataSourceIntervalsListInterval) Validate

type DataSourceList

type DataSourceList struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

Ref: #/components/schemas/DataSourceList

func NewDataSourceList

func NewDataSourceList(e *ent.DataSource) *DataSourceList

func NewDataSourceLists

func NewDataSourceLists(es []*ent.DataSource) []DataSourceList

func (*DataSourceList) Decode

func (s *DataSourceList) Decode(d *jx.Decoder) error

Decode decodes DataSourceList from json.

func (*DataSourceList) Elem

func (ds *DataSourceList) Elem() DataSourceList

func (*DataSourceList) Encode

func (s *DataSourceList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DataSourceList) GetAddress

func (s *DataSourceList) GetAddress() string

GetAddress returns the value of Address.

func (*DataSourceList) GetID

func (s *DataSourceList) GetID() int

GetID returns the value of ID.

func (*DataSourceList) GetName

func (s *DataSourceList) GetName() string

GetName returns the value of Name.

func (*DataSourceList) MarshalJSON

func (s *DataSourceList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DataSourceList) SetAddress

func (s *DataSourceList) SetAddress(val string)

SetAddress sets the value of Address.

func (*DataSourceList) SetID

func (s *DataSourceList) SetID(val int)

SetID sets the value of ID.

func (*DataSourceList) SetName

func (s *DataSourceList) SetName(val string)

SetName sets the value of Name.

func (*DataSourceList) UnmarshalJSON

func (s *DataSourceList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DataSourceRead

type DataSourceRead struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

Ref: #/components/schemas/DataSourceRead

func NewDataSourceRead

func NewDataSourceRead(e *ent.DataSource) *DataSourceRead

func NewDataSourceReads

func NewDataSourceReads(es []*ent.DataSource) []DataSourceRead

func (*DataSourceRead) Decode

func (s *DataSourceRead) Decode(d *jx.Decoder) error

Decode decodes DataSourceRead from json.

func (*DataSourceRead) Elem

func (ds *DataSourceRead) Elem() DataSourceRead

func (*DataSourceRead) Encode

func (s *DataSourceRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DataSourceRead) GetAddress

func (s *DataSourceRead) GetAddress() string

GetAddress returns the value of Address.

func (*DataSourceRead) GetID

func (s *DataSourceRead) GetID() int

GetID returns the value of ID.

func (*DataSourceRead) GetName

func (s *DataSourceRead) GetName() string

GetName returns the value of Name.

func (*DataSourceRead) MarshalJSON

func (s *DataSourceRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DataSourceRead) SetAddress

func (s *DataSourceRead) SetAddress(val string)

SetAddress sets the value of Address.

func (*DataSourceRead) SetID

func (s *DataSourceRead) SetID(val int)

SetID sets the value of ID.

func (*DataSourceRead) SetName

func (s *DataSourceRead) SetName(val string)

SetName sets the value of Name.

func (*DataSourceRead) UnmarshalJSON

func (s *DataSourceRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DataSourceUpdate

type DataSourceUpdate struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

Ref: #/components/schemas/DataSourceUpdate

func NewDataSourceUpdate

func NewDataSourceUpdate(e *ent.DataSource) *DataSourceUpdate

func NewDataSourceUpdates

func NewDataSourceUpdates(es []*ent.DataSource) []DataSourceUpdate

func (*DataSourceUpdate) Decode

func (s *DataSourceUpdate) Decode(d *jx.Decoder) error

Decode decodes DataSourceUpdate from json.

func (*DataSourceUpdate) Elem

func (*DataSourceUpdate) Encode

func (s *DataSourceUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DataSourceUpdate) GetAddress

func (s *DataSourceUpdate) GetAddress() string

GetAddress returns the value of Address.

func (*DataSourceUpdate) GetID

func (s *DataSourceUpdate) GetID() int

GetID returns the value of ID.

func (*DataSourceUpdate) GetName

func (s *DataSourceUpdate) GetName() string

GetName returns the value of Name.

func (*DataSourceUpdate) MarshalJSON

func (s *DataSourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DataSourceUpdate) SetAddress

func (s *DataSourceUpdate) SetAddress(val string)

SetAddress sets the value of Address.

func (*DataSourceUpdate) SetID

func (s *DataSourceUpdate) SetID(val int)

SetID sets the value of ID.

func (*DataSourceUpdate) SetName

func (s *DataSourceUpdate) SetName(val string)

SetName sets the value of Name.

func (*DataSourceUpdate) UnmarshalJSON

func (s *DataSourceUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DeleteBarGroupNoContent

type DeleteBarGroupNoContent struct{}

DeleteBarGroupNoContent is response for DeleteBarGroup operation.

type DeleteBarGroupParams

type DeleteBarGroupParams struct {
	// ID of the BarGroup.
	ID int
}

DeleteBarGroupParams is parameters of deleteBarGroup operation.

type DeleteBarGroupRes

type DeleteBarGroupRes interface {
	// contains filtered or unexported methods
}

type DeleteBarRecordNoContent

type DeleteBarRecordNoContent struct{}

DeleteBarRecordNoContent is response for DeleteBarRecord operation.

type DeleteBarRecordParams

type DeleteBarRecordParams struct {
	// ID of the BarRecord.
	ID int
}

DeleteBarRecordParams is parameters of deleteBarRecord operation.

type DeleteBarRecordRes

type DeleteBarRecordRes interface {
	// contains filtered or unexported methods
}

type DeleteBarTimeRangeNoContent

type DeleteBarTimeRangeNoContent struct{}

DeleteBarTimeRangeNoContent is response for DeleteBarTimeRange operation.

type DeleteBarTimeRangeParams

type DeleteBarTimeRangeParams struct {
	// ID of the BarTimeRange.
	ID int
}

DeleteBarTimeRangeParams is parameters of deleteBarTimeRange operation.

type DeleteBarTimeRangeRes

type DeleteBarTimeRangeRes interface {
	// contains filtered or unexported methods
}

type DeleteDataSourceNoContent

type DeleteDataSourceNoContent struct{}

DeleteDataSourceNoContent is response for DeleteDataSource operation.

type DeleteDataSourceParams

type DeleteDataSourceParams struct {
	// ID of the DataSource.
	ID int
}

DeleteDataSourceParams is parameters of deleteDataSource operation.

type DeleteDataSourceRes

type DeleteDataSourceRes interface {
	// contains filtered or unexported methods
}

type DeleteDividendNoContent

type DeleteDividendNoContent struct{}

DeleteDividendNoContent is response for DeleteDividend operation.

type DeleteDividendParams

type DeleteDividendParams struct {
	// ID of the Dividend.
	ID int
}

DeleteDividendParams is parameters of deleteDividend operation.

type DeleteDividendRes

type DeleteDividendRes interface {
	// contains filtered or unexported methods
}

type DeleteEntityNoContent

type DeleteEntityNoContent struct{}

DeleteEntityNoContent is response for DeleteEntity operation.

type DeleteEntityParams

type DeleteEntityParams struct {
	// ID of the Entity.
	ID int
}

DeleteEntityParams is parameters of deleteEntity operation.

type DeleteEntityRes

type DeleteEntityRes interface {
	// contains filtered or unexported methods
}

type DeleteExchangeNoContent

type DeleteExchangeNoContent struct{}

DeleteExchangeNoContent is response for DeleteExchange operation.

type DeleteExchangeParams

type DeleteExchangeParams struct {
	// ID of the Exchange.
	ID int
}

DeleteExchangeParams is parameters of deleteExchange operation.

type DeleteExchangeRes

type DeleteExchangeRes interface {
	// contains filtered or unexported methods
}

type DeleteFinancialNoContent

type DeleteFinancialNoContent struct{}

DeleteFinancialNoContent is response for DeleteFinancial operation.

type DeleteFinancialParams

type DeleteFinancialParams struct {
	// ID of the Financial.
	ID int
}

DeleteFinancialParams is parameters of deleteFinancial operation.

type DeleteFinancialRes

type DeleteFinancialRes interface {
	// contains filtered or unexported methods
}

type DeleteIntervalNoContent

type DeleteIntervalNoContent struct{}

DeleteIntervalNoContent is response for DeleteInterval operation.

type DeleteIntervalParams

type DeleteIntervalParams struct {
	// ID of the Interval.
	ID int
}

DeleteIntervalParams is parameters of deleteInterval operation.

type DeleteIntervalRes

type DeleteIntervalRes interface {
	// contains filtered or unexported methods
}

type DeleteMarketHoursNoContent

type DeleteMarketHoursNoContent struct{}

DeleteMarketHoursNoContent is response for DeleteMarketHours operation.

type DeleteMarketHoursParams

type DeleteMarketHoursParams struct {
	// ID of the MarketHours.
	ID int
}

DeleteMarketHoursParams is parameters of deleteMarketHours operation.

type DeleteMarketHoursRes

type DeleteMarketHoursRes interface {
	// contains filtered or unexported methods
}

type DeleteMarketInfoNoContent

type DeleteMarketInfoNoContent struct{}

DeleteMarketInfoNoContent is response for DeleteMarketInfo operation.

type DeleteMarketInfoParams

type DeleteMarketInfoParams struct {
	// ID of the MarketInfo.
	ID int
}

DeleteMarketInfoParams is parameters of deleteMarketInfo operation.

type DeleteMarketInfoRes

type DeleteMarketInfoRes interface {
	// contains filtered or unexported methods
}

type DeleteSplitNoContent

type DeleteSplitNoContent struct{}

DeleteSplitNoContent is response for DeleteSplit operation.

type DeleteSplitParams

type DeleteSplitParams struct {
	// ID of the Split.
	ID int
}

DeleteSplitParams is parameters of deleteSplit operation.

type DeleteSplitRes

type DeleteSplitRes interface {
	// contains filtered or unexported methods
}

type DeleteTradeConditionNoContent

type DeleteTradeConditionNoContent struct{}

DeleteTradeConditionNoContent is response for DeleteTradeCondition operation.

type DeleteTradeConditionParams

type DeleteTradeConditionParams struct {
	// ID of the TradeCondition.
	ID int
}

DeleteTradeConditionParams is parameters of deleteTradeCondition operation.

type DeleteTradeConditionRes

type DeleteTradeConditionRes interface {
	// contains filtered or unexported methods
}

type DeleteTradeCorrectionNoContent

type DeleteTradeCorrectionNoContent struct{}

DeleteTradeCorrectionNoContent is response for DeleteTradeCorrection operation.

type DeleteTradeCorrectionParams

type DeleteTradeCorrectionParams struct {
	// ID of the TradeCorrection.
	ID int
}

DeleteTradeCorrectionParams is parameters of deleteTradeCorrection operation.

type DeleteTradeCorrectionRes

type DeleteTradeCorrectionRes interface {
	// contains filtered or unexported methods
}

type DeleteTradeRecordNoContent

type DeleteTradeRecordNoContent struct{}

DeleteTradeRecordNoContent is response for DeleteTradeRecord operation.

type DeleteTradeRecordParams

type DeleteTradeRecordParams struct {
	// ID of the TradeRecord.
	ID int
}

DeleteTradeRecordParams is parameters of deleteTradeRecord operation.

type DeleteTradeRecordRes

type DeleteTradeRecordRes interface {
	// contains filtered or unexported methods
}

type DeleteTradeTimeRangeNoContent

type DeleteTradeTimeRangeNoContent struct{}

DeleteTradeTimeRangeNoContent is response for DeleteTradeTimeRange operation.

type DeleteTradeTimeRangeParams

type DeleteTradeTimeRangeParams struct {
	// ID of the TradeTimeRange.
	ID int
}

DeleteTradeTimeRangeParams is parameters of deleteTradeTimeRange operation.

type DeleteTradeTimeRangeRes

type DeleteTradeTimeRangeRes interface {
	// contains filtered or unexported methods
}

type DividendCreate

type DividendCreate struct {
	ID              int                        `json:"id"`
	CashAmount      float64                    `json:"cash_amount"`
	DeclarationDate time.Time                  `json:"declaration_date"`
	DividendType    DividendCreateDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                  `json:"ex_dividend_date"`
	Frequency       int                        `json:"frequency"`
	RecordDate      time.Time                  `json:"record_date"`
	PayDate         time.Time                  `json:"pay_date"`
}

Ref: #/components/schemas/DividendCreate

func NewDividendCreate

func NewDividendCreate(e *ent.Dividend) *DividendCreate

func NewDividendCreates

func NewDividendCreates(es []*ent.Dividend) []DividendCreate

func (*DividendCreate) Decode

func (s *DividendCreate) Decode(d *jx.Decoder) error

Decode decodes DividendCreate from json.

func (*DividendCreate) Elem

func (d *DividendCreate) Elem() DividendCreate

func (*DividendCreate) Encode

func (s *DividendCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DividendCreate) GetCashAmount

func (s *DividendCreate) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*DividendCreate) GetDeclarationDate

func (s *DividendCreate) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*DividendCreate) GetDividendType

func (s *DividendCreate) GetDividendType() DividendCreateDividendType

GetDividendType returns the value of DividendType.

func (*DividendCreate) GetExDividendDate

func (s *DividendCreate) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*DividendCreate) GetFrequency

func (s *DividendCreate) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*DividendCreate) GetID

func (s *DividendCreate) GetID() int

GetID returns the value of ID.

func (*DividendCreate) GetPayDate

func (s *DividendCreate) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*DividendCreate) GetRecordDate

func (s *DividendCreate) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*DividendCreate) MarshalJSON

func (s *DividendCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DividendCreate) SetCashAmount

func (s *DividendCreate) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*DividendCreate) SetDeclarationDate

func (s *DividendCreate) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*DividendCreate) SetDividendType

func (s *DividendCreate) SetDividendType(val DividendCreateDividendType)

SetDividendType sets the value of DividendType.

func (*DividendCreate) SetExDividendDate

func (s *DividendCreate) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*DividendCreate) SetFrequency

func (s *DividendCreate) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*DividendCreate) SetID

func (s *DividendCreate) SetID(val int)

SetID sets the value of ID.

func (*DividendCreate) SetPayDate

func (s *DividendCreate) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*DividendCreate) SetRecordDate

func (s *DividendCreate) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*DividendCreate) UnmarshalJSON

func (s *DividendCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendCreate) Validate

func (s *DividendCreate) Validate() error

type DividendCreateDividendType

type DividendCreateDividendType string
const (
	DividendCreateDividendTypeCD DividendCreateDividendType = "CD"
	DividendCreateDividendTypeSC DividendCreateDividendType = "SC"
	DividendCreateDividendTypeLT DividendCreateDividendType = "LT"
	DividendCreateDividendTypeST DividendCreateDividendType = "ST"
)

func (*DividendCreateDividendType) Decode

Decode decodes DividendCreateDividendType from json.

func (DividendCreateDividendType) Encode

func (s DividendCreateDividendType) Encode(e *jx.Encoder)

Encode encodes DividendCreateDividendType as json.

func (DividendCreateDividendType) MarshalJSON

func (s DividendCreateDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DividendCreateDividendType) MarshalText

func (s DividendCreateDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DividendCreateDividendType) UnmarshalJSON

func (s *DividendCreateDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendCreateDividendType) UnmarshalText

func (s *DividendCreateDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DividendCreateDividendType) Validate

func (s DividendCreateDividendType) Validate() error

type DividendList

type DividendList struct {
	ID              int                      `json:"id"`
	CashAmount      float64                  `json:"cash_amount"`
	DeclarationDate time.Time                `json:"declaration_date"`
	DividendType    DividendListDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                `json:"ex_dividend_date"`
	Frequency       int                      `json:"frequency"`
	RecordDate      time.Time                `json:"record_date"`
	PayDate         time.Time                `json:"pay_date"`
}

Ref: #/components/schemas/DividendList

func NewDividendList

func NewDividendList(e *ent.Dividend) *DividendList

func NewDividendLists

func NewDividendLists(es []*ent.Dividend) []DividendList

func (*DividendList) Decode

func (s *DividendList) Decode(d *jx.Decoder) error

Decode decodes DividendList from json.

func (*DividendList) Elem

func (d *DividendList) Elem() DividendList

func (*DividendList) Encode

func (s *DividendList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DividendList) GetCashAmount

func (s *DividendList) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*DividendList) GetDeclarationDate

func (s *DividendList) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*DividendList) GetDividendType

func (s *DividendList) GetDividendType() DividendListDividendType

GetDividendType returns the value of DividendType.

func (*DividendList) GetExDividendDate

func (s *DividendList) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*DividendList) GetFrequency

func (s *DividendList) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*DividendList) GetID

func (s *DividendList) GetID() int

GetID returns the value of ID.

func (*DividendList) GetPayDate

func (s *DividendList) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*DividendList) GetRecordDate

func (s *DividendList) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*DividendList) MarshalJSON

func (s *DividendList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DividendList) SetCashAmount

func (s *DividendList) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*DividendList) SetDeclarationDate

func (s *DividendList) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*DividendList) SetDividendType

func (s *DividendList) SetDividendType(val DividendListDividendType)

SetDividendType sets the value of DividendType.

func (*DividendList) SetExDividendDate

func (s *DividendList) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*DividendList) SetFrequency

func (s *DividendList) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*DividendList) SetID

func (s *DividendList) SetID(val int)

SetID sets the value of ID.

func (*DividendList) SetPayDate

func (s *DividendList) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*DividendList) SetRecordDate

func (s *DividendList) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*DividendList) UnmarshalJSON

func (s *DividendList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendList) Validate

func (s *DividendList) Validate() error

type DividendListDividendType

type DividendListDividendType string
const (
	DividendListDividendTypeCD DividendListDividendType = "CD"
	DividendListDividendTypeSC DividendListDividendType = "SC"
	DividendListDividendTypeLT DividendListDividendType = "LT"
	DividendListDividendTypeST DividendListDividendType = "ST"
)

func (*DividendListDividendType) Decode

func (s *DividendListDividendType) Decode(d *jx.Decoder) error

Decode decodes DividendListDividendType from json.

func (DividendListDividendType) Encode

func (s DividendListDividendType) Encode(e *jx.Encoder)

Encode encodes DividendListDividendType as json.

func (DividendListDividendType) MarshalJSON

func (s DividendListDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DividendListDividendType) MarshalText

func (s DividendListDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DividendListDividendType) UnmarshalJSON

func (s *DividendListDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendListDividendType) UnmarshalText

func (s *DividendListDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DividendListDividendType) Validate

func (s DividendListDividendType) Validate() error

type DividendRead

type DividendRead struct {
	ID              int                      `json:"id"`
	CashAmount      float64                  `json:"cash_amount"`
	DeclarationDate time.Time                `json:"declaration_date"`
	DividendType    DividendReadDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                `json:"ex_dividend_date"`
	Frequency       int                      `json:"frequency"`
	RecordDate      time.Time                `json:"record_date"`
	PayDate         time.Time                `json:"pay_date"`
}

Ref: #/components/schemas/DividendRead

func NewDividendRead

func NewDividendRead(e *ent.Dividend) *DividendRead

func NewDividendReads

func NewDividendReads(es []*ent.Dividend) []DividendRead

func (*DividendRead) Decode

func (s *DividendRead) Decode(d *jx.Decoder) error

Decode decodes DividendRead from json.

func (*DividendRead) Elem

func (d *DividendRead) Elem() DividendRead

func (*DividendRead) Encode

func (s *DividendRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DividendRead) GetCashAmount

func (s *DividendRead) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*DividendRead) GetDeclarationDate

func (s *DividendRead) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*DividendRead) GetDividendType

func (s *DividendRead) GetDividendType() DividendReadDividendType

GetDividendType returns the value of DividendType.

func (*DividendRead) GetExDividendDate

func (s *DividendRead) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*DividendRead) GetFrequency

func (s *DividendRead) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*DividendRead) GetID

func (s *DividendRead) GetID() int

GetID returns the value of ID.

func (*DividendRead) GetPayDate

func (s *DividendRead) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*DividendRead) GetRecordDate

func (s *DividendRead) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*DividendRead) MarshalJSON

func (s *DividendRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DividendRead) SetCashAmount

func (s *DividendRead) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*DividendRead) SetDeclarationDate

func (s *DividendRead) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*DividendRead) SetDividendType

func (s *DividendRead) SetDividendType(val DividendReadDividendType)

SetDividendType sets the value of DividendType.

func (*DividendRead) SetExDividendDate

func (s *DividendRead) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*DividendRead) SetFrequency

func (s *DividendRead) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*DividendRead) SetID

func (s *DividendRead) SetID(val int)

SetID sets the value of ID.

func (*DividendRead) SetPayDate

func (s *DividendRead) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*DividendRead) SetRecordDate

func (s *DividendRead) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*DividendRead) UnmarshalJSON

func (s *DividendRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendRead) Validate

func (s *DividendRead) Validate() error

type DividendReadDividendType

type DividendReadDividendType string
const (
	DividendReadDividendTypeCD DividendReadDividendType = "CD"
	DividendReadDividendTypeSC DividendReadDividendType = "SC"
	DividendReadDividendTypeLT DividendReadDividendType = "LT"
	DividendReadDividendTypeST DividendReadDividendType = "ST"
)

func (*DividendReadDividendType) Decode

func (s *DividendReadDividendType) Decode(d *jx.Decoder) error

Decode decodes DividendReadDividendType from json.

func (DividendReadDividendType) Encode

func (s DividendReadDividendType) Encode(e *jx.Encoder)

Encode encodes DividendReadDividendType as json.

func (DividendReadDividendType) MarshalJSON

func (s DividendReadDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DividendReadDividendType) MarshalText

func (s DividendReadDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DividendReadDividendType) UnmarshalJSON

func (s *DividendReadDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendReadDividendType) UnmarshalText

func (s *DividendReadDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DividendReadDividendType) Validate

func (s DividendReadDividendType) Validate() error

type DividendStockList

type DividendStockList struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/Dividend_StockList

func NewDividendStockList

func NewDividendStockList(e *ent.Entity) *DividendStockList

func NewDividendStockLists

func NewDividendStockLists(es []*ent.Entity) []DividendStockList

func (*DividendStockList) Decode

func (s *DividendStockList) Decode(d *jx.Decoder) error

Decode decodes DividendStockList from json.

func (*DividendStockList) Elem

func (*DividendStockList) Encode

func (s *DividendStockList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DividendStockList) GetActive

func (s *DividendStockList) GetActive() bool

GetActive returns the value of Active.

func (*DividendStockList) GetDelisted

func (s *DividendStockList) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*DividendStockList) GetDescription

func (s *DividendStockList) GetDescription() string

GetDescription returns the value of Description.

func (*DividendStockList) GetID

func (s *DividendStockList) GetID() int

GetID returns the value of ID.

func (*DividendStockList) GetListDate

func (s *DividendStockList) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*DividendStockList) GetName

func (s *DividendStockList) GetName() string

GetName returns the value of Name.

func (*DividendStockList) GetTicker

func (s *DividendStockList) GetTicker() string

GetTicker returns the value of Ticker.

func (*DividendStockList) MarshalJSON

func (s *DividendStockList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DividendStockList) SetActive

func (s *DividendStockList) SetActive(val bool)

SetActive sets the value of Active.

func (*DividendStockList) SetDelisted

func (s *DividendStockList) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*DividendStockList) SetDescription

func (s *DividendStockList) SetDescription(val string)

SetDescription sets the value of Description.

func (*DividendStockList) SetID

func (s *DividendStockList) SetID(val int)

SetID sets the value of ID.

func (*DividendStockList) SetListDate

func (s *DividendStockList) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*DividendStockList) SetName

func (s *DividendStockList) SetName(val string)

SetName sets the value of Name.

func (*DividendStockList) SetTicker

func (s *DividendStockList) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*DividendStockList) UnmarshalJSON

func (s *DividendStockList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type DividendUpdate

type DividendUpdate struct {
	ID              int                        `json:"id"`
	CashAmount      float64                    `json:"cash_amount"`
	DeclarationDate time.Time                  `json:"declaration_date"`
	DividendType    DividendUpdateDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                  `json:"ex_dividend_date"`
	Frequency       int                        `json:"frequency"`
	RecordDate      time.Time                  `json:"record_date"`
	PayDate         time.Time                  `json:"pay_date"`
}

Ref: #/components/schemas/DividendUpdate

func NewDividendUpdate

func NewDividendUpdate(e *ent.Dividend) *DividendUpdate

func NewDividendUpdates

func NewDividendUpdates(es []*ent.Dividend) []DividendUpdate

func (*DividendUpdate) Decode

func (s *DividendUpdate) Decode(d *jx.Decoder) error

Decode decodes DividendUpdate from json.

func (*DividendUpdate) Elem

func (d *DividendUpdate) Elem() DividendUpdate

func (*DividendUpdate) Encode

func (s *DividendUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*DividendUpdate) GetCashAmount

func (s *DividendUpdate) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*DividendUpdate) GetDeclarationDate

func (s *DividendUpdate) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*DividendUpdate) GetDividendType

func (s *DividendUpdate) GetDividendType() DividendUpdateDividendType

GetDividendType returns the value of DividendType.

func (*DividendUpdate) GetExDividendDate

func (s *DividendUpdate) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*DividendUpdate) GetFrequency

func (s *DividendUpdate) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*DividendUpdate) GetID

func (s *DividendUpdate) GetID() int

GetID returns the value of ID.

func (*DividendUpdate) GetPayDate

func (s *DividendUpdate) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*DividendUpdate) GetRecordDate

func (s *DividendUpdate) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*DividendUpdate) MarshalJSON

func (s *DividendUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DividendUpdate) SetCashAmount

func (s *DividendUpdate) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*DividendUpdate) SetDeclarationDate

func (s *DividendUpdate) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*DividendUpdate) SetDividendType

func (s *DividendUpdate) SetDividendType(val DividendUpdateDividendType)

SetDividendType sets the value of DividendType.

func (*DividendUpdate) SetExDividendDate

func (s *DividendUpdate) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*DividendUpdate) SetFrequency

func (s *DividendUpdate) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*DividendUpdate) SetID

func (s *DividendUpdate) SetID(val int)

SetID sets the value of ID.

func (*DividendUpdate) SetPayDate

func (s *DividendUpdate) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*DividendUpdate) SetRecordDate

func (s *DividendUpdate) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*DividendUpdate) UnmarshalJSON

func (s *DividendUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendUpdate) Validate

func (s *DividendUpdate) Validate() error

type DividendUpdateDividendType

type DividendUpdateDividendType string
const (
	DividendUpdateDividendTypeCD DividendUpdateDividendType = "CD"
	DividendUpdateDividendTypeSC DividendUpdateDividendType = "SC"
	DividendUpdateDividendTypeLT DividendUpdateDividendType = "LT"
	DividendUpdateDividendTypeST DividendUpdateDividendType = "ST"
)

func (*DividendUpdateDividendType) Decode

Decode decodes DividendUpdateDividendType from json.

func (DividendUpdateDividendType) Encode

func (s DividendUpdateDividendType) Encode(e *jx.Encoder)

Encode encodes DividendUpdateDividendType as json.

func (DividendUpdateDividendType) MarshalJSON

func (s DividendUpdateDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (DividendUpdateDividendType) MarshalText

func (s DividendUpdateDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*DividendUpdateDividendType) UnmarshalJSON

func (s *DividendUpdateDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*DividendUpdateDividendType) UnmarshalText

func (s *DividendUpdateDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (DividendUpdateDividendType) Validate

func (s DividendUpdateDividendType) Validate() error

type EntityCreate

type EntityCreate struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/EntityCreate

func NewEntityCreate

func NewEntityCreate(e *ent.Entity) *EntityCreate

func NewEntityCreates

func NewEntityCreates(es []*ent.Entity) []EntityCreate

func (*EntityCreate) Decode

func (s *EntityCreate) Decode(d *jx.Decoder) error

Decode decodes EntityCreate from json.

func (*EntityCreate) Elem

func (e *EntityCreate) Elem() EntityCreate

func (*EntityCreate) Encode

func (s *EntityCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityCreate) GetActive

func (s *EntityCreate) GetActive() bool

GetActive returns the value of Active.

func (*EntityCreate) GetDelisted

func (s *EntityCreate) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*EntityCreate) GetDescription

func (s *EntityCreate) GetDescription() string

GetDescription returns the value of Description.

func (*EntityCreate) GetID

func (s *EntityCreate) GetID() int

GetID returns the value of ID.

func (*EntityCreate) GetListDate

func (s *EntityCreate) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*EntityCreate) GetName

func (s *EntityCreate) GetName() string

GetName returns the value of Name.

func (*EntityCreate) GetTicker

func (s *EntityCreate) GetTicker() string

GetTicker returns the value of Ticker.

func (*EntityCreate) MarshalJSON

func (s *EntityCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityCreate) SetActive

func (s *EntityCreate) SetActive(val bool)

SetActive sets the value of Active.

func (*EntityCreate) SetDelisted

func (s *EntityCreate) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*EntityCreate) SetDescription

func (s *EntityCreate) SetDescription(val string)

SetDescription sets the value of Description.

func (*EntityCreate) SetID

func (s *EntityCreate) SetID(val int)

SetID sets the value of ID.

func (*EntityCreate) SetListDate

func (s *EntityCreate) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*EntityCreate) SetName

func (s *EntityCreate) SetName(val string)

SetName sets the value of Name.

func (*EntityCreate) SetTicker

func (s *EntityCreate) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*EntityCreate) UnmarshalJSON

func (s *EntityCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EntityDividendsList

type EntityDividendsList struct {
	ID              int                             `json:"id"`
	CashAmount      float64                         `json:"cash_amount"`
	DeclarationDate time.Time                       `json:"declaration_date"`
	DividendType    EntityDividendsListDividendType `json:"dividend_type"`
	ExDividendDate  time.Time                       `json:"ex_dividend_date"`
	Frequency       int                             `json:"frequency"`
	RecordDate      time.Time                       `json:"record_date"`
	PayDate         time.Time                       `json:"pay_date"`
}

Ref: #/components/schemas/Entity_DividendsList

func NewEntityDividendsList

func NewEntityDividendsList(e *ent.Dividend) *EntityDividendsList

func NewEntityDividendsLists

func NewEntityDividendsLists(es []*ent.Dividend) []EntityDividendsList

func (*EntityDividendsList) Decode

func (s *EntityDividendsList) Decode(d *jx.Decoder) error

Decode decodes EntityDividendsList from json.

func (*EntityDividendsList) Elem

func (*EntityDividendsList) Encode

func (s *EntityDividendsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityDividendsList) GetCashAmount

func (s *EntityDividendsList) GetCashAmount() float64

GetCashAmount returns the value of CashAmount.

func (*EntityDividendsList) GetDeclarationDate

func (s *EntityDividendsList) GetDeclarationDate() time.Time

GetDeclarationDate returns the value of DeclarationDate.

func (*EntityDividendsList) GetDividendType

GetDividendType returns the value of DividendType.

func (*EntityDividendsList) GetExDividendDate

func (s *EntityDividendsList) GetExDividendDate() time.Time

GetExDividendDate returns the value of ExDividendDate.

func (*EntityDividendsList) GetFrequency

func (s *EntityDividendsList) GetFrequency() int

GetFrequency returns the value of Frequency.

func (*EntityDividendsList) GetID

func (s *EntityDividendsList) GetID() int

GetID returns the value of ID.

func (*EntityDividendsList) GetPayDate

func (s *EntityDividendsList) GetPayDate() time.Time

GetPayDate returns the value of PayDate.

func (*EntityDividendsList) GetRecordDate

func (s *EntityDividendsList) GetRecordDate() time.Time

GetRecordDate returns the value of RecordDate.

func (*EntityDividendsList) MarshalJSON

func (s *EntityDividendsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityDividendsList) SetCashAmount

func (s *EntityDividendsList) SetCashAmount(val float64)

SetCashAmount sets the value of CashAmount.

func (*EntityDividendsList) SetDeclarationDate

func (s *EntityDividendsList) SetDeclarationDate(val time.Time)

SetDeclarationDate sets the value of DeclarationDate.

func (*EntityDividendsList) SetDividendType

func (s *EntityDividendsList) SetDividendType(val EntityDividendsListDividendType)

SetDividendType sets the value of DividendType.

func (*EntityDividendsList) SetExDividendDate

func (s *EntityDividendsList) SetExDividendDate(val time.Time)

SetExDividendDate sets the value of ExDividendDate.

func (*EntityDividendsList) SetFrequency

func (s *EntityDividendsList) SetFrequency(val int)

SetFrequency sets the value of Frequency.

func (*EntityDividendsList) SetID

func (s *EntityDividendsList) SetID(val int)

SetID sets the value of ID.

func (*EntityDividendsList) SetPayDate

func (s *EntityDividendsList) SetPayDate(val time.Time)

SetPayDate sets the value of PayDate.

func (*EntityDividendsList) SetRecordDate

func (s *EntityDividendsList) SetRecordDate(val time.Time)

SetRecordDate sets the value of RecordDate.

func (*EntityDividendsList) UnmarshalJSON

func (s *EntityDividendsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EntityDividendsList) Validate

func (s *EntityDividendsList) Validate() error

type EntityDividendsListDividendType

type EntityDividendsListDividendType string
const (
	EntityDividendsListDividendTypeCD EntityDividendsListDividendType = "CD"
	EntityDividendsListDividendTypeSC EntityDividendsListDividendType = "SC"
	EntityDividendsListDividendTypeLT EntityDividendsListDividendType = "LT"
	EntityDividendsListDividendTypeST EntityDividendsListDividendType = "ST"
)

func (*EntityDividendsListDividendType) Decode

Decode decodes EntityDividendsListDividendType from json.

func (EntityDividendsListDividendType) Encode

Encode encodes EntityDividendsListDividendType as json.

func (EntityDividendsListDividendType) MarshalJSON

func (s EntityDividendsListDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EntityDividendsListDividendType) MarshalText

func (s EntityDividendsListDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EntityDividendsListDividendType) UnmarshalJSON

func (s *EntityDividendsListDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EntityDividendsListDividendType) UnmarshalText

func (s *EntityDividendsListDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EntityDividendsListDividendType) Validate

type EntityExchangesList

type EntityExchangesList struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/Entity_ExchangesList

func NewEntityExchangesList

func NewEntityExchangesList(e *ent.Exchange) *EntityExchangesList

func NewEntityExchangesLists

func NewEntityExchangesLists(es []*ent.Exchange) []EntityExchangesList

func (*EntityExchangesList) Decode

func (s *EntityExchangesList) Decode(d *jx.Decoder) error

Decode decodes EntityExchangesList from json.

func (*EntityExchangesList) Elem

func (*EntityExchangesList) Encode

func (s *EntityExchangesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityExchangesList) GetCode

func (s *EntityExchangesList) GetCode() string

GetCode returns the value of Code.

func (*EntityExchangesList) GetID

func (s *EntityExchangesList) GetID() int

GetID returns the value of ID.

func (*EntityExchangesList) GetName

func (s *EntityExchangesList) GetName() string

GetName returns the value of Name.

func (*EntityExchangesList) MarshalJSON

func (s *EntityExchangesList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityExchangesList) SetCode

func (s *EntityExchangesList) SetCode(val string)

SetCode sets the value of Code.

func (*EntityExchangesList) SetID

func (s *EntityExchangesList) SetID(val int)

SetID sets the value of ID.

func (*EntityExchangesList) SetName

func (s *EntityExchangesList) SetName(val string)

SetName sets the value of Name.

func (*EntityExchangesList) UnmarshalJSON

func (s *EntityExchangesList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EntityFinancialsList

type EntityFinancialsList struct {
	ID int `json:"id"`
}

Ref: #/components/schemas/Entity_FinancialsList

func NewEntityFinancialsList

func NewEntityFinancialsList(e *ent.Financial) *EntityFinancialsList

func NewEntityFinancialsLists

func NewEntityFinancialsLists(es []*ent.Financial) []EntityFinancialsList

func (*EntityFinancialsList) Decode

func (s *EntityFinancialsList) Decode(d *jx.Decoder) error

Decode decodes EntityFinancialsList from json.

func (*EntityFinancialsList) Elem

func (*EntityFinancialsList) Encode

func (s *EntityFinancialsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityFinancialsList) GetID

func (s *EntityFinancialsList) GetID() int

GetID returns the value of ID.

func (*EntityFinancialsList) MarshalJSON

func (s *EntityFinancialsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityFinancialsList) SetID

func (s *EntityFinancialsList) SetID(val int)

SetID sets the value of ID.

func (*EntityFinancialsList) UnmarshalJSON

func (s *EntityFinancialsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EntityIntervalsList

type EntityIntervalsList struct {
	ID           int                         `json:"id"`
	Active       bool                        `json:"active"`
	Interval     EntityIntervalsListInterval `json:"interval"`
	StockID      int                         `json:"stock_id"`
	DataSourceID int                         `json:"data_source_id"`
}

Ref: #/components/schemas/Entity_IntervalsList

func NewEntityIntervalsList

func NewEntityIntervalsList(e *ent.Interval) *EntityIntervalsList

func NewEntityIntervalsLists

func NewEntityIntervalsLists(es []*ent.Interval) []EntityIntervalsList

func (*EntityIntervalsList) Decode

func (s *EntityIntervalsList) Decode(d *jx.Decoder) error

Decode decodes EntityIntervalsList from json.

func (*EntityIntervalsList) Elem

func (*EntityIntervalsList) Encode

func (s *EntityIntervalsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityIntervalsList) GetActive

func (s *EntityIntervalsList) GetActive() bool

GetActive returns the value of Active.

func (*EntityIntervalsList) GetDataSourceID

func (s *EntityIntervalsList) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*EntityIntervalsList) GetID

func (s *EntityIntervalsList) GetID() int

GetID returns the value of ID.

func (*EntityIntervalsList) GetInterval

GetInterval returns the value of Interval.

func (*EntityIntervalsList) GetStockID

func (s *EntityIntervalsList) GetStockID() int

GetStockID returns the value of StockID.

func (*EntityIntervalsList) MarshalJSON

func (s *EntityIntervalsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityIntervalsList) SetActive

func (s *EntityIntervalsList) SetActive(val bool)

SetActive sets the value of Active.

func (*EntityIntervalsList) SetDataSourceID

func (s *EntityIntervalsList) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*EntityIntervalsList) SetID

func (s *EntityIntervalsList) SetID(val int)

SetID sets the value of ID.

func (*EntityIntervalsList) SetInterval

SetInterval sets the value of Interval.

func (*EntityIntervalsList) SetStockID

func (s *EntityIntervalsList) SetStockID(val int)

SetStockID sets the value of StockID.

func (*EntityIntervalsList) UnmarshalJSON

func (s *EntityIntervalsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EntityIntervalsList) Validate

func (s *EntityIntervalsList) Validate() error

type EntityIntervalsListInterval

type EntityIntervalsListInterval string
const (
	EntityIntervalsListIntervalTrades  EntityIntervalsListInterval = "trades"
	EntityIntervalsListInterval1min    EntityIntervalsListInterval = "1min"
	EntityIntervalsListIntervalDaily   EntityIntervalsListInterval = "daily"
	EntityIntervalsListIntervalMonthly EntityIntervalsListInterval = "monthly"
	EntityIntervalsListIntervalYearly  EntityIntervalsListInterval = "yearly"
)

func (*EntityIntervalsListInterval) Decode

Decode decodes EntityIntervalsListInterval from json.

func (EntityIntervalsListInterval) Encode

func (s EntityIntervalsListInterval) Encode(e *jx.Encoder)

Encode encodes EntityIntervalsListInterval as json.

func (EntityIntervalsListInterval) MarshalJSON

func (s EntityIntervalsListInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (EntityIntervalsListInterval) MarshalText

func (s EntityIntervalsListInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*EntityIntervalsListInterval) UnmarshalJSON

func (s *EntityIntervalsListInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EntityIntervalsListInterval) UnmarshalText

func (s *EntityIntervalsListInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (EntityIntervalsListInterval) Validate

func (s EntityIntervalsListInterval) Validate() error

type EntityList

type EntityList struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/EntityList

func NewEntityList

func NewEntityList(e *ent.Entity) *EntityList

func NewEntityLists

func NewEntityLists(es []*ent.Entity) []EntityList

func (*EntityList) Decode

func (s *EntityList) Decode(d *jx.Decoder) error

Decode decodes EntityList from json.

func (*EntityList) Elem

func (e *EntityList) Elem() EntityList

func (*EntityList) Encode

func (s *EntityList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityList) GetActive

func (s *EntityList) GetActive() bool

GetActive returns the value of Active.

func (*EntityList) GetDelisted

func (s *EntityList) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*EntityList) GetDescription

func (s *EntityList) GetDescription() string

GetDescription returns the value of Description.

func (*EntityList) GetID

func (s *EntityList) GetID() int

GetID returns the value of ID.

func (*EntityList) GetListDate

func (s *EntityList) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*EntityList) GetName

func (s *EntityList) GetName() string

GetName returns the value of Name.

func (*EntityList) GetTicker

func (s *EntityList) GetTicker() string

GetTicker returns the value of Ticker.

func (*EntityList) MarshalJSON

func (s *EntityList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityList) SetActive

func (s *EntityList) SetActive(val bool)

SetActive sets the value of Active.

func (*EntityList) SetDelisted

func (s *EntityList) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*EntityList) SetDescription

func (s *EntityList) SetDescription(val string)

SetDescription sets the value of Description.

func (*EntityList) SetID

func (s *EntityList) SetID(val int)

SetID sets the value of ID.

func (*EntityList) SetListDate

func (s *EntityList) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*EntityList) SetName

func (s *EntityList) SetName(val string)

SetName sets the value of Name.

func (*EntityList) SetTicker

func (s *EntityList) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*EntityList) UnmarshalJSON

func (s *EntityList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EntityRead

type EntityRead struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/EntityRead

func NewEntityRead

func NewEntityRead(e *ent.Entity) *EntityRead

func NewEntityReads

func NewEntityReads(es []*ent.Entity) []EntityRead

func (*EntityRead) Decode

func (s *EntityRead) Decode(d *jx.Decoder) error

Decode decodes EntityRead from json.

func (*EntityRead) Elem

func (e *EntityRead) Elem() EntityRead

func (*EntityRead) Encode

func (s *EntityRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityRead) GetActive

func (s *EntityRead) GetActive() bool

GetActive returns the value of Active.

func (*EntityRead) GetDelisted

func (s *EntityRead) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*EntityRead) GetDescription

func (s *EntityRead) GetDescription() string

GetDescription returns the value of Description.

func (*EntityRead) GetID

func (s *EntityRead) GetID() int

GetID returns the value of ID.

func (*EntityRead) GetListDate

func (s *EntityRead) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*EntityRead) GetName

func (s *EntityRead) GetName() string

GetName returns the value of Name.

func (*EntityRead) GetTicker

func (s *EntityRead) GetTicker() string

GetTicker returns the value of Ticker.

func (*EntityRead) MarshalJSON

func (s *EntityRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityRead) SetActive

func (s *EntityRead) SetActive(val bool)

SetActive sets the value of Active.

func (*EntityRead) SetDelisted

func (s *EntityRead) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*EntityRead) SetDescription

func (s *EntityRead) SetDescription(val string)

SetDescription sets the value of Description.

func (*EntityRead) SetID

func (s *EntityRead) SetID(val int)

SetID sets the value of ID.

func (*EntityRead) SetListDate

func (s *EntityRead) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*EntityRead) SetName

func (s *EntityRead) SetName(val string)

SetName sets the value of Name.

func (*EntityRead) SetTicker

func (s *EntityRead) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*EntityRead) UnmarshalJSON

func (s *EntityRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type EntitySplitsList

type EntitySplitsList struct {
	ID            int       `json:"id"`
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
}

Ref: #/components/schemas/Entity_SplitsList

func NewEntitySplitsList

func NewEntitySplitsList(e *ent.Split) *EntitySplitsList

func NewEntitySplitsLists

func NewEntitySplitsLists(es []*ent.Split) []EntitySplitsList

func (*EntitySplitsList) Decode

func (s *EntitySplitsList) Decode(d *jx.Decoder) error

Decode decodes EntitySplitsList from json.

func (*EntitySplitsList) Elem

func (*EntitySplitsList) Encode

func (s *EntitySplitsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntitySplitsList) GetExecutionDate

func (s *EntitySplitsList) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*EntitySplitsList) GetFrom

func (s *EntitySplitsList) GetFrom() float64

GetFrom returns the value of From.

func (*EntitySplitsList) GetID

func (s *EntitySplitsList) GetID() int

GetID returns the value of ID.

func (*EntitySplitsList) GetTo

func (s *EntitySplitsList) GetTo() float64

GetTo returns the value of To.

func (*EntitySplitsList) MarshalJSON

func (s *EntitySplitsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntitySplitsList) SetExecutionDate

func (s *EntitySplitsList) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*EntitySplitsList) SetFrom

func (s *EntitySplitsList) SetFrom(val float64)

SetFrom sets the value of From.

func (*EntitySplitsList) SetID

func (s *EntitySplitsList) SetID(val int)

SetID sets the value of ID.

func (*EntitySplitsList) SetTo

func (s *EntitySplitsList) SetTo(val float64)

SetTo sets the value of To.

func (*EntitySplitsList) UnmarshalJSON

func (s *EntitySplitsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*EntitySplitsList) Validate

func (s *EntitySplitsList) Validate() error

type EntityUpdate

type EntityUpdate struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/EntityUpdate

func NewEntityUpdate

func NewEntityUpdate(e *ent.Entity) *EntityUpdate

func NewEntityUpdates

func NewEntityUpdates(es []*ent.Entity) []EntityUpdate

func (*EntityUpdate) Decode

func (s *EntityUpdate) Decode(d *jx.Decoder) error

Decode decodes EntityUpdate from json.

func (*EntityUpdate) Elem

func (e *EntityUpdate) Elem() EntityUpdate

func (*EntityUpdate) Encode

func (s *EntityUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*EntityUpdate) GetActive

func (s *EntityUpdate) GetActive() bool

GetActive returns the value of Active.

func (*EntityUpdate) GetDelisted

func (s *EntityUpdate) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*EntityUpdate) GetDescription

func (s *EntityUpdate) GetDescription() string

GetDescription returns the value of Description.

func (*EntityUpdate) GetID

func (s *EntityUpdate) GetID() int

GetID returns the value of ID.

func (*EntityUpdate) GetListDate

func (s *EntityUpdate) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*EntityUpdate) GetName

func (s *EntityUpdate) GetName() string

GetName returns the value of Name.

func (*EntityUpdate) GetTicker

func (s *EntityUpdate) GetTicker() string

GetTicker returns the value of Ticker.

func (*EntityUpdate) MarshalJSON

func (s *EntityUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*EntityUpdate) SetActive

func (s *EntityUpdate) SetActive(val bool)

SetActive sets the value of Active.

func (*EntityUpdate) SetDelisted

func (s *EntityUpdate) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*EntityUpdate) SetDescription

func (s *EntityUpdate) SetDescription(val string)

SetDescription sets the value of Description.

func (*EntityUpdate) SetID

func (s *EntityUpdate) SetID(val int)

SetID sets the value of ID.

func (*EntityUpdate) SetListDate

func (s *EntityUpdate) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*EntityUpdate) SetName

func (s *EntityUpdate) SetName(val string)

SetName sets the value of Name.

func (*EntityUpdate) SetTicker

func (s *EntityUpdate) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*EntityUpdate) UnmarshalJSON

func (s *EntityUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ErrorHandler

type ErrorHandler = ogenerrors.ErrorHandler

ErrorHandler is error handler.

type ExchangeCreate

type ExchangeCreate struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/ExchangeCreate

func NewExchangeCreate

func NewExchangeCreate(e *ent.Exchange) *ExchangeCreate

func NewExchangeCreates

func NewExchangeCreates(es []*ent.Exchange) []ExchangeCreate

func (*ExchangeCreate) Decode

func (s *ExchangeCreate) Decode(d *jx.Decoder) error

Decode decodes ExchangeCreate from json.

func (*ExchangeCreate) Elem

func (e *ExchangeCreate) Elem() ExchangeCreate

func (*ExchangeCreate) Encode

func (s *ExchangeCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeCreate) GetCode

func (s *ExchangeCreate) GetCode() string

GetCode returns the value of Code.

func (*ExchangeCreate) GetID

func (s *ExchangeCreate) GetID() int

GetID returns the value of ID.

func (*ExchangeCreate) GetName

func (s *ExchangeCreate) GetName() string

GetName returns the value of Name.

func (*ExchangeCreate) MarshalJSON

func (s *ExchangeCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeCreate) SetCode

func (s *ExchangeCreate) SetCode(val string)

SetCode sets the value of Code.

func (*ExchangeCreate) SetID

func (s *ExchangeCreate) SetID(val int)

SetID sets the value of ID.

func (*ExchangeCreate) SetName

func (s *ExchangeCreate) SetName(val string)

SetName sets the value of Name.

func (*ExchangeCreate) UnmarshalJSON

func (s *ExchangeCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeList

type ExchangeList struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/ExchangeList

func NewExchangeList

func NewExchangeList(e *ent.Exchange) *ExchangeList

func NewExchangeLists

func NewExchangeLists(es []*ent.Exchange) []ExchangeList

func (*ExchangeList) Decode

func (s *ExchangeList) Decode(d *jx.Decoder) error

Decode decodes ExchangeList from json.

func (*ExchangeList) Elem

func (e *ExchangeList) Elem() ExchangeList

func (*ExchangeList) Encode

func (s *ExchangeList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeList) GetCode

func (s *ExchangeList) GetCode() string

GetCode returns the value of Code.

func (*ExchangeList) GetID

func (s *ExchangeList) GetID() int

GetID returns the value of ID.

func (*ExchangeList) GetName

func (s *ExchangeList) GetName() string

GetName returns the value of Name.

func (*ExchangeList) MarshalJSON

func (s *ExchangeList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeList) SetCode

func (s *ExchangeList) SetCode(val string)

SetCode sets the value of Code.

func (*ExchangeList) SetID

func (s *ExchangeList) SetID(val int)

SetID sets the value of ID.

func (*ExchangeList) SetName

func (s *ExchangeList) SetName(val string)

SetName sets the value of Name.

func (*ExchangeList) UnmarshalJSON

func (s *ExchangeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeRead

type ExchangeRead struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/ExchangeRead

func NewExchangeRead

func NewExchangeRead(e *ent.Exchange) *ExchangeRead

func NewExchangeReads

func NewExchangeReads(es []*ent.Exchange) []ExchangeRead

func (*ExchangeRead) Decode

func (s *ExchangeRead) Decode(d *jx.Decoder) error

Decode decodes ExchangeRead from json.

func (*ExchangeRead) Elem

func (e *ExchangeRead) Elem() ExchangeRead

func (*ExchangeRead) Encode

func (s *ExchangeRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeRead) GetCode

func (s *ExchangeRead) GetCode() string

GetCode returns the value of Code.

func (*ExchangeRead) GetID

func (s *ExchangeRead) GetID() int

GetID returns the value of ID.

func (*ExchangeRead) GetName

func (s *ExchangeRead) GetName() string

GetName returns the value of Name.

func (*ExchangeRead) MarshalJSON

func (s *ExchangeRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeRead) SetCode

func (s *ExchangeRead) SetCode(val string)

SetCode sets the value of Code.

func (*ExchangeRead) SetID

func (s *ExchangeRead) SetID(val int)

SetID sets the value of ID.

func (*ExchangeRead) SetName

func (s *ExchangeRead) SetName(val string)

SetName sets the value of Name.

func (*ExchangeRead) UnmarshalJSON

func (s *ExchangeRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeStocksList

type ExchangeStocksList struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/Exchange_StocksList

func NewExchangeStocksList

func NewExchangeStocksList(e *ent.Entity) *ExchangeStocksList

func NewExchangeStocksLists

func NewExchangeStocksLists(es []*ent.Entity) []ExchangeStocksList

func (*ExchangeStocksList) Decode

func (s *ExchangeStocksList) Decode(d *jx.Decoder) error

Decode decodes ExchangeStocksList from json.

func (*ExchangeStocksList) Elem

func (*ExchangeStocksList) Encode

func (s *ExchangeStocksList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeStocksList) GetActive

func (s *ExchangeStocksList) GetActive() bool

GetActive returns the value of Active.

func (*ExchangeStocksList) GetDelisted

func (s *ExchangeStocksList) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*ExchangeStocksList) GetDescription

func (s *ExchangeStocksList) GetDescription() string

GetDescription returns the value of Description.

func (*ExchangeStocksList) GetID

func (s *ExchangeStocksList) GetID() int

GetID returns the value of ID.

func (*ExchangeStocksList) GetListDate

func (s *ExchangeStocksList) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*ExchangeStocksList) GetName

func (s *ExchangeStocksList) GetName() string

GetName returns the value of Name.

func (*ExchangeStocksList) GetTicker

func (s *ExchangeStocksList) GetTicker() string

GetTicker returns the value of Ticker.

func (*ExchangeStocksList) MarshalJSON

func (s *ExchangeStocksList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeStocksList) SetActive

func (s *ExchangeStocksList) SetActive(val bool)

SetActive sets the value of Active.

func (*ExchangeStocksList) SetDelisted

func (s *ExchangeStocksList) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*ExchangeStocksList) SetDescription

func (s *ExchangeStocksList) SetDescription(val string)

SetDescription sets the value of Description.

func (*ExchangeStocksList) SetID

func (s *ExchangeStocksList) SetID(val int)

SetID sets the value of ID.

func (*ExchangeStocksList) SetListDate

func (s *ExchangeStocksList) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*ExchangeStocksList) SetName

func (s *ExchangeStocksList) SetName(val string)

SetName sets the value of Name.

func (*ExchangeStocksList) SetTicker

func (s *ExchangeStocksList) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*ExchangeStocksList) UnmarshalJSON

func (s *ExchangeStocksList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ExchangeUpdate

type ExchangeUpdate struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/ExchangeUpdate

func NewExchangeUpdate

func NewExchangeUpdate(e *ent.Exchange) *ExchangeUpdate

func NewExchangeUpdates

func NewExchangeUpdates(es []*ent.Exchange) []ExchangeUpdate

func (*ExchangeUpdate) Decode

func (s *ExchangeUpdate) Decode(d *jx.Decoder) error

Decode decodes ExchangeUpdate from json.

func (*ExchangeUpdate) Elem

func (e *ExchangeUpdate) Elem() ExchangeUpdate

func (*ExchangeUpdate) Encode

func (s *ExchangeUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*ExchangeUpdate) GetCode

func (s *ExchangeUpdate) GetCode() string

GetCode returns the value of Code.

func (*ExchangeUpdate) GetID

func (s *ExchangeUpdate) GetID() int

GetID returns the value of ID.

func (*ExchangeUpdate) GetName

func (s *ExchangeUpdate) GetName() string

GetName returns the value of Name.

func (*ExchangeUpdate) MarshalJSON

func (s *ExchangeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ExchangeUpdate) SetCode

func (s *ExchangeUpdate) SetCode(val string)

SetCode sets the value of Code.

func (*ExchangeUpdate) SetID

func (s *ExchangeUpdate) SetID(val int)

SetID sets the value of ID.

func (*ExchangeUpdate) SetName

func (s *ExchangeUpdate) SetName(val string)

SetName sets the value of Name.

func (*ExchangeUpdate) UnmarshalJSON

func (s *ExchangeUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FinancialCreate

type FinancialCreate struct {
	ID int `json:"id"`
}

Ref: #/components/schemas/FinancialCreate

func NewFinancialCreate

func NewFinancialCreate(e *ent.Financial) *FinancialCreate

func NewFinancialCreates

func NewFinancialCreates(es []*ent.Financial) []FinancialCreate

func (*FinancialCreate) Decode

func (s *FinancialCreate) Decode(d *jx.Decoder) error

Decode decodes FinancialCreate from json.

func (*FinancialCreate) Elem

func (f *FinancialCreate) Elem() FinancialCreate

func (*FinancialCreate) Encode

func (s *FinancialCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FinancialCreate) GetID

func (s *FinancialCreate) GetID() int

GetID returns the value of ID.

func (*FinancialCreate) MarshalJSON

func (s *FinancialCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FinancialCreate) SetID

func (s *FinancialCreate) SetID(val int)

SetID sets the value of ID.

func (*FinancialCreate) UnmarshalJSON

func (s *FinancialCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FinancialList

type FinancialList struct {
	ID int `json:"id"`
}

Ref: #/components/schemas/FinancialList

func NewFinancialList

func NewFinancialList(e *ent.Financial) *FinancialList

func NewFinancialLists

func NewFinancialLists(es []*ent.Financial) []FinancialList

func (*FinancialList) Decode

func (s *FinancialList) Decode(d *jx.Decoder) error

Decode decodes FinancialList from json.

func (*FinancialList) Elem

func (f *FinancialList) Elem() FinancialList

func (*FinancialList) Encode

func (s *FinancialList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FinancialList) GetID

func (s *FinancialList) GetID() int

GetID returns the value of ID.

func (*FinancialList) MarshalJSON

func (s *FinancialList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FinancialList) SetID

func (s *FinancialList) SetID(val int)

SetID sets the value of ID.

func (*FinancialList) UnmarshalJSON

func (s *FinancialList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FinancialRead

type FinancialRead struct {
	ID int `json:"id"`
}

Ref: #/components/schemas/FinancialRead

func NewFinancialRead

func NewFinancialRead(e *ent.Financial) *FinancialRead

func NewFinancialReads

func NewFinancialReads(es []*ent.Financial) []FinancialRead

func (*FinancialRead) Decode

func (s *FinancialRead) Decode(d *jx.Decoder) error

Decode decodes FinancialRead from json.

func (*FinancialRead) Elem

func (f *FinancialRead) Elem() FinancialRead

func (*FinancialRead) Encode

func (s *FinancialRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FinancialRead) GetID

func (s *FinancialRead) GetID() int

GetID returns the value of ID.

func (*FinancialRead) MarshalJSON

func (s *FinancialRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FinancialRead) SetID

func (s *FinancialRead) SetID(val int)

SetID sets the value of ID.

func (*FinancialRead) UnmarshalJSON

func (s *FinancialRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FinancialStockList

type FinancialStockList struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/Financial_StockList

func NewFinancialStockList

func NewFinancialStockList(e *ent.Entity) *FinancialStockList

func NewFinancialStockLists

func NewFinancialStockLists(es []*ent.Entity) []FinancialStockList

func (*FinancialStockList) Decode

func (s *FinancialStockList) Decode(d *jx.Decoder) error

Decode decodes FinancialStockList from json.

func (*FinancialStockList) Elem

func (*FinancialStockList) Encode

func (s *FinancialStockList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FinancialStockList) GetActive

func (s *FinancialStockList) GetActive() bool

GetActive returns the value of Active.

func (*FinancialStockList) GetDelisted

func (s *FinancialStockList) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*FinancialStockList) GetDescription

func (s *FinancialStockList) GetDescription() string

GetDescription returns the value of Description.

func (*FinancialStockList) GetID

func (s *FinancialStockList) GetID() int

GetID returns the value of ID.

func (*FinancialStockList) GetListDate

func (s *FinancialStockList) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*FinancialStockList) GetName

func (s *FinancialStockList) GetName() string

GetName returns the value of Name.

func (*FinancialStockList) GetTicker

func (s *FinancialStockList) GetTicker() string

GetTicker returns the value of Ticker.

func (*FinancialStockList) MarshalJSON

func (s *FinancialStockList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FinancialStockList) SetActive

func (s *FinancialStockList) SetActive(val bool)

SetActive sets the value of Active.

func (*FinancialStockList) SetDelisted

func (s *FinancialStockList) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*FinancialStockList) SetDescription

func (s *FinancialStockList) SetDescription(val string)

SetDescription sets the value of Description.

func (*FinancialStockList) SetID

func (s *FinancialStockList) SetID(val int)

SetID sets the value of ID.

func (*FinancialStockList) SetListDate

func (s *FinancialStockList) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*FinancialStockList) SetName

func (s *FinancialStockList) SetName(val string)

SetName sets the value of Name.

func (*FinancialStockList) SetTicker

func (s *FinancialStockList) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*FinancialStockList) UnmarshalJSON

func (s *FinancialStockList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FinancialUpdate

type FinancialUpdate struct {
	ID int `json:"id"`
}

Ref: #/components/schemas/FinancialUpdate

func NewFinancialUpdate

func NewFinancialUpdate(e *ent.Financial) *FinancialUpdate

func NewFinancialUpdates

func NewFinancialUpdates(es []*ent.Financial) []FinancialUpdate

func (*FinancialUpdate) Decode

func (s *FinancialUpdate) Decode(d *jx.Decoder) error

Decode decodes FinancialUpdate from json.

func (*FinancialUpdate) Elem

func (f *FinancialUpdate) Elem() FinancialUpdate

func (*FinancialUpdate) Encode

func (s *FinancialUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*FinancialUpdate) GetID

func (s *FinancialUpdate) GetID() int

GetID returns the value of ID.

func (*FinancialUpdate) MarshalJSON

func (s *FinancialUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FinancialUpdate) SetID

func (s *FinancialUpdate) SetID(val int)

SetID sets the value of ID.

func (*FinancialUpdate) UnmarshalJSON

func (s *FinancialUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Handler

type Handler interface {
	// AddTicker implements addTicker operation.
	//
	// Queue for adding entities by ticker.
	//
	// POST /rest/entities/add/{ticker}
	AddTicker(ctx context.Context, params AddTickerParams) error
	// CreateBarGroup implements createBarGroup operation.
	//
	// Creates a new BarGroup and persists it to storage.
	//
	// POST /rest/bar-groups
	CreateBarGroup(ctx context.Context, req *CreateBarGroupReq) (CreateBarGroupRes, error)
	// CreateBarRecord implements createBarRecord operation.
	//
	// Creates a new BarRecord and persists it to storage.
	//
	// POST /rest/bar-records
	CreateBarRecord(ctx context.Context, req *CreateBarRecordReq) (CreateBarRecordRes, error)
	// CreateBarTimeRange implements createBarTimeRange operation.
	//
	// Creates a new BarTimeRange and persists it to storage.
	//
	// POST /rest/bar-time-ranges
	CreateBarTimeRange(ctx context.Context, req *CreateBarTimeRangeReq) (CreateBarTimeRangeRes, error)
	// CreateDataSource implements createDataSource operation.
	//
	// Creates a new DataSource and persists it to storage.
	//
	// POST /rest/data-sources
	CreateDataSource(ctx context.Context, req *CreateDataSourceReq) (CreateDataSourceRes, error)
	// CreateDividend implements createDividend operation.
	//
	// Creates a new Dividend and persists it to storage.
	//
	// POST /rest/dividends
	CreateDividend(ctx context.Context, req *CreateDividendReq) (CreateDividendRes, error)
	// CreateEntity implements createEntity operation.
	//
	// Creates a new Entity and persists it to storage.
	//
	// POST /rest/entities
	CreateEntity(ctx context.Context, req *CreateEntityReq) (CreateEntityRes, error)
	// CreateExchange implements createExchange operation.
	//
	// Creates a new Exchange and persists it to storage.
	//
	// POST /rest/exchanges
	CreateExchange(ctx context.Context, req *CreateExchangeReq) (CreateExchangeRes, error)
	// CreateFinancial implements createFinancial operation.
	//
	// Creates a new Financial and persists it to storage.
	//
	// POST /rest/financials
	CreateFinancial(ctx context.Context, req *CreateFinancialReq) (CreateFinancialRes, error)
	// CreateInterval implements createInterval operation.
	//
	// Creates a new Interval and persists it to storage.
	//
	// POST /rest/intervals
	CreateInterval(ctx context.Context, req *CreateIntervalReq) (CreateIntervalRes, error)
	// CreateMarketHours implements createMarketHours operation.
	//
	// Creates a new MarketHours and persists it to storage.
	//
	// POST /rest/market-hours
	CreateMarketHours(ctx context.Context, req *CreateMarketHoursReq) (CreateMarketHoursRes, error)
	// CreateMarketInfo implements createMarketInfo operation.
	//
	// Creates a new MarketInfo and persists it to storage.
	//
	// POST /rest/market-infos
	CreateMarketInfo(ctx context.Context, req *CreateMarketInfoReq) (CreateMarketInfoRes, error)
	// CreateSplit implements createSplit operation.
	//
	// Creates a new Split and persists it to storage.
	//
	// POST /rest/splits
	CreateSplit(ctx context.Context, req *CreateSplitReq) (CreateSplitRes, error)
	// CreateTradeCondition implements createTradeCondition operation.
	//
	// Creates a new TradeCondition and persists it to storage.
	//
	// POST /rest/trade-conditions
	CreateTradeCondition(ctx context.Context, req *CreateTradeConditionReq) (CreateTradeConditionRes, error)
	// CreateTradeCorrection implements createTradeCorrection operation.
	//
	// Creates a new TradeCorrection and persists it to storage.
	//
	// POST /rest/trade-corrections
	CreateTradeCorrection(ctx context.Context, req *CreateTradeCorrectionReq) (CreateTradeCorrectionRes, error)
	// CreateTradeRecord implements createTradeRecord operation.
	//
	// Creates a new TradeRecord and persists it to storage.
	//
	// POST /rest/trade-records
	CreateTradeRecord(ctx context.Context, req *CreateTradeRecordReq) (CreateTradeRecordRes, error)
	// CreateTradeTimeRange implements createTradeTimeRange operation.
	//
	// Creates a new TradeTimeRange and persists it to storage.
	//
	// POST /rest/trade-time-ranges
	CreateTradeTimeRange(ctx context.Context, req *CreateTradeTimeRangeReq) (CreateTradeTimeRangeRes, error)
	// DeleteBarGroup implements deleteBarGroup operation.
	//
	// Deletes the BarGroup with the requested ID.
	//
	// DELETE /rest/bar-groups/{id}
	DeleteBarGroup(ctx context.Context, params DeleteBarGroupParams) (DeleteBarGroupRes, error)
	// DeleteBarRecord implements deleteBarRecord operation.
	//
	// Deletes the BarRecord with the requested ID.
	//
	// DELETE /rest/bar-records/{id}
	DeleteBarRecord(ctx context.Context, params DeleteBarRecordParams) (DeleteBarRecordRes, error)
	// DeleteBarTimeRange implements deleteBarTimeRange operation.
	//
	// Deletes the BarTimeRange with the requested ID.
	//
	// DELETE /rest/bar-time-ranges/{id}
	DeleteBarTimeRange(ctx context.Context, params DeleteBarTimeRangeParams) (DeleteBarTimeRangeRes, error)
	// DeleteDataSource implements deleteDataSource operation.
	//
	// Deletes the DataSource with the requested ID.
	//
	// DELETE /rest/data-sources/{id}
	DeleteDataSource(ctx context.Context, params DeleteDataSourceParams) (DeleteDataSourceRes, error)
	// DeleteDividend implements deleteDividend operation.
	//
	// Deletes the Dividend with the requested ID.
	//
	// DELETE /rest/dividends/{id}
	DeleteDividend(ctx context.Context, params DeleteDividendParams) (DeleteDividendRes, error)
	// DeleteEntity implements deleteEntity operation.
	//
	// Deletes the Entity with the requested ID.
	//
	// DELETE /rest/entities/{id}
	DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)
	// DeleteExchange implements deleteExchange operation.
	//
	// Deletes the Exchange with the requested ID.
	//
	// DELETE /rest/exchanges/{id}
	DeleteExchange(ctx context.Context, params DeleteExchangeParams) (DeleteExchangeRes, error)
	// DeleteFinancial implements deleteFinancial operation.
	//
	// Deletes the Financial with the requested ID.
	//
	// DELETE /rest/financials/{id}
	DeleteFinancial(ctx context.Context, params DeleteFinancialParams) (DeleteFinancialRes, error)
	// DeleteInterval implements deleteInterval operation.
	//
	// Deletes the Interval with the requested ID.
	//
	// DELETE /rest/intervals/{id}
	DeleteInterval(ctx context.Context, params DeleteIntervalParams) (DeleteIntervalRes, error)
	// DeleteMarketHours implements deleteMarketHours operation.
	//
	// Deletes the MarketHours with the requested ID.
	//
	// DELETE /rest/market-hours/{id}
	DeleteMarketHours(ctx context.Context, params DeleteMarketHoursParams) (DeleteMarketHoursRes, error)
	// DeleteMarketInfo implements deleteMarketInfo operation.
	//
	// Deletes the MarketInfo with the requested ID.
	//
	// DELETE /rest/market-infos/{id}
	DeleteMarketInfo(ctx context.Context, params DeleteMarketInfoParams) (DeleteMarketInfoRes, error)
	// DeleteSplit implements deleteSplit operation.
	//
	// Deletes the Split with the requested ID.
	//
	// DELETE /rest/splits/{id}
	DeleteSplit(ctx context.Context, params DeleteSplitParams) (DeleteSplitRes, error)
	// DeleteTradeCondition implements deleteTradeCondition operation.
	//
	// Deletes the TradeCondition with the requested ID.
	//
	// DELETE /rest/trade-conditions/{id}
	DeleteTradeCondition(ctx context.Context, params DeleteTradeConditionParams) (DeleteTradeConditionRes, error)
	// DeleteTradeCorrection implements deleteTradeCorrection operation.
	//
	// Deletes the TradeCorrection with the requested ID.
	//
	// DELETE /rest/trade-corrections/{id}
	DeleteTradeCorrection(ctx context.Context, params DeleteTradeCorrectionParams) (DeleteTradeCorrectionRes, error)
	// DeleteTradeRecord implements deleteTradeRecord operation.
	//
	// Deletes the TradeRecord with the requested ID.
	//
	// DELETE /rest/trade-records/{id}
	DeleteTradeRecord(ctx context.Context, params DeleteTradeRecordParams) (DeleteTradeRecordRes, error)
	// DeleteTradeTimeRange implements deleteTradeTimeRange operation.
	//
	// Deletes the TradeTimeRange with the requested ID.
	//
	// DELETE /rest/trade-time-ranges/{id}
	DeleteTradeTimeRange(ctx context.Context, params DeleteTradeTimeRangeParams) (DeleteTradeTimeRangeRes, error)
	// ListBarGroup implements listBarGroup operation.
	//
	// List BarGroups.
	//
	// GET /rest/bar-groups
	ListBarGroup(ctx context.Context, params ListBarGroupParams) (ListBarGroupRes, error)
	// ListBarGroupRecords implements listBarGroupRecords operation.
	//
	// List attached Records.
	//
	// GET /rest/bar-groups/{id}/records
	ListBarGroupRecords(ctx context.Context, params ListBarGroupRecordsParams) (ListBarGroupRecordsRes, error)
	// ListBarRecord implements listBarRecord operation.
	//
	// List BarRecords.
	//
	// GET /rest/bar-records
	ListBarRecord(ctx context.Context, params ListBarRecordParams) (ListBarRecordRes, error)
	// ListBarTimeRange implements listBarTimeRange operation.
	//
	// List BarTimeRanges.
	//
	// GET /rest/bar-time-ranges
	ListBarTimeRange(ctx context.Context, params ListBarTimeRangeParams) (ListBarTimeRangeRes, error)
	// ListBarTimeRangeGroups implements listBarTimeRangeGroups operation.
	//
	// List attached Groups.
	//
	// GET /rest/bar-time-ranges/{id}/groups
	ListBarTimeRangeGroups(ctx context.Context, params ListBarTimeRangeGroupsParams) (ListBarTimeRangeGroupsRes, error)
	// ListDataSource implements listDataSource operation.
	//
	// List DataSources.
	//
	// GET /rest/data-sources
	ListDataSource(ctx context.Context, params ListDataSourceParams) (ListDataSourceRes, error)
	// ListDataSourceIntervals implements listDataSourceIntervals operation.
	//
	// List attached Intervals.
	//
	// GET /rest/data-sources/{id}/intervals
	ListDataSourceIntervals(ctx context.Context, params ListDataSourceIntervalsParams) (ListDataSourceIntervalsRes, error)
	// ListDividend implements listDividend operation.
	//
	// List Dividends.
	//
	// GET /rest/dividends
	ListDividend(ctx context.Context, params ListDividendParams) (ListDividendRes, error)
	// ListDividendStock implements listDividendStock operation.
	//
	// List attached Stocks.
	//
	// GET /rest/dividends/{id}/stock
	ListDividendStock(ctx context.Context, params ListDividendStockParams) (ListDividendStockRes, error)
	// ListEntity implements listEntity operation.
	//
	// List Entities.
	//
	// GET /rest/entities
	ListEntity(ctx context.Context, params ListEntityParams) (ListEntityRes, error)
	// ListEntityDividends implements listEntityDividends operation.
	//
	// List attached Dividends.
	//
	// GET /rest/entities/{id}/dividends
	ListEntityDividends(ctx context.Context, params ListEntityDividendsParams) (ListEntityDividendsRes, error)
	// ListEntityExchanges implements listEntityExchanges operation.
	//
	// List attached Exchanges.
	//
	// GET /rest/entities/{id}/exchanges
	ListEntityExchanges(ctx context.Context, params ListEntityExchangesParams) (ListEntityExchangesRes, error)
	// ListEntityFinancials implements listEntityFinancials operation.
	//
	// List attached Financials.
	//
	// GET /rest/entities/{id}/financials
	ListEntityFinancials(ctx context.Context, params ListEntityFinancialsParams) (ListEntityFinancialsRes, error)
	// ListEntityIntervals implements listEntityIntervals operation.
	//
	// List attached Intervals.
	//
	// GET /rest/entities/{id}/intervals
	ListEntityIntervals(ctx context.Context, params ListEntityIntervalsParams) (ListEntityIntervalsRes, error)
	// ListEntitySplits implements listEntitySplits operation.
	//
	// List attached Splits.
	//
	// GET /rest/entities/{id}/splits
	ListEntitySplits(ctx context.Context, params ListEntitySplitsParams) (ListEntitySplitsRes, error)
	// ListExchange implements listExchange operation.
	//
	// List Exchanges.
	//
	// GET /rest/exchanges
	ListExchange(ctx context.Context, params ListExchangeParams) (ListExchangeRes, error)
	// ListExchangeStocks implements listExchangeStocks operation.
	//
	// List attached Stocks.
	//
	// GET /rest/exchanges/{id}/stocks
	ListExchangeStocks(ctx context.Context, params ListExchangeStocksParams) (ListExchangeStocksRes, error)
	// ListFinancial implements listFinancial operation.
	//
	// List Financials.
	//
	// GET /rest/financials
	ListFinancial(ctx context.Context, params ListFinancialParams) (ListFinancialRes, error)
	// ListFinancialStock implements listFinancialStock operation.
	//
	// List attached Stocks.
	//
	// GET /rest/financials/{id}/stock
	ListFinancialStock(ctx context.Context, params ListFinancialStockParams) (ListFinancialStockRes, error)
	// ListInterval implements listInterval operation.
	//
	// List Intervals.
	//
	// GET /rest/intervals
	ListInterval(ctx context.Context, params ListIntervalParams) (ListIntervalRes, error)
	// ListIntervalBars implements listIntervalBars operation.
	//
	// List attached Bars.
	//
	// GET /rest/intervals/{id}/bars
	ListIntervalBars(ctx context.Context, params ListIntervalBarsParams) (ListIntervalBarsRes, error)
	// ListIntervalTrades implements listIntervalTrades operation.
	//
	// List attached Trades.
	//
	// GET /rest/intervals/{id}/trades
	ListIntervalTrades(ctx context.Context, params ListIntervalTradesParams) (ListIntervalTradesRes, error)
	// ListMarketHours implements listMarketHours operation.
	//
	// List MarketHours.
	//
	// GET /rest/market-hours
	ListMarketHours(ctx context.Context, params ListMarketHoursParams) (ListMarketHoursRes, error)
	// ListMarketInfo implements listMarketInfo operation.
	//
	// List MarketInfos.
	//
	// GET /rest/market-infos
	ListMarketInfo(ctx context.Context, params ListMarketInfoParams) (ListMarketInfoRes, error)
	// ListMarketInfoHours implements listMarketInfoHours operation.
	//
	// List attached Hours.
	//
	// GET /rest/market-infos/{id}/hours
	ListMarketInfoHours(ctx context.Context, params ListMarketInfoHoursParams) (ListMarketInfoHoursRes, error)
	// ListSplit implements listSplit operation.
	//
	// List Splits.
	//
	// GET /rest/splits
	ListSplit(ctx context.Context, params ListSplitParams) (ListSplitRes, error)
	// ListTradeCondition implements listTradeCondition operation.
	//
	// List TradeConditions.
	//
	// GET /rest/trade-conditions
	ListTradeCondition(ctx context.Context, params ListTradeConditionParams) (ListTradeConditionRes, error)
	// ListTradeConditionRecord implements listTradeConditionRecord operation.
	//
	// List attached Records.
	//
	// GET /rest/trade-conditions/{id}/record
	ListTradeConditionRecord(ctx context.Context, params ListTradeConditionRecordParams) (ListTradeConditionRecordRes, error)
	// ListTradeCorrection implements listTradeCorrection operation.
	//
	// List TradeCorrections.
	//
	// GET /rest/trade-corrections
	ListTradeCorrection(ctx context.Context, params ListTradeCorrectionParams) (ListTradeCorrectionRes, error)
	// ListTradeCorrectionRecord implements listTradeCorrectionRecord operation.
	//
	// List attached Records.
	//
	// GET /rest/trade-corrections/{id}/record
	ListTradeCorrectionRecord(ctx context.Context, params ListTradeCorrectionRecordParams) (ListTradeCorrectionRecordRes, error)
	// ListTradeRecord implements listTradeRecord operation.
	//
	// List TradeRecords.
	//
	// GET /rest/trade-records
	ListTradeRecord(ctx context.Context, params ListTradeRecordParams) (ListTradeRecordRes, error)
	// ListTradeRecordConditions implements listTradeRecordConditions operation.
	//
	// List attached Conditions.
	//
	// GET /rest/trade-records/{id}/conditions
	ListTradeRecordConditions(ctx context.Context, params ListTradeRecordConditionsParams) (ListTradeRecordConditionsRes, error)
	// ListTradeRecordCorrection implements listTradeRecordCorrection operation.
	//
	// List attached Corrections.
	//
	// GET /rest/trade-records/{id}/correction
	ListTradeRecordCorrection(ctx context.Context, params ListTradeRecordCorrectionParams) (ListTradeRecordCorrectionRes, error)
	// ListTradeRecordExchange implements listTradeRecordExchange operation.
	//
	// List attached Exchanges.
	//
	// GET /rest/trade-records/{id}/exchange
	ListTradeRecordExchange(ctx context.Context, params ListTradeRecordExchangeParams) (ListTradeRecordExchangeRes, error)
	// ListTradeTimeRange implements listTradeTimeRange operation.
	//
	// List TradeTimeRanges.
	//
	// GET /rest/trade-time-ranges
	ListTradeTimeRange(ctx context.Context, params ListTradeTimeRangeParams) (ListTradeTimeRangeRes, error)
	// ListTradeTimeRangeRecords implements listTradeTimeRangeRecords operation.
	//
	// List attached Records.
	//
	// GET /rest/trade-time-ranges/{id}/records
	ListTradeTimeRangeRecords(ctx context.Context, params ListTradeTimeRangeRecordsParams) (ListTradeTimeRangeRecordsRes, error)
	// ReadBarGroup implements readBarGroup operation.
	//
	// Finds the BarGroup with the requested ID and returns it.
	//
	// GET /rest/bar-groups/{id}
	ReadBarGroup(ctx context.Context, params ReadBarGroupParams) (ReadBarGroupRes, error)
	// ReadBarGroupTimeRange implements readBarGroupTimeRange operation.
	//
	// Find the attached BarTimeRange of the BarGroup with the given ID.
	//
	// GET /rest/bar-groups/{id}/time-range
	ReadBarGroupTimeRange(ctx context.Context, params ReadBarGroupTimeRangeParams) (ReadBarGroupTimeRangeRes, error)
	// ReadBarRecord implements readBarRecord operation.
	//
	// Finds the BarRecord with the requested ID and returns it.
	//
	// GET /rest/bar-records/{id}
	ReadBarRecord(ctx context.Context, params ReadBarRecordParams) (ReadBarRecordRes, error)
	// ReadBarRecordGroup implements readBarRecordGroup operation.
	//
	// Find the attached BarGroup of the BarRecord with the given ID.
	//
	// GET /rest/bar-records/{id}/group
	ReadBarRecordGroup(ctx context.Context, params ReadBarRecordGroupParams) (ReadBarRecordGroupRes, error)
	// ReadBarTimeRange implements readBarTimeRange operation.
	//
	// Finds the BarTimeRange with the requested ID and returns it.
	//
	// GET /rest/bar-time-ranges/{id}
	ReadBarTimeRange(ctx context.Context, params ReadBarTimeRangeParams) (ReadBarTimeRangeRes, error)
	// ReadBarTimeRangeInterval implements readBarTimeRangeInterval operation.
	//
	// Find the attached Interval of the BarTimeRange with the given ID.
	//
	// GET /rest/bar-time-ranges/{id}/interval
	ReadBarTimeRangeInterval(ctx context.Context, params ReadBarTimeRangeIntervalParams) (ReadBarTimeRangeIntervalRes, error)
	// ReadDataSource implements readDataSource operation.
	//
	// Finds the DataSource with the requested ID and returns it.
	//
	// GET /rest/data-sources/{id}
	ReadDataSource(ctx context.Context, params ReadDataSourceParams) (ReadDataSourceRes, error)
	// ReadDividend implements readDividend operation.
	//
	// Finds the Dividend with the requested ID and returns it.
	//
	// GET /rest/dividends/{id}
	ReadDividend(ctx context.Context, params ReadDividendParams) (ReadDividendRes, error)
	// ReadEntity implements readEntity operation.
	//
	// Finds the Entity with the requested ID and returns it.
	//
	// GET /rest/entities/{id}
	ReadEntity(ctx context.Context, params ReadEntityParams) (ReadEntityRes, error)
	// ReadExchange implements readExchange operation.
	//
	// Finds the Exchange with the requested ID and returns it.
	//
	// GET /rest/exchanges/{id}
	ReadExchange(ctx context.Context, params ReadExchangeParams) (ReadExchangeRes, error)
	// ReadFinancial implements readFinancial operation.
	//
	// Finds the Financial with the requested ID and returns it.
	//
	// GET /rest/financials/{id}
	ReadFinancial(ctx context.Context, params ReadFinancialParams) (ReadFinancialRes, error)
	// ReadInterval implements readInterval operation.
	//
	// Finds the Interval with the requested ID and returns it.
	//
	// GET /rest/intervals/{id}
	ReadInterval(ctx context.Context, params ReadIntervalParams) (ReadIntervalRes, error)
	// ReadIntervalDataSource implements readIntervalDataSource operation.
	//
	// Find the attached DataSource of the Interval with the given ID.
	//
	// GET /rest/intervals/{id}/data-source
	ReadIntervalDataSource(ctx context.Context, params ReadIntervalDataSourceParams) (ReadIntervalDataSourceRes, error)
	// ReadIntervalStock implements readIntervalStock operation.
	//
	// Find the attached Entity of the Interval with the given ID.
	//
	// GET /rest/intervals/{id}/stock
	ReadIntervalStock(ctx context.Context, params ReadIntervalStockParams) (ReadIntervalStockRes, error)
	// ReadMarketHours implements readMarketHours operation.
	//
	// Finds the MarketHours with the requested ID and returns it.
	//
	// GET /rest/market-hours/{id}
	ReadMarketHours(ctx context.Context, params ReadMarketHoursParams) (ReadMarketHoursRes, error)
	// ReadMarketHoursMarketInfo implements readMarketHoursMarketInfo operation.
	//
	// Find the attached MarketInfo of the MarketHours with the given ID.
	//
	// GET /rest/market-hours/{id}/market-info
	ReadMarketHoursMarketInfo(ctx context.Context, params ReadMarketHoursMarketInfoParams) (ReadMarketHoursMarketInfoRes, error)
	// ReadMarketInfo implements readMarketInfo operation.
	//
	// Finds the MarketInfo with the requested ID and returns it.
	//
	// GET /rest/market-infos/{id}
	ReadMarketInfo(ctx context.Context, params ReadMarketInfoParams) (ReadMarketInfoRes, error)
	// ReadSplit implements readSplit operation.
	//
	// Finds the Split with the requested ID and returns it.
	//
	// GET /rest/splits/{id}
	ReadSplit(ctx context.Context, params ReadSplitParams) (ReadSplitRes, error)
	// ReadSplitStock implements readSplitStock operation.
	//
	// Find the attached Entity of the Split with the given ID.
	//
	// GET /rest/splits/{id}/stock
	ReadSplitStock(ctx context.Context, params ReadSplitStockParams) (ReadSplitStockRes, error)
	// ReadTradeCondition implements readTradeCondition operation.
	//
	// Finds the TradeCondition with the requested ID and returns it.
	//
	// GET /rest/trade-conditions/{id}
	ReadTradeCondition(ctx context.Context, params ReadTradeConditionParams) (ReadTradeConditionRes, error)
	// ReadTradeCorrection implements readTradeCorrection operation.
	//
	// Finds the TradeCorrection with the requested ID and returns it.
	//
	// GET /rest/trade-corrections/{id}
	ReadTradeCorrection(ctx context.Context, params ReadTradeCorrectionParams) (ReadTradeCorrectionRes, error)
	// ReadTradeRecord implements readTradeRecord operation.
	//
	// Finds the TradeRecord with the requested ID and returns it.
	//
	// GET /rest/trade-records/{id}
	ReadTradeRecord(ctx context.Context, params ReadTradeRecordParams) (ReadTradeRecordRes, error)
	// ReadTradeRecordTimeRange implements readTradeRecordTimeRange operation.
	//
	// Find the attached TradeTimeRange of the TradeRecord with the given ID.
	//
	// GET /rest/trade-records/{id}/time-range
	ReadTradeRecordTimeRange(ctx context.Context, params ReadTradeRecordTimeRangeParams) (ReadTradeRecordTimeRangeRes, error)
	// ReadTradeTimeRange implements readTradeTimeRange operation.
	//
	// Finds the TradeTimeRange with the requested ID and returns it.
	//
	// GET /rest/trade-time-ranges/{id}
	ReadTradeTimeRange(ctx context.Context, params ReadTradeTimeRangeParams) (ReadTradeTimeRangeRes, error)
	// ReadTradeTimeRangeInterval implements readTradeTimeRangeInterval operation.
	//
	// Find the attached Interval of the TradeTimeRange with the given ID.
	//
	// GET /rest/trade-time-ranges/{id}/interval
	ReadTradeTimeRangeInterval(ctx context.Context, params ReadTradeTimeRangeIntervalParams) (ReadTradeTimeRangeIntervalRes, error)
	// SearchTicker implements searchTicker operation.
	//
	// Searches for entities by ticker.
	//
	// GET /rest/search/{ticker}
	SearchTicker(ctx context.Context, params SearchTickerParams) (*SearchTickerOK, error)
	// UpdateBarGroup implements updateBarGroup operation.
	//
	// Updates a BarGroup and persists changes to storage.
	//
	// PATCH /rest/bar-groups/{id}
	UpdateBarGroup(ctx context.Context, req *UpdateBarGroupReq, params UpdateBarGroupParams) (UpdateBarGroupRes, error)
	// UpdateBarRecord implements updateBarRecord operation.
	//
	// Updates a BarRecord and persists changes to storage.
	//
	// PATCH /rest/bar-records/{id}
	UpdateBarRecord(ctx context.Context, req *UpdateBarRecordReq, params UpdateBarRecordParams) (UpdateBarRecordRes, error)
	// UpdateBarTimeRange implements updateBarTimeRange operation.
	//
	// Updates a BarTimeRange and persists changes to storage.
	//
	// PATCH /rest/bar-time-ranges/{id}
	UpdateBarTimeRange(ctx context.Context, req *UpdateBarTimeRangeReq, params UpdateBarTimeRangeParams) (UpdateBarTimeRangeRes, error)
	// UpdateDataSource implements updateDataSource operation.
	//
	// Updates a DataSource and persists changes to storage.
	//
	// PATCH /rest/data-sources/{id}
	UpdateDataSource(ctx context.Context, req *UpdateDataSourceReq, params UpdateDataSourceParams) (UpdateDataSourceRes, error)
	// UpdateDividend implements updateDividend operation.
	//
	// Updates a Dividend and persists changes to storage.
	//
	// PATCH /rest/dividends/{id}
	UpdateDividend(ctx context.Context, req *UpdateDividendReq, params UpdateDividendParams) (UpdateDividendRes, error)
	// UpdateEntity implements updateEntity operation.
	//
	// Updates a Entity and persists changes to storage.
	//
	// PATCH /rest/entities/{id}
	UpdateEntity(ctx context.Context, req *UpdateEntityReq, params UpdateEntityParams) (UpdateEntityRes, error)
	// UpdateExchange implements updateExchange operation.
	//
	// Updates a Exchange and persists changes to storage.
	//
	// PATCH /rest/exchanges/{id}
	UpdateExchange(ctx context.Context, req *UpdateExchangeReq, params UpdateExchangeParams) (UpdateExchangeRes, error)
	// UpdateFinancial implements updateFinancial operation.
	//
	// Updates a Financial and persists changes to storage.
	//
	// PATCH /rest/financials/{id}
	UpdateFinancial(ctx context.Context, req *UpdateFinancialReq, params UpdateFinancialParams) (UpdateFinancialRes, error)
	// UpdateInterval implements updateInterval operation.
	//
	// Updates a Interval and persists changes to storage.
	//
	// PATCH /rest/intervals/{id}
	UpdateInterval(ctx context.Context, req *UpdateIntervalReq, params UpdateIntervalParams) (UpdateIntervalRes, error)
	// UpdateMarketHours implements updateMarketHours operation.
	//
	// Updates a MarketHours and persists changes to storage.
	//
	// PATCH /rest/market-hours/{id}
	UpdateMarketHours(ctx context.Context, req *UpdateMarketHoursReq, params UpdateMarketHoursParams) (UpdateMarketHoursRes, error)
	// UpdateMarketInfo implements updateMarketInfo operation.
	//
	// Updates a MarketInfo and persists changes to storage.
	//
	// PATCH /rest/market-infos/{id}
	UpdateMarketInfo(ctx context.Context, req *UpdateMarketInfoReq, params UpdateMarketInfoParams) (UpdateMarketInfoRes, error)
	// UpdateSplit implements updateSplit operation.
	//
	// Updates a Split and persists changes to storage.
	//
	// PATCH /rest/splits/{id}
	UpdateSplit(ctx context.Context, req *UpdateSplitReq, params UpdateSplitParams) (UpdateSplitRes, error)
	// UpdateTradeCondition implements updateTradeCondition operation.
	//
	// Updates a TradeCondition and persists changes to storage.
	//
	// PATCH /rest/trade-conditions/{id}
	UpdateTradeCondition(ctx context.Context, req *UpdateTradeConditionReq, params UpdateTradeConditionParams) (UpdateTradeConditionRes, error)
	// UpdateTradeCorrection implements updateTradeCorrection operation.
	//
	// Updates a TradeCorrection and persists changes to storage.
	//
	// PATCH /rest/trade-corrections/{id}
	UpdateTradeCorrection(ctx context.Context, req *UpdateTradeCorrectionReq, params UpdateTradeCorrectionParams) (UpdateTradeCorrectionRes, error)
	// UpdateTradeRecord implements updateTradeRecord operation.
	//
	// Updates a TradeRecord and persists changes to storage.
	//
	// PATCH /rest/trade-records/{id}
	UpdateTradeRecord(ctx context.Context, req *UpdateTradeRecordReq, params UpdateTradeRecordParams) (UpdateTradeRecordRes, error)
	// UpdateTradeTimeRange implements updateTradeTimeRange operation.
	//
	// Updates a TradeTimeRange and persists changes to storage.
	//
	// PATCH /rest/trade-time-ranges/{id}
	UpdateTradeTimeRange(ctx context.Context, req *UpdateTradeTimeRangeReq, params UpdateTradeTimeRangeParams) (UpdateTradeTimeRangeRes, error)
}

Handler handles operations described by OpenAPI v3 specification.

type IntervalBarsList

type IntervalBarsList struct {
	ID         int                    `json:"id"`
	Start      time.Time              `json:"start"`
	End        time.Time              `json:"end"`
	Count      int                    `json:"count"`
	IntervalID int                    `json:"interval_id"`
	Status     IntervalBarsListStatus `json:"status"`
	UpdateTime time.Time              `json:"update_time"`
}

Ref: #/components/schemas/Interval_BarsList

func NewIntervalBarsList

func NewIntervalBarsList(e *ent.BarTimeRange) *IntervalBarsList

func NewIntervalBarsLists

func NewIntervalBarsLists(es []*ent.BarTimeRange) []IntervalBarsList

func (*IntervalBarsList) Decode

func (s *IntervalBarsList) Decode(d *jx.Decoder) error

Decode decodes IntervalBarsList from json.

func (*IntervalBarsList) Elem

func (btr *IntervalBarsList) Elem() IntervalBarsList

func (*IntervalBarsList) Encode

func (s *IntervalBarsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalBarsList) GetCount

func (s *IntervalBarsList) GetCount() int

GetCount returns the value of Count.

func (*IntervalBarsList) GetEnd

func (s *IntervalBarsList) GetEnd() time.Time

GetEnd returns the value of End.

func (*IntervalBarsList) GetID

func (s *IntervalBarsList) GetID() int

GetID returns the value of ID.

func (*IntervalBarsList) GetIntervalID

func (s *IntervalBarsList) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*IntervalBarsList) GetStart

func (s *IntervalBarsList) GetStart() time.Time

GetStart returns the value of Start.

func (*IntervalBarsList) GetStatus

GetStatus returns the value of Status.

func (*IntervalBarsList) GetUpdateTime

func (s *IntervalBarsList) GetUpdateTime() time.Time

GetUpdateTime returns the value of UpdateTime.

func (*IntervalBarsList) MarshalJSON

func (s *IntervalBarsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalBarsList) SetCount

func (s *IntervalBarsList) SetCount(val int)

SetCount sets the value of Count.

func (*IntervalBarsList) SetEnd

func (s *IntervalBarsList) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*IntervalBarsList) SetID

func (s *IntervalBarsList) SetID(val int)

SetID sets the value of ID.

func (*IntervalBarsList) SetIntervalID

func (s *IntervalBarsList) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*IntervalBarsList) SetStart

func (s *IntervalBarsList) SetStart(val time.Time)

SetStart sets the value of Start.

func (*IntervalBarsList) SetStatus

func (s *IntervalBarsList) SetStatus(val IntervalBarsListStatus)

SetStatus sets the value of Status.

func (*IntervalBarsList) SetUpdateTime

func (s *IntervalBarsList) SetUpdateTime(val time.Time)

SetUpdateTime sets the value of UpdateTime.

func (*IntervalBarsList) UnmarshalJSON

func (s *IntervalBarsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalBarsList) Validate

func (s *IntervalBarsList) Validate() error

type IntervalBarsListStatus

type IntervalBarsListStatus string
const (
	IntervalBarsListStatusPending      IntervalBarsListStatus = "pending"
	IntervalBarsListStatusCreated      IntervalBarsListStatus = "created"
	IntervalBarsListStatusClean        IntervalBarsListStatus = "clean"
	IntervalBarsListStatusConsolidated IntervalBarsListStatus = "consolidated"
)

func (*IntervalBarsListStatus) Decode

func (s *IntervalBarsListStatus) Decode(d *jx.Decoder) error

Decode decodes IntervalBarsListStatus from json.

func (IntervalBarsListStatus) Encode

func (s IntervalBarsListStatus) Encode(e *jx.Encoder)

Encode encodes IntervalBarsListStatus as json.

func (IntervalBarsListStatus) MarshalJSON

func (s IntervalBarsListStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (IntervalBarsListStatus) MarshalText

func (s IntervalBarsListStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*IntervalBarsListStatus) UnmarshalJSON

func (s *IntervalBarsListStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalBarsListStatus) UnmarshalText

func (s *IntervalBarsListStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (IntervalBarsListStatus) Validate

func (s IntervalBarsListStatus) Validate() error

type IntervalCreate

type IntervalCreate struct {
	ID           int                    `json:"id"`
	Active       bool                   `json:"active"`
	Interval     IntervalCreateInterval `json:"interval"`
	StockID      int                    `json:"stock_id"`
	DataSourceID int                    `json:"data_source_id"`
}

Ref: #/components/schemas/IntervalCreate

func NewIntervalCreate

func NewIntervalCreate(e *ent.Interval) *IntervalCreate

func NewIntervalCreates

func NewIntervalCreates(es []*ent.Interval) []IntervalCreate

func (*IntervalCreate) Decode

func (s *IntervalCreate) Decode(d *jx.Decoder) error

Decode decodes IntervalCreate from json.

func (*IntervalCreate) Elem

func (i *IntervalCreate) Elem() IntervalCreate

func (*IntervalCreate) Encode

func (s *IntervalCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalCreate) GetActive

func (s *IntervalCreate) GetActive() bool

GetActive returns the value of Active.

func (*IntervalCreate) GetDataSourceID

func (s *IntervalCreate) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*IntervalCreate) GetID

func (s *IntervalCreate) GetID() int

GetID returns the value of ID.

func (*IntervalCreate) GetInterval

func (s *IntervalCreate) GetInterval() IntervalCreateInterval

GetInterval returns the value of Interval.

func (*IntervalCreate) GetStockID

func (s *IntervalCreate) GetStockID() int

GetStockID returns the value of StockID.

func (*IntervalCreate) MarshalJSON

func (s *IntervalCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalCreate) SetActive

func (s *IntervalCreate) SetActive(val bool)

SetActive sets the value of Active.

func (*IntervalCreate) SetDataSourceID

func (s *IntervalCreate) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*IntervalCreate) SetID

func (s *IntervalCreate) SetID(val int)

SetID sets the value of ID.

func (*IntervalCreate) SetInterval

func (s *IntervalCreate) SetInterval(val IntervalCreateInterval)

SetInterval sets the value of Interval.

func (*IntervalCreate) SetStockID

func (s *IntervalCreate) SetStockID(val int)

SetStockID sets the value of StockID.

func (*IntervalCreate) UnmarshalJSON

func (s *IntervalCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalCreate) Validate

func (s *IntervalCreate) Validate() error

type IntervalCreateInterval

type IntervalCreateInterval string
const (
	IntervalCreateIntervalTrades  IntervalCreateInterval = "trades"
	IntervalCreateInterval1min    IntervalCreateInterval = "1min"
	IntervalCreateIntervalDaily   IntervalCreateInterval = "daily"
	IntervalCreateIntervalMonthly IntervalCreateInterval = "monthly"
	IntervalCreateIntervalYearly  IntervalCreateInterval = "yearly"
)

func (*IntervalCreateInterval) Decode

func (s *IntervalCreateInterval) Decode(d *jx.Decoder) error

Decode decodes IntervalCreateInterval from json.

func (IntervalCreateInterval) Encode

func (s IntervalCreateInterval) Encode(e *jx.Encoder)

Encode encodes IntervalCreateInterval as json.

func (IntervalCreateInterval) MarshalJSON

func (s IntervalCreateInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (IntervalCreateInterval) MarshalText

func (s IntervalCreateInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*IntervalCreateInterval) UnmarshalJSON

func (s *IntervalCreateInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalCreateInterval) UnmarshalText

func (s *IntervalCreateInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (IntervalCreateInterval) Validate

func (s IntervalCreateInterval) Validate() error

type IntervalDataSourceRead

type IntervalDataSourceRead struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Address string `json:"address"`
}

Ref: #/components/schemas/Interval_DataSourceRead

func NewIntervalDataSourceRead

func NewIntervalDataSourceRead(e *ent.DataSource) *IntervalDataSourceRead

func NewIntervalDataSourceReads

func NewIntervalDataSourceReads(es []*ent.DataSource) []IntervalDataSourceRead

func (*IntervalDataSourceRead) Decode

func (s *IntervalDataSourceRead) Decode(d *jx.Decoder) error

Decode decodes IntervalDataSourceRead from json.

func (*IntervalDataSourceRead) Elem

func (*IntervalDataSourceRead) Encode

func (s *IntervalDataSourceRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalDataSourceRead) GetAddress

func (s *IntervalDataSourceRead) GetAddress() string

GetAddress returns the value of Address.

func (*IntervalDataSourceRead) GetID

func (s *IntervalDataSourceRead) GetID() int

GetID returns the value of ID.

func (*IntervalDataSourceRead) GetName

func (s *IntervalDataSourceRead) GetName() string

GetName returns the value of Name.

func (*IntervalDataSourceRead) MarshalJSON

func (s *IntervalDataSourceRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalDataSourceRead) SetAddress

func (s *IntervalDataSourceRead) SetAddress(val string)

SetAddress sets the value of Address.

func (*IntervalDataSourceRead) SetID

func (s *IntervalDataSourceRead) SetID(val int)

SetID sets the value of ID.

func (*IntervalDataSourceRead) SetName

func (s *IntervalDataSourceRead) SetName(val string)

SetName sets the value of Name.

func (*IntervalDataSourceRead) UnmarshalJSON

func (s *IntervalDataSourceRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IntervalList

type IntervalList struct {
	ID           int                  `json:"id"`
	Active       bool                 `json:"active"`
	Interval     IntervalListInterval `json:"interval"`
	StockID      int                  `json:"stock_id"`
	DataSourceID int                  `json:"data_source_id"`
}

Ref: #/components/schemas/IntervalList

func NewIntervalList

func NewIntervalList(e *ent.Interval) *IntervalList

func NewIntervalLists

func NewIntervalLists(es []*ent.Interval) []IntervalList

func (*IntervalList) Decode

func (s *IntervalList) Decode(d *jx.Decoder) error

Decode decodes IntervalList from json.

func (*IntervalList) Elem

func (i *IntervalList) Elem() IntervalList

func (*IntervalList) Encode

func (s *IntervalList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalList) GetActive

func (s *IntervalList) GetActive() bool

GetActive returns the value of Active.

func (*IntervalList) GetDataSourceID

func (s *IntervalList) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*IntervalList) GetID

func (s *IntervalList) GetID() int

GetID returns the value of ID.

func (*IntervalList) GetInterval

func (s *IntervalList) GetInterval() IntervalListInterval

GetInterval returns the value of Interval.

func (*IntervalList) GetStockID

func (s *IntervalList) GetStockID() int

GetStockID returns the value of StockID.

func (*IntervalList) MarshalJSON

func (s *IntervalList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalList) SetActive

func (s *IntervalList) SetActive(val bool)

SetActive sets the value of Active.

func (*IntervalList) SetDataSourceID

func (s *IntervalList) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*IntervalList) SetID

func (s *IntervalList) SetID(val int)

SetID sets the value of ID.

func (*IntervalList) SetInterval

func (s *IntervalList) SetInterval(val IntervalListInterval)

SetInterval sets the value of Interval.

func (*IntervalList) SetStockID

func (s *IntervalList) SetStockID(val int)

SetStockID sets the value of StockID.

func (*IntervalList) UnmarshalJSON

func (s *IntervalList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalList) Validate

func (s *IntervalList) Validate() error

type IntervalListInterval

type IntervalListInterval string
const (
	IntervalListIntervalTrades  IntervalListInterval = "trades"
	IntervalListInterval1min    IntervalListInterval = "1min"
	IntervalListIntervalDaily   IntervalListInterval = "daily"
	IntervalListIntervalMonthly IntervalListInterval = "monthly"
	IntervalListIntervalYearly  IntervalListInterval = "yearly"
)

func (*IntervalListInterval) Decode

func (s *IntervalListInterval) Decode(d *jx.Decoder) error

Decode decodes IntervalListInterval from json.

func (IntervalListInterval) Encode

func (s IntervalListInterval) Encode(e *jx.Encoder)

Encode encodes IntervalListInterval as json.

func (IntervalListInterval) MarshalJSON

func (s IntervalListInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (IntervalListInterval) MarshalText

func (s IntervalListInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*IntervalListInterval) UnmarshalJSON

func (s *IntervalListInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalListInterval) UnmarshalText

func (s *IntervalListInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (IntervalListInterval) Validate

func (s IntervalListInterval) Validate() error

type IntervalRead

type IntervalRead struct {
	ID           int                  `json:"id"`
	Active       bool                 `json:"active"`
	Interval     IntervalReadInterval `json:"interval"`
	StockID      int                  `json:"stock_id"`
	DataSourceID int                  `json:"data_source_id"`
}

Ref: #/components/schemas/IntervalRead

func NewIntervalRead

func NewIntervalRead(e *ent.Interval) *IntervalRead

func NewIntervalReads

func NewIntervalReads(es []*ent.Interval) []IntervalRead

func (*IntervalRead) Decode

func (s *IntervalRead) Decode(d *jx.Decoder) error

Decode decodes IntervalRead from json.

func (*IntervalRead) Elem

func (i *IntervalRead) Elem() IntervalRead

func (*IntervalRead) Encode

func (s *IntervalRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalRead) GetActive

func (s *IntervalRead) GetActive() bool

GetActive returns the value of Active.

func (*IntervalRead) GetDataSourceID

func (s *IntervalRead) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*IntervalRead) GetID

func (s *IntervalRead) GetID() int

GetID returns the value of ID.

func (*IntervalRead) GetInterval

func (s *IntervalRead) GetInterval() IntervalReadInterval

GetInterval returns the value of Interval.

func (*IntervalRead) GetStockID

func (s *IntervalRead) GetStockID() int

GetStockID returns the value of StockID.

func (*IntervalRead) MarshalJSON

func (s *IntervalRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalRead) SetActive

func (s *IntervalRead) SetActive(val bool)

SetActive sets the value of Active.

func (*IntervalRead) SetDataSourceID

func (s *IntervalRead) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*IntervalRead) SetID

func (s *IntervalRead) SetID(val int)

SetID sets the value of ID.

func (*IntervalRead) SetInterval

func (s *IntervalRead) SetInterval(val IntervalReadInterval)

SetInterval sets the value of Interval.

func (*IntervalRead) SetStockID

func (s *IntervalRead) SetStockID(val int)

SetStockID sets the value of StockID.

func (*IntervalRead) UnmarshalJSON

func (s *IntervalRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalRead) Validate

func (s *IntervalRead) Validate() error

type IntervalReadInterval

type IntervalReadInterval string
const (
	IntervalReadIntervalTrades  IntervalReadInterval = "trades"
	IntervalReadInterval1min    IntervalReadInterval = "1min"
	IntervalReadIntervalDaily   IntervalReadInterval = "daily"
	IntervalReadIntervalMonthly IntervalReadInterval = "monthly"
	IntervalReadIntervalYearly  IntervalReadInterval = "yearly"
)

func (*IntervalReadInterval) Decode

func (s *IntervalReadInterval) Decode(d *jx.Decoder) error

Decode decodes IntervalReadInterval from json.

func (IntervalReadInterval) Encode

func (s IntervalReadInterval) Encode(e *jx.Encoder)

Encode encodes IntervalReadInterval as json.

func (IntervalReadInterval) MarshalJSON

func (s IntervalReadInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (IntervalReadInterval) MarshalText

func (s IntervalReadInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*IntervalReadInterval) UnmarshalJSON

func (s *IntervalReadInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalReadInterval) UnmarshalText

func (s *IntervalReadInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (IntervalReadInterval) Validate

func (s IntervalReadInterval) Validate() error

type IntervalStockRead

type IntervalStockRead struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/Interval_StockRead

func NewIntervalStockRead

func NewIntervalStockRead(e *ent.Entity) *IntervalStockRead

func NewIntervalStockReads

func NewIntervalStockReads(es []*ent.Entity) []IntervalStockRead

func (*IntervalStockRead) Decode

func (s *IntervalStockRead) Decode(d *jx.Decoder) error

Decode decodes IntervalStockRead from json.

func (*IntervalStockRead) Elem

func (*IntervalStockRead) Encode

func (s *IntervalStockRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalStockRead) GetActive

func (s *IntervalStockRead) GetActive() bool

GetActive returns the value of Active.

func (*IntervalStockRead) GetDelisted

func (s *IntervalStockRead) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*IntervalStockRead) GetDescription

func (s *IntervalStockRead) GetDescription() string

GetDescription returns the value of Description.

func (*IntervalStockRead) GetID

func (s *IntervalStockRead) GetID() int

GetID returns the value of ID.

func (*IntervalStockRead) GetListDate

func (s *IntervalStockRead) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*IntervalStockRead) GetName

func (s *IntervalStockRead) GetName() string

GetName returns the value of Name.

func (*IntervalStockRead) GetTicker

func (s *IntervalStockRead) GetTicker() string

GetTicker returns the value of Ticker.

func (*IntervalStockRead) MarshalJSON

func (s *IntervalStockRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalStockRead) SetActive

func (s *IntervalStockRead) SetActive(val bool)

SetActive sets the value of Active.

func (*IntervalStockRead) SetDelisted

func (s *IntervalStockRead) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*IntervalStockRead) SetDescription

func (s *IntervalStockRead) SetDescription(val string)

SetDescription sets the value of Description.

func (*IntervalStockRead) SetID

func (s *IntervalStockRead) SetID(val int)

SetID sets the value of ID.

func (*IntervalStockRead) SetListDate

func (s *IntervalStockRead) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*IntervalStockRead) SetName

func (s *IntervalStockRead) SetName(val string)

SetName sets the value of Name.

func (*IntervalStockRead) SetTicker

func (s *IntervalStockRead) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*IntervalStockRead) UnmarshalJSON

func (s *IntervalStockRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IntervalTradesList

type IntervalTradesList struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/Interval_TradesList

func NewIntervalTradesList

func NewIntervalTradesList(e *ent.TradeTimeRange) *IntervalTradesList

func NewIntervalTradesLists

func NewIntervalTradesLists(es []*ent.TradeTimeRange) []IntervalTradesList

func (*IntervalTradesList) Decode

func (s *IntervalTradesList) Decode(d *jx.Decoder) error

Decode decodes IntervalTradesList from json.

func (*IntervalTradesList) Elem

func (*IntervalTradesList) Encode

func (s *IntervalTradesList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalTradesList) GetEnd

func (s *IntervalTradesList) GetEnd() time.Time

GetEnd returns the value of End.

func (*IntervalTradesList) GetID

func (s *IntervalTradesList) GetID() int

GetID returns the value of ID.

func (*IntervalTradesList) GetIntervalID

func (s *IntervalTradesList) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*IntervalTradesList) GetStart

func (s *IntervalTradesList) GetStart() time.Time

GetStart returns the value of Start.

func (*IntervalTradesList) MarshalJSON

func (s *IntervalTradesList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalTradesList) SetEnd

func (s *IntervalTradesList) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*IntervalTradesList) SetID

func (s *IntervalTradesList) SetID(val int)

SetID sets the value of ID.

func (*IntervalTradesList) SetIntervalID

func (s *IntervalTradesList) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*IntervalTradesList) SetStart

func (s *IntervalTradesList) SetStart(val time.Time)

SetStart sets the value of Start.

func (*IntervalTradesList) UnmarshalJSON

func (s *IntervalTradesList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IntervalUpdate

type IntervalUpdate struct {
	ID           int                    `json:"id"`
	Active       bool                   `json:"active"`
	Interval     IntervalUpdateInterval `json:"interval"`
	StockID      int                    `json:"stock_id"`
	DataSourceID int                    `json:"data_source_id"`
}

Ref: #/components/schemas/IntervalUpdate

func NewIntervalUpdate

func NewIntervalUpdate(e *ent.Interval) *IntervalUpdate

func NewIntervalUpdates

func NewIntervalUpdates(es []*ent.Interval) []IntervalUpdate

func (*IntervalUpdate) Decode

func (s *IntervalUpdate) Decode(d *jx.Decoder) error

Decode decodes IntervalUpdate from json.

func (*IntervalUpdate) Elem

func (i *IntervalUpdate) Elem() IntervalUpdate

func (*IntervalUpdate) Encode

func (s *IntervalUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*IntervalUpdate) GetActive

func (s *IntervalUpdate) GetActive() bool

GetActive returns the value of Active.

func (*IntervalUpdate) GetDataSourceID

func (s *IntervalUpdate) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*IntervalUpdate) GetID

func (s *IntervalUpdate) GetID() int

GetID returns the value of ID.

func (*IntervalUpdate) GetInterval

func (s *IntervalUpdate) GetInterval() IntervalUpdateInterval

GetInterval returns the value of Interval.

func (*IntervalUpdate) GetStockID

func (s *IntervalUpdate) GetStockID() int

GetStockID returns the value of StockID.

func (*IntervalUpdate) MarshalJSON

func (s *IntervalUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IntervalUpdate) SetActive

func (s *IntervalUpdate) SetActive(val bool)

SetActive sets the value of Active.

func (*IntervalUpdate) SetDataSourceID

func (s *IntervalUpdate) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*IntervalUpdate) SetID

func (s *IntervalUpdate) SetID(val int)

SetID sets the value of ID.

func (*IntervalUpdate) SetInterval

func (s *IntervalUpdate) SetInterval(val IntervalUpdateInterval)

SetInterval sets the value of Interval.

func (*IntervalUpdate) SetStockID

func (s *IntervalUpdate) SetStockID(val int)

SetStockID sets the value of StockID.

func (*IntervalUpdate) UnmarshalJSON

func (s *IntervalUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalUpdate) Validate

func (s *IntervalUpdate) Validate() error

type IntervalUpdateInterval

type IntervalUpdateInterval string
const (
	IntervalUpdateIntervalTrades  IntervalUpdateInterval = "trades"
	IntervalUpdateInterval1min    IntervalUpdateInterval = "1min"
	IntervalUpdateIntervalDaily   IntervalUpdateInterval = "daily"
	IntervalUpdateIntervalMonthly IntervalUpdateInterval = "monthly"
	IntervalUpdateIntervalYearly  IntervalUpdateInterval = "yearly"
)

func (*IntervalUpdateInterval) Decode

func (s *IntervalUpdateInterval) Decode(d *jx.Decoder) error

Decode decodes IntervalUpdateInterval from json.

func (IntervalUpdateInterval) Encode

func (s IntervalUpdateInterval) Encode(e *jx.Encoder)

Encode encodes IntervalUpdateInterval as json.

func (IntervalUpdateInterval) MarshalJSON

func (s IntervalUpdateInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (IntervalUpdateInterval) MarshalText

func (s IntervalUpdateInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*IntervalUpdateInterval) UnmarshalJSON

func (s *IntervalUpdateInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*IntervalUpdateInterval) UnmarshalText

func (s *IntervalUpdateInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (IntervalUpdateInterval) Validate

func (s IntervalUpdateInterval) Validate() error

type ListBarGroupOKApplicationJSON

type ListBarGroupOKApplicationJSON []BarGroupList

func (*ListBarGroupOKApplicationJSON) Decode

Decode decodes ListBarGroupOKApplicationJSON from json.

func (ListBarGroupOKApplicationJSON) Encode

Encode encodes ListBarGroupOKApplicationJSON as json.

func (ListBarGroupOKApplicationJSON) MarshalJSON

func (s ListBarGroupOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBarGroupOKApplicationJSON) UnmarshalJSON

func (s *ListBarGroupOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListBarGroupOKApplicationJSON) Validate

func (s ListBarGroupOKApplicationJSON) Validate() error

type ListBarGroupParams

type ListBarGroupParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListBarGroupParams is parameters of listBarGroup operation.

type ListBarGroupRecordsOKApplicationJSON

type ListBarGroupRecordsOKApplicationJSON []BarGroupRecordsList

func (*ListBarGroupRecordsOKApplicationJSON) Decode

Decode decodes ListBarGroupRecordsOKApplicationJSON from json.

func (ListBarGroupRecordsOKApplicationJSON) Encode

Encode encodes ListBarGroupRecordsOKApplicationJSON as json.

func (ListBarGroupRecordsOKApplicationJSON) MarshalJSON

func (s ListBarGroupRecordsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBarGroupRecordsOKApplicationJSON) UnmarshalJSON

func (s *ListBarGroupRecordsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListBarGroupRecordsOKApplicationJSON) Validate

type ListBarGroupRecordsParams

type ListBarGroupRecordsParams struct {
	// ID of the BarGroup.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListBarGroupRecordsParams is parameters of listBarGroupRecords operation.

type ListBarGroupRecordsRes

type ListBarGroupRecordsRes interface {
	// contains filtered or unexported methods
}

type ListBarGroupRes

type ListBarGroupRes interface {
	// contains filtered or unexported methods
}

type ListBarRecordOKApplicationJSON

type ListBarRecordOKApplicationJSON []BarRecordList

func (*ListBarRecordOKApplicationJSON) Decode

Decode decodes ListBarRecordOKApplicationJSON from json.

func (ListBarRecordOKApplicationJSON) Encode

Encode encodes ListBarRecordOKApplicationJSON as json.

func (ListBarRecordOKApplicationJSON) MarshalJSON

func (s ListBarRecordOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBarRecordOKApplicationJSON) UnmarshalJSON

func (s *ListBarRecordOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListBarRecordOKApplicationJSON) Validate

type ListBarRecordParams

type ListBarRecordParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListBarRecordParams is parameters of listBarRecord operation.

type ListBarRecordRes

type ListBarRecordRes interface {
	// contains filtered or unexported methods
}

type ListBarTimeRangeGroupsOKApplicationJSON

type ListBarTimeRangeGroupsOKApplicationJSON []BarTimeRangeGroupsList

func (*ListBarTimeRangeGroupsOKApplicationJSON) Decode

Decode decodes ListBarTimeRangeGroupsOKApplicationJSON from json.

func (ListBarTimeRangeGroupsOKApplicationJSON) Encode

Encode encodes ListBarTimeRangeGroupsOKApplicationJSON as json.

func (ListBarTimeRangeGroupsOKApplicationJSON) MarshalJSON

func (s ListBarTimeRangeGroupsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBarTimeRangeGroupsOKApplicationJSON) UnmarshalJSON

func (s *ListBarTimeRangeGroupsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListBarTimeRangeGroupsOKApplicationJSON) Validate

type ListBarTimeRangeGroupsParams

type ListBarTimeRangeGroupsParams struct {
	// ID of the BarTimeRange.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListBarTimeRangeGroupsParams is parameters of listBarTimeRangeGroups operation.

type ListBarTimeRangeGroupsRes

type ListBarTimeRangeGroupsRes interface {
	// contains filtered or unexported methods
}

type ListBarTimeRangeOKApplicationJSON

type ListBarTimeRangeOKApplicationJSON []BarTimeRangeList

func (*ListBarTimeRangeOKApplicationJSON) Decode

Decode decodes ListBarTimeRangeOKApplicationJSON from json.

func (ListBarTimeRangeOKApplicationJSON) Encode

Encode encodes ListBarTimeRangeOKApplicationJSON as json.

func (ListBarTimeRangeOKApplicationJSON) MarshalJSON

func (s ListBarTimeRangeOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListBarTimeRangeOKApplicationJSON) UnmarshalJSON

func (s *ListBarTimeRangeOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListBarTimeRangeOKApplicationJSON) Validate

type ListBarTimeRangeParams

type ListBarTimeRangeParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListBarTimeRangeParams is parameters of listBarTimeRange operation.

type ListBarTimeRangeRes

type ListBarTimeRangeRes interface {
	// contains filtered or unexported methods
}

type ListDataSourceIntervalsOKApplicationJSON

type ListDataSourceIntervalsOKApplicationJSON []DataSourceIntervalsList

func (*ListDataSourceIntervalsOKApplicationJSON) Decode

Decode decodes ListDataSourceIntervalsOKApplicationJSON from json.

func (ListDataSourceIntervalsOKApplicationJSON) Encode

Encode encodes ListDataSourceIntervalsOKApplicationJSON as json.

func (ListDataSourceIntervalsOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListDataSourceIntervalsOKApplicationJSON) UnmarshalJSON

func (s *ListDataSourceIntervalsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListDataSourceIntervalsOKApplicationJSON) Validate

type ListDataSourceIntervalsParams

type ListDataSourceIntervalsParams struct {
	// ID of the DataSource.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListDataSourceIntervalsParams is parameters of listDataSourceIntervals operation.

type ListDataSourceIntervalsRes

type ListDataSourceIntervalsRes interface {
	// contains filtered or unexported methods
}

type ListDataSourceOKApplicationJSON

type ListDataSourceOKApplicationJSON []DataSourceList

func (*ListDataSourceOKApplicationJSON) Decode

Decode decodes ListDataSourceOKApplicationJSON from json.

func (ListDataSourceOKApplicationJSON) Encode

Encode encodes ListDataSourceOKApplicationJSON as json.

func (ListDataSourceOKApplicationJSON) MarshalJSON

func (s ListDataSourceOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDataSourceOKApplicationJSON) UnmarshalJSON

func (s *ListDataSourceOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListDataSourceOKApplicationJSON) Validate

type ListDataSourceParams

type ListDataSourceParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListDataSourceParams is parameters of listDataSource operation.

type ListDataSourceRes

type ListDataSourceRes interface {
	// contains filtered or unexported methods
}

type ListDividendOKApplicationJSON

type ListDividendOKApplicationJSON []DividendList

func (*ListDividendOKApplicationJSON) Decode

Decode decodes ListDividendOKApplicationJSON from json.

func (ListDividendOKApplicationJSON) Encode

Encode encodes ListDividendOKApplicationJSON as json.

func (ListDividendOKApplicationJSON) MarshalJSON

func (s ListDividendOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDividendOKApplicationJSON) UnmarshalJSON

func (s *ListDividendOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListDividendOKApplicationJSON) Validate

func (s ListDividendOKApplicationJSON) Validate() error

type ListDividendParams

type ListDividendParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListDividendParams is parameters of listDividend operation.

type ListDividendRes

type ListDividendRes interface {
	// contains filtered or unexported methods
}

type ListDividendStockOKApplicationJSON

type ListDividendStockOKApplicationJSON []DividendStockList

func (*ListDividendStockOKApplicationJSON) Decode

Decode decodes ListDividendStockOKApplicationJSON from json.

func (ListDividendStockOKApplicationJSON) Encode

Encode encodes ListDividendStockOKApplicationJSON as json.

func (ListDividendStockOKApplicationJSON) MarshalJSON

func (s ListDividendStockOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListDividendStockOKApplicationJSON) UnmarshalJSON

func (s *ListDividendStockOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListDividendStockOKApplicationJSON) Validate

type ListDividendStockParams

type ListDividendStockParams struct {
	// ID of the Dividend.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListDividendStockParams is parameters of listDividendStock operation.

type ListDividendStockRes

type ListDividendStockRes interface {
	// contains filtered or unexported methods
}

type ListEntityDividendsOKApplicationJSON

type ListEntityDividendsOKApplicationJSON []EntityDividendsList

func (*ListEntityDividendsOKApplicationJSON) Decode

Decode decodes ListEntityDividendsOKApplicationJSON from json.

func (ListEntityDividendsOKApplicationJSON) Encode

Encode encodes ListEntityDividendsOKApplicationJSON as json.

func (ListEntityDividendsOKApplicationJSON) MarshalJSON

func (s ListEntityDividendsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntityDividendsOKApplicationJSON) UnmarshalJSON

func (s *ListEntityDividendsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntityDividendsOKApplicationJSON) Validate

type ListEntityDividendsParams

type ListEntityDividendsParams struct {
	// ID of the Entity.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntityDividendsParams is parameters of listEntityDividends operation.

type ListEntityDividendsRes

type ListEntityDividendsRes interface {
	// contains filtered or unexported methods
}

type ListEntityExchangesOKApplicationJSON

type ListEntityExchangesOKApplicationJSON []EntityExchangesList

func (*ListEntityExchangesOKApplicationJSON) Decode

Decode decodes ListEntityExchangesOKApplicationJSON from json.

func (ListEntityExchangesOKApplicationJSON) Encode

Encode encodes ListEntityExchangesOKApplicationJSON as json.

func (ListEntityExchangesOKApplicationJSON) MarshalJSON

func (s ListEntityExchangesOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntityExchangesOKApplicationJSON) UnmarshalJSON

func (s *ListEntityExchangesOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntityExchangesOKApplicationJSON) Validate

type ListEntityExchangesParams

type ListEntityExchangesParams struct {
	// ID of the Entity.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntityExchangesParams is parameters of listEntityExchanges operation.

type ListEntityExchangesRes

type ListEntityExchangesRes interface {
	// contains filtered or unexported methods
}

type ListEntityFinancialsOKApplicationJSON

type ListEntityFinancialsOKApplicationJSON []EntityFinancialsList

func (*ListEntityFinancialsOKApplicationJSON) Decode

Decode decodes ListEntityFinancialsOKApplicationJSON from json.

func (ListEntityFinancialsOKApplicationJSON) Encode

Encode encodes ListEntityFinancialsOKApplicationJSON as json.

func (ListEntityFinancialsOKApplicationJSON) MarshalJSON

func (s ListEntityFinancialsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntityFinancialsOKApplicationJSON) UnmarshalJSON

func (s *ListEntityFinancialsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntityFinancialsOKApplicationJSON) Validate

type ListEntityFinancialsParams

type ListEntityFinancialsParams struct {
	// ID of the Entity.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntityFinancialsParams is parameters of listEntityFinancials operation.

type ListEntityFinancialsRes

type ListEntityFinancialsRes interface {
	// contains filtered or unexported methods
}

type ListEntityIntervalsOKApplicationJSON

type ListEntityIntervalsOKApplicationJSON []EntityIntervalsList

func (*ListEntityIntervalsOKApplicationJSON) Decode

Decode decodes ListEntityIntervalsOKApplicationJSON from json.

func (ListEntityIntervalsOKApplicationJSON) Encode

Encode encodes ListEntityIntervalsOKApplicationJSON as json.

func (ListEntityIntervalsOKApplicationJSON) MarshalJSON

func (s ListEntityIntervalsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntityIntervalsOKApplicationJSON) UnmarshalJSON

func (s *ListEntityIntervalsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntityIntervalsOKApplicationJSON) Validate

type ListEntityIntervalsParams

type ListEntityIntervalsParams struct {
	// ID of the Entity.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntityIntervalsParams is parameters of listEntityIntervals operation.

type ListEntityIntervalsRes

type ListEntityIntervalsRes interface {
	// contains filtered or unexported methods
}

type ListEntityOKApplicationJSON

type ListEntityOKApplicationJSON []EntityList

func (*ListEntityOKApplicationJSON) Decode

Decode decodes ListEntityOKApplicationJSON from json.

func (ListEntityOKApplicationJSON) Encode

func (s ListEntityOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListEntityOKApplicationJSON as json.

func (ListEntityOKApplicationJSON) MarshalJSON

func (s ListEntityOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntityOKApplicationJSON) UnmarshalJSON

func (s *ListEntityOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntityOKApplicationJSON) Validate

func (s ListEntityOKApplicationJSON) Validate() error

type ListEntityParams

type ListEntityParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntityParams is parameters of listEntity operation.

type ListEntityRes

type ListEntityRes interface {
	// contains filtered or unexported methods
}

type ListEntitySplitsOKApplicationJSON

type ListEntitySplitsOKApplicationJSON []EntitySplitsList

func (*ListEntitySplitsOKApplicationJSON) Decode

Decode decodes ListEntitySplitsOKApplicationJSON from json.

func (ListEntitySplitsOKApplicationJSON) Encode

Encode encodes ListEntitySplitsOKApplicationJSON as json.

func (ListEntitySplitsOKApplicationJSON) MarshalJSON

func (s ListEntitySplitsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListEntitySplitsOKApplicationJSON) UnmarshalJSON

func (s *ListEntitySplitsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListEntitySplitsOKApplicationJSON) Validate

type ListEntitySplitsParams

type ListEntitySplitsParams struct {
	// ID of the Entity.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListEntitySplitsParams is parameters of listEntitySplits operation.

type ListEntitySplitsRes

type ListEntitySplitsRes interface {
	// contains filtered or unexported methods
}

type ListExchangeOKApplicationJSON

type ListExchangeOKApplicationJSON []ExchangeList

func (*ListExchangeOKApplicationJSON) Decode

Decode decodes ListExchangeOKApplicationJSON from json.

func (ListExchangeOKApplicationJSON) Encode

Encode encodes ListExchangeOKApplicationJSON as json.

func (ListExchangeOKApplicationJSON) MarshalJSON

func (s ListExchangeOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListExchangeOKApplicationJSON) UnmarshalJSON

func (s *ListExchangeOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListExchangeOKApplicationJSON) Validate

func (s ListExchangeOKApplicationJSON) Validate() error

type ListExchangeParams

type ListExchangeParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListExchangeParams is parameters of listExchange operation.

type ListExchangeRes

type ListExchangeRes interface {
	// contains filtered or unexported methods
}

type ListExchangeStocksOKApplicationJSON

type ListExchangeStocksOKApplicationJSON []ExchangeStocksList

func (*ListExchangeStocksOKApplicationJSON) Decode

Decode decodes ListExchangeStocksOKApplicationJSON from json.

func (ListExchangeStocksOKApplicationJSON) Encode

Encode encodes ListExchangeStocksOKApplicationJSON as json.

func (ListExchangeStocksOKApplicationJSON) MarshalJSON

func (s ListExchangeStocksOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListExchangeStocksOKApplicationJSON) UnmarshalJSON

func (s *ListExchangeStocksOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListExchangeStocksOKApplicationJSON) Validate

type ListExchangeStocksParams

type ListExchangeStocksParams struct {
	// ID of the Exchange.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListExchangeStocksParams is parameters of listExchangeStocks operation.

type ListExchangeStocksRes

type ListExchangeStocksRes interface {
	// contains filtered or unexported methods
}

type ListFinancialOKApplicationJSON

type ListFinancialOKApplicationJSON []FinancialList

func (*ListFinancialOKApplicationJSON) Decode

Decode decodes ListFinancialOKApplicationJSON from json.

func (ListFinancialOKApplicationJSON) Encode

Encode encodes ListFinancialOKApplicationJSON as json.

func (ListFinancialOKApplicationJSON) MarshalJSON

func (s ListFinancialOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListFinancialOKApplicationJSON) UnmarshalJSON

func (s *ListFinancialOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListFinancialOKApplicationJSON) Validate

type ListFinancialParams

type ListFinancialParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListFinancialParams is parameters of listFinancial operation.

type ListFinancialRes

type ListFinancialRes interface {
	// contains filtered or unexported methods
}

type ListFinancialStockOKApplicationJSON

type ListFinancialStockOKApplicationJSON []FinancialStockList

func (*ListFinancialStockOKApplicationJSON) Decode

Decode decodes ListFinancialStockOKApplicationJSON from json.

func (ListFinancialStockOKApplicationJSON) Encode

Encode encodes ListFinancialStockOKApplicationJSON as json.

func (ListFinancialStockOKApplicationJSON) MarshalJSON

func (s ListFinancialStockOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListFinancialStockOKApplicationJSON) UnmarshalJSON

func (s *ListFinancialStockOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListFinancialStockOKApplicationJSON) Validate

type ListFinancialStockParams

type ListFinancialStockParams struct {
	// ID of the Financial.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListFinancialStockParams is parameters of listFinancialStock operation.

type ListFinancialStockRes

type ListFinancialStockRes interface {
	// contains filtered or unexported methods
}

type ListIntervalBarsOKApplicationJSON

type ListIntervalBarsOKApplicationJSON []IntervalBarsList

func (*ListIntervalBarsOKApplicationJSON) Decode

Decode decodes ListIntervalBarsOKApplicationJSON from json.

func (ListIntervalBarsOKApplicationJSON) Encode

Encode encodes ListIntervalBarsOKApplicationJSON as json.

func (ListIntervalBarsOKApplicationJSON) MarshalJSON

func (s ListIntervalBarsOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListIntervalBarsOKApplicationJSON) UnmarshalJSON

func (s *ListIntervalBarsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListIntervalBarsOKApplicationJSON) Validate

type ListIntervalBarsParams

type ListIntervalBarsParams struct {
	// ID of the Interval.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListIntervalBarsParams is parameters of listIntervalBars operation.

type ListIntervalBarsRes

type ListIntervalBarsRes interface {
	// contains filtered or unexported methods
}

type ListIntervalOKApplicationJSON

type ListIntervalOKApplicationJSON []IntervalList

func (*ListIntervalOKApplicationJSON) Decode

Decode decodes ListIntervalOKApplicationJSON from json.

func (ListIntervalOKApplicationJSON) Encode

Encode encodes ListIntervalOKApplicationJSON as json.

func (ListIntervalOKApplicationJSON) MarshalJSON

func (s ListIntervalOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListIntervalOKApplicationJSON) UnmarshalJSON

func (s *ListIntervalOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListIntervalOKApplicationJSON) Validate

func (s ListIntervalOKApplicationJSON) Validate() error

type ListIntervalParams

type ListIntervalParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListIntervalParams is parameters of listInterval operation.

type ListIntervalRes

type ListIntervalRes interface {
	// contains filtered or unexported methods
}

type ListIntervalTradesOKApplicationJSON

type ListIntervalTradesOKApplicationJSON []IntervalTradesList

func (*ListIntervalTradesOKApplicationJSON) Decode

Decode decodes ListIntervalTradesOKApplicationJSON from json.

func (ListIntervalTradesOKApplicationJSON) Encode

Encode encodes ListIntervalTradesOKApplicationJSON as json.

func (ListIntervalTradesOKApplicationJSON) MarshalJSON

func (s ListIntervalTradesOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListIntervalTradesOKApplicationJSON) UnmarshalJSON

func (s *ListIntervalTradesOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListIntervalTradesOKApplicationJSON) Validate

type ListIntervalTradesParams

type ListIntervalTradesParams struct {
	// ID of the Interval.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListIntervalTradesParams is parameters of listIntervalTrades operation.

type ListIntervalTradesRes

type ListIntervalTradesRes interface {
	// contains filtered or unexported methods
}

type ListMarketHoursOKApplicationJSON

type ListMarketHoursOKApplicationJSON []MarketHoursList

func (*ListMarketHoursOKApplicationJSON) Decode

Decode decodes ListMarketHoursOKApplicationJSON from json.

func (ListMarketHoursOKApplicationJSON) Encode

Encode encodes ListMarketHoursOKApplicationJSON as json.

func (ListMarketHoursOKApplicationJSON) MarshalJSON

func (s ListMarketHoursOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMarketHoursOKApplicationJSON) UnmarshalJSON

func (s *ListMarketHoursOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListMarketHoursOKApplicationJSON) Validate

type ListMarketHoursParams

type ListMarketHoursParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListMarketHoursParams is parameters of listMarketHours operation.

type ListMarketHoursRes

type ListMarketHoursRes interface {
	// contains filtered or unexported methods
}

type ListMarketInfoHoursOKApplicationJSON

type ListMarketInfoHoursOKApplicationJSON []MarketInfoHoursList

func (*ListMarketInfoHoursOKApplicationJSON) Decode

Decode decodes ListMarketInfoHoursOKApplicationJSON from json.

func (ListMarketInfoHoursOKApplicationJSON) Encode

Encode encodes ListMarketInfoHoursOKApplicationJSON as json.

func (ListMarketInfoHoursOKApplicationJSON) MarshalJSON

func (s ListMarketInfoHoursOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMarketInfoHoursOKApplicationJSON) UnmarshalJSON

func (s *ListMarketInfoHoursOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListMarketInfoHoursOKApplicationJSON) Validate

type ListMarketInfoHoursParams

type ListMarketInfoHoursParams struct {
	// ID of the MarketInfo.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListMarketInfoHoursParams is parameters of listMarketInfoHours operation.

type ListMarketInfoHoursRes

type ListMarketInfoHoursRes interface {
	// contains filtered or unexported methods
}

type ListMarketInfoOKApplicationJSON

type ListMarketInfoOKApplicationJSON []MarketInfoList

func (*ListMarketInfoOKApplicationJSON) Decode

Decode decodes ListMarketInfoOKApplicationJSON from json.

func (ListMarketInfoOKApplicationJSON) Encode

Encode encodes ListMarketInfoOKApplicationJSON as json.

func (ListMarketInfoOKApplicationJSON) MarshalJSON

func (s ListMarketInfoOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListMarketInfoOKApplicationJSON) UnmarshalJSON

func (s *ListMarketInfoOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListMarketInfoOKApplicationJSON) Validate

type ListMarketInfoParams

type ListMarketInfoParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListMarketInfoParams is parameters of listMarketInfo operation.

type ListMarketInfoRes

type ListMarketInfoRes interface {
	// contains filtered or unexported methods
}

type ListSplitOKApplicationJSON

type ListSplitOKApplicationJSON []SplitList

func (*ListSplitOKApplicationJSON) Decode

Decode decodes ListSplitOKApplicationJSON from json.

func (ListSplitOKApplicationJSON) Encode

func (s ListSplitOKApplicationJSON) Encode(e *jx.Encoder)

Encode encodes ListSplitOKApplicationJSON as json.

func (ListSplitOKApplicationJSON) MarshalJSON

func (s ListSplitOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListSplitOKApplicationJSON) UnmarshalJSON

func (s *ListSplitOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListSplitOKApplicationJSON) Validate

func (s ListSplitOKApplicationJSON) Validate() error

type ListSplitParams

type ListSplitParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListSplitParams is parameters of listSplit operation.

type ListSplitRes

type ListSplitRes interface {
	// contains filtered or unexported methods
}

type ListTradeConditionOKApplicationJSON

type ListTradeConditionOKApplicationJSON []TradeConditionList

func (*ListTradeConditionOKApplicationJSON) Decode

Decode decodes ListTradeConditionOKApplicationJSON from json.

func (ListTradeConditionOKApplicationJSON) Encode

Encode encodes ListTradeConditionOKApplicationJSON as json.

func (ListTradeConditionOKApplicationJSON) MarshalJSON

func (s ListTradeConditionOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeConditionOKApplicationJSON) UnmarshalJSON

func (s *ListTradeConditionOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeConditionOKApplicationJSON) Validate

type ListTradeConditionParams

type ListTradeConditionParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeConditionParams is parameters of listTradeCondition operation.

type ListTradeConditionRecordOKApplicationJSON

type ListTradeConditionRecordOKApplicationJSON []TradeConditionRecordList

func (*ListTradeConditionRecordOKApplicationJSON) Decode

Decode decodes ListTradeConditionRecordOKApplicationJSON from json.

func (ListTradeConditionRecordOKApplicationJSON) Encode

Encode encodes ListTradeConditionRecordOKApplicationJSON as json.

func (ListTradeConditionRecordOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeConditionRecordOKApplicationJSON) UnmarshalJSON

func (s *ListTradeConditionRecordOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeConditionRecordOKApplicationJSON) Validate

type ListTradeConditionRecordParams

type ListTradeConditionRecordParams struct {
	// ID of the TradeCondition.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeConditionRecordParams is parameters of listTradeConditionRecord operation.

type ListTradeConditionRecordRes

type ListTradeConditionRecordRes interface {
	// contains filtered or unexported methods
}

type ListTradeConditionRes

type ListTradeConditionRes interface {
	// contains filtered or unexported methods
}

type ListTradeCorrectionOKApplicationJSON

type ListTradeCorrectionOKApplicationJSON []TradeCorrectionList

func (*ListTradeCorrectionOKApplicationJSON) Decode

Decode decodes ListTradeCorrectionOKApplicationJSON from json.

func (ListTradeCorrectionOKApplicationJSON) Encode

Encode encodes ListTradeCorrectionOKApplicationJSON as json.

func (ListTradeCorrectionOKApplicationJSON) MarshalJSON

func (s ListTradeCorrectionOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeCorrectionOKApplicationJSON) UnmarshalJSON

func (s *ListTradeCorrectionOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeCorrectionOKApplicationJSON) Validate

type ListTradeCorrectionParams

type ListTradeCorrectionParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeCorrectionParams is parameters of listTradeCorrection operation.

type ListTradeCorrectionRecordOKApplicationJSON

type ListTradeCorrectionRecordOKApplicationJSON []TradeCorrectionRecordList

func (*ListTradeCorrectionRecordOKApplicationJSON) Decode

Decode decodes ListTradeCorrectionRecordOKApplicationJSON from json.

func (ListTradeCorrectionRecordOKApplicationJSON) Encode

Encode encodes ListTradeCorrectionRecordOKApplicationJSON as json.

func (ListTradeCorrectionRecordOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeCorrectionRecordOKApplicationJSON) UnmarshalJSON

func (s *ListTradeCorrectionRecordOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeCorrectionRecordOKApplicationJSON) Validate

type ListTradeCorrectionRecordParams

type ListTradeCorrectionRecordParams struct {
	// ID of the TradeCorrection.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeCorrectionRecordParams is parameters of listTradeCorrectionRecord operation.

type ListTradeCorrectionRecordRes

type ListTradeCorrectionRecordRes interface {
	// contains filtered or unexported methods
}

type ListTradeCorrectionRes

type ListTradeCorrectionRes interface {
	// contains filtered or unexported methods
}

type ListTradeRecordConditionsOKApplicationJSON

type ListTradeRecordConditionsOKApplicationJSON []TradeRecordConditionsList

func (*ListTradeRecordConditionsOKApplicationJSON) Decode

Decode decodes ListTradeRecordConditionsOKApplicationJSON from json.

func (ListTradeRecordConditionsOKApplicationJSON) Encode

Encode encodes ListTradeRecordConditionsOKApplicationJSON as json.

func (ListTradeRecordConditionsOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeRecordConditionsOKApplicationJSON) UnmarshalJSON

func (s *ListTradeRecordConditionsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeRecordConditionsOKApplicationJSON) Validate

type ListTradeRecordConditionsParams

type ListTradeRecordConditionsParams struct {
	// ID of the TradeRecord.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeRecordConditionsParams is parameters of listTradeRecordConditions operation.

type ListTradeRecordConditionsRes

type ListTradeRecordConditionsRes interface {
	// contains filtered or unexported methods
}

type ListTradeRecordCorrectionOKApplicationJSON

type ListTradeRecordCorrectionOKApplicationJSON []TradeRecordCorrectionList

func (*ListTradeRecordCorrectionOKApplicationJSON) Decode

Decode decodes ListTradeRecordCorrectionOKApplicationJSON from json.

func (ListTradeRecordCorrectionOKApplicationJSON) Encode

Encode encodes ListTradeRecordCorrectionOKApplicationJSON as json.

func (ListTradeRecordCorrectionOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeRecordCorrectionOKApplicationJSON) UnmarshalJSON

func (s *ListTradeRecordCorrectionOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeRecordCorrectionOKApplicationJSON) Validate

type ListTradeRecordCorrectionParams

type ListTradeRecordCorrectionParams struct {
	// ID of the TradeRecord.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeRecordCorrectionParams is parameters of listTradeRecordCorrection operation.

type ListTradeRecordCorrectionRes

type ListTradeRecordCorrectionRes interface {
	// contains filtered or unexported methods
}

type ListTradeRecordExchangeOKApplicationJSON

type ListTradeRecordExchangeOKApplicationJSON []TradeRecordExchangeList

func (*ListTradeRecordExchangeOKApplicationJSON) Decode

Decode decodes ListTradeRecordExchangeOKApplicationJSON from json.

func (ListTradeRecordExchangeOKApplicationJSON) Encode

Encode encodes ListTradeRecordExchangeOKApplicationJSON as json.

func (ListTradeRecordExchangeOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeRecordExchangeOKApplicationJSON) UnmarshalJSON

func (s *ListTradeRecordExchangeOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeRecordExchangeOKApplicationJSON) Validate

type ListTradeRecordExchangeParams

type ListTradeRecordExchangeParams struct {
	// ID of the TradeRecord.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeRecordExchangeParams is parameters of listTradeRecordExchange operation.

type ListTradeRecordExchangeRes

type ListTradeRecordExchangeRes interface {
	// contains filtered or unexported methods
}

type ListTradeRecordOKApplicationJSON

type ListTradeRecordOKApplicationJSON []TradeRecordList

func (*ListTradeRecordOKApplicationJSON) Decode

Decode decodes ListTradeRecordOKApplicationJSON from json.

func (ListTradeRecordOKApplicationJSON) Encode

Encode encodes ListTradeRecordOKApplicationJSON as json.

func (ListTradeRecordOKApplicationJSON) MarshalJSON

func (s ListTradeRecordOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeRecordOKApplicationJSON) UnmarshalJSON

func (s *ListTradeRecordOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeRecordOKApplicationJSON) Validate

type ListTradeRecordParams

type ListTradeRecordParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeRecordParams is parameters of listTradeRecord operation.

type ListTradeRecordRes

type ListTradeRecordRes interface {
	// contains filtered or unexported methods
}

type ListTradeTimeRangeOKApplicationJSON

type ListTradeTimeRangeOKApplicationJSON []TradeTimeRangeList

func (*ListTradeTimeRangeOKApplicationJSON) Decode

Decode decodes ListTradeTimeRangeOKApplicationJSON from json.

func (ListTradeTimeRangeOKApplicationJSON) Encode

Encode encodes ListTradeTimeRangeOKApplicationJSON as json.

func (ListTradeTimeRangeOKApplicationJSON) MarshalJSON

func (s ListTradeTimeRangeOKApplicationJSON) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeTimeRangeOKApplicationJSON) UnmarshalJSON

func (s *ListTradeTimeRangeOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeTimeRangeOKApplicationJSON) Validate

type ListTradeTimeRangeParams

type ListTradeTimeRangeParams struct {
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeTimeRangeParams is parameters of listTradeTimeRange operation.

type ListTradeTimeRangeRecordsOKApplicationJSON

type ListTradeTimeRangeRecordsOKApplicationJSON []TradeTimeRangeRecordsList

func (*ListTradeTimeRangeRecordsOKApplicationJSON) Decode

Decode decodes ListTradeTimeRangeRecordsOKApplicationJSON from json.

func (ListTradeTimeRangeRecordsOKApplicationJSON) Encode

Encode encodes ListTradeTimeRangeRecordsOKApplicationJSON as json.

func (ListTradeTimeRangeRecordsOKApplicationJSON) MarshalJSON

MarshalJSON implements stdjson.Marshaler.

func (*ListTradeTimeRangeRecordsOKApplicationJSON) UnmarshalJSON

func (s *ListTradeTimeRangeRecordsOKApplicationJSON) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (ListTradeTimeRangeRecordsOKApplicationJSON) Validate

type ListTradeTimeRangeRecordsParams

type ListTradeTimeRangeRecordsParams struct {
	// ID of the TradeTimeRange.
	ID int
	// What page to render.
	Page OptInt
	// Item count to render per page.
	ItemsPerPage OptInt
}

ListTradeTimeRangeRecordsParams is parameters of listTradeTimeRangeRecords operation.

type ListTradeTimeRangeRecordsRes

type ListTradeTimeRangeRecordsRes interface {
	// contains filtered or unexported methods
}

type ListTradeTimeRangeRes

type ListTradeTimeRangeRes interface {
	// contains filtered or unexported methods
}

type MarketHoursCreate

type MarketHoursCreate struct {
	ID        int       `json:"id"`
	Date      time.Time `json:"date"`
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
}

Ref: #/components/schemas/MarketHoursCreate

func NewMarketHoursCreate

func NewMarketHoursCreate(e *ent.MarketHours) *MarketHoursCreate

func NewMarketHoursCreates

func NewMarketHoursCreates(es []*ent.MarketHours) []MarketHoursCreate

func (*MarketHoursCreate) Decode

func (s *MarketHoursCreate) Decode(d *jx.Decoder) error

Decode decodes MarketHoursCreate from json.

func (*MarketHoursCreate) Elem

func (*MarketHoursCreate) Encode

func (s *MarketHoursCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketHoursCreate) GetDate

func (s *MarketHoursCreate) GetDate() time.Time

GetDate returns the value of Date.

func (*MarketHoursCreate) GetEndTime

func (s *MarketHoursCreate) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*MarketHoursCreate) GetID

func (s *MarketHoursCreate) GetID() int

GetID returns the value of ID.

func (*MarketHoursCreate) GetStartTime

func (s *MarketHoursCreate) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*MarketHoursCreate) MarshalJSON

func (s *MarketHoursCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketHoursCreate) SetDate

func (s *MarketHoursCreate) SetDate(val time.Time)

SetDate sets the value of Date.

func (*MarketHoursCreate) SetEndTime

func (s *MarketHoursCreate) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*MarketHoursCreate) SetID

func (s *MarketHoursCreate) SetID(val int)

SetID sets the value of ID.

func (*MarketHoursCreate) SetStartTime

func (s *MarketHoursCreate) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*MarketHoursCreate) UnmarshalJSON

func (s *MarketHoursCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketHoursList

type MarketHoursList struct {
	ID        int       `json:"id"`
	Date      time.Time `json:"date"`
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
}

Ref: #/components/schemas/MarketHoursList

func NewMarketHoursList

func NewMarketHoursList(e *ent.MarketHours) *MarketHoursList

func NewMarketHoursLists

func NewMarketHoursLists(es []*ent.MarketHours) []MarketHoursList

func (*MarketHoursList) Decode

func (s *MarketHoursList) Decode(d *jx.Decoder) error

Decode decodes MarketHoursList from json.

func (*MarketHoursList) Elem

func (mh *MarketHoursList) Elem() MarketHoursList

func (*MarketHoursList) Encode

func (s *MarketHoursList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketHoursList) GetDate

func (s *MarketHoursList) GetDate() time.Time

GetDate returns the value of Date.

func (*MarketHoursList) GetEndTime

func (s *MarketHoursList) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*MarketHoursList) GetID

func (s *MarketHoursList) GetID() int

GetID returns the value of ID.

func (*MarketHoursList) GetStartTime

func (s *MarketHoursList) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*MarketHoursList) MarshalJSON

func (s *MarketHoursList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketHoursList) SetDate

func (s *MarketHoursList) SetDate(val time.Time)

SetDate sets the value of Date.

func (*MarketHoursList) SetEndTime

func (s *MarketHoursList) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*MarketHoursList) SetID

func (s *MarketHoursList) SetID(val int)

SetID sets the value of ID.

func (*MarketHoursList) SetStartTime

func (s *MarketHoursList) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*MarketHoursList) UnmarshalJSON

func (s *MarketHoursList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketHoursMarketInfoRead

type MarketHoursMarketInfoRead struct {
	ID         int       `json:"id"`
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
}

Ref: #/components/schemas/MarketHours_MarketInfoRead

func NewMarketHoursMarketInfoRead

func NewMarketHoursMarketInfoRead(e *ent.MarketInfo) *MarketHoursMarketInfoRead

func NewMarketHoursMarketInfoReads

func NewMarketHoursMarketInfoReads(es []*ent.MarketInfo) []MarketHoursMarketInfoRead

func (*MarketHoursMarketInfoRead) Decode

func (s *MarketHoursMarketInfoRead) Decode(d *jx.Decoder) error

Decode decodes MarketHoursMarketInfoRead from json.

func (*MarketHoursMarketInfoRead) Elem

func (*MarketHoursMarketInfoRead) Encode

func (s *MarketHoursMarketInfoRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketHoursMarketInfoRead) GetHoursEnd

func (s *MarketHoursMarketInfoRead) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*MarketHoursMarketInfoRead) GetHoursStart

func (s *MarketHoursMarketInfoRead) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*MarketHoursMarketInfoRead) GetID

func (s *MarketHoursMarketInfoRead) GetID() int

GetID returns the value of ID.

func (*MarketHoursMarketInfoRead) MarshalJSON

func (s *MarketHoursMarketInfoRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketHoursMarketInfoRead) SetHoursEnd

func (s *MarketHoursMarketInfoRead) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*MarketHoursMarketInfoRead) SetHoursStart

func (s *MarketHoursMarketInfoRead) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*MarketHoursMarketInfoRead) SetID

func (s *MarketHoursMarketInfoRead) SetID(val int)

SetID sets the value of ID.

func (*MarketHoursMarketInfoRead) UnmarshalJSON

func (s *MarketHoursMarketInfoRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketHoursRead

type MarketHoursRead struct {
	ID        int       `json:"id"`
	Date      time.Time `json:"date"`
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
}

Ref: #/components/schemas/MarketHoursRead

func NewMarketHoursRead

func NewMarketHoursRead(e *ent.MarketHours) *MarketHoursRead

func NewMarketHoursReads

func NewMarketHoursReads(es []*ent.MarketHours) []MarketHoursRead

func (*MarketHoursRead) Decode

func (s *MarketHoursRead) Decode(d *jx.Decoder) error

Decode decodes MarketHoursRead from json.

func (*MarketHoursRead) Elem

func (mh *MarketHoursRead) Elem() MarketHoursRead

func (*MarketHoursRead) Encode

func (s *MarketHoursRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketHoursRead) GetDate

func (s *MarketHoursRead) GetDate() time.Time

GetDate returns the value of Date.

func (*MarketHoursRead) GetEndTime

func (s *MarketHoursRead) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*MarketHoursRead) GetID

func (s *MarketHoursRead) GetID() int

GetID returns the value of ID.

func (*MarketHoursRead) GetStartTime

func (s *MarketHoursRead) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*MarketHoursRead) MarshalJSON

func (s *MarketHoursRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketHoursRead) SetDate

func (s *MarketHoursRead) SetDate(val time.Time)

SetDate sets the value of Date.

func (*MarketHoursRead) SetEndTime

func (s *MarketHoursRead) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*MarketHoursRead) SetID

func (s *MarketHoursRead) SetID(val int)

SetID sets the value of ID.

func (*MarketHoursRead) SetStartTime

func (s *MarketHoursRead) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*MarketHoursRead) UnmarshalJSON

func (s *MarketHoursRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketHoursUpdate

type MarketHoursUpdate struct {
	ID        int       `json:"id"`
	Date      time.Time `json:"date"`
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
}

Ref: #/components/schemas/MarketHoursUpdate

func NewMarketHoursUpdate

func NewMarketHoursUpdate(e *ent.MarketHours) *MarketHoursUpdate

func NewMarketHoursUpdates

func NewMarketHoursUpdates(es []*ent.MarketHours) []MarketHoursUpdate

func (*MarketHoursUpdate) Decode

func (s *MarketHoursUpdate) Decode(d *jx.Decoder) error

Decode decodes MarketHoursUpdate from json.

func (*MarketHoursUpdate) Elem

func (*MarketHoursUpdate) Encode

func (s *MarketHoursUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketHoursUpdate) GetDate

func (s *MarketHoursUpdate) GetDate() time.Time

GetDate returns the value of Date.

func (*MarketHoursUpdate) GetEndTime

func (s *MarketHoursUpdate) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*MarketHoursUpdate) GetID

func (s *MarketHoursUpdate) GetID() int

GetID returns the value of ID.

func (*MarketHoursUpdate) GetStartTime

func (s *MarketHoursUpdate) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*MarketHoursUpdate) MarshalJSON

func (s *MarketHoursUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketHoursUpdate) SetDate

func (s *MarketHoursUpdate) SetDate(val time.Time)

SetDate sets the value of Date.

func (*MarketHoursUpdate) SetEndTime

func (s *MarketHoursUpdate) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*MarketHoursUpdate) SetID

func (s *MarketHoursUpdate) SetID(val int)

SetID sets the value of ID.

func (*MarketHoursUpdate) SetStartTime

func (s *MarketHoursUpdate) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*MarketHoursUpdate) UnmarshalJSON

func (s *MarketHoursUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketInfoCreate

type MarketInfoCreate struct {
	ID         int       `json:"id"`
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
}

Ref: #/components/schemas/MarketInfoCreate

func NewMarketInfoCreate

func NewMarketInfoCreate(e *ent.MarketInfo) *MarketInfoCreate

func NewMarketInfoCreates

func NewMarketInfoCreates(es []*ent.MarketInfo) []MarketInfoCreate

func (*MarketInfoCreate) Decode

func (s *MarketInfoCreate) Decode(d *jx.Decoder) error

Decode decodes MarketInfoCreate from json.

func (*MarketInfoCreate) Elem

func (*MarketInfoCreate) Encode

func (s *MarketInfoCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketInfoCreate) GetHoursEnd

func (s *MarketInfoCreate) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*MarketInfoCreate) GetHoursStart

func (s *MarketInfoCreate) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*MarketInfoCreate) GetID

func (s *MarketInfoCreate) GetID() int

GetID returns the value of ID.

func (*MarketInfoCreate) MarshalJSON

func (s *MarketInfoCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketInfoCreate) SetHoursEnd

func (s *MarketInfoCreate) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*MarketInfoCreate) SetHoursStart

func (s *MarketInfoCreate) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*MarketInfoCreate) SetID

func (s *MarketInfoCreate) SetID(val int)

SetID sets the value of ID.

func (*MarketInfoCreate) UnmarshalJSON

func (s *MarketInfoCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketInfoHoursList

type MarketInfoHoursList struct {
	ID        int       `json:"id"`
	Date      time.Time `json:"date"`
	StartTime time.Time `json:"start_time"`
	EndTime   time.Time `json:"end_time"`
}

Ref: #/components/schemas/MarketInfo_HoursList

func NewMarketInfoHoursList

func NewMarketInfoHoursList(e *ent.MarketHours) *MarketInfoHoursList

func NewMarketInfoHoursLists

func NewMarketInfoHoursLists(es []*ent.MarketHours) []MarketInfoHoursList

func (*MarketInfoHoursList) Decode

func (s *MarketInfoHoursList) Decode(d *jx.Decoder) error

Decode decodes MarketInfoHoursList from json.

func (*MarketInfoHoursList) Elem

func (*MarketInfoHoursList) Encode

func (s *MarketInfoHoursList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketInfoHoursList) GetDate

func (s *MarketInfoHoursList) GetDate() time.Time

GetDate returns the value of Date.

func (*MarketInfoHoursList) GetEndTime

func (s *MarketInfoHoursList) GetEndTime() time.Time

GetEndTime returns the value of EndTime.

func (*MarketInfoHoursList) GetID

func (s *MarketInfoHoursList) GetID() int

GetID returns the value of ID.

func (*MarketInfoHoursList) GetStartTime

func (s *MarketInfoHoursList) GetStartTime() time.Time

GetStartTime returns the value of StartTime.

func (*MarketInfoHoursList) MarshalJSON

func (s *MarketInfoHoursList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketInfoHoursList) SetDate

func (s *MarketInfoHoursList) SetDate(val time.Time)

SetDate sets the value of Date.

func (*MarketInfoHoursList) SetEndTime

func (s *MarketInfoHoursList) SetEndTime(val time.Time)

SetEndTime sets the value of EndTime.

func (*MarketInfoHoursList) SetID

func (s *MarketInfoHoursList) SetID(val int)

SetID sets the value of ID.

func (*MarketInfoHoursList) SetStartTime

func (s *MarketInfoHoursList) SetStartTime(val time.Time)

SetStartTime sets the value of StartTime.

func (*MarketInfoHoursList) UnmarshalJSON

func (s *MarketInfoHoursList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketInfoList

type MarketInfoList struct {
	ID         int       `json:"id"`
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
}

Ref: #/components/schemas/MarketInfoList

func NewMarketInfoList

func NewMarketInfoList(e *ent.MarketInfo) *MarketInfoList

func NewMarketInfoLists

func NewMarketInfoLists(es []*ent.MarketInfo) []MarketInfoList

func (*MarketInfoList) Decode

func (s *MarketInfoList) Decode(d *jx.Decoder) error

Decode decodes MarketInfoList from json.

func (*MarketInfoList) Elem

func (mi *MarketInfoList) Elem() MarketInfoList

func (*MarketInfoList) Encode

func (s *MarketInfoList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketInfoList) GetHoursEnd

func (s *MarketInfoList) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*MarketInfoList) GetHoursStart

func (s *MarketInfoList) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*MarketInfoList) GetID

func (s *MarketInfoList) GetID() int

GetID returns the value of ID.

func (*MarketInfoList) MarshalJSON

func (s *MarketInfoList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketInfoList) SetHoursEnd

func (s *MarketInfoList) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*MarketInfoList) SetHoursStart

func (s *MarketInfoList) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*MarketInfoList) SetID

func (s *MarketInfoList) SetID(val int)

SetID sets the value of ID.

func (*MarketInfoList) UnmarshalJSON

func (s *MarketInfoList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketInfoRead

type MarketInfoRead struct {
	ID         int       `json:"id"`
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
}

Ref: #/components/schemas/MarketInfoRead

func NewMarketInfoRead

func NewMarketInfoRead(e *ent.MarketInfo) *MarketInfoRead

func NewMarketInfoReads

func NewMarketInfoReads(es []*ent.MarketInfo) []MarketInfoRead

func (*MarketInfoRead) Decode

func (s *MarketInfoRead) Decode(d *jx.Decoder) error

Decode decodes MarketInfoRead from json.

func (*MarketInfoRead) Elem

func (mi *MarketInfoRead) Elem() MarketInfoRead

func (*MarketInfoRead) Encode

func (s *MarketInfoRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketInfoRead) GetHoursEnd

func (s *MarketInfoRead) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*MarketInfoRead) GetHoursStart

func (s *MarketInfoRead) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*MarketInfoRead) GetID

func (s *MarketInfoRead) GetID() int

GetID returns the value of ID.

func (*MarketInfoRead) MarshalJSON

func (s *MarketInfoRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketInfoRead) SetHoursEnd

func (s *MarketInfoRead) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*MarketInfoRead) SetHoursStart

func (s *MarketInfoRead) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*MarketInfoRead) SetID

func (s *MarketInfoRead) SetID(val int)

SetID sets the value of ID.

func (*MarketInfoRead) UnmarshalJSON

func (s *MarketInfoRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type MarketInfoUpdate

type MarketInfoUpdate struct {
	ID         int       `json:"id"`
	HoursStart time.Time `json:"hours_start"`
	HoursEnd   time.Time `json:"hours_end"`
}

Ref: #/components/schemas/MarketInfoUpdate

func NewMarketInfoUpdate

func NewMarketInfoUpdate(e *ent.MarketInfo) *MarketInfoUpdate

func NewMarketInfoUpdates

func NewMarketInfoUpdates(es []*ent.MarketInfo) []MarketInfoUpdate

func (*MarketInfoUpdate) Decode

func (s *MarketInfoUpdate) Decode(d *jx.Decoder) error

Decode decodes MarketInfoUpdate from json.

func (*MarketInfoUpdate) Elem

func (*MarketInfoUpdate) Encode

func (s *MarketInfoUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*MarketInfoUpdate) GetHoursEnd

func (s *MarketInfoUpdate) GetHoursEnd() time.Time

GetHoursEnd returns the value of HoursEnd.

func (*MarketInfoUpdate) GetHoursStart

func (s *MarketInfoUpdate) GetHoursStart() time.Time

GetHoursStart returns the value of HoursStart.

func (*MarketInfoUpdate) GetID

func (s *MarketInfoUpdate) GetID() int

GetID returns the value of ID.

func (*MarketInfoUpdate) MarshalJSON

func (s *MarketInfoUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MarketInfoUpdate) SetHoursEnd

func (s *MarketInfoUpdate) SetHoursEnd(val time.Time)

SetHoursEnd sets the value of HoursEnd.

func (*MarketInfoUpdate) SetHoursStart

func (s *MarketInfoUpdate) SetHoursStart(val time.Time)

SetHoursStart sets the value of HoursStart.

func (*MarketInfoUpdate) SetID

func (s *MarketInfoUpdate) SetID(val int)

SetID sets the value of ID.

func (*MarketInfoUpdate) UnmarshalJSON

func (s *MarketInfoUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Middleware

type Middleware = middleware.Middleware

Middleware is middleware type.

type OgentHandler

type OgentHandler struct {
	// contains filtered or unexported fields
}

OgentHandler implements the ogen generated Handler interface and uses Ent as data layer.

func NewOgentHandler

func NewOgentHandler(c *ent.Client) *OgentHandler

NewOgentHandler returns a new OgentHandler.

func (*OgentHandler) CreateBarGroup

func (h *OgentHandler) CreateBarGroup(ctx context.Context, req *CreateBarGroupReq) (CreateBarGroupRes, error)

CreateBarGroup handles POST /bar-groups requests.

func (*OgentHandler) CreateBarRecord

func (h *OgentHandler) CreateBarRecord(ctx context.Context, req *CreateBarRecordReq) (CreateBarRecordRes, error)

CreateBarRecord handles POST /bar-records requests.

func (*OgentHandler) CreateBarTimeRange

func (h *OgentHandler) CreateBarTimeRange(ctx context.Context, req *CreateBarTimeRangeReq) (CreateBarTimeRangeRes, error)

CreateBarTimeRange handles POST /bar-time-ranges requests.

func (*OgentHandler) CreateDataSource

func (h *OgentHandler) CreateDataSource(ctx context.Context, req *CreateDataSourceReq) (CreateDataSourceRes, error)

CreateDataSource handles POST /data-sources requests.

func (*OgentHandler) CreateDividend

func (h *OgentHandler) CreateDividend(ctx context.Context, req *CreateDividendReq) (CreateDividendRes, error)

CreateDividend handles POST /dividends requests.

func (*OgentHandler) CreateEntity

func (h *OgentHandler) CreateEntity(ctx context.Context, req *CreateEntityReq) (CreateEntityRes, error)

CreateEntity handles POST /entities requests.

func (*OgentHandler) CreateExchange

func (h *OgentHandler) CreateExchange(ctx context.Context, req *CreateExchangeReq) (CreateExchangeRes, error)

CreateExchange handles POST /exchanges requests.

func (*OgentHandler) CreateFinancial

func (h *OgentHandler) CreateFinancial(ctx context.Context, req *CreateFinancialReq) (CreateFinancialRes, error)

CreateFinancial handles POST /financials requests.

func (*OgentHandler) CreateInterval

func (h *OgentHandler) CreateInterval(ctx context.Context, req *CreateIntervalReq) (CreateIntervalRes, error)

CreateInterval handles POST /intervals requests.

func (*OgentHandler) CreateMarketHours

func (h *OgentHandler) CreateMarketHours(ctx context.Context, req *CreateMarketHoursReq) (CreateMarketHoursRes, error)

CreateMarketHours handles POST /market-hours-slice requests.

func (*OgentHandler) CreateMarketInfo

func (h *OgentHandler) CreateMarketInfo(ctx context.Context, req *CreateMarketInfoReq) (CreateMarketInfoRes, error)

CreateMarketInfo handles POST /market-infos requests.

func (*OgentHandler) CreateSplit

func (h *OgentHandler) CreateSplit(ctx context.Context, req *CreateSplitReq) (CreateSplitRes, error)

CreateSplit handles POST /splits requests.

func (*OgentHandler) CreateTradeCondition

func (h *OgentHandler) CreateTradeCondition(ctx context.Context, req *CreateTradeConditionReq) (CreateTradeConditionRes, error)

CreateTradeCondition handles POST /trade-conditions requests.

func (*OgentHandler) CreateTradeCorrection

func (h *OgentHandler) CreateTradeCorrection(ctx context.Context, req *CreateTradeCorrectionReq) (CreateTradeCorrectionRes, error)

CreateTradeCorrection handles POST /trade-corrections requests.

func (*OgentHandler) CreateTradeRecord

func (h *OgentHandler) CreateTradeRecord(ctx context.Context, req *CreateTradeRecordReq) (CreateTradeRecordRes, error)

CreateTradeRecord handles POST /trade-records requests.

func (*OgentHandler) CreateTradeTimeRange

func (h *OgentHandler) CreateTradeTimeRange(ctx context.Context, req *CreateTradeTimeRangeReq) (CreateTradeTimeRangeRes, error)

CreateTradeTimeRange handles POST /trade-time-ranges requests.

func (*OgentHandler) DeleteBarGroup

func (h *OgentHandler) DeleteBarGroup(ctx context.Context, params DeleteBarGroupParams) (DeleteBarGroupRes, error)

DeleteBarGroup handles DELETE /bar-groups/{id} requests.

func (*OgentHandler) DeleteBarRecord

func (h *OgentHandler) DeleteBarRecord(ctx context.Context, params DeleteBarRecordParams) (DeleteBarRecordRes, error)

DeleteBarRecord handles DELETE /bar-records/{id} requests.

func (*OgentHandler) DeleteBarTimeRange

func (h *OgentHandler) DeleteBarTimeRange(ctx context.Context, params DeleteBarTimeRangeParams) (DeleteBarTimeRangeRes, error)

DeleteBarTimeRange handles DELETE /bar-time-ranges/{id} requests.

func (*OgentHandler) DeleteDataSource

func (h *OgentHandler) DeleteDataSource(ctx context.Context, params DeleteDataSourceParams) (DeleteDataSourceRes, error)

DeleteDataSource handles DELETE /data-sources/{id} requests.

func (*OgentHandler) DeleteDividend

func (h *OgentHandler) DeleteDividend(ctx context.Context, params DeleteDividendParams) (DeleteDividendRes, error)

DeleteDividend handles DELETE /dividends/{id} requests.

func (*OgentHandler) DeleteEntity

func (h *OgentHandler) DeleteEntity(ctx context.Context, params DeleteEntityParams) (DeleteEntityRes, error)

DeleteEntity handles DELETE /entities/{id} requests.

func (*OgentHandler) DeleteExchange

func (h *OgentHandler) DeleteExchange(ctx context.Context, params DeleteExchangeParams) (DeleteExchangeRes, error)

DeleteExchange handles DELETE /exchanges/{id} requests.

func (*OgentHandler) DeleteFinancial

func (h *OgentHandler) DeleteFinancial(ctx context.Context, params DeleteFinancialParams) (DeleteFinancialRes, error)

DeleteFinancial handles DELETE /financials/{id} requests.

func (*OgentHandler) DeleteInterval

func (h *OgentHandler) DeleteInterval(ctx context.Context, params DeleteIntervalParams) (DeleteIntervalRes, error)

DeleteInterval handles DELETE /intervals/{id} requests.

func (*OgentHandler) DeleteMarketHours

func (h *OgentHandler) DeleteMarketHours(ctx context.Context, params DeleteMarketHoursParams) (DeleteMarketHoursRes, error)

DeleteMarketHours handles DELETE /market-hours-slice/{id} requests.

func (*OgentHandler) DeleteMarketInfo

func (h *OgentHandler) DeleteMarketInfo(ctx context.Context, params DeleteMarketInfoParams) (DeleteMarketInfoRes, error)

DeleteMarketInfo handles DELETE /market-infos/{id} requests.

func (*OgentHandler) DeleteSplit

func (h *OgentHandler) DeleteSplit(ctx context.Context, params DeleteSplitParams) (DeleteSplitRes, error)

DeleteSplit handles DELETE /splits/{id} requests.

func (*OgentHandler) DeleteTradeCondition

func (h *OgentHandler) DeleteTradeCondition(ctx context.Context, params DeleteTradeConditionParams) (DeleteTradeConditionRes, error)

DeleteTradeCondition handles DELETE /trade-conditions/{id} requests.

func (*OgentHandler) DeleteTradeCorrection

func (h *OgentHandler) DeleteTradeCorrection(ctx context.Context, params DeleteTradeCorrectionParams) (DeleteTradeCorrectionRes, error)

DeleteTradeCorrection handles DELETE /trade-corrections/{id} requests.

func (*OgentHandler) DeleteTradeRecord

func (h *OgentHandler) DeleteTradeRecord(ctx context.Context, params DeleteTradeRecordParams) (DeleteTradeRecordRes, error)

DeleteTradeRecord handles DELETE /trade-records/{id} requests.

func (*OgentHandler) DeleteTradeTimeRange

func (h *OgentHandler) DeleteTradeTimeRange(ctx context.Context, params DeleteTradeTimeRangeParams) (DeleteTradeTimeRangeRes, error)

DeleteTradeTimeRange handles DELETE /trade-time-ranges/{id} requests.

func (*OgentHandler) ListBarGroup

func (h *OgentHandler) ListBarGroup(ctx context.Context, params ListBarGroupParams) (ListBarGroupRes, error)

ListBarGroup handles GET /bar-groups requests.

func (*OgentHandler) ListBarGroupRecords

func (h *OgentHandler) ListBarGroupRecords(ctx context.Context, params ListBarGroupRecordsParams) (ListBarGroupRecordsRes, error)

ListBarGroupRecords handles GET /bar-groups/{id}/records requests.

func (*OgentHandler) ListBarRecord

func (h *OgentHandler) ListBarRecord(ctx context.Context, params ListBarRecordParams) (ListBarRecordRes, error)

ListBarRecord handles GET /bar-records requests.

func (*OgentHandler) ListBarTimeRange

func (h *OgentHandler) ListBarTimeRange(ctx context.Context, params ListBarTimeRangeParams) (ListBarTimeRangeRes, error)

ListBarTimeRange handles GET /bar-time-ranges requests.

func (*OgentHandler) ListBarTimeRangeGroups

func (h *OgentHandler) ListBarTimeRangeGroups(ctx context.Context, params ListBarTimeRangeGroupsParams) (ListBarTimeRangeGroupsRes, error)

ListBarTimeRangeGroups handles GET /bar-time-ranges/{id}/groups requests.

func (*OgentHandler) ListDataSource

func (h *OgentHandler) ListDataSource(ctx context.Context, params ListDataSourceParams) (ListDataSourceRes, error)

ListDataSource handles GET /data-sources requests.

func (*OgentHandler) ListDataSourceIntervals

ListDataSourceIntervals handles GET /data-sources/{id}/intervals requests.

func (*OgentHandler) ListDividend

func (h *OgentHandler) ListDividend(ctx context.Context, params ListDividendParams) (ListDividendRes, error)

ListDividend handles GET /dividends requests.

func (*OgentHandler) ListDividendStock

func (h *OgentHandler) ListDividendStock(ctx context.Context, params ListDividendStockParams) (ListDividendStockRes, error)

ListDividendStock handles GET /dividends/{id}/stock requests.

func (*OgentHandler) ListEntity

func (h *OgentHandler) ListEntity(ctx context.Context, params ListEntityParams) (ListEntityRes, error)

ListEntity handles GET /entities requests.

func (*OgentHandler) ListEntityDividends

func (h *OgentHandler) ListEntityDividends(ctx context.Context, params ListEntityDividendsParams) (ListEntityDividendsRes, error)

ListEntityDividends handles GET /entities/{id}/dividends requests.

func (*OgentHandler) ListEntityExchanges

func (h *OgentHandler) ListEntityExchanges(ctx context.Context, params ListEntityExchangesParams) (ListEntityExchangesRes, error)

ListEntityExchanges handles GET /entities/{id}/exchanges requests.

func (*OgentHandler) ListEntityFinancials

func (h *OgentHandler) ListEntityFinancials(ctx context.Context, params ListEntityFinancialsParams) (ListEntityFinancialsRes, error)

ListEntityFinancials handles GET /entities/{id}/financials requests.

func (*OgentHandler) ListEntityIntervals

func (h *OgentHandler) ListEntityIntervals(ctx context.Context, params ListEntityIntervalsParams) (ListEntityIntervalsRes, error)

ListEntityIntervals handles GET /entities/{id}/intervals requests.

func (*OgentHandler) ListEntitySplits

func (h *OgentHandler) ListEntitySplits(ctx context.Context, params ListEntitySplitsParams) (ListEntitySplitsRes, error)

ListEntitySplits handles GET /entities/{id}/splits requests.

func (*OgentHandler) ListExchange

func (h *OgentHandler) ListExchange(ctx context.Context, params ListExchangeParams) (ListExchangeRes, error)

ListExchange handles GET /exchanges requests.

func (*OgentHandler) ListExchangeStocks

func (h *OgentHandler) ListExchangeStocks(ctx context.Context, params ListExchangeStocksParams) (ListExchangeStocksRes, error)

ListExchangeStocks handles GET /exchanges/{id}/stocks requests.

func (*OgentHandler) ListFinancial

func (h *OgentHandler) ListFinancial(ctx context.Context, params ListFinancialParams) (ListFinancialRes, error)

ListFinancial handles GET /financials requests.

func (*OgentHandler) ListFinancialStock

func (h *OgentHandler) ListFinancialStock(ctx context.Context, params ListFinancialStockParams) (ListFinancialStockRes, error)

ListFinancialStock handles GET /financials/{id}/stock requests.

func (*OgentHandler) ListInterval

func (h *OgentHandler) ListInterval(ctx context.Context, params ListIntervalParams) (ListIntervalRes, error)

ListInterval handles GET /intervals requests.

func (*OgentHandler) ListIntervalBars

func (h *OgentHandler) ListIntervalBars(ctx context.Context, params ListIntervalBarsParams) (ListIntervalBarsRes, error)

ListIntervalBars handles GET /intervals/{id}/bars requests.

func (*OgentHandler) ListIntervalTrades

func (h *OgentHandler) ListIntervalTrades(ctx context.Context, params ListIntervalTradesParams) (ListIntervalTradesRes, error)

ListIntervalTrades handles GET /intervals/{id}/trades requests.

func (*OgentHandler) ListMarketHours

func (h *OgentHandler) ListMarketHours(ctx context.Context, params ListMarketHoursParams) (ListMarketHoursRes, error)

ListMarketHours handles GET /market-hours-slice requests.

func (*OgentHandler) ListMarketInfo

func (h *OgentHandler) ListMarketInfo(ctx context.Context, params ListMarketInfoParams) (ListMarketInfoRes, error)

ListMarketInfo handles GET /market-infos requests.

func (*OgentHandler) ListMarketInfoHours

func (h *OgentHandler) ListMarketInfoHours(ctx context.Context, params ListMarketInfoHoursParams) (ListMarketInfoHoursRes, error)

ListMarketInfoHours handles GET /market-infos/{id}/hours requests.

func (*OgentHandler) ListSplit

func (h *OgentHandler) ListSplit(ctx context.Context, params ListSplitParams) (ListSplitRes, error)

ListSplit handles GET /splits requests.

func (*OgentHandler) ListTradeCondition

func (h *OgentHandler) ListTradeCondition(ctx context.Context, params ListTradeConditionParams) (ListTradeConditionRes, error)

ListTradeCondition handles GET /trade-conditions requests.

func (*OgentHandler) ListTradeConditionRecord

ListTradeConditionRecord handles GET /trade-conditions/{id}/record requests.

func (*OgentHandler) ListTradeCorrection

func (h *OgentHandler) ListTradeCorrection(ctx context.Context, params ListTradeCorrectionParams) (ListTradeCorrectionRes, error)

ListTradeCorrection handles GET /trade-corrections requests.

func (*OgentHandler) ListTradeCorrectionRecord

ListTradeCorrectionRecord handles GET /trade-corrections/{id}/record requests.

func (*OgentHandler) ListTradeRecord

func (h *OgentHandler) ListTradeRecord(ctx context.Context, params ListTradeRecordParams) (ListTradeRecordRes, error)

ListTradeRecord handles GET /trade-records requests.

func (*OgentHandler) ListTradeRecordConditions

ListTradeRecordConditions handles GET /trade-records/{id}/conditions requests.

func (*OgentHandler) ListTradeRecordCorrection

ListTradeRecordCorrection handles GET /trade-records/{id}/correction requests.

func (*OgentHandler) ListTradeRecordExchange

ListTradeRecordExchange handles GET /trade-records/{id}/exchange requests.

func (*OgentHandler) ListTradeTimeRange

func (h *OgentHandler) ListTradeTimeRange(ctx context.Context, params ListTradeTimeRangeParams) (ListTradeTimeRangeRes, error)

ListTradeTimeRange handles GET /trade-time-ranges requests.

func (*OgentHandler) ListTradeTimeRangeRecords

ListTradeTimeRangeRecords handles GET /trade-time-ranges/{id}/records requests.

func (*OgentHandler) ReadBarGroup

func (h *OgentHandler) ReadBarGroup(ctx context.Context, params ReadBarGroupParams) (ReadBarGroupRes, error)

ReadBarGroup handles GET /bar-groups/{id} requests.

func (*OgentHandler) ReadBarGroupTimeRange

func (h *OgentHandler) ReadBarGroupTimeRange(ctx context.Context, params ReadBarGroupTimeRangeParams) (ReadBarGroupTimeRangeRes, error)

ReadBarGroupTimeRange handles GET /bar-groups/{id}/time-range requests.

func (*OgentHandler) ReadBarRecord

func (h *OgentHandler) ReadBarRecord(ctx context.Context, params ReadBarRecordParams) (ReadBarRecordRes, error)

ReadBarRecord handles GET /bar-records/{id} requests.

func (*OgentHandler) ReadBarRecordGroup

func (h *OgentHandler) ReadBarRecordGroup(ctx context.Context, params ReadBarRecordGroupParams) (ReadBarRecordGroupRes, error)

ReadBarRecordGroup handles GET /bar-records/{id}/group requests.

func (*OgentHandler) ReadBarTimeRange

func (h *OgentHandler) ReadBarTimeRange(ctx context.Context, params ReadBarTimeRangeParams) (ReadBarTimeRangeRes, error)

ReadBarTimeRange handles GET /bar-time-ranges/{id} requests.

func (*OgentHandler) ReadBarTimeRangeInterval

ReadBarTimeRangeInterval handles GET /bar-time-ranges/{id}/interval requests.

func (*OgentHandler) ReadDataSource

func (h *OgentHandler) ReadDataSource(ctx context.Context, params ReadDataSourceParams) (ReadDataSourceRes, error)

ReadDataSource handles GET /data-sources/{id} requests.

func (*OgentHandler) ReadDividend

func (h *OgentHandler) ReadDividend(ctx context.Context, params ReadDividendParams) (ReadDividendRes, error)

ReadDividend handles GET /dividends/{id} requests.

func (*OgentHandler) ReadEntity

func (h *OgentHandler) ReadEntity(ctx context.Context, params ReadEntityParams) (ReadEntityRes, error)

ReadEntity handles GET /entities/{id} requests.

func (*OgentHandler) ReadExchange

func (h *OgentHandler) ReadExchange(ctx context.Context, params ReadExchangeParams) (ReadExchangeRes, error)

ReadExchange handles GET /exchanges/{id} requests.

func (*OgentHandler) ReadFinancial

func (h *OgentHandler) ReadFinancial(ctx context.Context, params ReadFinancialParams) (ReadFinancialRes, error)

ReadFinancial handles GET /financials/{id} requests.

func (*OgentHandler) ReadInterval

func (h *OgentHandler) ReadInterval(ctx context.Context, params ReadIntervalParams) (ReadIntervalRes, error)

ReadInterval handles GET /intervals/{id} requests.

func (*OgentHandler) ReadIntervalDataSource

func (h *OgentHandler) ReadIntervalDataSource(ctx context.Context, params ReadIntervalDataSourceParams) (ReadIntervalDataSourceRes, error)

ReadIntervalDataSource handles GET /intervals/{id}/data-source requests.

func (*OgentHandler) ReadIntervalStock

func (h *OgentHandler) ReadIntervalStock(ctx context.Context, params ReadIntervalStockParams) (ReadIntervalStockRes, error)

ReadIntervalStock handles GET /intervals/{id}/stock requests.

func (*OgentHandler) ReadMarketHours

func (h *OgentHandler) ReadMarketHours(ctx context.Context, params ReadMarketHoursParams) (ReadMarketHoursRes, error)

ReadMarketHours handles GET /market-hours-slice/{id} requests.

func (*OgentHandler) ReadMarketHoursMarketInfo

ReadMarketHoursMarketInfo handles GET /market-hours-slice/{id}/market-info requests.

func (*OgentHandler) ReadMarketInfo

func (h *OgentHandler) ReadMarketInfo(ctx context.Context, params ReadMarketInfoParams) (ReadMarketInfoRes, error)

ReadMarketInfo handles GET /market-infos/{id} requests.

func (*OgentHandler) ReadSplit

func (h *OgentHandler) ReadSplit(ctx context.Context, params ReadSplitParams) (ReadSplitRes, error)

ReadSplit handles GET /splits/{id} requests.

func (*OgentHandler) ReadSplitStock

func (h *OgentHandler) ReadSplitStock(ctx context.Context, params ReadSplitStockParams) (ReadSplitStockRes, error)

ReadSplitStock handles GET /splits/{id}/stock requests.

func (*OgentHandler) ReadTradeCondition

func (h *OgentHandler) ReadTradeCondition(ctx context.Context, params ReadTradeConditionParams) (ReadTradeConditionRes, error)

ReadTradeCondition handles GET /trade-conditions/{id} requests.

func (*OgentHandler) ReadTradeCorrection

func (h *OgentHandler) ReadTradeCorrection(ctx context.Context, params ReadTradeCorrectionParams) (ReadTradeCorrectionRes, error)

ReadTradeCorrection handles GET /trade-corrections/{id} requests.

func (*OgentHandler) ReadTradeRecord

func (h *OgentHandler) ReadTradeRecord(ctx context.Context, params ReadTradeRecordParams) (ReadTradeRecordRes, error)

ReadTradeRecord handles GET /trade-records/{id} requests.

func (*OgentHandler) ReadTradeRecordTimeRange

ReadTradeRecordTimeRange handles GET /trade-records/{id}/time-range requests.

func (*OgentHandler) ReadTradeTimeRange

func (h *OgentHandler) ReadTradeTimeRange(ctx context.Context, params ReadTradeTimeRangeParams) (ReadTradeTimeRangeRes, error)

ReadTradeTimeRange handles GET /trade-time-ranges/{id} requests.

func (*OgentHandler) ReadTradeTimeRangeInterval

ReadTradeTimeRangeInterval handles GET /trade-time-ranges/{id}/interval requests.

func (*OgentHandler) UpdateBarGroup

UpdateBarGroup handles PATCH /bar-groups/{id} requests.

func (*OgentHandler) UpdateBarRecord

UpdateBarRecord handles PATCH /bar-records/{id} requests.

func (*OgentHandler) UpdateBarTimeRange

UpdateBarTimeRange handles PATCH /bar-time-ranges/{id} requests.

func (*OgentHandler) UpdateDataSource

UpdateDataSource handles PATCH /data-sources/{id} requests.

func (*OgentHandler) UpdateDividend

UpdateDividend handles PATCH /dividends/{id} requests.

func (*OgentHandler) UpdateEntity

func (h *OgentHandler) UpdateEntity(ctx context.Context, req *UpdateEntityReq, params UpdateEntityParams) (UpdateEntityRes, error)

UpdateEntity handles PATCH /entities/{id} requests.

func (*OgentHandler) UpdateExchange

UpdateExchange handles PATCH /exchanges/{id} requests.

func (*OgentHandler) UpdateFinancial

UpdateFinancial handles PATCH /financials/{id} requests.

func (*OgentHandler) UpdateInterval

UpdateInterval handles PATCH /intervals/{id} requests.

func (*OgentHandler) UpdateMarketHours

UpdateMarketHours handles PATCH /market-hours-slice/{id} requests.

func (*OgentHandler) UpdateMarketInfo

UpdateMarketInfo handles PATCH /market-infos/{id} requests.

func (*OgentHandler) UpdateSplit

func (h *OgentHandler) UpdateSplit(ctx context.Context, req *UpdateSplitReq, params UpdateSplitParams) (UpdateSplitRes, error)

UpdateSplit handles PATCH /splits/{id} requests.

func (*OgentHandler) UpdateTradeCondition

UpdateTradeCondition handles PATCH /trade-conditions/{id} requests.

func (*OgentHandler) UpdateTradeCorrection

UpdateTradeCorrection handles PATCH /trade-corrections/{id} requests.

func (*OgentHandler) UpdateTradeRecord

UpdateTradeRecord handles PATCH /trade-records/{id} requests.

func (*OgentHandler) UpdateTradeTimeRange

UpdateTradeTimeRange handles PATCH /trade-time-ranges/{id} requests.

type OptBool

type OptBool struct {
	Value bool
	Set   bool
}

OptBool is optional bool.

func NewOptBool

func NewOptBool(v bool) OptBool

NewOptBool returns new OptBool with value set to v.

func (*OptBool) Decode

func (o *OptBool) Decode(d *jx.Decoder) error

Decode decodes bool from json.

func (OptBool) Encode

func (o OptBool) Encode(e *jx.Encoder)

Encode encodes bool as json.

func (OptBool) Get

func (o OptBool) Get() (v bool, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptBool) IsSet

func (o OptBool) IsSet() bool

IsSet returns true if OptBool was set.

func (OptBool) MarshalJSON

func (s OptBool) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptBool) Or

func (o OptBool) Or(d bool) bool

Or returns value if set, or given parameter if does not.

func (*OptBool) Reset

func (o *OptBool) Reset()

Reset unsets value.

func (*OptBool) SetTo

func (o *OptBool) SetTo(v bool)

SetTo sets value to v.

func (*OptBool) UnmarshalJSON

func (s *OptBool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptDateTime

type OptDateTime struct {
	Value time.Time
	Set   bool
}

OptDateTime is optional time.Time.

func NewOptDateTime

func NewOptDateTime(v time.Time) OptDateTime

NewOptDateTime returns new OptDateTime with value set to v.

func (*OptDateTime) Decode

func (o *OptDateTime) Decode(d *jx.Decoder, format func(*jx.Decoder) (time.Time, error)) error

Decode decodes time.Time from json.

func (OptDateTime) Encode

func (o OptDateTime) Encode(e *jx.Encoder, format func(*jx.Encoder, time.Time))

Encode encodes time.Time as json.

func (OptDateTime) Get

func (o OptDateTime) Get() (v time.Time, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDateTime) IsSet

func (o OptDateTime) IsSet() bool

IsSet returns true if OptDateTime was set.

func (OptDateTime) MarshalJSON

func (s OptDateTime) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDateTime) Or

func (o OptDateTime) Or(d time.Time) time.Time

Or returns value if set, or given parameter if does not.

func (*OptDateTime) Reset

func (o *OptDateTime) Reset()

Reset unsets value.

func (*OptDateTime) SetTo

func (o *OptDateTime) SetTo(v time.Time)

SetTo sets value to v.

func (*OptDateTime) UnmarshalJSON

func (s *OptDateTime) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt32

type OptInt32 struct {
	Value int32
	Set   bool
}

OptInt32 is optional int32.

func NewOptInt32

func NewOptInt32(v int32) OptInt32

NewOptInt32 returns new OptInt32 with value set to v.

func (*OptInt32) Decode

func (o *OptInt32) Decode(d *jx.Decoder) error

Decode decodes int32 from json.

func (OptInt32) Encode

func (o OptInt32) Encode(e *jx.Encoder)

Encode encodes int32 as json.

func (OptInt32) Get

func (o OptInt32) Get() (v int32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt32) IsSet

func (o OptInt32) IsSet() bool

IsSet returns true if OptInt32 was set.

func (OptInt32) MarshalJSON

func (s OptInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt32) Or

func (o OptInt32) Or(d int32) int32

Or returns value if set, or given parameter if does not.

func (*OptInt32) Reset

func (o *OptInt32) Reset()

Reset unsets value.

func (*OptInt32) SetTo

func (o *OptInt32) SetTo(v int32)

SetTo sets value to v.

func (*OptInt32) UnmarshalJSON

func (s *OptInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateBarTimeRangeReqStatus

type OptUpdateBarTimeRangeReqStatus struct {
	Value UpdateBarTimeRangeReqStatus
	Set   bool
}

OptUpdateBarTimeRangeReqStatus is optional UpdateBarTimeRangeReqStatus.

func NewOptUpdateBarTimeRangeReqStatus

func NewOptUpdateBarTimeRangeReqStatus(v UpdateBarTimeRangeReqStatus) OptUpdateBarTimeRangeReqStatus

NewOptUpdateBarTimeRangeReqStatus returns new OptUpdateBarTimeRangeReqStatus with value set to v.

func (*OptUpdateBarTimeRangeReqStatus) Decode

Decode decodes UpdateBarTimeRangeReqStatus from json.

func (OptUpdateBarTimeRangeReqStatus) Encode

Encode encodes UpdateBarTimeRangeReqStatus as json.

func (OptUpdateBarTimeRangeReqStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateBarTimeRangeReqStatus) IsSet

IsSet returns true if OptUpdateBarTimeRangeReqStatus was set.

func (OptUpdateBarTimeRangeReqStatus) MarshalJSON

func (s OptUpdateBarTimeRangeReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateBarTimeRangeReqStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateBarTimeRangeReqStatus) Reset

func (o *OptUpdateBarTimeRangeReqStatus) Reset()

Reset unsets value.

func (*OptUpdateBarTimeRangeReqStatus) SetTo

SetTo sets value to v.

func (*OptUpdateBarTimeRangeReqStatus) UnmarshalJSON

func (s *OptUpdateBarTimeRangeReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateDividendReqDividendType

type OptUpdateDividendReqDividendType struct {
	Value UpdateDividendReqDividendType
	Set   bool
}

OptUpdateDividendReqDividendType is optional UpdateDividendReqDividendType.

func NewOptUpdateDividendReqDividendType

func NewOptUpdateDividendReqDividendType(v UpdateDividendReqDividendType) OptUpdateDividendReqDividendType

NewOptUpdateDividendReqDividendType returns new OptUpdateDividendReqDividendType with value set to v.

func (*OptUpdateDividendReqDividendType) Decode

Decode decodes UpdateDividendReqDividendType from json.

func (OptUpdateDividendReqDividendType) Encode

Encode encodes UpdateDividendReqDividendType as json.

func (OptUpdateDividendReqDividendType) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateDividendReqDividendType) IsSet

IsSet returns true if OptUpdateDividendReqDividendType was set.

func (OptUpdateDividendReqDividendType) MarshalJSON

func (s OptUpdateDividendReqDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateDividendReqDividendType) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateDividendReqDividendType) Reset

Reset unsets value.

func (*OptUpdateDividendReqDividendType) SetTo

SetTo sets value to v.

func (*OptUpdateDividendReqDividendType) UnmarshalJSON

func (s *OptUpdateDividendReqDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptUpdateIntervalReqInterval

type OptUpdateIntervalReqInterval struct {
	Value UpdateIntervalReqInterval
	Set   bool
}

OptUpdateIntervalReqInterval is optional UpdateIntervalReqInterval.

func NewOptUpdateIntervalReqInterval

func NewOptUpdateIntervalReqInterval(v UpdateIntervalReqInterval) OptUpdateIntervalReqInterval

NewOptUpdateIntervalReqInterval returns new OptUpdateIntervalReqInterval with value set to v.

func (*OptUpdateIntervalReqInterval) Decode

Decode decodes UpdateIntervalReqInterval from json.

func (OptUpdateIntervalReqInterval) Encode

Encode encodes UpdateIntervalReqInterval as json.

func (OptUpdateIntervalReqInterval) Get

Get returns value and boolean that denotes whether value was set.

func (OptUpdateIntervalReqInterval) IsSet

IsSet returns true if OptUpdateIntervalReqInterval was set.

func (OptUpdateIntervalReqInterval) MarshalJSON

func (s OptUpdateIntervalReqInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptUpdateIntervalReqInterval) Or

Or returns value if set, or given parameter if does not.

func (*OptUpdateIntervalReqInterval) Reset

func (o *OptUpdateIntervalReqInterval) Reset()

Reset unsets value.

func (*OptUpdateIntervalReqInterval) SetTo

SetTo sets value to v.

func (*OptUpdateIntervalReqInterval) UnmarshalJSON

func (s *OptUpdateIntervalReqInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	ServerOption
	ClientOption
}

Option is config option.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the metric.NewNoopMeterProvider is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type R400

type R400 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R400) Decode

func (s *R400) Decode(d *jx.Decoder) error

Decode decodes R400 from json.

func (*R400) Encode

func (s *R400) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R400) GetCode

func (s *R400) GetCode() int

GetCode returns the value of Code.

func (*R400) GetErrors

func (s *R400) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R400) GetStatus

func (s *R400) GetStatus() string

GetStatus returns the value of Status.

func (*R400) MarshalJSON

func (s *R400) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R400) SetCode

func (s *R400) SetCode(val int)

SetCode sets the value of Code.

func (*R400) SetErrors

func (s *R400) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R400) SetStatus

func (s *R400) SetStatus(val string)

SetStatus sets the value of Status.

func (*R400) UnmarshalJSON

func (s *R400) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R404

type R404 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R404) Decode

func (s *R404) Decode(d *jx.Decoder) error

Decode decodes R404 from json.

func (*R404) Encode

func (s *R404) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R404) GetCode

func (s *R404) GetCode() int

GetCode returns the value of Code.

func (*R404) GetErrors

func (s *R404) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R404) GetStatus

func (s *R404) GetStatus() string

GetStatus returns the value of Status.

func (*R404) MarshalJSON

func (s *R404) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R404) SetCode

func (s *R404) SetCode(val int)

SetCode sets the value of Code.

func (*R404) SetErrors

func (s *R404) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R404) SetStatus

func (s *R404) SetStatus(val string)

SetStatus sets the value of Status.

func (*R404) UnmarshalJSON

func (s *R404) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R409

type R409 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R409) Decode

func (s *R409) Decode(d *jx.Decoder) error

Decode decodes R409 from json.

func (*R409) Encode

func (s *R409) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R409) GetCode

func (s *R409) GetCode() int

GetCode returns the value of Code.

func (*R409) GetErrors

func (s *R409) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R409) GetStatus

func (s *R409) GetStatus() string

GetStatus returns the value of Status.

func (*R409) MarshalJSON

func (s *R409) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R409) SetCode

func (s *R409) SetCode(val int)

SetCode sets the value of Code.

func (*R409) SetErrors

func (s *R409) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R409) SetStatus

func (s *R409) SetStatus(val string)

SetStatus sets the value of Status.

func (*R409) UnmarshalJSON

func (s *R409) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type R500

type R500 struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Errors jx.Raw `json:"errors"`
}

func (*R500) Decode

func (s *R500) Decode(d *jx.Decoder) error

Decode decodes R500 from json.

func (*R500) Encode

func (s *R500) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*R500) GetCode

func (s *R500) GetCode() int

GetCode returns the value of Code.

func (*R500) GetErrors

func (s *R500) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*R500) GetStatus

func (s *R500) GetStatus() string

GetStatus returns the value of Status.

func (*R500) MarshalJSON

func (s *R500) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*R500) SetCode

func (s *R500) SetCode(val int)

SetCode sets the value of Code.

func (*R500) SetErrors

func (s *R500) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*R500) SetStatus

func (s *R500) SetStatus(val string)

SetStatus sets the value of Status.

func (*R500) UnmarshalJSON

func (s *R500) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type ReadBarGroupParams

type ReadBarGroupParams struct {
	// ID of the BarGroup.
	ID int
}

ReadBarGroupParams is parameters of readBarGroup operation.

type ReadBarGroupRes

type ReadBarGroupRes interface {
	// contains filtered or unexported methods
}

type ReadBarGroupTimeRangeParams

type ReadBarGroupTimeRangeParams struct {
	// ID of the BarGroup.
	ID int
}

ReadBarGroupTimeRangeParams is parameters of readBarGroupTimeRange operation.

type ReadBarGroupTimeRangeRes

type ReadBarGroupTimeRangeRes interface {
	// contains filtered or unexported methods
}

type ReadBarRecordGroupParams

type ReadBarRecordGroupParams struct {
	// ID of the BarRecord.
	ID int
}

ReadBarRecordGroupParams is parameters of readBarRecordGroup operation.

type ReadBarRecordGroupRes

type ReadBarRecordGroupRes interface {
	// contains filtered or unexported methods
}

type ReadBarRecordParams

type ReadBarRecordParams struct {
	// ID of the BarRecord.
	ID int
}

ReadBarRecordParams is parameters of readBarRecord operation.

type ReadBarRecordRes

type ReadBarRecordRes interface {
	// contains filtered or unexported methods
}

type ReadBarTimeRangeIntervalParams

type ReadBarTimeRangeIntervalParams struct {
	// ID of the BarTimeRange.
	ID int
}

ReadBarTimeRangeIntervalParams is parameters of readBarTimeRangeInterval operation.

type ReadBarTimeRangeIntervalRes

type ReadBarTimeRangeIntervalRes interface {
	// contains filtered or unexported methods
}

type ReadBarTimeRangeParams

type ReadBarTimeRangeParams struct {
	// ID of the BarTimeRange.
	ID int
}

ReadBarTimeRangeParams is parameters of readBarTimeRange operation.

type ReadBarTimeRangeRes

type ReadBarTimeRangeRes interface {
	// contains filtered or unexported methods
}

type ReadDataSourceParams

type ReadDataSourceParams struct {
	// ID of the DataSource.
	ID int
}

ReadDataSourceParams is parameters of readDataSource operation.

type ReadDataSourceRes

type ReadDataSourceRes interface {
	// contains filtered or unexported methods
}

type ReadDividendParams

type ReadDividendParams struct {
	// ID of the Dividend.
	ID int
}

ReadDividendParams is parameters of readDividend operation.

type ReadDividendRes

type ReadDividendRes interface {
	// contains filtered or unexported methods
}

type ReadEntityParams

type ReadEntityParams struct {
	// ID of the Entity.
	ID int
}

ReadEntityParams is parameters of readEntity operation.

type ReadEntityRes

type ReadEntityRes interface {
	// contains filtered or unexported methods
}

type ReadExchangeParams

type ReadExchangeParams struct {
	// ID of the Exchange.
	ID int
}

ReadExchangeParams is parameters of readExchange operation.

type ReadExchangeRes

type ReadExchangeRes interface {
	// contains filtered or unexported methods
}

type ReadFinancialParams

type ReadFinancialParams struct {
	// ID of the Financial.
	ID int
}

ReadFinancialParams is parameters of readFinancial operation.

type ReadFinancialRes

type ReadFinancialRes interface {
	// contains filtered or unexported methods
}

type ReadIntervalDataSourceParams

type ReadIntervalDataSourceParams struct {
	// ID of the Interval.
	ID int
}

ReadIntervalDataSourceParams is parameters of readIntervalDataSource operation.

type ReadIntervalDataSourceRes

type ReadIntervalDataSourceRes interface {
	// contains filtered or unexported methods
}

type ReadIntervalParams

type ReadIntervalParams struct {
	// ID of the Interval.
	ID int
}

ReadIntervalParams is parameters of readInterval operation.

type ReadIntervalRes

type ReadIntervalRes interface {
	// contains filtered or unexported methods
}

type ReadIntervalStockParams

type ReadIntervalStockParams struct {
	// ID of the Interval.
	ID int
}

ReadIntervalStockParams is parameters of readIntervalStock operation.

type ReadIntervalStockRes

type ReadIntervalStockRes interface {
	// contains filtered or unexported methods
}

type ReadMarketHoursMarketInfoParams

type ReadMarketHoursMarketInfoParams struct {
	// ID of the MarketHours.
	ID int
}

ReadMarketHoursMarketInfoParams is parameters of readMarketHoursMarketInfo operation.

type ReadMarketHoursMarketInfoRes

type ReadMarketHoursMarketInfoRes interface {
	// contains filtered or unexported methods
}

type ReadMarketHoursParams

type ReadMarketHoursParams struct {
	// ID of the MarketHours.
	ID int
}

ReadMarketHoursParams is parameters of readMarketHours operation.

type ReadMarketHoursRes

type ReadMarketHoursRes interface {
	// contains filtered or unexported methods
}

type ReadMarketInfoParams

type ReadMarketInfoParams struct {
	// ID of the MarketInfo.
	ID int
}

ReadMarketInfoParams is parameters of readMarketInfo operation.

type ReadMarketInfoRes

type ReadMarketInfoRes interface {
	// contains filtered or unexported methods
}

type ReadSplitParams

type ReadSplitParams struct {
	// ID of the Split.
	ID int
}

ReadSplitParams is parameters of readSplit operation.

type ReadSplitRes

type ReadSplitRes interface {
	// contains filtered or unexported methods
}

type ReadSplitStockParams

type ReadSplitStockParams struct {
	// ID of the Split.
	ID int
}

ReadSplitStockParams is parameters of readSplitStock operation.

type ReadSplitStockRes

type ReadSplitStockRes interface {
	// contains filtered or unexported methods
}

type ReadTradeConditionParams

type ReadTradeConditionParams struct {
	// ID of the TradeCondition.
	ID int
}

ReadTradeConditionParams is parameters of readTradeCondition operation.

type ReadTradeConditionRes

type ReadTradeConditionRes interface {
	// contains filtered or unexported methods
}

type ReadTradeCorrectionParams

type ReadTradeCorrectionParams struct {
	// ID of the TradeCorrection.
	ID int
}

ReadTradeCorrectionParams is parameters of readTradeCorrection operation.

type ReadTradeCorrectionRes

type ReadTradeCorrectionRes interface {
	// contains filtered or unexported methods
}

type ReadTradeRecordParams

type ReadTradeRecordParams struct {
	// ID of the TradeRecord.
	ID int
}

ReadTradeRecordParams is parameters of readTradeRecord operation.

type ReadTradeRecordRes

type ReadTradeRecordRes interface {
	// contains filtered or unexported methods
}

type ReadTradeRecordTimeRangeParams

type ReadTradeRecordTimeRangeParams struct {
	// ID of the TradeRecord.
	ID int
}

ReadTradeRecordTimeRangeParams is parameters of readTradeRecordTimeRange operation.

type ReadTradeRecordTimeRangeRes

type ReadTradeRecordTimeRangeRes interface {
	// contains filtered or unexported methods
}

type ReadTradeTimeRangeIntervalParams

type ReadTradeTimeRangeIntervalParams struct {
	// ID of the TradeTimeRange.
	ID int
}

ReadTradeTimeRangeIntervalParams is parameters of readTradeTimeRangeInterval operation.

type ReadTradeTimeRangeIntervalRes

type ReadTradeTimeRangeIntervalRes interface {
	// contains filtered or unexported methods
}

type ReadTradeTimeRangeParams

type ReadTradeTimeRangeParams struct {
	// ID of the TradeTimeRange.
	ID int
}

ReadTradeTimeRangeParams is parameters of readTradeTimeRange operation.

type ReadTradeTimeRangeRes

type ReadTradeTimeRangeRes interface {
	// contains filtered or unexported methods
}

type Route

type Route struct {
	// contains filtered or unexported fields
}

Route is route object.

func (Route) Args

func (r Route) Args() []string

Args returns parsed arguments.

func (Route) Name

func (r Route) Name() string

Name returns ogen operation name.

It is guaranteed to be unique and not empty.

func (Route) OperationID

func (r Route) OperationID() string

OperationID returns OpenAPI operationId.

type SearchTickerOK

type SearchTickerOK struct {
	Status  jx.Raw                      `json:"status"`
	Results []SearchTickerOKResultsItem `json:"results"`
	Errors  jx.Raw                      `json:"errors"`
}

func (*SearchTickerOK) Decode

func (s *SearchTickerOK) Decode(d *jx.Decoder) error

Decode decodes SearchTickerOK from json.

func (*SearchTickerOK) Encode

func (s *SearchTickerOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchTickerOK) GetErrors

func (s *SearchTickerOK) GetErrors() jx.Raw

GetErrors returns the value of Errors.

func (*SearchTickerOK) GetResults

func (s *SearchTickerOK) GetResults() []SearchTickerOKResultsItem

GetResults returns the value of Results.

func (*SearchTickerOK) GetStatus

func (s *SearchTickerOK) GetStatus() jx.Raw

GetStatus returns the value of Status.

func (*SearchTickerOK) MarshalJSON

func (s *SearchTickerOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchTickerOK) SetErrors

func (s *SearchTickerOK) SetErrors(val jx.Raw)

SetErrors sets the value of Errors.

func (*SearchTickerOK) SetResults

func (s *SearchTickerOK) SetResults(val []SearchTickerOKResultsItem)

SetResults sets the value of Results.

func (*SearchTickerOK) SetStatus

func (s *SearchTickerOK) SetStatus(val jx.Raw)

SetStatus sets the value of Status.

func (*SearchTickerOK) UnmarshalJSON

func (s *SearchTickerOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SearchTickerOK) Validate

func (s *SearchTickerOK) Validate() error

type SearchTickerOKResultsItem

type SearchTickerOKResultsItem struct {
	Ticker string `json:"ticker"`
	Name   string `json:"name"`
}

func (*SearchTickerOKResultsItem) Decode

func (s *SearchTickerOKResultsItem) Decode(d *jx.Decoder) error

Decode decodes SearchTickerOKResultsItem from json.

func (*SearchTickerOKResultsItem) Encode

func (s *SearchTickerOKResultsItem) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SearchTickerOKResultsItem) GetName

func (s *SearchTickerOKResultsItem) GetName() string

GetName returns the value of Name.

func (*SearchTickerOKResultsItem) GetTicker

func (s *SearchTickerOKResultsItem) GetTicker() string

GetTicker returns the value of Ticker.

func (*SearchTickerOKResultsItem) MarshalJSON

func (s *SearchTickerOKResultsItem) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SearchTickerOKResultsItem) SetName

func (s *SearchTickerOKResultsItem) SetName(val string)

SetName sets the value of Name.

func (*SearchTickerOKResultsItem) SetTicker

func (s *SearchTickerOKResultsItem) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*SearchTickerOKResultsItem) UnmarshalJSON

func (s *SearchTickerOKResultsItem) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SearchTickerParams

type SearchTickerParams struct {
	Ticker string
}

SearchTickerParams is parameters of searchTicker operation.

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server implements http server based on OpenAPI v3 specification and calls Handler to handle requests.

func NewServer

func NewServer(h Handler, opts ...ServerOption) (*Server, error)

NewServer creates new Server.

func (*Server) FindPath

func (s *Server) FindPath(method string, u *url.URL) (r Route, _ bool)

FindPath finds Route for given method and URL.

func (*Server) FindRoute

func (s *Server) FindRoute(method, path string) (Route, bool)

FindRoute finds Route for given method and path.

Note: this method does not unescape path or handle reserved characters in path properly. Use FindPath instead.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP serves http request as defined by OpenAPI v3 specification, calling handler that matches the path or returning not found error.

type ServerOption

type ServerOption interface {
	// contains filtered or unexported methods
}

ServerOption is server config option.

func WithErrorHandler

func WithErrorHandler(h ErrorHandler) ServerOption

WithErrorHandler specifies error handler to use.

func WithMaxMultipartMemory

func WithMaxMultipartMemory(max int64) ServerOption

WithMaxMultipartMemory specifies limit of memory for storing file parts. File parts which can't be stored in memory will be stored on disk in temporary files.

func WithMethodNotAllowed

func WithMethodNotAllowed(methodNotAllowed func(w http.ResponseWriter, r *http.Request, allowed string)) ServerOption

WithMethodNotAllowed specifies Method Not Allowed handler to use.

func WithMiddleware

func WithMiddleware(m ...Middleware) ServerOption

WithMiddleware specifies middlewares to use.

func WithNotFound

func WithNotFound(notFound http.HandlerFunc) ServerOption

WithNotFound specifies Not Found handler to use.

func WithPathPrefix

func WithPathPrefix(prefix string) ServerOption

WithPathPrefix specifies server path prefix.

type SplitCreate

type SplitCreate struct {
	ID            int       `json:"id"`
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
}

Ref: #/components/schemas/SplitCreate

func NewSplitCreate

func NewSplitCreate(e *ent.Split) *SplitCreate

func NewSplitCreates

func NewSplitCreates(es []*ent.Split) []SplitCreate

func (*SplitCreate) Decode

func (s *SplitCreate) Decode(d *jx.Decoder) error

Decode decodes SplitCreate from json.

func (*SplitCreate) Elem

func (s *SplitCreate) Elem() SplitCreate

func (*SplitCreate) Encode

func (s *SplitCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SplitCreate) GetExecutionDate

func (s *SplitCreate) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*SplitCreate) GetFrom

func (s *SplitCreate) GetFrom() float64

GetFrom returns the value of From.

func (*SplitCreate) GetID

func (s *SplitCreate) GetID() int

GetID returns the value of ID.

func (*SplitCreate) GetTo

func (s *SplitCreate) GetTo() float64

GetTo returns the value of To.

func (*SplitCreate) MarshalJSON

func (s *SplitCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SplitCreate) SetExecutionDate

func (s *SplitCreate) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*SplitCreate) SetFrom

func (s *SplitCreate) SetFrom(val float64)

SetFrom sets the value of From.

func (*SplitCreate) SetID

func (s *SplitCreate) SetID(val int)

SetID sets the value of ID.

func (*SplitCreate) SetTo

func (s *SplitCreate) SetTo(val float64)

SetTo sets the value of To.

func (*SplitCreate) UnmarshalJSON

func (s *SplitCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SplitCreate) Validate

func (s *SplitCreate) Validate() error

type SplitList

type SplitList struct {
	ID            int       `json:"id"`
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
}

Ref: #/components/schemas/SplitList

func NewSplitList

func NewSplitList(e *ent.Split) *SplitList

func NewSplitLists

func NewSplitLists(es []*ent.Split) []SplitList

func (*SplitList) Decode

func (s *SplitList) Decode(d *jx.Decoder) error

Decode decodes SplitList from json.

func (*SplitList) Elem

func (s *SplitList) Elem() SplitList

func (*SplitList) Encode

func (s *SplitList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SplitList) GetExecutionDate

func (s *SplitList) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*SplitList) GetFrom

func (s *SplitList) GetFrom() float64

GetFrom returns the value of From.

func (*SplitList) GetID

func (s *SplitList) GetID() int

GetID returns the value of ID.

func (*SplitList) GetTo

func (s *SplitList) GetTo() float64

GetTo returns the value of To.

func (*SplitList) MarshalJSON

func (s *SplitList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SplitList) SetExecutionDate

func (s *SplitList) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*SplitList) SetFrom

func (s *SplitList) SetFrom(val float64)

SetFrom sets the value of From.

func (*SplitList) SetID

func (s *SplitList) SetID(val int)

SetID sets the value of ID.

func (*SplitList) SetTo

func (s *SplitList) SetTo(val float64)

SetTo sets the value of To.

func (*SplitList) UnmarshalJSON

func (s *SplitList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SplitList) Validate

func (s *SplitList) Validate() error

type SplitRead

type SplitRead struct {
	ID            int       `json:"id"`
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
}

Ref: #/components/schemas/SplitRead

func NewSplitRead

func NewSplitRead(e *ent.Split) *SplitRead

func NewSplitReads

func NewSplitReads(es []*ent.Split) []SplitRead

func (*SplitRead) Decode

func (s *SplitRead) Decode(d *jx.Decoder) error

Decode decodes SplitRead from json.

func (*SplitRead) Elem

func (s *SplitRead) Elem() SplitRead

func (*SplitRead) Encode

func (s *SplitRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SplitRead) GetExecutionDate

func (s *SplitRead) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*SplitRead) GetFrom

func (s *SplitRead) GetFrom() float64

GetFrom returns the value of From.

func (*SplitRead) GetID

func (s *SplitRead) GetID() int

GetID returns the value of ID.

func (*SplitRead) GetTo

func (s *SplitRead) GetTo() float64

GetTo returns the value of To.

func (*SplitRead) MarshalJSON

func (s *SplitRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SplitRead) SetExecutionDate

func (s *SplitRead) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*SplitRead) SetFrom

func (s *SplitRead) SetFrom(val float64)

SetFrom sets the value of From.

func (*SplitRead) SetID

func (s *SplitRead) SetID(val int)

SetID sets the value of ID.

func (*SplitRead) SetTo

func (s *SplitRead) SetTo(val float64)

SetTo sets the value of To.

func (*SplitRead) UnmarshalJSON

func (s *SplitRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SplitRead) Validate

func (s *SplitRead) Validate() error

type SplitStockRead

type SplitStockRead struct {
	ID          int         `json:"id"`
	Active      bool        `json:"active"`
	Ticker      string      `json:"ticker"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	ListDate    time.Time   `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
}

Ref: #/components/schemas/Split_StockRead

func NewSplitStockRead

func NewSplitStockRead(e *ent.Entity) *SplitStockRead

func NewSplitStockReads

func NewSplitStockReads(es []*ent.Entity) []SplitStockRead

func (*SplitStockRead) Decode

func (s *SplitStockRead) Decode(d *jx.Decoder) error

Decode decodes SplitStockRead from json.

func (*SplitStockRead) Elem

func (e *SplitStockRead) Elem() SplitStockRead

func (*SplitStockRead) Encode

func (s *SplitStockRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SplitStockRead) GetActive

func (s *SplitStockRead) GetActive() bool

GetActive returns the value of Active.

func (*SplitStockRead) GetDelisted

func (s *SplitStockRead) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*SplitStockRead) GetDescription

func (s *SplitStockRead) GetDescription() string

GetDescription returns the value of Description.

func (*SplitStockRead) GetID

func (s *SplitStockRead) GetID() int

GetID returns the value of ID.

func (*SplitStockRead) GetListDate

func (s *SplitStockRead) GetListDate() time.Time

GetListDate returns the value of ListDate.

func (*SplitStockRead) GetName

func (s *SplitStockRead) GetName() string

GetName returns the value of Name.

func (*SplitStockRead) GetTicker

func (s *SplitStockRead) GetTicker() string

GetTicker returns the value of Ticker.

func (*SplitStockRead) MarshalJSON

func (s *SplitStockRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SplitStockRead) SetActive

func (s *SplitStockRead) SetActive(val bool)

SetActive sets the value of Active.

func (*SplitStockRead) SetDelisted

func (s *SplitStockRead) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*SplitStockRead) SetDescription

func (s *SplitStockRead) SetDescription(val string)

SetDescription sets the value of Description.

func (*SplitStockRead) SetID

func (s *SplitStockRead) SetID(val int)

SetID sets the value of ID.

func (*SplitStockRead) SetListDate

func (s *SplitStockRead) SetListDate(val time.Time)

SetListDate sets the value of ListDate.

func (*SplitStockRead) SetName

func (s *SplitStockRead) SetName(val string)

SetName sets the value of Name.

func (*SplitStockRead) SetTicker

func (s *SplitStockRead) SetTicker(val string)

SetTicker sets the value of Ticker.

func (*SplitStockRead) UnmarshalJSON

func (s *SplitStockRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type SplitUpdate

type SplitUpdate struct {
	ID            int       `json:"id"`
	ExecutionDate time.Time `json:"execution_date"`
	From          float64   `json:"from"`
	To            float64   `json:"to"`
}

Ref: #/components/schemas/SplitUpdate

func NewSplitUpdate

func NewSplitUpdate(e *ent.Split) *SplitUpdate

func NewSplitUpdates

func NewSplitUpdates(es []*ent.Split) []SplitUpdate

func (*SplitUpdate) Decode

func (s *SplitUpdate) Decode(d *jx.Decoder) error

Decode decodes SplitUpdate from json.

func (*SplitUpdate) Elem

func (s *SplitUpdate) Elem() SplitUpdate

func (*SplitUpdate) Encode

func (s *SplitUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*SplitUpdate) GetExecutionDate

func (s *SplitUpdate) GetExecutionDate() time.Time

GetExecutionDate returns the value of ExecutionDate.

func (*SplitUpdate) GetFrom

func (s *SplitUpdate) GetFrom() float64

GetFrom returns the value of From.

func (*SplitUpdate) GetID

func (s *SplitUpdate) GetID() int

GetID returns the value of ID.

func (*SplitUpdate) GetTo

func (s *SplitUpdate) GetTo() float64

GetTo returns the value of To.

func (*SplitUpdate) MarshalJSON

func (s *SplitUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SplitUpdate) SetExecutionDate

func (s *SplitUpdate) SetExecutionDate(val time.Time)

SetExecutionDate sets the value of ExecutionDate.

func (*SplitUpdate) SetFrom

func (s *SplitUpdate) SetFrom(val float64)

SetFrom sets the value of From.

func (*SplitUpdate) SetID

func (s *SplitUpdate) SetID(val int)

SetID sets the value of ID.

func (*SplitUpdate) SetTo

func (s *SplitUpdate) SetTo(val float64)

SetTo sets the value of To.

func (*SplitUpdate) UnmarshalJSON

func (s *SplitUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*SplitUpdate) Validate

func (s *SplitUpdate) Validate() error

type TradeConditionCreate

type TradeConditionCreate struct {
	ID        int    `json:"id"`
	Condition string `json:"condition"`
}

Ref: #/components/schemas/TradeConditionCreate

func NewTradeConditionCreate

func NewTradeConditionCreate(e *ent.TradeCondition) *TradeConditionCreate

func NewTradeConditionCreates

func NewTradeConditionCreates(es []*ent.TradeCondition) []TradeConditionCreate

func (*TradeConditionCreate) Decode

func (s *TradeConditionCreate) Decode(d *jx.Decoder) error

Decode decodes TradeConditionCreate from json.

func (*TradeConditionCreate) Elem

func (*TradeConditionCreate) Encode

func (s *TradeConditionCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeConditionCreate) GetCondition

func (s *TradeConditionCreate) GetCondition() string

GetCondition returns the value of Condition.

func (*TradeConditionCreate) GetID

func (s *TradeConditionCreate) GetID() int

GetID returns the value of ID.

func (*TradeConditionCreate) MarshalJSON

func (s *TradeConditionCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeConditionCreate) SetCondition

func (s *TradeConditionCreate) SetCondition(val string)

SetCondition sets the value of Condition.

func (*TradeConditionCreate) SetID

func (s *TradeConditionCreate) SetID(val int)

SetID sets the value of ID.

func (*TradeConditionCreate) UnmarshalJSON

func (s *TradeConditionCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeConditionList

type TradeConditionList struct {
	ID        int    `json:"id"`
	Condition string `json:"condition"`
}

Ref: #/components/schemas/TradeConditionList

func NewTradeConditionList

func NewTradeConditionList(e *ent.TradeCondition) *TradeConditionList

func NewTradeConditionLists

func NewTradeConditionLists(es []*ent.TradeCondition) []TradeConditionList

func (*TradeConditionList) Decode

func (s *TradeConditionList) Decode(d *jx.Decoder) error

Decode decodes TradeConditionList from json.

func (*TradeConditionList) Elem

func (*TradeConditionList) Encode

func (s *TradeConditionList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeConditionList) GetCondition

func (s *TradeConditionList) GetCondition() string

GetCondition returns the value of Condition.

func (*TradeConditionList) GetID

func (s *TradeConditionList) GetID() int

GetID returns the value of ID.

func (*TradeConditionList) MarshalJSON

func (s *TradeConditionList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeConditionList) SetCondition

func (s *TradeConditionList) SetCondition(val string)

SetCondition sets the value of Condition.

func (*TradeConditionList) SetID

func (s *TradeConditionList) SetID(val int)

SetID sets the value of ID.

func (*TradeConditionList) UnmarshalJSON

func (s *TradeConditionList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeConditionRead

type TradeConditionRead struct {
	ID        int    `json:"id"`
	Condition string `json:"condition"`
}

Ref: #/components/schemas/TradeConditionRead

func NewTradeConditionRead

func NewTradeConditionRead(e *ent.TradeCondition) *TradeConditionRead

func NewTradeConditionReads

func NewTradeConditionReads(es []*ent.TradeCondition) []TradeConditionRead

func (*TradeConditionRead) Decode

func (s *TradeConditionRead) Decode(d *jx.Decoder) error

Decode decodes TradeConditionRead from json.

func (*TradeConditionRead) Elem

func (*TradeConditionRead) Encode

func (s *TradeConditionRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeConditionRead) GetCondition

func (s *TradeConditionRead) GetCondition() string

GetCondition returns the value of Condition.

func (*TradeConditionRead) GetID

func (s *TradeConditionRead) GetID() int

GetID returns the value of ID.

func (*TradeConditionRead) MarshalJSON

func (s *TradeConditionRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeConditionRead) SetCondition

func (s *TradeConditionRead) SetCondition(val string)

SetCondition sets the value of Condition.

func (*TradeConditionRead) SetID

func (s *TradeConditionRead) SetID(val int)

SetID sets the value of ID.

func (*TradeConditionRead) UnmarshalJSON

func (s *TradeConditionRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeConditionRecordList

type TradeConditionRecordList struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeCondition_RecordList

func NewTradeConditionRecordList

func NewTradeConditionRecordList(e *ent.TradeRecord) *TradeConditionRecordList

func NewTradeConditionRecordLists

func NewTradeConditionRecordLists(es []*ent.TradeRecord) []TradeConditionRecordList

func (*TradeConditionRecordList) Decode

func (s *TradeConditionRecordList) Decode(d *jx.Decoder) error

Decode decodes TradeConditionRecordList from json.

func (*TradeConditionRecordList) Elem

func (*TradeConditionRecordList) Encode

func (s *TradeConditionRecordList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeConditionRecordList) GetID

func (s *TradeConditionRecordList) GetID() int

GetID returns the value of ID.

func (*TradeConditionRecordList) GetPrice

func (s *TradeConditionRecordList) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeConditionRecordList) GetTimeRangeID

func (s *TradeConditionRecordList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeConditionRecordList) GetTimestamp

func (s *TradeConditionRecordList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeConditionRecordList) GetVolume

func (s *TradeConditionRecordList) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeConditionRecordList) MarshalJSON

func (s *TradeConditionRecordList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeConditionRecordList) SetID

func (s *TradeConditionRecordList) SetID(val int)

SetID sets the value of ID.

func (*TradeConditionRecordList) SetPrice

func (s *TradeConditionRecordList) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeConditionRecordList) SetTimeRangeID

func (s *TradeConditionRecordList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeConditionRecordList) SetTimestamp

func (s *TradeConditionRecordList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeConditionRecordList) SetVolume

func (s *TradeConditionRecordList) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeConditionRecordList) UnmarshalJSON

func (s *TradeConditionRecordList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeConditionRecordList) Validate

func (s *TradeConditionRecordList) Validate() error

type TradeConditionUpdate

type TradeConditionUpdate struct {
	ID        int    `json:"id"`
	Condition string `json:"condition"`
}

Ref: #/components/schemas/TradeConditionUpdate

func NewTradeConditionUpdate

func NewTradeConditionUpdate(e *ent.TradeCondition) *TradeConditionUpdate

func NewTradeConditionUpdates

func NewTradeConditionUpdates(es []*ent.TradeCondition) []TradeConditionUpdate

func (*TradeConditionUpdate) Decode

func (s *TradeConditionUpdate) Decode(d *jx.Decoder) error

Decode decodes TradeConditionUpdate from json.

func (*TradeConditionUpdate) Elem

func (*TradeConditionUpdate) Encode

func (s *TradeConditionUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeConditionUpdate) GetCondition

func (s *TradeConditionUpdate) GetCondition() string

GetCondition returns the value of Condition.

func (*TradeConditionUpdate) GetID

func (s *TradeConditionUpdate) GetID() int

GetID returns the value of ID.

func (*TradeConditionUpdate) MarshalJSON

func (s *TradeConditionUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeConditionUpdate) SetCondition

func (s *TradeConditionUpdate) SetCondition(val string)

SetCondition sets the value of Condition.

func (*TradeConditionUpdate) SetID

func (s *TradeConditionUpdate) SetID(val int)

SetID sets the value of ID.

func (*TradeConditionUpdate) UnmarshalJSON

func (s *TradeConditionUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeCorrectionCreate

type TradeCorrectionCreate struct {
	ID         int    `json:"id"`
	Correction string `json:"correction"`
}

Ref: #/components/schemas/TradeCorrectionCreate

func NewTradeCorrectionCreate

func NewTradeCorrectionCreate(e *ent.TradeCorrection) *TradeCorrectionCreate

func NewTradeCorrectionCreates

func NewTradeCorrectionCreates(es []*ent.TradeCorrection) []TradeCorrectionCreate

func (*TradeCorrectionCreate) Decode

func (s *TradeCorrectionCreate) Decode(d *jx.Decoder) error

Decode decodes TradeCorrectionCreate from json.

func (*TradeCorrectionCreate) Elem

func (*TradeCorrectionCreate) Encode

func (s *TradeCorrectionCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeCorrectionCreate) GetCorrection

func (s *TradeCorrectionCreate) GetCorrection() string

GetCorrection returns the value of Correction.

func (*TradeCorrectionCreate) GetID

func (s *TradeCorrectionCreate) GetID() int

GetID returns the value of ID.

func (*TradeCorrectionCreate) MarshalJSON

func (s *TradeCorrectionCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeCorrectionCreate) SetCorrection

func (s *TradeCorrectionCreate) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*TradeCorrectionCreate) SetID

func (s *TradeCorrectionCreate) SetID(val int)

SetID sets the value of ID.

func (*TradeCorrectionCreate) UnmarshalJSON

func (s *TradeCorrectionCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeCorrectionList

type TradeCorrectionList struct {
	ID         int    `json:"id"`
	Correction string `json:"correction"`
}

Ref: #/components/schemas/TradeCorrectionList

func NewTradeCorrectionList

func NewTradeCorrectionList(e *ent.TradeCorrection) *TradeCorrectionList

func NewTradeCorrectionLists

func NewTradeCorrectionLists(es []*ent.TradeCorrection) []TradeCorrectionList

func (*TradeCorrectionList) Decode

func (s *TradeCorrectionList) Decode(d *jx.Decoder) error

Decode decodes TradeCorrectionList from json.

func (*TradeCorrectionList) Elem

func (*TradeCorrectionList) Encode

func (s *TradeCorrectionList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeCorrectionList) GetCorrection

func (s *TradeCorrectionList) GetCorrection() string

GetCorrection returns the value of Correction.

func (*TradeCorrectionList) GetID

func (s *TradeCorrectionList) GetID() int

GetID returns the value of ID.

func (*TradeCorrectionList) MarshalJSON

func (s *TradeCorrectionList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeCorrectionList) SetCorrection

func (s *TradeCorrectionList) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*TradeCorrectionList) SetID

func (s *TradeCorrectionList) SetID(val int)

SetID sets the value of ID.

func (*TradeCorrectionList) UnmarshalJSON

func (s *TradeCorrectionList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeCorrectionRead

type TradeCorrectionRead struct {
	ID         int    `json:"id"`
	Correction string `json:"correction"`
}

Ref: #/components/schemas/TradeCorrectionRead

func NewTradeCorrectionRead

func NewTradeCorrectionRead(e *ent.TradeCorrection) *TradeCorrectionRead

func NewTradeCorrectionReads

func NewTradeCorrectionReads(es []*ent.TradeCorrection) []TradeCorrectionRead

func (*TradeCorrectionRead) Decode

func (s *TradeCorrectionRead) Decode(d *jx.Decoder) error

Decode decodes TradeCorrectionRead from json.

func (*TradeCorrectionRead) Elem

func (*TradeCorrectionRead) Encode

func (s *TradeCorrectionRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeCorrectionRead) GetCorrection

func (s *TradeCorrectionRead) GetCorrection() string

GetCorrection returns the value of Correction.

func (*TradeCorrectionRead) GetID

func (s *TradeCorrectionRead) GetID() int

GetID returns the value of ID.

func (*TradeCorrectionRead) MarshalJSON

func (s *TradeCorrectionRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeCorrectionRead) SetCorrection

func (s *TradeCorrectionRead) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*TradeCorrectionRead) SetID

func (s *TradeCorrectionRead) SetID(val int)

SetID sets the value of ID.

func (*TradeCorrectionRead) UnmarshalJSON

func (s *TradeCorrectionRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeCorrectionRecordList

type TradeCorrectionRecordList struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeCorrection_RecordList

func NewTradeCorrectionRecordList

func NewTradeCorrectionRecordList(e *ent.TradeRecord) *TradeCorrectionRecordList

func NewTradeCorrectionRecordLists

func NewTradeCorrectionRecordLists(es []*ent.TradeRecord) []TradeCorrectionRecordList

func (*TradeCorrectionRecordList) Decode

func (s *TradeCorrectionRecordList) Decode(d *jx.Decoder) error

Decode decodes TradeCorrectionRecordList from json.

func (*TradeCorrectionRecordList) Elem

func (*TradeCorrectionRecordList) Encode

func (s *TradeCorrectionRecordList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeCorrectionRecordList) GetID

func (s *TradeCorrectionRecordList) GetID() int

GetID returns the value of ID.

func (*TradeCorrectionRecordList) GetPrice

func (s *TradeCorrectionRecordList) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeCorrectionRecordList) GetTimeRangeID

func (s *TradeCorrectionRecordList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeCorrectionRecordList) GetTimestamp

func (s *TradeCorrectionRecordList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeCorrectionRecordList) GetVolume

func (s *TradeCorrectionRecordList) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeCorrectionRecordList) MarshalJSON

func (s *TradeCorrectionRecordList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeCorrectionRecordList) SetID

func (s *TradeCorrectionRecordList) SetID(val int)

SetID sets the value of ID.

func (*TradeCorrectionRecordList) SetPrice

func (s *TradeCorrectionRecordList) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeCorrectionRecordList) SetTimeRangeID

func (s *TradeCorrectionRecordList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeCorrectionRecordList) SetTimestamp

func (s *TradeCorrectionRecordList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeCorrectionRecordList) SetVolume

func (s *TradeCorrectionRecordList) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeCorrectionRecordList) UnmarshalJSON

func (s *TradeCorrectionRecordList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeCorrectionRecordList) Validate

func (s *TradeCorrectionRecordList) Validate() error

type TradeCorrectionUpdate

type TradeCorrectionUpdate struct {
	ID         int    `json:"id"`
	Correction string `json:"correction"`
}

Ref: #/components/schemas/TradeCorrectionUpdate

func NewTradeCorrectionUpdate

func NewTradeCorrectionUpdate(e *ent.TradeCorrection) *TradeCorrectionUpdate

func NewTradeCorrectionUpdates

func NewTradeCorrectionUpdates(es []*ent.TradeCorrection) []TradeCorrectionUpdate

func (*TradeCorrectionUpdate) Decode

func (s *TradeCorrectionUpdate) Decode(d *jx.Decoder) error

Decode decodes TradeCorrectionUpdate from json.

func (*TradeCorrectionUpdate) Elem

func (*TradeCorrectionUpdate) Encode

func (s *TradeCorrectionUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeCorrectionUpdate) GetCorrection

func (s *TradeCorrectionUpdate) GetCorrection() string

GetCorrection returns the value of Correction.

func (*TradeCorrectionUpdate) GetID

func (s *TradeCorrectionUpdate) GetID() int

GetID returns the value of ID.

func (*TradeCorrectionUpdate) MarshalJSON

func (s *TradeCorrectionUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeCorrectionUpdate) SetCorrection

func (s *TradeCorrectionUpdate) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*TradeCorrectionUpdate) SetID

func (s *TradeCorrectionUpdate) SetID(val int)

SetID sets the value of ID.

func (*TradeCorrectionUpdate) UnmarshalJSON

func (s *TradeCorrectionUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeRecordConditionsList

type TradeRecordConditionsList struct {
	ID        int    `json:"id"`
	Condition string `json:"condition"`
}

Ref: #/components/schemas/TradeRecord_ConditionsList

func NewTradeRecordConditionsList

func NewTradeRecordConditionsList(e *ent.TradeCondition) *TradeRecordConditionsList

func NewTradeRecordConditionsLists

func NewTradeRecordConditionsLists(es []*ent.TradeCondition) []TradeRecordConditionsList

func (*TradeRecordConditionsList) Decode

func (s *TradeRecordConditionsList) Decode(d *jx.Decoder) error

Decode decodes TradeRecordConditionsList from json.

func (*TradeRecordConditionsList) Elem

func (*TradeRecordConditionsList) Encode

func (s *TradeRecordConditionsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordConditionsList) GetCondition

func (s *TradeRecordConditionsList) GetCondition() string

GetCondition returns the value of Condition.

func (*TradeRecordConditionsList) GetID

func (s *TradeRecordConditionsList) GetID() int

GetID returns the value of ID.

func (*TradeRecordConditionsList) MarshalJSON

func (s *TradeRecordConditionsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordConditionsList) SetCondition

func (s *TradeRecordConditionsList) SetCondition(val string)

SetCondition sets the value of Condition.

func (*TradeRecordConditionsList) SetID

func (s *TradeRecordConditionsList) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordConditionsList) UnmarshalJSON

func (s *TradeRecordConditionsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeRecordCorrectionList

type TradeRecordCorrectionList struct {
	ID         int    `json:"id"`
	Correction string `json:"correction"`
}

Ref: #/components/schemas/TradeRecord_CorrectionList

func NewTradeRecordCorrectionList

func NewTradeRecordCorrectionList(e *ent.TradeCorrection) *TradeRecordCorrectionList

func NewTradeRecordCorrectionLists

func NewTradeRecordCorrectionLists(es []*ent.TradeCorrection) []TradeRecordCorrectionList

func (*TradeRecordCorrectionList) Decode

func (s *TradeRecordCorrectionList) Decode(d *jx.Decoder) error

Decode decodes TradeRecordCorrectionList from json.

func (*TradeRecordCorrectionList) Elem

func (*TradeRecordCorrectionList) Encode

func (s *TradeRecordCorrectionList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordCorrectionList) GetCorrection

func (s *TradeRecordCorrectionList) GetCorrection() string

GetCorrection returns the value of Correction.

func (*TradeRecordCorrectionList) GetID

func (s *TradeRecordCorrectionList) GetID() int

GetID returns the value of ID.

func (*TradeRecordCorrectionList) MarshalJSON

func (s *TradeRecordCorrectionList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordCorrectionList) SetCorrection

func (s *TradeRecordCorrectionList) SetCorrection(val string)

SetCorrection sets the value of Correction.

func (*TradeRecordCorrectionList) SetID

func (s *TradeRecordCorrectionList) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordCorrectionList) UnmarshalJSON

func (s *TradeRecordCorrectionList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeRecordCreate

type TradeRecordCreate struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeRecordCreate

func NewTradeRecordCreate

func NewTradeRecordCreate(e *ent.TradeRecord) *TradeRecordCreate

func NewTradeRecordCreates

func NewTradeRecordCreates(es []*ent.TradeRecord) []TradeRecordCreate

func (*TradeRecordCreate) Decode

func (s *TradeRecordCreate) Decode(d *jx.Decoder) error

Decode decodes TradeRecordCreate from json.

func (*TradeRecordCreate) Elem

func (*TradeRecordCreate) Encode

func (s *TradeRecordCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordCreate) GetID

func (s *TradeRecordCreate) GetID() int

GetID returns the value of ID.

func (*TradeRecordCreate) GetPrice

func (s *TradeRecordCreate) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeRecordCreate) GetTimeRangeID

func (s *TradeRecordCreate) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeRecordCreate) GetTimestamp

func (s *TradeRecordCreate) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeRecordCreate) GetVolume

func (s *TradeRecordCreate) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeRecordCreate) MarshalJSON

func (s *TradeRecordCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordCreate) SetID

func (s *TradeRecordCreate) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordCreate) SetPrice

func (s *TradeRecordCreate) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeRecordCreate) SetTimeRangeID

func (s *TradeRecordCreate) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeRecordCreate) SetTimestamp

func (s *TradeRecordCreate) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeRecordCreate) SetVolume

func (s *TradeRecordCreate) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeRecordCreate) UnmarshalJSON

func (s *TradeRecordCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeRecordCreate) Validate

func (s *TradeRecordCreate) Validate() error

type TradeRecordExchangeList

type TradeRecordExchangeList struct {
	ID   int    `json:"id"`
	Code string `json:"code"`
	Name string `json:"name"`
}

Ref: #/components/schemas/TradeRecord_ExchangeList

func NewTradeRecordExchangeList

func NewTradeRecordExchangeList(e *ent.Exchange) *TradeRecordExchangeList

func NewTradeRecordExchangeLists

func NewTradeRecordExchangeLists(es []*ent.Exchange) []TradeRecordExchangeList

func (*TradeRecordExchangeList) Decode

func (s *TradeRecordExchangeList) Decode(d *jx.Decoder) error

Decode decodes TradeRecordExchangeList from json.

func (*TradeRecordExchangeList) Elem

func (*TradeRecordExchangeList) Encode

func (s *TradeRecordExchangeList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordExchangeList) GetCode

func (s *TradeRecordExchangeList) GetCode() string

GetCode returns the value of Code.

func (*TradeRecordExchangeList) GetID

func (s *TradeRecordExchangeList) GetID() int

GetID returns the value of ID.

func (*TradeRecordExchangeList) GetName

func (s *TradeRecordExchangeList) GetName() string

GetName returns the value of Name.

func (*TradeRecordExchangeList) MarshalJSON

func (s *TradeRecordExchangeList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordExchangeList) SetCode

func (s *TradeRecordExchangeList) SetCode(val string)

SetCode sets the value of Code.

func (*TradeRecordExchangeList) SetID

func (s *TradeRecordExchangeList) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordExchangeList) SetName

func (s *TradeRecordExchangeList) SetName(val string)

SetName sets the value of Name.

func (*TradeRecordExchangeList) UnmarshalJSON

func (s *TradeRecordExchangeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeRecordList

type TradeRecordList struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeRecordList

func NewTradeRecordList

func NewTradeRecordList(e *ent.TradeRecord) *TradeRecordList

func NewTradeRecordLists

func NewTradeRecordLists(es []*ent.TradeRecord) []TradeRecordList

func (*TradeRecordList) Decode

func (s *TradeRecordList) Decode(d *jx.Decoder) error

Decode decodes TradeRecordList from json.

func (*TradeRecordList) Elem

func (tr *TradeRecordList) Elem() TradeRecordList

func (*TradeRecordList) Encode

func (s *TradeRecordList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordList) GetID

func (s *TradeRecordList) GetID() int

GetID returns the value of ID.

func (*TradeRecordList) GetPrice

func (s *TradeRecordList) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeRecordList) GetTimeRangeID

func (s *TradeRecordList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeRecordList) GetTimestamp

func (s *TradeRecordList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeRecordList) GetVolume

func (s *TradeRecordList) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeRecordList) MarshalJSON

func (s *TradeRecordList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordList) SetID

func (s *TradeRecordList) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordList) SetPrice

func (s *TradeRecordList) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeRecordList) SetTimeRangeID

func (s *TradeRecordList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeRecordList) SetTimestamp

func (s *TradeRecordList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeRecordList) SetVolume

func (s *TradeRecordList) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeRecordList) UnmarshalJSON

func (s *TradeRecordList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeRecordList) Validate

func (s *TradeRecordList) Validate() error

type TradeRecordRead

type TradeRecordRead struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeRecordRead

func NewTradeRecordRead

func NewTradeRecordRead(e *ent.TradeRecord) *TradeRecordRead

func NewTradeRecordReads

func NewTradeRecordReads(es []*ent.TradeRecord) []TradeRecordRead

func (*TradeRecordRead) Decode

func (s *TradeRecordRead) Decode(d *jx.Decoder) error

Decode decodes TradeRecordRead from json.

func (*TradeRecordRead) Elem

func (tr *TradeRecordRead) Elem() TradeRecordRead

func (*TradeRecordRead) Encode

func (s *TradeRecordRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordRead) GetID

func (s *TradeRecordRead) GetID() int

GetID returns the value of ID.

func (*TradeRecordRead) GetPrice

func (s *TradeRecordRead) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeRecordRead) GetTimeRangeID

func (s *TradeRecordRead) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeRecordRead) GetTimestamp

func (s *TradeRecordRead) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeRecordRead) GetVolume

func (s *TradeRecordRead) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeRecordRead) MarshalJSON

func (s *TradeRecordRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordRead) SetID

func (s *TradeRecordRead) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordRead) SetPrice

func (s *TradeRecordRead) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeRecordRead) SetTimeRangeID

func (s *TradeRecordRead) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeRecordRead) SetTimestamp

func (s *TradeRecordRead) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeRecordRead) SetVolume

func (s *TradeRecordRead) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeRecordRead) UnmarshalJSON

func (s *TradeRecordRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeRecordRead) Validate

func (s *TradeRecordRead) Validate() error

type TradeRecordTimeRangeRead

type TradeRecordTimeRangeRead struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/TradeRecord_TimeRangeRead

func NewTradeRecordTimeRangeRead

func NewTradeRecordTimeRangeRead(e *ent.TradeTimeRange) *TradeRecordTimeRangeRead

func NewTradeRecordTimeRangeReads

func NewTradeRecordTimeRangeReads(es []*ent.TradeTimeRange) []TradeRecordTimeRangeRead

func (*TradeRecordTimeRangeRead) Decode

func (s *TradeRecordTimeRangeRead) Decode(d *jx.Decoder) error

Decode decodes TradeRecordTimeRangeRead from json.

func (*TradeRecordTimeRangeRead) Elem

func (*TradeRecordTimeRangeRead) Encode

func (s *TradeRecordTimeRangeRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordTimeRangeRead) GetEnd

func (s *TradeRecordTimeRangeRead) GetEnd() time.Time

GetEnd returns the value of End.

func (*TradeRecordTimeRangeRead) GetID

func (s *TradeRecordTimeRangeRead) GetID() int

GetID returns the value of ID.

func (*TradeRecordTimeRangeRead) GetIntervalID

func (s *TradeRecordTimeRangeRead) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*TradeRecordTimeRangeRead) GetStart

func (s *TradeRecordTimeRangeRead) GetStart() time.Time

GetStart returns the value of Start.

func (*TradeRecordTimeRangeRead) MarshalJSON

func (s *TradeRecordTimeRangeRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordTimeRangeRead) SetEnd

func (s *TradeRecordTimeRangeRead) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*TradeRecordTimeRangeRead) SetID

func (s *TradeRecordTimeRangeRead) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordTimeRangeRead) SetIntervalID

func (s *TradeRecordTimeRangeRead) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*TradeRecordTimeRangeRead) SetStart

func (s *TradeRecordTimeRangeRead) SetStart(val time.Time)

SetStart sets the value of Start.

func (*TradeRecordTimeRangeRead) UnmarshalJSON

func (s *TradeRecordTimeRangeRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeRecordUpdate

type TradeRecordUpdate struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeRecordUpdate

func NewTradeRecordUpdate

func NewTradeRecordUpdate(e *ent.TradeRecord) *TradeRecordUpdate

func NewTradeRecordUpdates

func NewTradeRecordUpdates(es []*ent.TradeRecord) []TradeRecordUpdate

func (*TradeRecordUpdate) Decode

func (s *TradeRecordUpdate) Decode(d *jx.Decoder) error

Decode decodes TradeRecordUpdate from json.

func (*TradeRecordUpdate) Elem

func (*TradeRecordUpdate) Encode

func (s *TradeRecordUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeRecordUpdate) GetID

func (s *TradeRecordUpdate) GetID() int

GetID returns the value of ID.

func (*TradeRecordUpdate) GetPrice

func (s *TradeRecordUpdate) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeRecordUpdate) GetTimeRangeID

func (s *TradeRecordUpdate) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeRecordUpdate) GetTimestamp

func (s *TradeRecordUpdate) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeRecordUpdate) GetVolume

func (s *TradeRecordUpdate) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeRecordUpdate) MarshalJSON

func (s *TradeRecordUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeRecordUpdate) SetID

func (s *TradeRecordUpdate) SetID(val int)

SetID sets the value of ID.

func (*TradeRecordUpdate) SetPrice

func (s *TradeRecordUpdate) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeRecordUpdate) SetTimeRangeID

func (s *TradeRecordUpdate) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeRecordUpdate) SetTimestamp

func (s *TradeRecordUpdate) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeRecordUpdate) SetVolume

func (s *TradeRecordUpdate) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeRecordUpdate) UnmarshalJSON

func (s *TradeRecordUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeRecordUpdate) Validate

func (s *TradeRecordUpdate) Validate() error

type TradeTimeRangeCreate

type TradeTimeRangeCreate struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/TradeTimeRangeCreate

func NewTradeTimeRangeCreate

func NewTradeTimeRangeCreate(e *ent.TradeTimeRange) *TradeTimeRangeCreate

func NewTradeTimeRangeCreates

func NewTradeTimeRangeCreates(es []*ent.TradeTimeRange) []TradeTimeRangeCreate

func (*TradeTimeRangeCreate) Decode

func (s *TradeTimeRangeCreate) Decode(d *jx.Decoder) error

Decode decodes TradeTimeRangeCreate from json.

func (*TradeTimeRangeCreate) Elem

func (*TradeTimeRangeCreate) Encode

func (s *TradeTimeRangeCreate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeCreate) GetEnd

func (s *TradeTimeRangeCreate) GetEnd() time.Time

GetEnd returns the value of End.

func (*TradeTimeRangeCreate) GetID

func (s *TradeTimeRangeCreate) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeCreate) GetIntervalID

func (s *TradeTimeRangeCreate) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*TradeTimeRangeCreate) GetStart

func (s *TradeTimeRangeCreate) GetStart() time.Time

GetStart returns the value of Start.

func (*TradeTimeRangeCreate) MarshalJSON

func (s *TradeTimeRangeCreate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeCreate) SetEnd

func (s *TradeTimeRangeCreate) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*TradeTimeRangeCreate) SetID

func (s *TradeTimeRangeCreate) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeCreate) SetIntervalID

func (s *TradeTimeRangeCreate) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*TradeTimeRangeCreate) SetStart

func (s *TradeTimeRangeCreate) SetStart(val time.Time)

SetStart sets the value of Start.

func (*TradeTimeRangeCreate) UnmarshalJSON

func (s *TradeTimeRangeCreate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeTimeRangeIntervalRead

type TradeTimeRangeIntervalRead struct {
	ID           int                                `json:"id"`
	Active       bool                               `json:"active"`
	Interval     TradeTimeRangeIntervalReadInterval `json:"interval"`
	StockID      int                                `json:"stock_id"`
	DataSourceID int                                `json:"data_source_id"`
}

Ref: #/components/schemas/TradeTimeRange_IntervalRead

func NewTradeTimeRangeIntervalRead

func NewTradeTimeRangeIntervalRead(e *ent.Interval) *TradeTimeRangeIntervalRead

func NewTradeTimeRangeIntervalReads

func NewTradeTimeRangeIntervalReads(es []*ent.Interval) []TradeTimeRangeIntervalRead

func (*TradeTimeRangeIntervalRead) Decode

Decode decodes TradeTimeRangeIntervalRead from json.

func (*TradeTimeRangeIntervalRead) Elem

func (*TradeTimeRangeIntervalRead) Encode

func (s *TradeTimeRangeIntervalRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeIntervalRead) GetActive

func (s *TradeTimeRangeIntervalRead) GetActive() bool

GetActive returns the value of Active.

func (*TradeTimeRangeIntervalRead) GetDataSourceID

func (s *TradeTimeRangeIntervalRead) GetDataSourceID() int

GetDataSourceID returns the value of DataSourceID.

func (*TradeTimeRangeIntervalRead) GetID

func (s *TradeTimeRangeIntervalRead) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeIntervalRead) GetInterval

GetInterval returns the value of Interval.

func (*TradeTimeRangeIntervalRead) GetStockID

func (s *TradeTimeRangeIntervalRead) GetStockID() int

GetStockID returns the value of StockID.

func (*TradeTimeRangeIntervalRead) MarshalJSON

func (s *TradeTimeRangeIntervalRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeIntervalRead) SetActive

func (s *TradeTimeRangeIntervalRead) SetActive(val bool)

SetActive sets the value of Active.

func (*TradeTimeRangeIntervalRead) SetDataSourceID

func (s *TradeTimeRangeIntervalRead) SetDataSourceID(val int)

SetDataSourceID sets the value of DataSourceID.

func (*TradeTimeRangeIntervalRead) SetID

func (s *TradeTimeRangeIntervalRead) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeIntervalRead) SetInterval

SetInterval sets the value of Interval.

func (*TradeTimeRangeIntervalRead) SetStockID

func (s *TradeTimeRangeIntervalRead) SetStockID(val int)

SetStockID sets the value of StockID.

func (*TradeTimeRangeIntervalRead) UnmarshalJSON

func (s *TradeTimeRangeIntervalRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeTimeRangeIntervalRead) Validate

func (s *TradeTimeRangeIntervalRead) Validate() error

type TradeTimeRangeIntervalReadInterval

type TradeTimeRangeIntervalReadInterval string
const (
	TradeTimeRangeIntervalReadIntervalTrades  TradeTimeRangeIntervalReadInterval = "trades"
	TradeTimeRangeIntervalReadInterval1min    TradeTimeRangeIntervalReadInterval = "1min"
	TradeTimeRangeIntervalReadIntervalDaily   TradeTimeRangeIntervalReadInterval = "daily"
	TradeTimeRangeIntervalReadIntervalMonthly TradeTimeRangeIntervalReadInterval = "monthly"
	TradeTimeRangeIntervalReadIntervalYearly  TradeTimeRangeIntervalReadInterval = "yearly"
)

func (*TradeTimeRangeIntervalReadInterval) Decode

Decode decodes TradeTimeRangeIntervalReadInterval from json.

func (TradeTimeRangeIntervalReadInterval) Encode

Encode encodes TradeTimeRangeIntervalReadInterval as json.

func (TradeTimeRangeIntervalReadInterval) MarshalJSON

func (s TradeTimeRangeIntervalReadInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (TradeTimeRangeIntervalReadInterval) MarshalText

func (s TradeTimeRangeIntervalReadInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*TradeTimeRangeIntervalReadInterval) UnmarshalJSON

func (s *TradeTimeRangeIntervalReadInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeTimeRangeIntervalReadInterval) UnmarshalText

func (s *TradeTimeRangeIntervalReadInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (TradeTimeRangeIntervalReadInterval) Validate

type TradeTimeRangeList

type TradeTimeRangeList struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/TradeTimeRangeList

func NewTradeTimeRangeList

func NewTradeTimeRangeList(e *ent.TradeTimeRange) *TradeTimeRangeList

func NewTradeTimeRangeLists

func NewTradeTimeRangeLists(es []*ent.TradeTimeRange) []TradeTimeRangeList

func (*TradeTimeRangeList) Decode

func (s *TradeTimeRangeList) Decode(d *jx.Decoder) error

Decode decodes TradeTimeRangeList from json.

func (*TradeTimeRangeList) Elem

func (*TradeTimeRangeList) Encode

func (s *TradeTimeRangeList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeList) GetEnd

func (s *TradeTimeRangeList) GetEnd() time.Time

GetEnd returns the value of End.

func (*TradeTimeRangeList) GetID

func (s *TradeTimeRangeList) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeList) GetIntervalID

func (s *TradeTimeRangeList) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*TradeTimeRangeList) GetStart

func (s *TradeTimeRangeList) GetStart() time.Time

GetStart returns the value of Start.

func (*TradeTimeRangeList) MarshalJSON

func (s *TradeTimeRangeList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeList) SetEnd

func (s *TradeTimeRangeList) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*TradeTimeRangeList) SetID

func (s *TradeTimeRangeList) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeList) SetIntervalID

func (s *TradeTimeRangeList) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*TradeTimeRangeList) SetStart

func (s *TradeTimeRangeList) SetStart(val time.Time)

SetStart sets the value of Start.

func (*TradeTimeRangeList) UnmarshalJSON

func (s *TradeTimeRangeList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeTimeRangeRead

type TradeTimeRangeRead struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/TradeTimeRangeRead

func NewTradeTimeRangeRead

func NewTradeTimeRangeRead(e *ent.TradeTimeRange) *TradeTimeRangeRead

func NewTradeTimeRangeReads

func NewTradeTimeRangeReads(es []*ent.TradeTimeRange) []TradeTimeRangeRead

func (*TradeTimeRangeRead) Decode

func (s *TradeTimeRangeRead) Decode(d *jx.Decoder) error

Decode decodes TradeTimeRangeRead from json.

func (*TradeTimeRangeRead) Elem

func (*TradeTimeRangeRead) Encode

func (s *TradeTimeRangeRead) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeRead) GetEnd

func (s *TradeTimeRangeRead) GetEnd() time.Time

GetEnd returns the value of End.

func (*TradeTimeRangeRead) GetID

func (s *TradeTimeRangeRead) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeRead) GetIntervalID

func (s *TradeTimeRangeRead) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*TradeTimeRangeRead) GetStart

func (s *TradeTimeRangeRead) GetStart() time.Time

GetStart returns the value of Start.

func (*TradeTimeRangeRead) MarshalJSON

func (s *TradeTimeRangeRead) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeRead) SetEnd

func (s *TradeTimeRangeRead) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*TradeTimeRangeRead) SetID

func (s *TradeTimeRangeRead) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeRead) SetIntervalID

func (s *TradeTimeRangeRead) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*TradeTimeRangeRead) SetStart

func (s *TradeTimeRangeRead) SetStart(val time.Time)

SetStart sets the value of Start.

func (*TradeTimeRangeRead) UnmarshalJSON

func (s *TradeTimeRangeRead) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type TradeTimeRangeRecordsList

type TradeTimeRangeRecordsList struct {
	ID          int       `json:"id"`
	Price       float64   `json:"price"`
	Timestamp   time.Time `json:"timestamp"`
	Volume      int32     `json:"volume"`
	TimeRangeID int       `json:"time_range_id"`
}

Ref: #/components/schemas/TradeTimeRange_RecordsList

func NewTradeTimeRangeRecordsList

func NewTradeTimeRangeRecordsList(e *ent.TradeRecord) *TradeTimeRangeRecordsList

func NewTradeTimeRangeRecordsLists

func NewTradeTimeRangeRecordsLists(es []*ent.TradeRecord) []TradeTimeRangeRecordsList

func (*TradeTimeRangeRecordsList) Decode

func (s *TradeTimeRangeRecordsList) Decode(d *jx.Decoder) error

Decode decodes TradeTimeRangeRecordsList from json.

func (*TradeTimeRangeRecordsList) Elem

func (*TradeTimeRangeRecordsList) Encode

func (s *TradeTimeRangeRecordsList) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeRecordsList) GetID

func (s *TradeTimeRangeRecordsList) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeRecordsList) GetPrice

func (s *TradeTimeRangeRecordsList) GetPrice() float64

GetPrice returns the value of Price.

func (*TradeTimeRangeRecordsList) GetTimeRangeID

func (s *TradeTimeRangeRecordsList) GetTimeRangeID() int

GetTimeRangeID returns the value of TimeRangeID.

func (*TradeTimeRangeRecordsList) GetTimestamp

func (s *TradeTimeRangeRecordsList) GetTimestamp() time.Time

GetTimestamp returns the value of Timestamp.

func (*TradeTimeRangeRecordsList) GetVolume

func (s *TradeTimeRangeRecordsList) GetVolume() int32

GetVolume returns the value of Volume.

func (*TradeTimeRangeRecordsList) MarshalJSON

func (s *TradeTimeRangeRecordsList) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeRecordsList) SetID

func (s *TradeTimeRangeRecordsList) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeRecordsList) SetPrice

func (s *TradeTimeRangeRecordsList) SetPrice(val float64)

SetPrice sets the value of Price.

func (*TradeTimeRangeRecordsList) SetTimeRangeID

func (s *TradeTimeRangeRecordsList) SetTimeRangeID(val int)

SetTimeRangeID sets the value of TimeRangeID.

func (*TradeTimeRangeRecordsList) SetTimestamp

func (s *TradeTimeRangeRecordsList) SetTimestamp(val time.Time)

SetTimestamp sets the value of Timestamp.

func (*TradeTimeRangeRecordsList) SetVolume

func (s *TradeTimeRangeRecordsList) SetVolume(val int32)

SetVolume sets the value of Volume.

func (*TradeTimeRangeRecordsList) UnmarshalJSON

func (s *TradeTimeRangeRecordsList) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*TradeTimeRangeRecordsList) Validate

func (s *TradeTimeRangeRecordsList) Validate() error

type TradeTimeRangeUpdate

type TradeTimeRangeUpdate struct {
	ID         int       `json:"id"`
	Start      time.Time `json:"start"`
	End        time.Time `json:"end"`
	IntervalID int       `json:"interval_id"`
}

Ref: #/components/schemas/TradeTimeRangeUpdate

func NewTradeTimeRangeUpdate

func NewTradeTimeRangeUpdate(e *ent.TradeTimeRange) *TradeTimeRangeUpdate

func NewTradeTimeRangeUpdates

func NewTradeTimeRangeUpdates(es []*ent.TradeTimeRange) []TradeTimeRangeUpdate

func (*TradeTimeRangeUpdate) Decode

func (s *TradeTimeRangeUpdate) Decode(d *jx.Decoder) error

Decode decodes TradeTimeRangeUpdate from json.

func (*TradeTimeRangeUpdate) Elem

func (*TradeTimeRangeUpdate) Encode

func (s *TradeTimeRangeUpdate) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*TradeTimeRangeUpdate) GetEnd

func (s *TradeTimeRangeUpdate) GetEnd() time.Time

GetEnd returns the value of End.

func (*TradeTimeRangeUpdate) GetID

func (s *TradeTimeRangeUpdate) GetID() int

GetID returns the value of ID.

func (*TradeTimeRangeUpdate) GetIntervalID

func (s *TradeTimeRangeUpdate) GetIntervalID() int

GetIntervalID returns the value of IntervalID.

func (*TradeTimeRangeUpdate) GetStart

func (s *TradeTimeRangeUpdate) GetStart() time.Time

GetStart returns the value of Start.

func (*TradeTimeRangeUpdate) MarshalJSON

func (s *TradeTimeRangeUpdate) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*TradeTimeRangeUpdate) SetEnd

func (s *TradeTimeRangeUpdate) SetEnd(val time.Time)

SetEnd sets the value of End.

func (*TradeTimeRangeUpdate) SetID

func (s *TradeTimeRangeUpdate) SetID(val int)

SetID sets the value of ID.

func (*TradeTimeRangeUpdate) SetIntervalID

func (s *TradeTimeRangeUpdate) SetIntervalID(val int)

SetIntervalID sets the value of IntervalID.

func (*TradeTimeRangeUpdate) SetStart

func (s *TradeTimeRangeUpdate) SetStart(val time.Time)

SetStart sets the value of Start.

func (*TradeTimeRangeUpdate) UnmarshalJSON

func (s *TradeTimeRangeUpdate) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UnimplementedHandler

type UnimplementedHandler struct{}

UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.

func (UnimplementedHandler) AddTicker

func (UnimplementedHandler) AddTicker(ctx context.Context, params AddTickerParams) error

AddTicker implements addTicker operation.

Queue for adding entities by ticker.

POST /rest/entities/add/{ticker}

func (UnimplementedHandler) CreateBarGroup

CreateBarGroup implements createBarGroup operation.

Creates a new BarGroup and persists it to storage.

POST /rest/bar-groups

func (UnimplementedHandler) CreateBarRecord

CreateBarRecord implements createBarRecord operation.

Creates a new BarRecord and persists it to storage.

POST /rest/bar-records

func (UnimplementedHandler) CreateBarTimeRange

CreateBarTimeRange implements createBarTimeRange operation.

Creates a new BarTimeRange and persists it to storage.

POST /rest/bar-time-ranges

func (UnimplementedHandler) CreateDataSource

CreateDataSource implements createDataSource operation.

Creates a new DataSource and persists it to storage.

POST /rest/data-sources

func (UnimplementedHandler) CreateDividend

CreateDividend implements createDividend operation.

Creates a new Dividend and persists it to storage.

POST /rest/dividends

func (UnimplementedHandler) CreateEntity

CreateEntity implements createEntity operation.

Creates a new Entity and persists it to storage.

POST /rest/entities

func (UnimplementedHandler) CreateExchange

CreateExchange implements createExchange operation.

Creates a new Exchange and persists it to storage.

POST /rest/exchanges

func (UnimplementedHandler) CreateFinancial

CreateFinancial implements createFinancial operation.

Creates a new Financial and persists it to storage.

POST /rest/financials

func (UnimplementedHandler) CreateInterval

CreateInterval implements createInterval operation.

Creates a new Interval and persists it to storage.

POST /rest/intervals

func (UnimplementedHandler) CreateMarketHours

CreateMarketHours implements createMarketHours operation.

Creates a new MarketHours and persists it to storage.

POST /rest/market-hours

func (UnimplementedHandler) CreateMarketInfo

CreateMarketInfo implements createMarketInfo operation.

Creates a new MarketInfo and persists it to storage.

POST /rest/market-infos

func (UnimplementedHandler) CreateSplit

CreateSplit implements createSplit operation.

Creates a new Split and persists it to storage.

POST /rest/splits

func (UnimplementedHandler) CreateTradeCondition

CreateTradeCondition implements createTradeCondition operation.

Creates a new TradeCondition and persists it to storage.

POST /rest/trade-conditions

func (UnimplementedHandler) CreateTradeCorrection

CreateTradeCorrection implements createTradeCorrection operation.

Creates a new TradeCorrection and persists it to storage.

POST /rest/trade-corrections

func (UnimplementedHandler) CreateTradeRecord

CreateTradeRecord implements createTradeRecord operation.

Creates a new TradeRecord and persists it to storage.

POST /rest/trade-records

func (UnimplementedHandler) CreateTradeTimeRange

CreateTradeTimeRange implements createTradeTimeRange operation.

Creates a new TradeTimeRange and persists it to storage.

POST /rest/trade-time-ranges

func (UnimplementedHandler) DeleteBarGroup

DeleteBarGroup implements deleteBarGroup operation.

Deletes the BarGroup with the requested ID.

DELETE /rest/bar-groups/{id}

func (UnimplementedHandler) DeleteBarRecord

DeleteBarRecord implements deleteBarRecord operation.

Deletes the BarRecord with the requested ID.

DELETE /rest/bar-records/{id}

func (UnimplementedHandler) DeleteBarTimeRange

DeleteBarTimeRange implements deleteBarTimeRange operation.

Deletes the BarTimeRange with the requested ID.

DELETE /rest/bar-time-ranges/{id}

func (UnimplementedHandler) DeleteDataSource

DeleteDataSource implements deleteDataSource operation.

Deletes the DataSource with the requested ID.

DELETE /rest/data-sources/{id}

func (UnimplementedHandler) DeleteDividend

DeleteDividend implements deleteDividend operation.

Deletes the Dividend with the requested ID.

DELETE /rest/dividends/{id}

func (UnimplementedHandler) DeleteEntity

DeleteEntity implements deleteEntity operation.

Deletes the Entity with the requested ID.

DELETE /rest/entities/{id}

func (UnimplementedHandler) DeleteExchange

DeleteExchange implements deleteExchange operation.

Deletes the Exchange with the requested ID.

DELETE /rest/exchanges/{id}

func (UnimplementedHandler) DeleteFinancial

DeleteFinancial implements deleteFinancial operation.

Deletes the Financial with the requested ID.

DELETE /rest/financials/{id}

func (UnimplementedHandler) DeleteInterval

DeleteInterval implements deleteInterval operation.

Deletes the Interval with the requested ID.

DELETE /rest/intervals/{id}

func (UnimplementedHandler) DeleteMarketHours

DeleteMarketHours implements deleteMarketHours operation.

Deletes the MarketHours with the requested ID.

DELETE /rest/market-hours/{id}

func (UnimplementedHandler) DeleteMarketInfo

DeleteMarketInfo implements deleteMarketInfo operation.

Deletes the MarketInfo with the requested ID.

DELETE /rest/market-infos/{id}

func (UnimplementedHandler) DeleteSplit

DeleteSplit implements deleteSplit operation.

Deletes the Split with the requested ID.

DELETE /rest/splits/{id}

func (UnimplementedHandler) DeleteTradeCondition

DeleteTradeCondition implements deleteTradeCondition operation.

Deletes the TradeCondition with the requested ID.

DELETE /rest/trade-conditions/{id}

func (UnimplementedHandler) DeleteTradeCorrection

DeleteTradeCorrection implements deleteTradeCorrection operation.

Deletes the TradeCorrection with the requested ID.

DELETE /rest/trade-corrections/{id}

func (UnimplementedHandler) DeleteTradeRecord

DeleteTradeRecord implements deleteTradeRecord operation.

Deletes the TradeRecord with the requested ID.

DELETE /rest/trade-records/{id}

func (UnimplementedHandler) DeleteTradeTimeRange

DeleteTradeTimeRange implements deleteTradeTimeRange operation.

Deletes the TradeTimeRange with the requested ID.

DELETE /rest/trade-time-ranges/{id}

func (UnimplementedHandler) ListBarGroup

ListBarGroup implements listBarGroup operation.

List BarGroups.

GET /rest/bar-groups

func (UnimplementedHandler) ListBarGroupRecords

ListBarGroupRecords implements listBarGroupRecords operation.

List attached Records.

GET /rest/bar-groups/{id}/records

func (UnimplementedHandler) ListBarRecord

ListBarRecord implements listBarRecord operation.

List BarRecords.

GET /rest/bar-records

func (UnimplementedHandler) ListBarTimeRange

ListBarTimeRange implements listBarTimeRange operation.

List BarTimeRanges.

GET /rest/bar-time-ranges

func (UnimplementedHandler) ListBarTimeRangeGroups

ListBarTimeRangeGroups implements listBarTimeRangeGroups operation.

List attached Groups.

GET /rest/bar-time-ranges/{id}/groups

func (UnimplementedHandler) ListDataSource

ListDataSource implements listDataSource operation.

List DataSources.

GET /rest/data-sources

func (UnimplementedHandler) ListDataSourceIntervals

ListDataSourceIntervals implements listDataSourceIntervals operation.

List attached Intervals.

GET /rest/data-sources/{id}/intervals

func (UnimplementedHandler) ListDividend

ListDividend implements listDividend operation.

List Dividends.

GET /rest/dividends

func (UnimplementedHandler) ListDividendStock

ListDividendStock implements listDividendStock operation.

List attached Stocks.

GET /rest/dividends/{id}/stock

func (UnimplementedHandler) ListEntity

ListEntity implements listEntity operation.

List Entities.

GET /rest/entities

func (UnimplementedHandler) ListEntityDividends

ListEntityDividends implements listEntityDividends operation.

List attached Dividends.

GET /rest/entities/{id}/dividends

func (UnimplementedHandler) ListEntityExchanges

ListEntityExchanges implements listEntityExchanges operation.

List attached Exchanges.

GET /rest/entities/{id}/exchanges

func (UnimplementedHandler) ListEntityFinancials

ListEntityFinancials implements listEntityFinancials operation.

List attached Financials.

GET /rest/entities/{id}/financials

func (UnimplementedHandler) ListEntityIntervals

ListEntityIntervals implements listEntityIntervals operation.

List attached Intervals.

GET /rest/entities/{id}/intervals

func (UnimplementedHandler) ListEntitySplits

ListEntitySplits implements listEntitySplits operation.

List attached Splits.

GET /rest/entities/{id}/splits

func (UnimplementedHandler) ListExchange

ListExchange implements listExchange operation.

List Exchanges.

GET /rest/exchanges

func (UnimplementedHandler) ListExchangeStocks

ListExchangeStocks implements listExchangeStocks operation.

List attached Stocks.

GET /rest/exchanges/{id}/stocks

func (UnimplementedHandler) ListFinancial

ListFinancial implements listFinancial operation.

List Financials.

GET /rest/financials

func (UnimplementedHandler) ListFinancialStock

ListFinancialStock implements listFinancialStock operation.

List attached Stocks.

GET /rest/financials/{id}/stock

func (UnimplementedHandler) ListInterval

ListInterval implements listInterval operation.

List Intervals.

GET /rest/intervals

func (UnimplementedHandler) ListIntervalBars

ListIntervalBars implements listIntervalBars operation.

List attached Bars.

GET /rest/intervals/{id}/bars

func (UnimplementedHandler) ListIntervalTrades

ListIntervalTrades implements listIntervalTrades operation.

List attached Trades.

GET /rest/intervals/{id}/trades

func (UnimplementedHandler) ListMarketHours

ListMarketHours implements listMarketHours operation.

List MarketHours.

GET /rest/market-hours

func (UnimplementedHandler) ListMarketInfo

ListMarketInfo implements listMarketInfo operation.

List MarketInfos.

GET /rest/market-infos

func (UnimplementedHandler) ListMarketInfoHours

ListMarketInfoHours implements listMarketInfoHours operation.

List attached Hours.

GET /rest/market-infos/{id}/hours

func (UnimplementedHandler) ListSplit

func (UnimplementedHandler) ListSplit(ctx context.Context, params ListSplitParams) (r ListSplitRes, _ error)

ListSplit implements listSplit operation.

List Splits.

GET /rest/splits

func (UnimplementedHandler) ListTradeCondition

ListTradeCondition implements listTradeCondition operation.

List TradeConditions.

GET /rest/trade-conditions

func (UnimplementedHandler) ListTradeConditionRecord

ListTradeConditionRecord implements listTradeConditionRecord operation.

List attached Records.

GET /rest/trade-conditions/{id}/record

func (UnimplementedHandler) ListTradeCorrection

ListTradeCorrection implements listTradeCorrection operation.

List TradeCorrections.

GET /rest/trade-corrections

func (UnimplementedHandler) ListTradeCorrectionRecord

ListTradeCorrectionRecord implements listTradeCorrectionRecord operation.

List attached Records.

GET /rest/trade-corrections/{id}/record

func (UnimplementedHandler) ListTradeRecord

ListTradeRecord implements listTradeRecord operation.

List TradeRecords.

GET /rest/trade-records

func (UnimplementedHandler) ListTradeRecordConditions

ListTradeRecordConditions implements listTradeRecordConditions operation.

List attached Conditions.

GET /rest/trade-records/{id}/conditions

func (UnimplementedHandler) ListTradeRecordCorrection

ListTradeRecordCorrection implements listTradeRecordCorrection operation.

List attached Corrections.

GET /rest/trade-records/{id}/correction

func (UnimplementedHandler) ListTradeRecordExchange

ListTradeRecordExchange implements listTradeRecordExchange operation.

List attached Exchanges.

GET /rest/trade-records/{id}/exchange

func (UnimplementedHandler) ListTradeTimeRange

ListTradeTimeRange implements listTradeTimeRange operation.

List TradeTimeRanges.

GET /rest/trade-time-ranges

func (UnimplementedHandler) ListTradeTimeRangeRecords

ListTradeTimeRangeRecords implements listTradeTimeRangeRecords operation.

List attached Records.

GET /rest/trade-time-ranges/{id}/records

func (UnimplementedHandler) ReadBarGroup

ReadBarGroup implements readBarGroup operation.

Finds the BarGroup with the requested ID and returns it.

GET /rest/bar-groups/{id}

func (UnimplementedHandler) ReadBarGroupTimeRange

ReadBarGroupTimeRange implements readBarGroupTimeRange operation.

Find the attached BarTimeRange of the BarGroup with the given ID.

GET /rest/bar-groups/{id}/time-range

func (UnimplementedHandler) ReadBarRecord

ReadBarRecord implements readBarRecord operation.

Finds the BarRecord with the requested ID and returns it.

GET /rest/bar-records/{id}

func (UnimplementedHandler) ReadBarRecordGroup

ReadBarRecordGroup implements readBarRecordGroup operation.

Find the attached BarGroup of the BarRecord with the given ID.

GET /rest/bar-records/{id}/group

func (UnimplementedHandler) ReadBarTimeRange

ReadBarTimeRange implements readBarTimeRange operation.

Finds the BarTimeRange with the requested ID and returns it.

GET /rest/bar-time-ranges/{id}

func (UnimplementedHandler) ReadBarTimeRangeInterval

ReadBarTimeRangeInterval implements readBarTimeRangeInterval operation.

Find the attached Interval of the BarTimeRange with the given ID.

GET /rest/bar-time-ranges/{id}/interval

func (UnimplementedHandler) ReadDataSource

ReadDataSource implements readDataSource operation.

Finds the DataSource with the requested ID and returns it.

GET /rest/data-sources/{id}

func (UnimplementedHandler) ReadDividend

ReadDividend implements readDividend operation.

Finds the Dividend with the requested ID and returns it.

GET /rest/dividends/{id}

func (UnimplementedHandler) ReadEntity

ReadEntity implements readEntity operation.

Finds the Entity with the requested ID and returns it.

GET /rest/entities/{id}

func (UnimplementedHandler) ReadExchange

ReadExchange implements readExchange operation.

Finds the Exchange with the requested ID and returns it.

GET /rest/exchanges/{id}

func (UnimplementedHandler) ReadFinancial

ReadFinancial implements readFinancial operation.

Finds the Financial with the requested ID and returns it.

GET /rest/financials/{id}

func (UnimplementedHandler) ReadInterval

ReadInterval implements readInterval operation.

Finds the Interval with the requested ID and returns it.

GET /rest/intervals/{id}

func (UnimplementedHandler) ReadIntervalDataSource

ReadIntervalDataSource implements readIntervalDataSource operation.

Find the attached DataSource of the Interval with the given ID.

GET /rest/intervals/{id}/data-source

func (UnimplementedHandler) ReadIntervalStock

ReadIntervalStock implements readIntervalStock operation.

Find the attached Entity of the Interval with the given ID.

GET /rest/intervals/{id}/stock

func (UnimplementedHandler) ReadMarketHours

ReadMarketHours implements readMarketHours operation.

Finds the MarketHours with the requested ID and returns it.

GET /rest/market-hours/{id}

func (UnimplementedHandler) ReadMarketHoursMarketInfo

ReadMarketHoursMarketInfo implements readMarketHoursMarketInfo operation.

Find the attached MarketInfo of the MarketHours with the given ID.

GET /rest/market-hours/{id}/market-info

func (UnimplementedHandler) ReadMarketInfo

ReadMarketInfo implements readMarketInfo operation.

Finds the MarketInfo with the requested ID and returns it.

GET /rest/market-infos/{id}

func (UnimplementedHandler) ReadSplit

func (UnimplementedHandler) ReadSplit(ctx context.Context, params ReadSplitParams) (r ReadSplitRes, _ error)

ReadSplit implements readSplit operation.

Finds the Split with the requested ID and returns it.

GET /rest/splits/{id}

func (UnimplementedHandler) ReadSplitStock

ReadSplitStock implements readSplitStock operation.

Find the attached Entity of the Split with the given ID.

GET /rest/splits/{id}/stock

func (UnimplementedHandler) ReadTradeCondition

ReadTradeCondition implements readTradeCondition operation.

Finds the TradeCondition with the requested ID and returns it.

GET /rest/trade-conditions/{id}

func (UnimplementedHandler) ReadTradeCorrection

ReadTradeCorrection implements readTradeCorrection operation.

Finds the TradeCorrection with the requested ID and returns it.

GET /rest/trade-corrections/{id}

func (UnimplementedHandler) ReadTradeRecord

ReadTradeRecord implements readTradeRecord operation.

Finds the TradeRecord with the requested ID and returns it.

GET /rest/trade-records/{id}

func (UnimplementedHandler) ReadTradeRecordTimeRange

ReadTradeRecordTimeRange implements readTradeRecordTimeRange operation.

Find the attached TradeTimeRange of the TradeRecord with the given ID.

GET /rest/trade-records/{id}/time-range

func (UnimplementedHandler) ReadTradeTimeRange

ReadTradeTimeRange implements readTradeTimeRange operation.

Finds the TradeTimeRange with the requested ID and returns it.

GET /rest/trade-time-ranges/{id}

func (UnimplementedHandler) ReadTradeTimeRangeInterval

ReadTradeTimeRangeInterval implements readTradeTimeRangeInterval operation.

Find the attached Interval of the TradeTimeRange with the given ID.

GET /rest/trade-time-ranges/{id}/interval

func (UnimplementedHandler) SearchTicker

func (UnimplementedHandler) SearchTicker(ctx context.Context, params SearchTickerParams) (r *SearchTickerOK, _ error)

SearchTicker implements searchTicker operation.

Searches for entities by ticker.

GET /rest/search/{ticker}

func (UnimplementedHandler) UpdateBarGroup

UpdateBarGroup implements updateBarGroup operation.

Updates a BarGroup and persists changes to storage.

PATCH /rest/bar-groups/{id}

func (UnimplementedHandler) UpdateBarRecord

UpdateBarRecord implements updateBarRecord operation.

Updates a BarRecord and persists changes to storage.

PATCH /rest/bar-records/{id}

func (UnimplementedHandler) UpdateBarTimeRange

UpdateBarTimeRange implements updateBarTimeRange operation.

Updates a BarTimeRange and persists changes to storage.

PATCH /rest/bar-time-ranges/{id}

func (UnimplementedHandler) UpdateDataSource

UpdateDataSource implements updateDataSource operation.

Updates a DataSource and persists changes to storage.

PATCH /rest/data-sources/{id}

func (UnimplementedHandler) UpdateDividend

UpdateDividend implements updateDividend operation.

Updates a Dividend and persists changes to storage.

PATCH /rest/dividends/{id}

func (UnimplementedHandler) UpdateEntity

UpdateEntity implements updateEntity operation.

Updates a Entity and persists changes to storage.

PATCH /rest/entities/{id}

func (UnimplementedHandler) UpdateExchange

UpdateExchange implements updateExchange operation.

Updates a Exchange and persists changes to storage.

PATCH /rest/exchanges/{id}

func (UnimplementedHandler) UpdateFinancial

UpdateFinancial implements updateFinancial operation.

Updates a Financial and persists changes to storage.

PATCH /rest/financials/{id}

func (UnimplementedHandler) UpdateInterval

UpdateInterval implements updateInterval operation.

Updates a Interval and persists changes to storage.

PATCH /rest/intervals/{id}

func (UnimplementedHandler) UpdateMarketHours

UpdateMarketHours implements updateMarketHours operation.

Updates a MarketHours and persists changes to storage.

PATCH /rest/market-hours/{id}

func (UnimplementedHandler) UpdateMarketInfo

UpdateMarketInfo implements updateMarketInfo operation.

Updates a MarketInfo and persists changes to storage.

PATCH /rest/market-infos/{id}

func (UnimplementedHandler) UpdateSplit

UpdateSplit implements updateSplit operation.

Updates a Split and persists changes to storage.

PATCH /rest/splits/{id}

func (UnimplementedHandler) UpdateTradeCondition

UpdateTradeCondition implements updateTradeCondition operation.

Updates a TradeCondition and persists changes to storage.

PATCH /rest/trade-conditions/{id}

func (UnimplementedHandler) UpdateTradeCorrection

UpdateTradeCorrection implements updateTradeCorrection operation.

Updates a TradeCorrection and persists changes to storage.

PATCH /rest/trade-corrections/{id}

func (UnimplementedHandler) UpdateTradeRecord

UpdateTradeRecord implements updateTradeRecord operation.

Updates a TradeRecord and persists changes to storage.

PATCH /rest/trade-records/{id}

func (UnimplementedHandler) UpdateTradeTimeRange

UpdateTradeTimeRange implements updateTradeTimeRange operation.

Updates a TradeTimeRange and persists changes to storage.

PATCH /rest/trade-time-ranges/{id}

type UpdateBarGroupParams

type UpdateBarGroupParams struct {
	// ID of the BarGroup.
	ID int
}

UpdateBarGroupParams is parameters of updateBarGroup operation.

type UpdateBarGroupReq

type UpdateBarGroupReq struct {
	First       OptDateTime `json:"first"`
	Last        OptDateTime `json:"last"`
	Count       OptInt      `json:"count"`
	TimeRangeID OptInt      `json:"time_range_id"`
	TimeRange   OptInt      `json:"time_range"`
	Records     []int       `json:"records"`
}

func (*UpdateBarGroupReq) Decode

func (s *UpdateBarGroupReq) Decode(d *jx.Decoder) error

Decode decodes UpdateBarGroupReq from json.

func (*UpdateBarGroupReq) Encode

func (s *UpdateBarGroupReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateBarGroupReq) GetCount

func (s *UpdateBarGroupReq) GetCount() OptInt

GetCount returns the value of Count.

func (*UpdateBarGroupReq) GetFirst

func (s *UpdateBarGroupReq) GetFirst() OptDateTime

GetFirst returns the value of First.

func (*UpdateBarGroupReq) GetLast

func (s *UpdateBarGroupReq) GetLast() OptDateTime

GetLast returns the value of Last.

func (*UpdateBarGroupReq) GetRecords

func (s *UpdateBarGroupReq) GetRecords() []int

GetRecords returns the value of Records.

func (*UpdateBarGroupReq) GetTimeRange

func (s *UpdateBarGroupReq) GetTimeRange() OptInt

GetTimeRange returns the value of TimeRange.

func (*UpdateBarGroupReq) GetTimeRangeID

func (s *UpdateBarGroupReq) GetTimeRangeID() OptInt

GetTimeRangeID returns the value of TimeRangeID.

func (*UpdateBarGroupReq) MarshalJSON

func (s *UpdateBarGroupReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateBarGroupReq) SetCount

func (s *UpdateBarGroupReq) SetCount(val OptInt)

SetCount sets the value of Count.

func (*UpdateBarGroupReq) SetFirst

func (s *UpdateBarGroupReq) SetFirst(val OptDateTime)

SetFirst sets the value of First.

func (*UpdateBarGroupReq) SetLast

func (s *UpdateBarGroupReq) SetLast(val OptDateTime)

SetLast sets the value of Last.

func (*UpdateBarGroupReq) SetRecords

func (s *UpdateBarGroupReq) SetRecords(val []int)

SetRecords sets the value of Records.

func (*UpdateBarGroupReq) SetTimeRange

func (s *UpdateBarGroupReq) SetTimeRange(val OptInt)

SetTimeRange sets the value of TimeRange.

func (*UpdateBarGroupReq) SetTimeRangeID

func (s *UpdateBarGroupReq) SetTimeRangeID(val OptInt)

SetTimeRangeID sets the value of TimeRangeID.

func (*UpdateBarGroupReq) UnmarshalJSON

func (s *UpdateBarGroupReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateBarGroupRes

type UpdateBarGroupRes interface {
	// contains filtered or unexported methods
}

type UpdateBarRecordParams

type UpdateBarRecordParams struct {
	// ID of the BarRecord.
	ID int
}

UpdateBarRecordParams is parameters of updateBarRecord operation.

type UpdateBarRecordReq

type UpdateBarRecordReq struct {
	Close        OptFloat64  `json:"close"`
	High         OptFloat64  `json:"high"`
	Low          OptFloat64  `json:"low"`
	Open         OptFloat64  `json:"open"`
	Timestamp    OptDateTime `json:"timestamp"`
	Volume       OptFloat64  `json:"volume"`
	Transactions OptInt32    `json:"transactions"`
	Group        OptInt      `json:"group"`
}

func (*UpdateBarRecordReq) Decode

func (s *UpdateBarRecordReq) Decode(d *jx.Decoder) error

Decode decodes UpdateBarRecordReq from json.

func (*UpdateBarRecordReq) Encode

func (s *UpdateBarRecordReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateBarRecordReq) GetClose

func (s *UpdateBarRecordReq) GetClose() OptFloat64

GetClose returns the value of Close.

func (*UpdateBarRecordReq) GetGroup

func (s *UpdateBarRecordReq) GetGroup() OptInt

GetGroup returns the value of Group.

func (*UpdateBarRecordReq) GetHigh

func (s *UpdateBarRecordReq) GetHigh() OptFloat64

GetHigh returns the value of High.

func (*UpdateBarRecordReq) GetLow

func (s *UpdateBarRecordReq) GetLow() OptFloat64

GetLow returns the value of Low.

func (*UpdateBarRecordReq) GetOpen

func (s *UpdateBarRecordReq) GetOpen() OptFloat64

GetOpen returns the value of Open.

func (*UpdateBarRecordReq) GetTimestamp

func (s *UpdateBarRecordReq) GetTimestamp() OptDateTime

GetTimestamp returns the value of Timestamp.

func (*UpdateBarRecordReq) GetTransactions

func (s *UpdateBarRecordReq) GetTransactions() OptInt32

GetTransactions returns the value of Transactions.

func (*UpdateBarRecordReq) GetVolume

func (s *UpdateBarRecordReq) GetVolume() OptFloat64

GetVolume returns the value of Volume.

func (*UpdateBarRecordReq) MarshalJSON

func (s *UpdateBarRecordReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateBarRecordReq) SetClose

func (s *UpdateBarRecordReq) SetClose(val OptFloat64)

SetClose sets the value of Close.

func (*UpdateBarRecordReq) SetGroup

func (s *UpdateBarRecordReq) SetGroup(val OptInt)

SetGroup sets the value of Group.

func (*UpdateBarRecordReq) SetHigh

func (s *UpdateBarRecordReq) SetHigh(val OptFloat64)

SetHigh sets the value of High.

func (*UpdateBarRecordReq) SetLow

func (s *UpdateBarRecordReq) SetLow(val OptFloat64)

SetLow sets the value of Low.

func (*UpdateBarRecordReq) SetOpen

func (s *UpdateBarRecordReq) SetOpen(val OptFloat64)

SetOpen sets the value of Open.

func (*UpdateBarRecordReq) SetTimestamp

func (s *UpdateBarRecordReq) SetTimestamp(val OptDateTime)

SetTimestamp sets the value of Timestamp.

func (*UpdateBarRecordReq) SetTransactions

func (s *UpdateBarRecordReq) SetTransactions(val OptInt32)

SetTransactions sets the value of Transactions.

func (*UpdateBarRecordReq) SetVolume

func (s *UpdateBarRecordReq) SetVolume(val OptFloat64)

SetVolume sets the value of Volume.

func (*UpdateBarRecordReq) UnmarshalJSON

func (s *UpdateBarRecordReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateBarRecordReq) Validate

func (s *UpdateBarRecordReq) Validate() error

type UpdateBarRecordRes

type UpdateBarRecordRes interface {
	// contains filtered or unexported methods
}

type UpdateBarTimeRangeParams

type UpdateBarTimeRangeParams struct {
	// ID of the BarTimeRange.
	ID int
}

UpdateBarTimeRangeParams is parameters of updateBarTimeRange operation.

type UpdateBarTimeRangeReq

type UpdateBarTimeRangeReq struct {
	Start      OptDateTime                    `json:"start"`
	End        OptDateTime                    `json:"end"`
	Count      OptInt                         `json:"count"`
	IntervalID OptInt                         `json:"interval_id"`
	Status     OptUpdateBarTimeRangeReqStatus `json:"status"`
	UpdateTime OptDateTime                    `json:"update_time"`
	Interval   OptInt                         `json:"interval"`
	Groups     []int                          `json:"groups"`
}

func (*UpdateBarTimeRangeReq) Decode

func (s *UpdateBarTimeRangeReq) Decode(d *jx.Decoder) error

Decode decodes UpdateBarTimeRangeReq from json.

func (*UpdateBarTimeRangeReq) Encode

func (s *UpdateBarTimeRangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateBarTimeRangeReq) GetCount

func (s *UpdateBarTimeRangeReq) GetCount() OptInt

GetCount returns the value of Count.

func (*UpdateBarTimeRangeReq) GetEnd

func (s *UpdateBarTimeRangeReq) GetEnd() OptDateTime

GetEnd returns the value of End.

func (*UpdateBarTimeRangeReq) GetGroups

func (s *UpdateBarTimeRangeReq) GetGroups() []int

GetGroups returns the value of Groups.

func (*UpdateBarTimeRangeReq) GetInterval

func (s *UpdateBarTimeRangeReq) GetInterval() OptInt

GetInterval returns the value of Interval.

func (*UpdateBarTimeRangeReq) GetIntervalID

func (s *UpdateBarTimeRangeReq) GetIntervalID() OptInt

GetIntervalID returns the value of IntervalID.

func (*UpdateBarTimeRangeReq) GetStart

func (s *UpdateBarTimeRangeReq) GetStart() OptDateTime

GetStart returns the value of Start.

func (*UpdateBarTimeRangeReq) GetStatus

GetStatus returns the value of Status.

func (*UpdateBarTimeRangeReq) GetUpdateTime

func (s *UpdateBarTimeRangeReq) GetUpdateTime() OptDateTime

GetUpdateTime returns the value of UpdateTime.

func (*UpdateBarTimeRangeReq) MarshalJSON

func (s *UpdateBarTimeRangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateBarTimeRangeReq) SetCount

func (s *UpdateBarTimeRangeReq) SetCount(val OptInt)

SetCount sets the value of Count.

func (*UpdateBarTimeRangeReq) SetEnd

func (s *UpdateBarTimeRangeReq) SetEnd(val OptDateTime)

SetEnd sets the value of End.

func (*UpdateBarTimeRangeReq) SetGroups

func (s *UpdateBarTimeRangeReq) SetGroups(val []int)

SetGroups sets the value of Groups.

func (*UpdateBarTimeRangeReq) SetInterval

func (s *UpdateBarTimeRangeReq) SetInterval(val OptInt)

SetInterval sets the value of Interval.

func (*UpdateBarTimeRangeReq) SetIntervalID

func (s *UpdateBarTimeRangeReq) SetIntervalID(val OptInt)

SetIntervalID sets the value of IntervalID.

func (*UpdateBarTimeRangeReq) SetStart

func (s *UpdateBarTimeRangeReq) SetStart(val OptDateTime)

SetStart sets the value of Start.

func (*UpdateBarTimeRangeReq) SetStatus

SetStatus sets the value of Status.

func (*UpdateBarTimeRangeReq) SetUpdateTime

func (s *UpdateBarTimeRangeReq) SetUpdateTime(val OptDateTime)

SetUpdateTime sets the value of UpdateTime.

func (*UpdateBarTimeRangeReq) UnmarshalJSON

func (s *UpdateBarTimeRangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateBarTimeRangeReq) Validate

func (s *UpdateBarTimeRangeReq) Validate() error

type UpdateBarTimeRangeReqStatus

type UpdateBarTimeRangeReqStatus string
const (
	UpdateBarTimeRangeReqStatusPending      UpdateBarTimeRangeReqStatus = "pending"
	UpdateBarTimeRangeReqStatusCreated      UpdateBarTimeRangeReqStatus = "created"
	UpdateBarTimeRangeReqStatusClean        UpdateBarTimeRangeReqStatus = "clean"
	UpdateBarTimeRangeReqStatusConsolidated UpdateBarTimeRangeReqStatus = "consolidated"
)

func (*UpdateBarTimeRangeReqStatus) Decode

Decode decodes UpdateBarTimeRangeReqStatus from json.

func (UpdateBarTimeRangeReqStatus) Encode

func (s UpdateBarTimeRangeReqStatus) Encode(e *jx.Encoder)

Encode encodes UpdateBarTimeRangeReqStatus as json.

func (UpdateBarTimeRangeReqStatus) MarshalJSON

func (s UpdateBarTimeRangeReqStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateBarTimeRangeReqStatus) MarshalText

func (s UpdateBarTimeRangeReqStatus) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateBarTimeRangeReqStatus) UnmarshalJSON

func (s *UpdateBarTimeRangeReqStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateBarTimeRangeReqStatus) UnmarshalText

func (s *UpdateBarTimeRangeReqStatus) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateBarTimeRangeReqStatus) Validate

func (s UpdateBarTimeRangeReqStatus) Validate() error

type UpdateBarTimeRangeRes

type UpdateBarTimeRangeRes interface {
	// contains filtered or unexported methods
}

type UpdateDataSourceParams

type UpdateDataSourceParams struct {
	// ID of the DataSource.
	ID int
}

UpdateDataSourceParams is parameters of updateDataSource operation.

type UpdateDataSourceReq

type UpdateDataSourceReq struct {
	Name      OptString `json:"name"`
	Address   OptString `json:"address"`
	Intervals []int     `json:"intervals"`
}

func (*UpdateDataSourceReq) Decode

func (s *UpdateDataSourceReq) Decode(d *jx.Decoder) error

Decode decodes UpdateDataSourceReq from json.

func (*UpdateDataSourceReq) Encode

func (s *UpdateDataSourceReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateDataSourceReq) GetAddress

func (s *UpdateDataSourceReq) GetAddress() OptString

GetAddress returns the value of Address.

func (*UpdateDataSourceReq) GetIntervals

func (s *UpdateDataSourceReq) GetIntervals() []int

GetIntervals returns the value of Intervals.

func (*UpdateDataSourceReq) GetName

func (s *UpdateDataSourceReq) GetName() OptString

GetName returns the value of Name.

func (*UpdateDataSourceReq) MarshalJSON

func (s *UpdateDataSourceReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDataSourceReq) SetAddress

func (s *UpdateDataSourceReq) SetAddress(val OptString)

SetAddress sets the value of Address.

func (*UpdateDataSourceReq) SetIntervals

func (s *UpdateDataSourceReq) SetIntervals(val []int)

SetIntervals sets the value of Intervals.

func (*UpdateDataSourceReq) SetName

func (s *UpdateDataSourceReq) SetName(val OptString)

SetName sets the value of Name.

func (*UpdateDataSourceReq) UnmarshalJSON

func (s *UpdateDataSourceReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateDataSourceRes

type UpdateDataSourceRes interface {
	// contains filtered or unexported methods
}

type UpdateDividendParams

type UpdateDividendParams struct {
	// ID of the Dividend.
	ID int
}

UpdateDividendParams is parameters of updateDividend operation.

type UpdateDividendReq

type UpdateDividendReq struct {
	CashAmount      OptFloat64                       `json:"cash_amount"`
	DeclarationDate OptDateTime                      `json:"declaration_date"`
	DividendType    OptUpdateDividendReqDividendType `json:"dividend_type"`
	ExDividendDate  OptDateTime                      `json:"ex_dividend_date"`
	Frequency       OptInt                           `json:"frequency"`
	RecordDate      OptDateTime                      `json:"record_date"`
	PayDate         OptDateTime                      `json:"pay_date"`
	Stock           []int                            `json:"stock"`
}

func (*UpdateDividendReq) Decode

func (s *UpdateDividendReq) Decode(d *jx.Decoder) error

Decode decodes UpdateDividendReq from json.

func (*UpdateDividendReq) Encode

func (s *UpdateDividendReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateDividendReq) GetCashAmount

func (s *UpdateDividendReq) GetCashAmount() OptFloat64

GetCashAmount returns the value of CashAmount.

func (*UpdateDividendReq) GetDeclarationDate

func (s *UpdateDividendReq) GetDeclarationDate() OptDateTime

GetDeclarationDate returns the value of DeclarationDate.

func (*UpdateDividendReq) GetDividendType

GetDividendType returns the value of DividendType.

func (*UpdateDividendReq) GetExDividendDate

func (s *UpdateDividendReq) GetExDividendDate() OptDateTime

GetExDividendDate returns the value of ExDividendDate.

func (*UpdateDividendReq) GetFrequency

func (s *UpdateDividendReq) GetFrequency() OptInt

GetFrequency returns the value of Frequency.

func (*UpdateDividendReq) GetPayDate

func (s *UpdateDividendReq) GetPayDate() OptDateTime

GetPayDate returns the value of PayDate.

func (*UpdateDividendReq) GetRecordDate

func (s *UpdateDividendReq) GetRecordDate() OptDateTime

GetRecordDate returns the value of RecordDate.

func (*UpdateDividendReq) GetStock

func (s *UpdateDividendReq) GetStock() []int

GetStock returns the value of Stock.

func (*UpdateDividendReq) MarshalJSON

func (s *UpdateDividendReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateDividendReq) SetCashAmount

func (s *UpdateDividendReq) SetCashAmount(val OptFloat64)

SetCashAmount sets the value of CashAmount.

func (*UpdateDividendReq) SetDeclarationDate

func (s *UpdateDividendReq) SetDeclarationDate(val OptDateTime)

SetDeclarationDate sets the value of DeclarationDate.

func (*UpdateDividendReq) SetDividendType

func (s *UpdateDividendReq) SetDividendType(val OptUpdateDividendReqDividendType)

SetDividendType sets the value of DividendType.

func (*UpdateDividendReq) SetExDividendDate

func (s *UpdateDividendReq) SetExDividendDate(val OptDateTime)

SetExDividendDate sets the value of ExDividendDate.

func (*UpdateDividendReq) SetFrequency

func (s *UpdateDividendReq) SetFrequency(val OptInt)

SetFrequency sets the value of Frequency.

func (*UpdateDividendReq) SetPayDate

func (s *UpdateDividendReq) SetPayDate(val OptDateTime)

SetPayDate sets the value of PayDate.

func (*UpdateDividendReq) SetRecordDate

func (s *UpdateDividendReq) SetRecordDate(val OptDateTime)

SetRecordDate sets the value of RecordDate.

func (*UpdateDividendReq) SetStock

func (s *UpdateDividendReq) SetStock(val []int)

SetStock sets the value of Stock.

func (*UpdateDividendReq) UnmarshalJSON

func (s *UpdateDividendReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDividendReq) Validate

func (s *UpdateDividendReq) Validate() error

type UpdateDividendReqDividendType

type UpdateDividendReqDividendType string
const (
	UpdateDividendReqDividendTypeCD UpdateDividendReqDividendType = "CD"
	UpdateDividendReqDividendTypeSC UpdateDividendReqDividendType = "SC"
	UpdateDividendReqDividendTypeLT UpdateDividendReqDividendType = "LT"
	UpdateDividendReqDividendTypeST UpdateDividendReqDividendType = "ST"
)

func (*UpdateDividendReqDividendType) Decode

Decode decodes UpdateDividendReqDividendType from json.

func (UpdateDividendReqDividendType) Encode

Encode encodes UpdateDividendReqDividendType as json.

func (UpdateDividendReqDividendType) MarshalJSON

func (s UpdateDividendReqDividendType) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateDividendReqDividendType) MarshalText

func (s UpdateDividendReqDividendType) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateDividendReqDividendType) UnmarshalJSON

func (s *UpdateDividendReqDividendType) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateDividendReqDividendType) UnmarshalText

func (s *UpdateDividendReqDividendType) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateDividendReqDividendType) Validate

func (s UpdateDividendReqDividendType) Validate() error

type UpdateDividendRes

type UpdateDividendRes interface {
	// contains filtered or unexported methods
}

type UpdateEntityParams

type UpdateEntityParams struct {
	// ID of the Entity.
	ID int
}

UpdateEntityParams is parameters of updateEntity operation.

type UpdateEntityReq

type UpdateEntityReq struct {
	Active      OptBool     `json:"active"`
	Ticker      OptString   `json:"ticker"`
	Name        OptString   `json:"name"`
	Description OptString   `json:"description"`
	ListDate    OptDateTime `json:"list_date"`
	Delisted    OptDateTime `json:"delisted"`
	Exchanges   []int       `json:"exchanges"`
	Intervals   []int       `json:"intervals"`
	Dividends   []int       `json:"dividends"`
	Splits      []int       `json:"splits"`
	Financials  []int       `json:"financials"`
}

func (*UpdateEntityReq) Decode

func (s *UpdateEntityReq) Decode(d *jx.Decoder) error

Decode decodes UpdateEntityReq from json.

func (*UpdateEntityReq) Encode

func (s *UpdateEntityReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateEntityReq) GetActive

func (s *UpdateEntityReq) GetActive() OptBool

GetActive returns the value of Active.

func (*UpdateEntityReq) GetDelisted

func (s *UpdateEntityReq) GetDelisted() OptDateTime

GetDelisted returns the value of Delisted.

func (*UpdateEntityReq) GetDescription

func (s *UpdateEntityReq) GetDescription() OptString

GetDescription returns the value of Description.

func (*UpdateEntityReq) GetDividends

func (s *UpdateEntityReq) GetDividends() []int

GetDividends returns the value of Dividends.

func (*UpdateEntityReq) GetExchanges

func (s *UpdateEntityReq) GetExchanges() []int

GetExchanges returns the value of Exchanges.

func (*UpdateEntityReq) GetFinancials

func (s *UpdateEntityReq) GetFinancials() []int

GetFinancials returns the value of Financials.

func (*UpdateEntityReq) GetIntervals

func (s *UpdateEntityReq) GetIntervals() []int

GetIntervals returns the value of Intervals.

func (*UpdateEntityReq) GetListDate

func (s *UpdateEntityReq) GetListDate() OptDateTime

GetListDate returns the value of ListDate.

func (*UpdateEntityReq) GetName

func (s *UpdateEntityReq) GetName() OptString

GetName returns the value of Name.

func (*UpdateEntityReq) GetSplits

func (s *UpdateEntityReq) GetSplits() []int

GetSplits returns the value of Splits.

func (*UpdateEntityReq) GetTicker

func (s *UpdateEntityReq) GetTicker() OptString

GetTicker returns the value of Ticker.

func (*UpdateEntityReq) MarshalJSON

func (s *UpdateEntityReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateEntityReq) SetActive

func (s *UpdateEntityReq) SetActive(val OptBool)

SetActive sets the value of Active.

func (*UpdateEntityReq) SetDelisted

func (s *UpdateEntityReq) SetDelisted(val OptDateTime)

SetDelisted sets the value of Delisted.

func (*UpdateEntityReq) SetDescription

func (s *UpdateEntityReq) SetDescription(val OptString)

SetDescription sets the value of Description.

func (*UpdateEntityReq) SetDividends

func (s *UpdateEntityReq) SetDividends(val []int)

SetDividends sets the value of Dividends.

func (*UpdateEntityReq) SetExchanges

func (s *UpdateEntityReq) SetExchanges(val []int)

SetExchanges sets the value of Exchanges.

func (*UpdateEntityReq) SetFinancials

func (s *UpdateEntityReq) SetFinancials(val []int)

SetFinancials sets the value of Financials.

func (*UpdateEntityReq) SetIntervals

func (s *UpdateEntityReq) SetIntervals(val []int)

SetIntervals sets the value of Intervals.

func (*UpdateEntityReq) SetListDate

func (s *UpdateEntityReq) SetListDate(val OptDateTime)

SetListDate sets the value of ListDate.

func (*UpdateEntityReq) SetName

func (s *UpdateEntityReq) SetName(val OptString)

SetName sets the value of Name.

func (*UpdateEntityReq) SetSplits

func (s *UpdateEntityReq) SetSplits(val []int)

SetSplits sets the value of Splits.

func (*UpdateEntityReq) SetTicker

func (s *UpdateEntityReq) SetTicker(val OptString)

SetTicker sets the value of Ticker.

func (*UpdateEntityReq) UnmarshalJSON

func (s *UpdateEntityReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateEntityRes

type UpdateEntityRes interface {
	// contains filtered or unexported methods
}

type UpdateExchangeParams

type UpdateExchangeParams struct {
	// ID of the Exchange.
	ID int
}

UpdateExchangeParams is parameters of updateExchange operation.

type UpdateExchangeReq

type UpdateExchangeReq struct {
	Code   OptString `json:"code"`
	Name   OptString `json:"name"`
	Stocks []int     `json:"stocks"`
}

func (*UpdateExchangeReq) Decode

func (s *UpdateExchangeReq) Decode(d *jx.Decoder) error

Decode decodes UpdateExchangeReq from json.

func (*UpdateExchangeReq) Encode

func (s *UpdateExchangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateExchangeReq) GetCode

func (s *UpdateExchangeReq) GetCode() OptString

GetCode returns the value of Code.

func (*UpdateExchangeReq) GetName

func (s *UpdateExchangeReq) GetName() OptString

GetName returns the value of Name.

func (*UpdateExchangeReq) GetStocks

func (s *UpdateExchangeReq) GetStocks() []int

GetStocks returns the value of Stocks.

func (*UpdateExchangeReq) MarshalJSON

func (s *UpdateExchangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateExchangeReq) SetCode

func (s *UpdateExchangeReq) SetCode(val OptString)

SetCode sets the value of Code.

func (*UpdateExchangeReq) SetName

func (s *UpdateExchangeReq) SetName(val OptString)

SetName sets the value of Name.

func (*UpdateExchangeReq) SetStocks

func (s *UpdateExchangeReq) SetStocks(val []int)

SetStocks sets the value of Stocks.

func (*UpdateExchangeReq) UnmarshalJSON

func (s *UpdateExchangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateExchangeRes

type UpdateExchangeRes interface {
	// contains filtered or unexported methods
}

type UpdateFinancialParams

type UpdateFinancialParams struct {
	// ID of the Financial.
	ID int
}

UpdateFinancialParams is parameters of updateFinancial operation.

type UpdateFinancialReq

type UpdateFinancialReq struct {
	Stock []int `json:"stock"`
}

func (*UpdateFinancialReq) Decode

func (s *UpdateFinancialReq) Decode(d *jx.Decoder) error

Decode decodes UpdateFinancialReq from json.

func (*UpdateFinancialReq) Encode

func (s *UpdateFinancialReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateFinancialReq) GetStock

func (s *UpdateFinancialReq) GetStock() []int

GetStock returns the value of Stock.

func (*UpdateFinancialReq) MarshalJSON

func (s *UpdateFinancialReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateFinancialReq) SetStock

func (s *UpdateFinancialReq) SetStock(val []int)

SetStock sets the value of Stock.

func (*UpdateFinancialReq) UnmarshalJSON

func (s *UpdateFinancialReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateFinancialRes

type UpdateFinancialRes interface {
	// contains filtered or unexported methods
}

type UpdateIntervalParams

type UpdateIntervalParams struct {
	// ID of the Interval.
	ID int
}

UpdateIntervalParams is parameters of updateInterval operation.

type UpdateIntervalReq

type UpdateIntervalReq struct {
	Active       OptBool                      `json:"active"`
	Interval     OptUpdateIntervalReqInterval `json:"interval"`
	StockID      OptInt                       `json:"stock_id"`
	DataSourceID OptInt                       `json:"data_source_id"`
	DataSource   OptInt                       `json:"data_source"`
	Stock        OptInt                       `json:"stock"`
	Bars         []int                        `json:"bars"`
	Trades       []int                        `json:"trades"`
}

func (*UpdateIntervalReq) Decode

func (s *UpdateIntervalReq) Decode(d *jx.Decoder) error

Decode decodes UpdateIntervalReq from json.

func (*UpdateIntervalReq) Encode

func (s *UpdateIntervalReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateIntervalReq) GetActive

func (s *UpdateIntervalReq) GetActive() OptBool

GetActive returns the value of Active.

func (*UpdateIntervalReq) GetBars

func (s *UpdateIntervalReq) GetBars() []int

GetBars returns the value of Bars.

func (*UpdateIntervalReq) GetDataSource

func (s *UpdateIntervalReq) GetDataSource() OptInt

GetDataSource returns the value of DataSource.

func (*UpdateIntervalReq) GetDataSourceID

func (s *UpdateIntervalReq) GetDataSourceID() OptInt

GetDataSourceID returns the value of DataSourceID.

func (*UpdateIntervalReq) GetInterval

GetInterval returns the value of Interval.

func (*UpdateIntervalReq) GetStock

func (s *UpdateIntervalReq) GetStock() OptInt

GetStock returns the value of Stock.

func (*UpdateIntervalReq) GetStockID

func (s *UpdateIntervalReq) GetStockID() OptInt

GetStockID returns the value of StockID.

func (*UpdateIntervalReq) GetTrades

func (s *UpdateIntervalReq) GetTrades() []int

GetTrades returns the value of Trades.

func (*UpdateIntervalReq) MarshalJSON

func (s *UpdateIntervalReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateIntervalReq) SetActive

func (s *UpdateIntervalReq) SetActive(val OptBool)

SetActive sets the value of Active.

func (*UpdateIntervalReq) SetBars

func (s *UpdateIntervalReq) SetBars(val []int)

SetBars sets the value of Bars.

func (*UpdateIntervalReq) SetDataSource

func (s *UpdateIntervalReq) SetDataSource(val OptInt)

SetDataSource sets the value of DataSource.

func (*UpdateIntervalReq) SetDataSourceID

func (s *UpdateIntervalReq) SetDataSourceID(val OptInt)

SetDataSourceID sets the value of DataSourceID.

func (*UpdateIntervalReq) SetInterval

func (s *UpdateIntervalReq) SetInterval(val OptUpdateIntervalReqInterval)

SetInterval sets the value of Interval.

func (*UpdateIntervalReq) SetStock

func (s *UpdateIntervalReq) SetStock(val OptInt)

SetStock sets the value of Stock.

func (*UpdateIntervalReq) SetStockID

func (s *UpdateIntervalReq) SetStockID(val OptInt)

SetStockID sets the value of StockID.

func (*UpdateIntervalReq) SetTrades

func (s *UpdateIntervalReq) SetTrades(val []int)

SetTrades sets the value of Trades.

func (*UpdateIntervalReq) UnmarshalJSON

func (s *UpdateIntervalReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateIntervalReq) Validate

func (s *UpdateIntervalReq) Validate() error

type UpdateIntervalReqInterval

type UpdateIntervalReqInterval string
const (
	UpdateIntervalReqIntervalTrades  UpdateIntervalReqInterval = "trades"
	UpdateIntervalReqInterval1min    UpdateIntervalReqInterval = "1min"
	UpdateIntervalReqIntervalDaily   UpdateIntervalReqInterval = "daily"
	UpdateIntervalReqIntervalMonthly UpdateIntervalReqInterval = "monthly"
	UpdateIntervalReqIntervalYearly  UpdateIntervalReqInterval = "yearly"
)

func (*UpdateIntervalReqInterval) Decode

func (s *UpdateIntervalReqInterval) Decode(d *jx.Decoder) error

Decode decodes UpdateIntervalReqInterval from json.

func (UpdateIntervalReqInterval) Encode

func (s UpdateIntervalReqInterval) Encode(e *jx.Encoder)

Encode encodes UpdateIntervalReqInterval as json.

func (UpdateIntervalReqInterval) MarshalJSON

func (s UpdateIntervalReqInterval) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (UpdateIntervalReqInterval) MarshalText

func (s UpdateIntervalReqInterval) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler.

func (*UpdateIntervalReqInterval) UnmarshalJSON

func (s *UpdateIntervalReqInterval) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateIntervalReqInterval) UnmarshalText

func (s *UpdateIntervalReqInterval) UnmarshalText(data []byte) error

UnmarshalText implements encoding.TextUnmarshaler.

func (UpdateIntervalReqInterval) Validate

func (s UpdateIntervalReqInterval) Validate() error

type UpdateIntervalRes

type UpdateIntervalRes interface {
	// contains filtered or unexported methods
}

type UpdateMarketHoursParams

type UpdateMarketHoursParams struct {
	// ID of the MarketHours.
	ID int
}

UpdateMarketHoursParams is parameters of updateMarketHours operation.

type UpdateMarketHoursReq

type UpdateMarketHoursReq struct {
	Date       OptDateTime `json:"date"`
	StartTime  OptDateTime `json:"start_time"`
	EndTime    OptDateTime `json:"end_time"`
	MarketInfo OptInt      `json:"market_info"`
}

func (*UpdateMarketHoursReq) Decode

func (s *UpdateMarketHoursReq) Decode(d *jx.Decoder) error

Decode decodes UpdateMarketHoursReq from json.

func (*UpdateMarketHoursReq) Encode

func (s *UpdateMarketHoursReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateMarketHoursReq) GetDate

func (s *UpdateMarketHoursReq) GetDate() OptDateTime

GetDate returns the value of Date.

func (*UpdateMarketHoursReq) GetEndTime

func (s *UpdateMarketHoursReq) GetEndTime() OptDateTime

GetEndTime returns the value of EndTime.

func (*UpdateMarketHoursReq) GetMarketInfo

func (s *UpdateMarketHoursReq) GetMarketInfo() OptInt

GetMarketInfo returns the value of MarketInfo.

func (*UpdateMarketHoursReq) GetStartTime

func (s *UpdateMarketHoursReq) GetStartTime() OptDateTime

GetStartTime returns the value of StartTime.

func (*UpdateMarketHoursReq) MarshalJSON

func (s *UpdateMarketHoursReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateMarketHoursReq) SetDate

func (s *UpdateMarketHoursReq) SetDate(val OptDateTime)

SetDate sets the value of Date.

func (*UpdateMarketHoursReq) SetEndTime

func (s *UpdateMarketHoursReq) SetEndTime(val OptDateTime)

SetEndTime sets the value of EndTime.

func (*UpdateMarketHoursReq) SetMarketInfo

func (s *UpdateMarketHoursReq) SetMarketInfo(val OptInt)

SetMarketInfo sets the value of MarketInfo.

func (*UpdateMarketHoursReq) SetStartTime

func (s *UpdateMarketHoursReq) SetStartTime(val OptDateTime)

SetStartTime sets the value of StartTime.

func (*UpdateMarketHoursReq) UnmarshalJSON

func (s *UpdateMarketHoursReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateMarketHoursRes

type UpdateMarketHoursRes interface {
	// contains filtered or unexported methods
}

type UpdateMarketInfoParams

type UpdateMarketInfoParams struct {
	// ID of the MarketInfo.
	ID int
}

UpdateMarketInfoParams is parameters of updateMarketInfo operation.

type UpdateMarketInfoReq

type UpdateMarketInfoReq struct {
	HoursStart OptDateTime `json:"hours_start"`
	HoursEnd   OptDateTime `json:"hours_end"`
	Hours      []int       `json:"hours"`
}

func (*UpdateMarketInfoReq) Decode

func (s *UpdateMarketInfoReq) Decode(d *jx.Decoder) error

Decode decodes UpdateMarketInfoReq from json.

func (*UpdateMarketInfoReq) Encode

func (s *UpdateMarketInfoReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateMarketInfoReq) GetHours

func (s *UpdateMarketInfoReq) GetHours() []int

GetHours returns the value of Hours.

func (*UpdateMarketInfoReq) GetHoursEnd

func (s *UpdateMarketInfoReq) GetHoursEnd() OptDateTime

GetHoursEnd returns the value of HoursEnd.

func (*UpdateMarketInfoReq) GetHoursStart

func (s *UpdateMarketInfoReq) GetHoursStart() OptDateTime

GetHoursStart returns the value of HoursStart.

func (*UpdateMarketInfoReq) MarshalJSON

func (s *UpdateMarketInfoReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateMarketInfoReq) SetHours

func (s *UpdateMarketInfoReq) SetHours(val []int)

SetHours sets the value of Hours.

func (*UpdateMarketInfoReq) SetHoursEnd

func (s *UpdateMarketInfoReq) SetHoursEnd(val OptDateTime)

SetHoursEnd sets the value of HoursEnd.

func (*UpdateMarketInfoReq) SetHoursStart

func (s *UpdateMarketInfoReq) SetHoursStart(val OptDateTime)

SetHoursStart sets the value of HoursStart.

func (*UpdateMarketInfoReq) UnmarshalJSON

func (s *UpdateMarketInfoReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateMarketInfoRes

type UpdateMarketInfoRes interface {
	// contains filtered or unexported methods
}

type UpdateSplitParams

type UpdateSplitParams struct {
	// ID of the Split.
	ID int
}

UpdateSplitParams is parameters of updateSplit operation.

type UpdateSplitReq

type UpdateSplitReq struct {
	ExecutionDate OptDateTime `json:"execution_date"`
	From          OptFloat64  `json:"from"`
	To            OptFloat64  `json:"to"`
	Stock         OptInt      `json:"stock"`
}

func (*UpdateSplitReq) Decode

func (s *UpdateSplitReq) Decode(d *jx.Decoder) error

Decode decodes UpdateSplitReq from json.

func (*UpdateSplitReq) Encode

func (s *UpdateSplitReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateSplitReq) GetExecutionDate

func (s *UpdateSplitReq) GetExecutionDate() OptDateTime

GetExecutionDate returns the value of ExecutionDate.

func (*UpdateSplitReq) GetFrom

func (s *UpdateSplitReq) GetFrom() OptFloat64

GetFrom returns the value of From.

func (*UpdateSplitReq) GetStock

func (s *UpdateSplitReq) GetStock() OptInt

GetStock returns the value of Stock.

func (*UpdateSplitReq) GetTo

func (s *UpdateSplitReq) GetTo() OptFloat64

GetTo returns the value of To.

func (*UpdateSplitReq) MarshalJSON

func (s *UpdateSplitReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateSplitReq) SetExecutionDate

func (s *UpdateSplitReq) SetExecutionDate(val OptDateTime)

SetExecutionDate sets the value of ExecutionDate.

func (*UpdateSplitReq) SetFrom

func (s *UpdateSplitReq) SetFrom(val OptFloat64)

SetFrom sets the value of From.

func (*UpdateSplitReq) SetStock

func (s *UpdateSplitReq) SetStock(val OptInt)

SetStock sets the value of Stock.

func (*UpdateSplitReq) SetTo

func (s *UpdateSplitReq) SetTo(val OptFloat64)

SetTo sets the value of To.

func (*UpdateSplitReq) UnmarshalJSON

func (s *UpdateSplitReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateSplitReq) Validate

func (s *UpdateSplitReq) Validate() error

type UpdateSplitRes

type UpdateSplitRes interface {
	// contains filtered or unexported methods
}

type UpdateTradeConditionParams

type UpdateTradeConditionParams struct {
	// ID of the TradeCondition.
	ID int
}

UpdateTradeConditionParams is parameters of updateTradeCondition operation.

type UpdateTradeConditionReq

type UpdateTradeConditionReq struct {
	Condition OptString `json:"condition"`
	Record    []int     `json:"record"`
}

func (*UpdateTradeConditionReq) Decode

func (s *UpdateTradeConditionReq) Decode(d *jx.Decoder) error

Decode decodes UpdateTradeConditionReq from json.

func (*UpdateTradeConditionReq) Encode

func (s *UpdateTradeConditionReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateTradeConditionReq) GetCondition

func (s *UpdateTradeConditionReq) GetCondition() OptString

GetCondition returns the value of Condition.

func (*UpdateTradeConditionReq) GetRecord

func (s *UpdateTradeConditionReq) GetRecord() []int

GetRecord returns the value of Record.

func (*UpdateTradeConditionReq) MarshalJSON

func (s *UpdateTradeConditionReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTradeConditionReq) SetCondition

func (s *UpdateTradeConditionReq) SetCondition(val OptString)

SetCondition sets the value of Condition.

func (*UpdateTradeConditionReq) SetRecord

func (s *UpdateTradeConditionReq) SetRecord(val []int)

SetRecord sets the value of Record.

func (*UpdateTradeConditionReq) UnmarshalJSON

func (s *UpdateTradeConditionReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTradeConditionRes

type UpdateTradeConditionRes interface {
	// contains filtered or unexported methods
}

type UpdateTradeCorrectionParams

type UpdateTradeCorrectionParams struct {
	// ID of the TradeCorrection.
	ID int
}

UpdateTradeCorrectionParams is parameters of updateTradeCorrection operation.

type UpdateTradeCorrectionReq

type UpdateTradeCorrectionReq struct {
	Correction OptString `json:"correction"`
	Record     []int     `json:"record"`
}

func (*UpdateTradeCorrectionReq) Decode

func (s *UpdateTradeCorrectionReq) Decode(d *jx.Decoder) error

Decode decodes UpdateTradeCorrectionReq from json.

func (*UpdateTradeCorrectionReq) Encode

func (s *UpdateTradeCorrectionReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateTradeCorrectionReq) GetCorrection

func (s *UpdateTradeCorrectionReq) GetCorrection() OptString

GetCorrection returns the value of Correction.

func (*UpdateTradeCorrectionReq) GetRecord

func (s *UpdateTradeCorrectionReq) GetRecord() []int

GetRecord returns the value of Record.

func (*UpdateTradeCorrectionReq) MarshalJSON

func (s *UpdateTradeCorrectionReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTradeCorrectionReq) SetCorrection

func (s *UpdateTradeCorrectionReq) SetCorrection(val OptString)

SetCorrection sets the value of Correction.

func (*UpdateTradeCorrectionReq) SetRecord

func (s *UpdateTradeCorrectionReq) SetRecord(val []int)

SetRecord sets the value of Record.

func (*UpdateTradeCorrectionReq) UnmarshalJSON

func (s *UpdateTradeCorrectionReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTradeCorrectionRes

type UpdateTradeCorrectionRes interface {
	// contains filtered or unexported methods
}

type UpdateTradeRecordParams

type UpdateTradeRecordParams struct {
	// ID of the TradeRecord.
	ID int
}

UpdateTradeRecordParams is parameters of updateTradeRecord operation.

type UpdateTradeRecordReq

type UpdateTradeRecordReq struct {
	Price       OptFloat64  `json:"price"`
	Timestamp   OptDateTime `json:"timestamp"`
	Volume      OptInt32    `json:"volume"`
	TimeRangeID OptInt      `json:"time_range_id"`
	TimeRange   OptInt      `json:"time_range"`
	Conditions  []int       `json:"conditions"`
	Correction  []int       `json:"correction"`
	Exchange    []int       `json:"exchange"`
}

func (*UpdateTradeRecordReq) Decode

func (s *UpdateTradeRecordReq) Decode(d *jx.Decoder) error

Decode decodes UpdateTradeRecordReq from json.

func (*UpdateTradeRecordReq) Encode

func (s *UpdateTradeRecordReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateTradeRecordReq) GetConditions

func (s *UpdateTradeRecordReq) GetConditions() []int

GetConditions returns the value of Conditions.

func (*UpdateTradeRecordReq) GetCorrection

func (s *UpdateTradeRecordReq) GetCorrection() []int

GetCorrection returns the value of Correction.

func (*UpdateTradeRecordReq) GetExchange

func (s *UpdateTradeRecordReq) GetExchange() []int

GetExchange returns the value of Exchange.

func (*UpdateTradeRecordReq) GetPrice

func (s *UpdateTradeRecordReq) GetPrice() OptFloat64

GetPrice returns the value of Price.

func (*UpdateTradeRecordReq) GetTimeRange

func (s *UpdateTradeRecordReq) GetTimeRange() OptInt

GetTimeRange returns the value of TimeRange.

func (*UpdateTradeRecordReq) GetTimeRangeID

func (s *UpdateTradeRecordReq) GetTimeRangeID() OptInt

GetTimeRangeID returns the value of TimeRangeID.

func (*UpdateTradeRecordReq) GetTimestamp

func (s *UpdateTradeRecordReq) GetTimestamp() OptDateTime

GetTimestamp returns the value of Timestamp.

func (*UpdateTradeRecordReq) GetVolume

func (s *UpdateTradeRecordReq) GetVolume() OptInt32

GetVolume returns the value of Volume.

func (*UpdateTradeRecordReq) MarshalJSON

func (s *UpdateTradeRecordReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTradeRecordReq) SetConditions

func (s *UpdateTradeRecordReq) SetConditions(val []int)

SetConditions sets the value of Conditions.

func (*UpdateTradeRecordReq) SetCorrection

func (s *UpdateTradeRecordReq) SetCorrection(val []int)

SetCorrection sets the value of Correction.

func (*UpdateTradeRecordReq) SetExchange

func (s *UpdateTradeRecordReq) SetExchange(val []int)

SetExchange sets the value of Exchange.

func (*UpdateTradeRecordReq) SetPrice

func (s *UpdateTradeRecordReq) SetPrice(val OptFloat64)

SetPrice sets the value of Price.

func (*UpdateTradeRecordReq) SetTimeRange

func (s *UpdateTradeRecordReq) SetTimeRange(val OptInt)

SetTimeRange sets the value of TimeRange.

func (*UpdateTradeRecordReq) SetTimeRangeID

func (s *UpdateTradeRecordReq) SetTimeRangeID(val OptInt)

SetTimeRangeID sets the value of TimeRangeID.

func (*UpdateTradeRecordReq) SetTimestamp

func (s *UpdateTradeRecordReq) SetTimestamp(val OptDateTime)

SetTimestamp sets the value of Timestamp.

func (*UpdateTradeRecordReq) SetVolume

func (s *UpdateTradeRecordReq) SetVolume(val OptInt32)

SetVolume sets the value of Volume.

func (*UpdateTradeRecordReq) UnmarshalJSON

func (s *UpdateTradeRecordReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (*UpdateTradeRecordReq) Validate

func (s *UpdateTradeRecordReq) Validate() error

type UpdateTradeRecordRes

type UpdateTradeRecordRes interface {
	// contains filtered or unexported methods
}

type UpdateTradeTimeRangeParams

type UpdateTradeTimeRangeParams struct {
	// ID of the TradeTimeRange.
	ID int
}

UpdateTradeTimeRangeParams is parameters of updateTradeTimeRange operation.

type UpdateTradeTimeRangeReq

type UpdateTradeTimeRangeReq struct {
	Start      OptDateTime `json:"start"`
	End        OptDateTime `json:"end"`
	IntervalID OptInt      `json:"interval_id"`
	Interval   OptInt      `json:"interval"`
	Records    []int       `json:"records"`
}

func (*UpdateTradeTimeRangeReq) Decode

func (s *UpdateTradeTimeRangeReq) Decode(d *jx.Decoder) error

Decode decodes UpdateTradeTimeRangeReq from json.

func (*UpdateTradeTimeRangeReq) Encode

func (s *UpdateTradeTimeRangeReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (*UpdateTradeTimeRangeReq) GetEnd

GetEnd returns the value of End.

func (*UpdateTradeTimeRangeReq) GetInterval

func (s *UpdateTradeTimeRangeReq) GetInterval() OptInt

GetInterval returns the value of Interval.

func (*UpdateTradeTimeRangeReq) GetIntervalID

func (s *UpdateTradeTimeRangeReq) GetIntervalID() OptInt

GetIntervalID returns the value of IntervalID.

func (*UpdateTradeTimeRangeReq) GetRecords

func (s *UpdateTradeTimeRangeReq) GetRecords() []int

GetRecords returns the value of Records.

func (*UpdateTradeTimeRangeReq) GetStart

func (s *UpdateTradeTimeRangeReq) GetStart() OptDateTime

GetStart returns the value of Start.

func (*UpdateTradeTimeRangeReq) MarshalJSON

func (s *UpdateTradeTimeRangeReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*UpdateTradeTimeRangeReq) SetEnd

func (s *UpdateTradeTimeRangeReq) SetEnd(val OptDateTime)

SetEnd sets the value of End.

func (*UpdateTradeTimeRangeReq) SetInterval

func (s *UpdateTradeTimeRangeReq) SetInterval(val OptInt)

SetInterval sets the value of Interval.

func (*UpdateTradeTimeRangeReq) SetIntervalID

func (s *UpdateTradeTimeRangeReq) SetIntervalID(val OptInt)

SetIntervalID sets the value of IntervalID.

func (*UpdateTradeTimeRangeReq) SetRecords

func (s *UpdateTradeTimeRangeReq) SetRecords(val []int)

SetRecords sets the value of Records.

func (*UpdateTradeTimeRangeReq) SetStart

func (s *UpdateTradeTimeRangeReq) SetStart(val OptDateTime)

SetStart sets the value of Start.

func (*UpdateTradeTimeRangeReq) UnmarshalJSON

func (s *UpdateTradeTimeRangeReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type UpdateTradeTimeRangeRes

type UpdateTradeTimeRangeRes interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL