iqfeed
Golang implementation for IQ Feed low level network protocol reader.
Golang implementation for IQ Feed low level network protocol reader.
License: BSD 3-Clause "New" or "Revised" License
Golang implementation for IQ Feed low level network protocol reader.
Hello, I want to know if your package is working?
Because I get an error that I can not connect to the port.
Can I get quotes through it?
Thank you for answer!
Running your iqfeed_example yields the following under Win 10:
C:\Users\lewpa\go\src\github.com\Nitecon\iqfeed_example>go run main.go
System: &iqfeed.SystemMessage{Customer:iqfeed.CustomerData{ServiceType:"", IP:"", Port:0, Token:"", Version:"", Deprecated1:0, VerboseExchanges:"", Deprecated2:"", MaxSymbols:0, Flags:"", Deprecated3:"", Deprecated4:""}, Stats:iqfeed.SystemStats{ServerIP:"", ServerPort:0, MaxSymbols:0, NumberOfSymbols:0, ClientsConnected:0, SecondsSinceLastUpdate:0, Reconnections:0, AttemptedReconnections:0, StartTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, MarketTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Status:"", IQFeedVersion:"", LoginID:"", TotalKBsRecv:0, KBsPerSecRecv:0, AvgKBsPerSecRecv:0, TotalKBsSent:0, KBsPerSecSent:0, AvgKBsPerSecSent:0}}
System: &iqfeed.SystemMessage{Customer:iqfeed.CustomerData{ServiceType:"", IP:"", Port:0, Token:"", Version:"", Deprecated1:0, VerboseExchanges:"", Deprecated2:"", MaxSymbols:0, Flags:"", Deprecated3:"", Deprecated4:""}, Stats:iqfeed.SystemStats{ServerIP:"", ServerPort:0, MaxSymbols:0, NumberOfSymbols:0, ClientsConnected:0, SecondsSinceLastUpdate:0, Reconnections:0, AttemptedReconnections:0, StartTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, MarketTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Status:"", IQFeedVersion:"", LoginID:"", TotalKBsRecv:0, KBsPerSecRecv:0, AvgKBsPerSecRecv:0, TotalKBsSent:0, KBsPerSecSent:0, AvgKBsPerSecSent:0}}
System: &iqfeed.SystemMessage{Customer:iqfeed.CustomerData{ServiceType:"", IP:"", Port:0, Token:"", Version:"", Deprecated1:0, VerboseExchanges:"", Deprecated2:"", MaxSymbols:0, Flags:"", Deprecated3:"", Deprecated4:""}, Stats:iqfeed.SystemStats{ServerIP:"", ServerPort:0, MaxSymbols:0, NumberOfSymbols:0, ClientsConnected:0, SecondsSinceLastUpdate:0, Reconnections:0, AttemptedReconnections:0, StartTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, MarketTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Status:"", IQFeedVersion:"", LoginID:"", TotalKBsRecv:0, KBsPerSecRecv:0, AvgKBsPerSecRecv:0, TotalKBsSent:0, KBsPerSecSent:0, AvgKBsPerSecSent:0}}
System: &iqfeed.SystemMessage{Customer:iqfeed.CustomerData{ServiceType:"", IP:"", Port:0, Token:"", Version:"", Deprecated1:0, VerboseExchanges:"", Deprecated2:"", MaxSymbols:0, Flags:"", Deprecated3:"", Deprecated4:""}, Stats:iqfeed.SystemStats{ServerIP:"", ServerPort:0, MaxSymbols:0, NumberOfSymbols:0, ClientsConnected:0, SecondsSinceLastUpdate:0, Reconnections:0, AttemptedReconnections:0, StartTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, MarketTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Status:"", IQFeedVersion:"", LoginID:"", TotalKBsRecv:0, KBsPerSecRecv:0, AvgKBsPerSecRecv:0, TotalKBsSent:0, KBsPerSecSent:0, AvgKBsPerSecSent:0}}
System: &iqfeed.SystemMessage{Customer:iqfeed.CustomerData{ServiceType:"", IP:"", Port:0, Token:"", Version:"", Deprecated1:0, VerboseExchanges:"", Deprecated2:"", MaxSymbols:0, Flags:"", Deprecated3:"", Deprecated4:""}, Stats:iqfeed.SystemStats{ServerIP:"", ServerPort:0, MaxSymbols:0, NumberOfSymbols:0, ClientsConnected:0, SecondsSinceLastUpdate:0, Reconnections:0, AttemptedReconnections:0, StartTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, MarketTime:time.Time{wall:0x0, ext:0, loc:(*time.Location)(nil)}, Status:"", IQFeedVersion:"", LoginID:"", TotalKBsRecv:0, KBsPerSecRecv:0, AvgKBsPerSecRecv:0, TotalKBsSent:0, KBsPerSecSent:0, AvgKBsPerSecSent:0}}
panic: runtime error: slice bounds out of range
goroutine 20 [running]:
github.com/Nitecon/iqfeed.(*IQC).processReceiver(0xc00008c000, 0xc0000b2978, 0x0, 0x688)
C:/Users/lewpa/go/src/github.com/Nitecon/iqfeed/iqfeed.go:141 +0x32f
github.com/Nitecon/iqfeed.(*IQC).read(0xc00008c000)
C:/Users/lewpa/go/src/github.com/Nitecon/iqfeed/iqfeed.go:181 +0x1a6
created by github.com/Nitecon/iqfeed.(*IQC).Start
C:/Users/lewpa/go/src/github.com/Nitecon/iqfeed/iqfeed.go:268 +0x1d0
exit status 2
I am getting connected successfully but I cant get it to Connect(). I beleive I am calling the proper commands in the right order. All I get back is S,KEY,99999
func TestStart(t *testing.T) {
var iqc IQC
go func() {
for {
select {
case msg1 := <-iqc.System:
fmt.Println("received", msg1)
case msg2 := <-iqc.Errors:
fmt.Println("received", msg2)
case msg2 := <-iqc.Regional:
fmt.Println("received", msg2)
case msg2 := <-iqc.Updates:
fmt.Println("received", msg2)
case msg2 := <-iqc.Time:
fmt.Println("received", msg2)
}
}
}()
iqc.Start("localhost:5009")
fmt.Println("Started IqFeed on Quote Port")
iqc.SetProtocol("6.2")
iqc.SetClientName("golang-iqfeed")
iqc.Connect()
time.Sleep(30 * time.Second)
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.