Documentation
¶
Overview ¶
Contains wrappers for the Finnhub API.
Index ¶
- type Candles
- type FinnhubClient
- func (c *FinnhubClient) CloseRealtimeStream(stop chan int)
- func (c *FinnhubClient) GetCandles(symbol string, resolution string, from int64, to int64) (Candles, error)
- func (c *FinnhubClient) GetQuote(symbol string) (Quote, error)
- func (c *FinnhubClient) OpenRealtimeStream(symbols []string) (*websocket.Conn, error)
- func (c *FinnhubClient) ReceiveRealtimeData(w *websocket.Conn) (chan Trade, chan int)
- type Quote
- type Trade
- type WebsocketResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FinnhubClient ¶
type FinnhubClient struct { *finnhub.DefaultApiService // contains filtered or unexported fields }
func NewFinnhubClient ¶
func NewFinnhubClient(apiKey string) *FinnhubClient
func (*FinnhubClient) CloseRealtimeStream ¶
func (c *FinnhubClient) CloseRealtimeStream(stop chan int)
func (*FinnhubClient) GetCandles ¶
func (*FinnhubClient) OpenRealtimeStream ¶
func (c *FinnhubClient) OpenRealtimeStream(symbols []string) (*websocket.Conn, error)
func (*FinnhubClient) ReceiveRealtimeData ¶
func (c *FinnhubClient) ReceiveRealtimeData(w *websocket.Conn) (chan Trade, chan int)
type WebsocketResponse ¶
Click to show internal directories.
Click to hide internal directories.