coinbase-api

UNABLE_TO_GET_ISSUER_CERT_LOCALLY error when calling the Coinbase NODEJS API

半城伤御伤魂 提交于 2020-04-14 07:48:10
问题 Since yesterday 5:30 PM (Paris time), I get a UNABLE_TO_GET_ISSUER_CERT_LOCALLY when trying to list my accounts. I'm using the nodejs library, and it was working fine since several months. The exact error from the client.getAccounts is : { Error: unable to get local issuer certificate at TLSSocket.onConnectSecure (_tls_wrap.js:1142:34) at TLSSocket.emit (events.js:188:13) at TLSSocket._finishInit (_tls_wrap.js:631:8) code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY' } Edit: I've just tried the same

JavaScript AJAX to Coinbase API, getting “request timestamp expired” error using server time

萝らか妹 提交于 2019-12-23 05:06:10
问题 I've been working on some code that will call the List Accounts call from the Coinbase API. I am using the API Key to authenticate and CryptoJSv3.1.2 to handle the encryption. I believe that I am correctly signing my request but I haven't done a lot of encryption in JavaScript before so please double check my work. The issue that I am having is that my request for accounts is being rejected and the message I'm getting back from Coinbase is {"errors":[{"id":"authentication_error","message":

Coinbase transfer between accounts returns “Not found”

笑着哭i 提交于 2019-12-23 02:31:43
问题 I'm trying to transfer BTC and BCH between accounts. Looking through the documentation I have found the following: https://developers.coinbase.com/api/v2#transfer-money-between-accounts First off I believe there is an error in their example, as the "currency" property is mandatory, it gives an error when not providing it. But after adding the currency, every request I make returns with "Not found". I'm using the node client, but I think the problem is higher up. This is the request I'm doing:

How many Bitcoin addresses can I generate through Coinbase API?

南楼画角 提交于 2019-12-22 12:38:12
问题 I use Coinbase API to generate Bitcoin addresses. What are the limits of this API? How many Bitcoin addresses can I generate? 回答1: The API says that: The Coinbase API is rate limited to prevent abuse that would degrade our ability to maintain consistent API performance for all users. By default, each API key or app is rate limited at 10,000 requests per hour. If your requests are being rate limited, HTTP response code 429 will be returned with an rate_limit_exceeded error. So I would reason

How to get real time bid / ask / price from GDAX websocket feed

二次信任 提交于 2019-12-20 09:37:11
问题 The API doc discourages polling on /ticker endpoint, and recommend to use the websocket stream to listen for match message But the match response only provide a price and a side (sell / buy) How can I recreate the ticker data (price, ask and bid) from the websocket feed ? { “price”: “333.99”, “size”: “0.193”, “bid”: “333.98”, “ask”: “333.99”, “volume”: “5957.11914015”, “time”: “2015-11-14T20:46:03.511254Z” } The ticker endpoint and the websocket feed both return a 'price', but I guess that it

CoinBase API - et_exchange_rates and get_currencies failure.

£可爱£侵袭症+ 提交于 2019-12-13 04:07:56
问题 Hi when writing a simple python script to test Coinbase Features as per documentation I am getting the following results: get_exchange_rates(currency='GBP') I encounter a similar problem when I try to get the price of a given currency that is not BTC-USD: price = client.get_buy_price(currency_pair = 'BTC-GBP') print(price) RESULT: { "amount": "13788.39", "base": "BTC", "currency": "USD" } Is this a problem with the API, or am I doing this incorrectly? **Additional info:**Using API keys with

Get Coinbase wallet list with RestSharp library

纵饮孤独 提交于 2019-12-13 03:30:25
问题 I need to retrieve the list of wallets of a Coinbase account. In order to to it, I need to use RestSharp (no third library allowed), using the API private keys. I've tried to retrieve them but when I run the code, as response I obtain a invalid response, with an error message that says "The URI prefix is not recognized." How can I retrieve the list of wallets? This is my code: using RestSharp; using System; using System.IO; using System.Linq; using System.Security.Cryptography; using System

Api key authentication for coinbase

北慕城南 提交于 2019-12-12 06:39:29
问题 I'm trying to write a request for API coinbase.com, but I can not correctly generate a signature. I've been trying to find my mistake for 2 days, but I can not. I analyzed the code for other languages on the page: https://developers.coinbase.com/docs/wallet/api-key-autumnicathion but I do not see any differences in implementation. Help me please. <?php $g_coinbase_key = 'KcxisxqmWRVgtwsj'; $g_coinbase_secret = 'isOLGBLaEkCy3ROQMvmjonGmXK0KRmUS'; $time = time(); $method = "GET"; $path = '/v2

Why do I still get error code 400 from this API request to Coinbase Pro?

天涯浪子 提交于 2019-12-11 17:11:37
问题 I've followed the instructions on the Coinbase Pro developers page for authentication with API Key and no matter what I try I always get error code 400 using CryptoJS and React / React Native. https://docs.pro.coinbase.com/#api-key-permissions import CryptoJS from 'crypto-js'; import axios from 'axios'; import { Buffer } from 'buffer'; const key = '<removed'; const secret = '<removed>'; const passphrase = '<removed>'; const method = 'GET'; const uri = 'https://api.pro.coinbase.com/accounts';

R httr GET request 400 error GDAX

柔情痞子 提交于 2019-12-11 16:10:48
问题 I am trying to hit GDAX using R and getting the following issue. How do I solve for the issue using httr . Response [https://api-public.sandbox.gdax.com/accounts] Date: 2017-12-07 20:30 Status: 400 Content-Type: application/json; charset=utf-8 Size: 53 B Below is my code. Please note that the issue exists only with httr package and not with RCurl (code provided in appendix) library(digest) library(httr) library(RCurl) # for base64Decode url <- "https://api-public.sandbox.gdax.com/accounts"