public class CoinbaseBuilder extends Object
| Constructor and Description |
|---|
CoinbaseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Coinbase |
build()
Build a new Coinbase client object with the specified options
|
CoinbaseBuilder |
withAccessToken(String access_token)
Specify an access token to be used for authenticated requests
Coinbase client objects built using an access token are thread-safe
|
CoinbaseBuilder |
withAccountId(String acct_id)
Specify the account id to be used for account-specific requests
|
CoinbaseBuilder |
withApiKey(String api_key,
String api_secret)
Specify the HMAC api key and secret to be used for authenticated requests
Having more than one client with the same api/secret globally is unsupported
and will result in sporadic auth errors as the nonce is calculated from the system time.
|
public Coinbase build()
public CoinbaseBuilder withAccessToken(String access_token)
access_token - the OAuth access tokenpublic CoinbaseBuilder withApiKey(String api_key, String api_secret)
api_key - the HMAC API Keyapi_secret - the HMAC API Secretpublic CoinbaseBuilder withAccountId(String acct_id)
acct_id - the account idCopyright © 2014. All rights reserved.