Skip to content

Commit

Permalink
Updated to coinbase pro endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Reichenberger committed Jul 3, 2018
1 parent 9f655a0 commit 23d61fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion client.go
Expand Up @@ -22,7 +22,7 @@ type Client struct {

func NewClient(secret, key, passphrase string) *Client {
client := Client{
BaseURL: "https://api.gdax.com",
BaseURL: "https://api.pro.coinbase.com",
Secret: secret,
Key: key,
Passphrase: passphrase,
Expand Down
4 changes: 2 additions & 2 deletions test_helper.go
Expand Up @@ -17,7 +17,7 @@ func NewTestClient() *Client {
passphrase := os.Getenv("TEST_COINBASE_PASSPHRASE")

client := NewClient(secret, key, passphrase)
client.BaseURL = "https://api-public.sandbox.gdax.com"
client.BaseURL = "https://api-public.sandbox.pro.coinbase.com"
client.HttpClient = &http.Client{
Timeout: 15 * time.Second,
}
Expand All @@ -28,7 +28,7 @@ func NewTestClient() *Client {

func NewTestWebsocketClient() (*ws.Conn, error) {
var wsDialer ws.Dialer
wsConn, _, err := wsDialer.Dial("wss://ws-feed-public.sandbox.gdax.com", nil)
wsConn, _, err := wsDialer.Dial("wss://ws-feed-public.sandbox.pro.coinbase.com", nil)

return wsConn, err
}
Expand Down

0 comments on commit 23d61fa

Please sign in to comment.