diff --git a/README.md b/README.md index 66136e52..97674ac7 100644 --- a/README.md +++ b/README.md @@ -426,6 +426,12 @@ const withdrawAddressParams = { authedClient.withdrawCrypto(withdrawAddressParams, callback); ``` +* [`getPaymentMethods`](https://docs.gdax.com/#payment-methods) + +```js +authedClient.getPaymentMethods(callback); +``` + * [`getTrailingVolume`](https://docs.gdax.com/#user-account) ```js diff --git a/lib/clients/authenticated.js b/lib/clients/authenticated.js index 6d370450..37ecf03b 100644 --- a/lib/clients/authenticated.js +++ b/lib/clients/authenticated.js @@ -259,6 +259,10 @@ class AuthenticatedClient extends PublicClient { return this.post(['withdrawals/crypto'], { body }, callback); } + getPaymentMethods(callback) { + return this.get(['payment-methods'], callback); + } + _requireParams(params, required) { for (let param of required) { if (params[param] === undefined) {