{"id":21424733,"url":"https://github.com/arempe93/gdax-ruby","last_synced_at":"2025-07-14T08:31:55.791Z","repository":{"id":82777451,"uuid":"112670821","full_name":"arempe93/gdax-ruby","owner":"arempe93","description":"An object-oriented Ruby client for the GDAX REST API","archived":false,"fork":false,"pushed_at":"2018-01-02T16:21:54.000Z","size":33,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T05:15:13.626Z","etag":null,"topics":["bitcoin","coinbase","gdax","rubygem"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/arempe93.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-11-30T23:09:20.000Z","updated_at":"2018-01-16T19:11:38.000Z","dependencies_parsed_at":"2023-07-04T08:32:55.677Z","dependency_job_id":null,"html_url":"https://github.com/arempe93/gdax-ruby","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/arempe93/gdax-ruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arempe93%2Fgdax-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arempe93%2Fgdax-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arempe93%2Fgdax-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arempe93%2Fgdax-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arempe93","download_url":"https://codeload.github.com/arempe93/gdax-ruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arempe93%2Fgdax-ruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265262625,"owners_count":23736433,"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":["bitcoin","coinbase","gdax","rubygem"],"created_at":"2024-11-22T21:24:09.026Z","updated_at":"2025-07-14T08:31:55.781Z","avatar_url":"https://github.com/arempe93.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"GDAX Ruby\n=========\n\nAn object-oriented client for the GDAX REST API. Heavily inspired by the [Stripe Ruby client](https://github.com/stripe/stripe-ruby)\n\n## Examples\n\n#### Place an order, then cancel it\n\n```ruby\norder = GDAX::Order.buy(product_id: 'BTC-USD', price: 100, size: 0.5)\n# =\u003e #\u003cGDAX::Order { id: 'cb6a1d6d-2c78-4da5-9961-14795d0d4379' ... }\u003e\n\norder.cancel\n# =\u003e #\u003cGDAX::Response { ... }\u003e\n```\n\n#### Get account history\n\n```ruby\naccount = GDAX::Account.list.first\n# =\u003e #\u003cGDAX::Account { ... }\u003e\n\naccount.history\n# =\u003e #\u003cGDAX::Collection(AccountHistory) [ ... ]\u003e\n\n# without fetching Account first\n\nGDAX::Account.new(id: '...').history\n# =\u003e #\u003cGDAX::Collection(AccountHistory) [ ... ]\u003e\n```\n\n#### Page through orders\n\n```ruby\norders = GDAX::Orders.list\n# =\u003e #\u003cGDAX::Collection(Order) [ ... ]\u003e\n\nnext_page = orders.next\n# =\u003e #\u003cGDAX::Collection(Order) [ ... ]\u003e\n```\n\n#### Make a withdrawal\n\n```ruby\nGDAX::Withdrawal.crypto(address: '...', currency: 'BTC', amount: 10)\n# =\u003e #\u003cGDAX::Response { ... }\u003e\n```\n\n## Conventions\n\n* Both objects and collections can be updated from the server by calling `reload`\n\n* Attributes can be accessed by key syntax (`[:id]`) or dot syntax (`.id`)\n\n## Configuration\n\n#### Required (for authenticated apis)\n\n```ruby\nGDAX.api_key # default: ENV['GDAX_API_KEY']\nGDAX.api_secret # default: ENV['GDAX_API_SECRET']\nGDAX.api_passphrase # default: ENV['GDAX_API_PASSPHRASE']\n```\n\n#### Optional\n\n```ruby\nGDAX.api_base # default: 'https://api.gdax.com'\nGDAX.use_server_time # default: false\n```\n\n## Handling Errors\n\nErrors from the GDAX API will be of type `GDAX::APIError`, and will contain `response`. Timeout and network issues will be of type `GDAX::ConnectionError`.\n\nAll handled errors are of class `GDAX::Error`\n\n### Documentation\n\nComing soon\n\n### Requirements\n\nRuby 2.1+\n\n### Installation\n\n```\nbundle install gdax\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farempe93%2Fgdax-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farempe93%2Fgdax-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farempe93%2Fgdax-ruby/lists"}