1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00
wtf/modules/finnhub/client_test.go
2020-10-19 00:03:07 +01:00

24 lines
319 B
Go

package finnhub
import (
"fmt"
"testing"
)
func TestFinnhubClient(t *testing.T){
testClient := &Client {
symbols: []string{
"AAPL",
"MSFT",
},
apiKey: "",
}
r, err := testClient.Getquote()
if err != nil {
fmt.Println(err)
}
fmt.Println(r[0].Stock, r[0].C)
fmt.Println(r[1].Stock, r[1].C)
}