{"id":29089811,"url":"https://github.com/benzinga/go-bztcp","last_synced_at":"2025-06-28T04:05:07.716Z","repository":{"id":56367230,"uuid":"88907851","full_name":"Benzinga/go-bztcp","owner":"Benzinga","description":"Benzinga TCP client library for Go.","archived":false,"fork":false,"pushed_at":"2021-09-10T14:36:36.000Z","size":16,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-17T13:03:23.870Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Benzinga.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-20T20:30:32.000Z","updated_at":"2023-11-23T13:29:12.000Z","dependencies_parsed_at":"2022-08-15T17:20:56.224Z","dependency_job_id":null,"html_url":"https://github.com/Benzinga/go-bztcp","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Benzinga/go-bztcp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzinga%2Fgo-bztcp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzinga%2Fgo-bztcp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzinga%2Fgo-bztcp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzinga%2Fgo-bztcp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Benzinga","download_url":"https://codeload.github.com/Benzinga/go-bztcp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Benzinga%2Fgo-bztcp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262371672,"owners_count":23300596,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-28T04:05:07.052Z","updated_at":"2025-06-28T04:05:07.691Z","avatar_url":"https://github.com/Benzinga.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go BzTCP\nThis project provides a pure-Go implementation of the Benzinga TCP protocol.\n\n**Service Deprecated**\n\n# Features\n\n  * Tested with Go 1.13+\n  * Reasonably performant.\n  * No external dependencies.\n\n# Getting Started\nTo install the library and the example client, run the following:\n\n```sh\ngo install github.com/Benzinga/go-bztcp/cmd/bztcp\n```\n\nTo use the example client, use the new `bztcp` binary. By default, it will be installed to `$GOPATH/bin`. If this isn't on your `$PATH`/`%PATH%` you may need to invoke it by specifying the absolute path of the binary.\n\n```sh\nbztcp -v -user USER -key KEY\n```\n\nIf all has gone well, you should begin seeing messages shortly, depending on the time of day.\n\nThis program makes use of the Go context library and thus requires Go 1.8. It would be relatively simple to backport this library to use an external implementation of context.\n\n# Usage\nThe Go library exposes both high-level and low-level functionality for dealing with the Benzinga TCP protocol, but in particular you usually only need to be concerned with two functions: `Dial`, and `Conn.Stream`.\n\nA quick example follows:\n\n```go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\n\t\"github.com/Benzinga/go-bztcp/bztcp\"\n)\n\nfunc main() {\n\tconn, err := bztcp.Dial(\"tcp-v1.benzinga.io:11337\", \"USER\", \"KEY\")\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\terr = conn.Stream(context.Background(), func(stream bztcp.StreamData) {\n\t\tfmt.Printf(\"%#v\\n\", stream)\n\t})\n\n\tif err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenzinga%2Fgo-bztcp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenzinga%2Fgo-bztcp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenzinga%2Fgo-bztcp/lists"}