{"id":20714433,"url":"https://github.com/diegobernardes/ctrader","last_synced_at":"2025-04-23T08:49:30.864Z","repository":{"id":171104843,"uuid":"646419034","full_name":"diegobernardes/ctrader","owner":"diegobernardes","description":"Go SDK for cTrader Open API","archived":false,"fork":false,"pushed_at":"2025-01-09T00:27:14.000Z","size":296,"stargazers_count":12,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-29T23:11:59.219Z","etag":null,"topics":["ctrader","forex","trading"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diegobernardes.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-28T10:44:20.000Z","updated_at":"2025-02-11T17:03:08.000Z","dependencies_parsed_at":"2023-07-15T18:30:50.904Z","dependency_job_id":"f7b01edd-0997-449d-acc0-f06d59997848","html_url":"https://github.com/diegobernardes/ctrader","commit_stats":null,"previous_names":["diegobernardes/ctrader"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegobernardes%2Fctrader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegobernardes%2Fctrader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegobernardes%2Fctrader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diegobernardes%2Fctrader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diegobernardes","download_url":"https://codeload.github.com/diegobernardes/ctrader/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250402872,"owners_count":21424770,"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":["ctrader","forex","trading"],"created_at":"2024-11-17T02:31:51.150Z","updated_at":"2025-04-23T08:49:30.844Z","avatar_url":"https://github.com/diegobernardes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cTrader Go SDK\nThis repository contains a Go SDK to consume [cTrader OpenAPI](https://help.ctrader.com/open-api).\n\u003cimg src=\"docs/gopher.svg\" align=\"right\" height=\"204px\" width=\"200px\" /\u003e\n\n## Requirements\n- Go 1.22 or higher.\n- Earthly (optional).\n\n## Usage\nCheck the `_test.go` files.\n\n## Testing\n```shell\n# Set the following environment variables:\n# - CTRADER_CLIENT_ID\n# - CTRADER_SECRET\n# - CTRADER_ACCOUNT_ID\n# - CTRADER_TOKEN,\n\n# Execute the tests directly with Go:\ngo test -tags integration -race ./...\n\n# Or you can execute using Earthly:\nearthly --secret CTRADER_CLIENT_ID=\"$CTRADER_CLIENT_ID\" \\\n  --secret CTRADER_SECRET=\"$CTRADER_SECRET\" \\\n  --secret CTRADER_ACCOUNT_ID=\"$CTRADER_ACCOUNT_ID\" \\\n  --secret CTRADER_TOKEN=\"$CTRADER_TOKEN\" \\\n  +go-test\n```\n\n## FAQ\n### How to register an application?\nFollow [this](https://help.ctrader.com/open-api/creating-new-app/#register-your-application) instructions.\n\n## How to get an access ID and secret?\nThe easiest way is to use the\n[playground](https://help.ctrader.com/open-api/account-authentication/#using-the-playground).\n\n### How can I upgrade cTrader OpenAPI protobuf files?\n- Open the [Earthfile](https://github.com/diegobernardes/ctrader/blob/main/Earthfile.md) and edit the \n`+compile-proto` target.\n- Execute the target `earthly +compile-proto`.\n- Sync the dependencies `go mod tidy`.\n- Ensure the package still compiles `go build ./...`.\n- Open a pull request.\n\n## Documentation\n- [Protobuf](./docs/protobuf.md)\n- [Testing](./docs/testing.md)\n\n## Acknowledgments\n* [ty2/ctrader-go](https://github.com/ty2/ctrader-go)\n* [MariaLetta/free-gophers-pack](https://github.com/MariaLetta/free-gophers-pack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegobernardes%2Fctrader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiegobernardes%2Fctrader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiegobernardes%2Fctrader/lists"}