Questions tagged [coinbase-api]

Questions about the Coinbase API for buying, selling, storing, and transferring digital currency. Please do not ask general support questions here.

Coinbase is an online platform for buying, selling, transferring, and storing digital currency.

Links:

663 questions
4
votes
3 answers

How do I interact with Coinbase's API? Why does it always fail?

Accessing the Coinbase API used to be really simple: all you needed was an API key. Now you need something called a "nonce" and a "signature". I pass my new API "Secret", the nonce, and the Key in my request, but it returns an "invalid_key" error.…
RobertAKARobin
  • 3,933
  • 3
  • 24
  • 46
3
votes
2 answers

BTC Price Across Different Crypto Exchanges

I am trying to use CCXT to get the BTC bid and ask price across different exchanges, but running the code sequencially cannot get the price of a given moment correctly. Is there any way to execute them at the same time and return the correct…
3
votes
0 answers

Coinbase Oauth Redirect URL Issue with Expo App

I am trying to integrate Coinbase oauth2 to my react-native expo app. I have followed the below guide: https://docs.expo.dev/guides/authentication/#coinbase Below is my app.json { "expo": { "name": "My App", "slug": "my-app", …
Pankti Shah
  • 337
  • 6
  • 20
3
votes
1 answer

How does the Python Coinbase Pro API calculate executed value of a limit order?

I'm using the Coinbase Pro API Python SDK. I place a limit buy order like so ... import cbpro ... self._get_auth_client(account).place_limit_order(product_id=formatted_name, side='buy', …
Dave
  • 15,639
  • 133
  • 442
  • 830
3
votes
2 answers

How to connect to either Metamask or Coinbase wallet?

How do you specify connection with Coinbase Wallet and Metamask separately? Right now when using window.ethereum.enable() both the Metamask and Coinbase Wallet extensions popup. I would like two separate buttons, one for Metamask and the other for…
cormacncheese
  • 1,251
  • 1
  • 13
  • 27
3
votes
0 answers

{“message”:“invalid signature”} Coinbase Pro API

I've been tearing my hair out for a while now. What I have so far is cribbed from the Coinbase Pro API documentation. The Coinbase Pro API requires four different headers, one of them being a signature that's encrypted. I'm having issues forming a…
3
votes
1 answer

Coinbase Pro Fees and Total

I have wondered on how the Coinbase get / calculate its Fees and total upon inputting a value in the Order (Market, Limit, Stop). Can anyone explain how to get the Fees and Total or maybe there's a coinbase api to be used in this one? It would…
anone
  • 75
  • 1
  • 6
3
votes
0 answers

Receiving "message":"CB-ACCESS-KEY header is required" when attempting to connect to coinbase pro api

I have been trying to mock up a cli script to connect to the coinbase pro api. I have been able to get it to work successfully using python but I am looking to have a cli-based solution. #!/bin/bash path="/accounts/" body="" function…
enigma
  • 31
  • 1
3
votes
1 answer

Keep getting Timestamp error on Coinbase API Call

I'm trying to connect my Google Sheet to Coinbase API using apps script. When I try to use the authentication with my keys, I keep getting the same error: {"errors":[{"id":"authentication_error","message":"invalid timestamp"}]} (Code 401). I try to…
rmachado
  • 31
  • 2
3
votes
1 answer

Laravel Coinbase API Http exception error on live server but works on Xampp

Coinbase API on Laravel generates the following error log. Somebody help me to solve this.This error only occurs in the live environment, but within xampp its working well. Immediate below is the error log. What could be the issue? …
3
votes
2 answers

Problems generating valid HMAC signature with Coinbase API (Elixir)

Problem Statement: When authenticating with the Coinbase API I receive this response: body: "{\"errors\":[{\"id\":\"authentication_error\",\"message\":\"invalid signature\"}]}" Source as it currently stands: (Feedback on general Elixir style also…
kingsfoil
  • 3,795
  • 7
  • 32
  • 56
3
votes
2 answers

How to parse all ticker symbols from Coinbase API in one single GET request

I am trying to get all tickers (currency pairs) with their corresponding Bid and Ask price data in one single JSON payload response from the Coinbase REST API. If I have GET request for each individual ticker symbol, I will have to avoid getting a…
user7340747
3
votes
1 answer

coinbase pro API - Can I update open limit orders?

not sure this is possible but I'd like a way to update my limit orders that are outstanding in the order book. Is there a way i can reference the order id and modify the price? Otherwise, i find myself canceling the open order, waiting for the…
Jamie Lunn
  • 31
  • 1
3
votes
1 answer

Python web socket doesn't return suggested data from coinbase pro api

I am trying to obtain the ticker channel data via a websocket. I am getting a response with some data, however the data I am getting is not matching the what it is suppose to show. I have tried doing what the API specifies. The API…
Tyler
  • 418
  • 5
  • 18
3
votes
3 answers

Coinbase Pro API - invalid signature

This is edited from original post: From the docs: Signing a Message The CB-ACCESS-SIGN header is generated by creating a sha256 HMAC using the base64-decoded secret key on the prehash string timestamp + method + requestPath + body (where +…
Kriil
  • 560
  • 7
  • 15