Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instrument ¶
type Instrument struct { Figi string `json:"figi"` Ticker string `json:"ticker"` MinPriceIncrement float64 `json:"minPriceIncrement"` Lot int `json:"lot"` Currency string `json:"currency"` Name string `json:"name"` Type string `json:"type"` }
Instruments ...
type Message ¶
type Message struct { TrackingID string `json:"trackingId"` Payload Payload `json:"payload"` Status string `json:"status"` }
Message ...
type OrderBook ¶
type OrderBook struct { FIGI string `json:"figi"` Depth int `json:"depth"` Bids []PriceQuantity `json:"bids"` Asks []PriceQuantity `json:"asks"` }
type Payload ¶
type Payload struct { Instruments []Instrument `json:"instruments"` Total int `json:"total"` }
Payload ...
type PriceQuantity ¶
type PriceQuantity [2]float64
type Tinkoff ¶
type Tinkoff struct {
// contains filtered or unexported fields
}
Tinkoff ...
func (*Tinkoff) GetCurrencies ¶
func (t *Tinkoff) GetCurrencies() ([]Instrument, error)
GetCurrencies ...
func (*Tinkoff) SubscribeForQuotes ¶
func (t *Tinkoff) SubscribeForQuotes(instruments []Instrument, ch chan<- Quote) error
SubscribeForQuotes ...
Click to show internal directories.
Click to hide internal directories.