FAQ Database Discussion Community


PHP authentication to Coinbase Exchange private API

coinbase,coinbase-php
I'm trying to get authenticated to the Coinbase Exchange private API to get balances and place/cancel orders. Below is a demo version of the code that I'm trying to use. I have followed the docs but I keep getting the following error: {"message":"invalid signature"} Can someone please tell me what...

How to setup coinbase wallets for users of my app?

bitcoin,coinbase
I would like to have users sign up for my app with email address, and be given a coinbase wallet with as little friction as possible. I would then like to send them some coins to get them started. Is this even possible?...

Receiving data from Coinbase Exchange API Websocket

python,websocket,coinbase
I'm trying to build an orderbook snapshot using the Coinbase Exchange API, specifically with the Websocket feed. https://docs.exchange.coinbase.com/?python#websocket-feed I believe I'm successful in making the connection and sending the initial subscribe message. After the initial subscribe message, I am expecting onMessage events. But no such messages appear to arrive. Eventually...

{“error”:“Not Found”} when I make a call for my Coinbase address

bitcoin,coinbase
I'm trying to get information about my Coinbase wallet address (copied from the "My Wallet Bitcoin Address" section of my Coinbase profile) through the Toshi API through the following rest call: https://bitcoin.toshi.io/api/v0/addresses/{my_address} But I'm getting the following error {"error":"Not Found"} Can anyone explain why this is?...

Python Client - Always Receives 401 error

python,coinbase
I am trying to use the Python library for Coinbase's API, but I receive a 401 error on every request. I tried with a Sandbox account, with a new API key (with every permission) but I get a 401 on every single authenticated request. Here is my code: from coinbase.client...

Coinbase Exchange API with PowerShell

powershell,coinbase
I feel like I'm really close to being able to use the Coinbase Exchange API with PowerShell, but I'm having trouble creating a valid signature. Requests that don't require a signature, like /time and /products, work great. Here's what I have so far. $api = @{ "endpoint" = 'https://api.exchange.coinbase.com' "url"...

Coinbase Oauth2 - token request URL - “404 Not found”

url,oauth-2.0,coinbase
First steps of the Coinbase Oauth Authorization seem to work fine. I request the customer code via the following URL: "https://www.coinbase.com/oauth/authorize?response_type=code&client_id=XXXXXXXXXXXXXXXXXXXX&redirect_uri=urn:ietf:wg:oauth:2.0:oob&scope=user+balance" I get back the code via URL.. Then trying to request the token with given CODE and CLIENT SECRET and CLIENT ID:...

CoinBase “invalid signature” PHP Buy API Request

coinbase,coinbase-php
I have looked over the code many times but whenever I send request to API it returns "message":"invalid signature" I am thinking it has to do with hashing the body, possibly. I'm new to PHP and its my first project. :) Anyone see an error? Thanks. <?php $arr = array('size'...

API : Ticker info

coinbase
The Coinbase Exchange API: ticker GET /products/<product-id>/ticker only provides the last close. In order to place a market order, I need the best ask and bid (based on the side) price. Almost all exchanges provide this with their ticker API, so I am little surprised coinbase doesn't. What am I...