{"id":41211313,"url":"https://github.com/hellovoid/gdax","last_synced_at":"2026-01-22T23:00:05.445Z","repository":{"id":56219764,"uuid":"109690657","full_name":"hellovoid/gdax","owner":"hellovoid","description":"GDAX PHP API Client Library","archived":false,"fork":false,"pushed_at":"2020-11-19T21:02:29.000Z","size":15,"stargazers_count":16,"open_issues_count":1,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-29T09:33:53.688Z","etag":null,"topics":["coinbase","coinbase-pro","gdax","gdax-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/hellovoid.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":"2017-11-06T12:10:37.000Z","updated_at":"2024-12-03T14:48:47.000Z","dependencies_parsed_at":"2022-08-15T14:50:55.819Z","dependency_job_id":null,"html_url":"https://github.com/hellovoid/gdax","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hellovoid/gdax","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellovoid%2Fgdax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellovoid%2Fgdax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellovoid%2Fgdax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellovoid%2Fgdax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hellovoid","download_url":"https://codeload.github.com/hellovoid/gdax/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hellovoid%2Fgdax/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28673370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"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":["coinbase","coinbase-pro","gdax","gdax-api"],"created_at":"2026-01-22T23:00:04.404Z","updated_at":"2026-01-22T23:00:05.428Z","avatar_url":"https://github.com/hellovoid.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Latest Stable Version](https://poser.pugx.org/hellovoid/gdax/v/stable)](https://packagist.org/packages/hellovoid/gdax)\n[![Total Downloads](https://poser.pugx.org/hellovoid/gdax/downloads)](https://packagist.org/packages/hellovoid/gdax)\n[![License](https://poser.pugx.org/hellovoid/gdax/license)](https://packagist.org/packages/hellovoid/gdax)\n# GDAX PHP API Client Library\n\nThis is the unofficial client library for the [GDAX API][1].\nInspired by [Coinbase PHP Library][2].\n\n## Installation\n\nInstall the library using Composer. Please read the [Composer Documentation](https://getcomposer.org/doc/01-basic-usage.md) if you are unfamiliar with Composer or dependency managers in general.\n\n```\ncomposer require hellovoid/gdax\n```\n## Authentication\n\nUse an API key, secret and passphrase to access your own GDAX account.\n\n```php\nuse Hellovoid\\Gdax\\Configuration;\nuse Hellovoid\\Gdax\\Client;\n\n$configuration = Configuration::apiKey($apiKey, $apiSecret, $apiPassphrase);\n$client = Client::create($configuration);\n```\n## Response\n\nEvery successful method request returns decoded json array.\n\n## Pagination [#ref](https://docs.gdax.com/#pagination)\n\nYour requests should use these cursor values when making requests for pages after the initial request.\n\n| Parameter  | Description |\n| ------------- | ------------- |\n| $before  | Request page before (newer) this pagination id. (default null)  |\n| $after  | Request page after (older) this pagination id. (default null) |\n| $limit  | Number of results per request. Maximum 100. (default 100) |\n\n```php\nuse \\Hellovoid\\Gdax\\Pagination;\n\n$pagination = Pagination::create($before, null, $limit);\n\n$client-\u003esetPagination($pagination);\n\n$pagination-\u003esetEndingBefore(null);\n$pagination-\u003esetStartingAfter($after);\n```\n\n## Accounts [#ref](https://docs.gdax.com/#accounts)\n### List Accounts\n```php\n$client-\u003egetAccounts();\n```\n### Account details\n```php\n$client-\u003egetAccount($accountId);\n```\n### Account history\n```php\n$client-\u003egetAccountHistory($accountId);\n```\n### Account holds\n```php\n$client-\u003egetAccountHolds($accountId);\n```\n## Orders [#ref](https://docs.gdax.com/#orders)\n### Place new order\n```php\n$order = $client-\u003eplaceOrder([\n    'size'       =\u003e 0.1,\n    'price'      =\u003e 0.1,\n    'side'       =\u003e 'buy',\n    'product_id' =\u003e 'BTC-USD'\n]);\n```\n### Cancel an order\n```php\ntry {\n    $response = $client-\u003eorderCancel($orderId);\n} catch (HttpException $e) { // Order could not be canceled\n    $e-\u003egetMessage();\n}\n```\n### Cancel all orders\n```php\n$response = $client-\u003eordersCancel();\n```\nCancel all orders for a specific product:\n```php\n$response = $client-\u003eordersCancel([\n    'product_id' =\u003e $productId\n]);\n```\n### List orders\n```php\n$response = $client-\u003egetOrders();\n```\n### Get order details\n```php\n$response = $client-\u003egetOrder($orderId);\n```\n\n## Fills [#ref](https://docs.gdax.com/#fills)\n### List fills\n```php\n$response = $client-\u003egetFills([\n    'order_id'   =\u003e 'all',\n    'product_id' =\u003e 'all'\n]);\n```\n## Funding [#ref](https://docs.gdax.com/#funding)\n### List fundings\nGet fundings with status \"settled\".\n```php\n$response = $client-\u003egetFundings([\n    'status' =\u003e 'settled', // outstanding, settled, or rejected\n]);\n```\n### Repay\n```php\n$response = $client-\u003efundingRepay([\n    'amount' =\u003e 1.00,\n    'currency' =\u003e 'EUR',\n]);\n```\n\n## Margin Transfer [#ref](https://docs.gdax.com/#margin-transfer)\n```php\n$response = $client-\u003emarginTransfer([\n    'margin_profile_id' =\u003e '45fa9e3b-00ba-4631-b907-8a98cbdf21be',\n    'type'              =\u003e 'deposit',\n    'currency'          =\u003e 'USD',\n    'amount'            =\u003e 2,\n]);\n```\n\n## Position [#ref](https://docs.gdax.com/#position)\n### Get overview of your profile\n```php\n$response = $client-\u003eposition();\n```\n### Close\n```php\n$response = $client-\u003epositionClose([\n    'repay_only' =\u003e true\n]);\n```\n\n## Deposits [#ref](https://docs.gdax.com/#payment-method)\n### Payment method\n```php\n$response = $client-\u003edepositPaymentMethod([\n    'amount'            =\u003e 2.00,\n    'currency'          =\u003e 'USD',\n    'payment_method_id' =\u003e 'bc677162-d934-5f1a-968c-a496b1c1270b'\n]);\n```\n### Coinbase\nDeposit funds from a coinbase account.\n```php\n$response = $client-\u003edepositCoinbase([\n    'amount'              =\u003e 2.00,\n    'currency'            =\u003e 'BTC',\n    'coinbase_account_id' =\u003e 'c13cd0fc-72ca-55e9-843b-b84ef628c198'\n]);\n```\n\n## Withdrawals [#ref](https://docs.gdax.com/#payment-method53)\n### Payment method\n```php\n$response = $client-\u003ewithdrawalPaymentMethod([\n    'amount'            =\u003e 2.00,\n    'currency'          =\u003e 'USD',\n    'payment_method_id' =\u003e 'bc677162-d934-5f1a-968c-a496b1c1270b'\n]);\n```\n### Coinbase\nWithdrawal funds to a coinbase account.\n```php\n$response = $client-\u003ewithdrawalCoinbase([\n    'amount'              =\u003e 2.00,\n    'currency'            =\u003e 'BTC',\n    'coinbase_account_id' =\u003e 'c13cd0fc-72ca-55e9-843b-b84ef628c198'\n]);\n```\n### Crypto\nWithdrawal funds to a crypto address.\n```php\n$response = $client-\u003ewithdrawalCoinbase([\n    'amount'         =\u003e 0.01,\n    'currency'       =\u003e 'BTC',\n    'crypto_address' =\u003e '0x5ad5769cd04681FeD900BCE3DDc877B50E83d469'\n]);\n```\n\n## Payment methods [#ref](https://docs.gdax.com/#list-payment-methods)\nGet a list of your payment methods.\n```php\n$response = $client-\u003egetPaymentMethods();\n```\n\n## Coinbase accounts [#ref](https://docs.gdax.com/#list-accounts59)\nGet a list of your coinbase accounts.\n```php\n$response = $client-\u003egetCoinbaseAccounts();\n```\n\n## Reports [#ref](https://docs.gdax.com/#create-a-new-report)\n### Create a new report\n```php\n$response = $client-\u003ecreateReport([\n    'type' =\u003e 'fills',\n    'start_date' =\u003e '2014-11-01T00:00:00.000Z',\n    'end_date' =\u003e '2014-11-30T23:59:59.000Z'\n]);\n```\n### Get report status\n```php\n$response = $client-\u003egetReportStatus($reportId);\n```\n\n## Products [#ref](https://docs.gdax.com/#products)\n### Get products\n```php\n$response = $client-\u003egetProducts();\n```\n### Get Product Order Book\n```php\n$response = $client-\u003egetProductOrderBook($productId);\n```\n### Get Product Ticker\n```php\n$response = $client-\u003egetProductTicker($productId);\n```\n### Get Product Trades\n```php\n$response = $client-\u003egetProductTrades($productId);\n```\n### Get Historic Rates\n```php\n$response = $client-\u003egetProductHistoricRates($productId);\n```\n### Get 24hr Stats\n```php\n$response = $client-\u003egetProductLast24HrStats($productId);\n```\n\n## Currencies [#ref](https://docs.gdax.com/#currencies)\n```php\n$response = $client-\u003egetCurrencies();\n```\n### Get Time [#ref](https://docs.gdax.com/#time)\n```php\n$response = $client-\u003egetTime();\n```\n[1]: https://docs.gdax.com\n[2]: https://github.com/coinbase/coinbase-php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellovoid%2Fgdax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhellovoid%2Fgdax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhellovoid%2Fgdax/lists"}