gRPC interface around TransaqConnector to be able to connect from different languages via TCP (remote procedure call) and linux as well
syntax = "proto3";
option go_package = "github.com/lebedev_k/txmlconnector";
package transaqConnector;
message DataRequest {
}
message DataResponse {
string message = 1;
}
message SendCommandRequest {
string message = 1;
}
message SendCommandResponse {
string message = 1;
}
service ConnectService {
rpc FetchResponseData(DataRequest) returns (stream DataResponse) {}
rpc SendCommand(SendCommandRequest) returns (SendCommandResponse) {}
}
docker run -p 50051:50051 kmlebedev/txmlconnector server
docker compose -f docker/txmlconnector-compose.yaml -p txmlconnector up
brew install mingw-w64
brew cask install wine-stable
sudo apt install wine64
export TC_LOG_LEVEL=debug
export TC_DLL_PATH=txmlconnector64-6.32.2.21.23.dll
make server
CGO_ENABLED=1 CC="x86_64-w64-mingw32-gcc" GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o bin/server.exe server/main.go
wine64 bin/server.exe
00ea:fixme:process:SetProcessPriorityBoost (FFFFFFFFFFFFFFFF,1): stub
time="2020-12-17T20:57:01+05:00" level=info msg="Initialize txmlconnector"
InitCrashHandler: Z:\Users\kmlebedev\go\src\txmlconnector\bin\server-201217-205701.mdmp
00f0:fixme:ver:GetCurrentPackageId (0x29d5fd90 0x0): stub
time="2020-12-17T20:57:01+05:00" level=info msg="Server running ..."
00ea:fixme:winsock:set_dont_fragment IP_DONTFRAGMENT for IPv4 not supported in this platform
00ea:fixme:winsock:set_dont_fragment IP_DONTFRAGMENT for IPv6 not supported in this platform
time="2020-12-17T20:57:01+05:00" level=info msg="Press CRTL+C to stop the server..."
TRANSAQ Connector request access to demo account
export TC_LOGIN="TCNN9979"
export TC_PASSWORD="n3Z4W4"
export TC_HOST="tr1-demo5.finam.ru"
export TC_PORT="3939"
export TC_LOG_LEVEL="DEBUG"
make client
go build -ldflags "-s -w" -o bin/client client/main.go
bin/client
INFO[0000] Client running ...
INFO[0001] res <result success="true"/>
Historical Moscow Exchange stock quote prices exporting to clickhouse server through transaq
docker-compose -f docker/transaq-clickhouse-exporter-compose.yaml -p transaq up
- TXmlConnector last(2.21.21) version
- TRANSAQ Connector Forum
- TransaqConnector Linux Finam Forum
- TransaqGrpcWrapper
- Creating a simplegRPC client and server application with Golang
- Using Go to call Windows API
- How to Set Up gRPC Server-Side Streaming with Go
- BB
- https://iqsignal.net/coint
- https://www.gonum.org/post/intro_to_gonum/