{"id":41827392,"url":"https://github.com/gnagel/go-tradier","last_synced_at":"2026-01-25T08:16:18.772Z","repository":{"id":38358589,"uuid":"327978909","full_name":"gnagel/go-tradier","owner":"gnagel","description":"A Golang client for the Tradier REST API. This is a fork of the original timpalpant/go-tradier library with additional features added: Cobra CLI, Historical Data retrieval, Improved retries, and Unit tests.","archived":false,"fork":false,"pushed_at":"2022-11-23T01:50:46.000Z","size":115,"stargazers_count":2,"open_issues_count":5,"forks_count":6,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-19T17:50:42.638Z","etag":null,"topics":["api","cli","options-trading","stock","tradier","tradier-api","tradier-client"],"latest_commit_sha":null,"homepage":"https://github.com/gnagel/go-tradier","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gnagel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-08T18:14:00.000Z","updated_at":"2024-02-14T14:03:32.000Z","dependencies_parsed_at":"2022-09-01T11:51:43.931Z","dependency_job_id":null,"html_url":"https://github.com/gnagel/go-tradier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gnagel/go-tradier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnagel%2Fgo-tradier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnagel%2Fgo-tradier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnagel%2Fgo-tradier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnagel%2Fgo-tradier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gnagel","download_url":"https://codeload.github.com/gnagel/go-tradier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gnagel%2Fgo-tradier/sbom","scorecard":{"id":431000,"data":{"date":"2025-08-11","repo":{"name":"github.com/gnagel/go-tradier","commit":"e873b0437ae8d2e2cb25e7b1ce6709333765b6bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":10,"reason":"SAST tool detected: CodeQL","details":["Info: SAST configuration detected: CodeQL","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/go.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:67: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/codeql-analysis.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/go.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/gnagel/go-tradier/go.yml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2022-0236 / GHSA-h86h-8ppg-mxmh","Warn: Project is vulnerable to: GO-2021-0238 / GHSA-83g2-8m93-v3w7","Warn: Project is vulnerable to: GO-2022-0288","Warn: Project is vulnerable to: GO-2022-0969 / GHSA-69cg-p879-7622","Warn: Project is vulnerable to: GO-2022-1144 / GHSA-xrjj-mj9h-534m","Warn: Project is vulnerable to: GO-2023-1571 / GHSA-vvpx-j8f3-3w6h","Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T03:20:52.014Z","repository_id":38358589,"created_at":"2025-08-19T03:20:52.014Z","updated_at":"2025-08-19T03:20:52.014Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28748770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T07:58:02.558Z","status":"ssl_error","status_checked_at":"2026-01-25T07:57:57.153Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","cli","options-trading","stock","tradier","tradier-api","tradier-client"],"created_at":"2026-01-25T08:16:17.596Z","updated_at":"2026-01-25T08:16:18.758Z","avatar_url":"https://github.com/gnagel.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-tradier\nA Go library for accessing the Tradier Developer API.\n\n[![GoDoc](https://godoc.org/github.com/gnagel/go-tradier?status.svg)](http://godoc.org/github.com/gnagel/go-tradier)\n[![Build Status](https://travis-ci.org/timpalpant/go-tradier.svg?branch=master)](https://travis-ci.org/timpalpant/go-tradier)\n[![Coverage Status](https://coveralls.io/repos/timpalpant/go-tradier/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/timpalpant/go-tradier?branch=master)\n\ngo-tradier is a library to access the [Tradier Developer API](https://developer.tradier.com/documentation) from [Go](http://www.golang.org).\nIt provides a thin wrapper for working with the JSON REST endpoints.\n\n[Tradier](https://tradier.com) is the first Brokerage API company, powering the world's leading\ntrading, investing and digital advisor platforms. Tradier is not affiliated\nand does not endorse or recommend this library.\n\n## Usage\n\n### tcli\n\nThe `tcli` tool is a small command-line interface for making requests.\n\n```shell\n$ go install github.com/gnagel/go-tradier/tcli\n$ tcli -tradier.account XXXXX -tradier.apikey XXXXX -command positions\n```\n\n### Fetch real-time top-of-book quotes\n\n```Go\npackage main\n\nimport (\n  \"fmt\"\n\n  \"github.com/gnagel/go-tradier\"\n)\n\nfunc main() {\n  params := tradier.DefaultParams(\"your-api-key-here\")\n  client := tradier.NewClient(params)\n\n  quotes, err := client.GetQuotes([]string{\"AAPL\", \"SPY\"})\n  if err != nil {\n    panic(err)\n  }\n\n  for _, quote := range quotes {\n    fmt.Printf(\"%v: bid $%.02f (%v shares), ask $%.02f (%v shares)\\n\",\n      quote.Symbol, quote.Bid, quote.BidSize, quote.Ask, quote.AskSize)\n  }\n}\n```\n\n### Stream real-time top-of-book trades and quotes (L1 TAQ) data.\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/gnagel/go-tradier\"\n)\n\nfunc main() {\n\tparams := tradier.DefaultParams(\"your-api-key-here\")\n\tclient := tradier.NewClient(params)\n\n\teventsReader, err := client.StreamMarketEvents(\n\t\t[]string{\"AAPL\", \"SPY\"},\n\t\t[]tradier.Filter{tradier.FilterQuote, tradier.FilterTrade})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\teventsCh := make(chan *tradier.StreamEvent)\n\teventStream := tradier.NewMarketEventStream(eventsReader, eventsCh)\n\tdefer eventStream.Stop()\n\n\tdemuxer := tradier.StreamDemuxer{\n\t\tQuotes: func(quote *tradier.QuoteEvent) {\n\t\t\tfmt.Printf(\"QUOTE %v: bid $%.02f (%v shares), ask $%.02f (%v shares)\\n\",\n\t\t\t\tquote.Symbol, quote.Bid, quote.BidSize, quote.Ask, quote.AskSize)\n\t\t},\n\t\tTrades: func(trade *tradier.TradeEvent) {\n\t\t\tfmt.Printf(\"TRADE %v: $%.02f (%v shares) at %v\\n\",\n\t\t\t\ttrade.Symbol, trade.Price, trade.Size, trade.DateMs)\n\t\t},\n\t}\n\n\tdemuxer.HandleChan(eventsCh)\n}\n```\n\n### Place and then cancel an order for SPY.\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"time\"\n\n\t\"github.com/gnagel/go-tradier\"\n)\n\nfunc main() {\n\tparams := tradier.DefaultParams(\"your-api-key-here\")\n\tclient := tradier.NewClient(params)\n\tclient.SelectAccount(\"your-account-id-here\")\n\n\t// Place a limit order for 1 share of SPY at $1.00.\n\torderId, err := client.PlaceOrder(tradier.Order{\n\t\tClass:    tradier.Equity,\n\t\tType:     tradier.LimitOrder,\n\t\tSymbol:   \"SPY\",\n\t\tSide:     tradier.Buy,\n\t\tQuantity: 1,\n\t\tPrice:    1.00,\n\t\tDuration: tradier.Day,\n\t})\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Placed order: %v\\n\", orderId)\n\n\ttime.Sleep(2 * time.Second)\n\torder, err := client.GetOrderStatus(orderId)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tfmt.Printf(\"Order status: %v\\n\", order.Status)\n\n\t// Cancel the order.\n\tfmt.Printf(\"Canceling order: %v\\n\", orderId)\n\tif err := client.CancelOrder(orderId); err != nil {\n\t\tpanic(err)\n\t}\n}\n```\n\n## Contributing\n\nPull requests and issues are welcomed!\n\n## License\n\ngo-tradier is released under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl-3.0.en.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnagel%2Fgo-tradier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgnagel%2Fgo-tradier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgnagel%2Fgo-tradier/lists"}