Questions tagged [gdax-api]

Programming-related questions for using the API for https://www.gdax.com/. GDAX is a cryptocurrency exchange. Please direct support requests not directly related to programming to GDAX support.

Programming-related questions for using the API for GDAX.

GDAX is a cryptocurrency exchange. From their website:

GDAX offers institutions and professionals the ability to trade a variety of digital currencies like Bitcoin, Ethereum, and more on a regulated U.S. based exchange.

Links:

62 questions
2
votes
2 answers

"typescript unexpected token import" on GDAX-tt - tried to follow other fixes for other software to no avail

Obviously, if you search "typescript unexpected token import" you get zillions of results. They are all about some specific problem, not about how to tackle the problem in general. So, I am having problem learning from other answers to fix my…
user40176
  • 319
  • 2
  • 10
2
votes
1 answer

Websocket to useable data in Python - get price from GDAX websocket feed

I am trying to get the last price data to use which is easy enough using polling on /ticker endpoint i.e. rawticker = requests.get('https://api.gdax.com/products/BTC-EUR/ticker') json_data = json.loads(rawticker.text) price = json_data['price'] but…
2
votes
1 answer

Can I use OAuth2 on GDAX Api?

I would like to create an app that is connected to your GDAX account. I saw on GDAX docs that we can connect our account to the api https://docs.gdax.com/#authentication. But that is done manually, you have to go to your own GDAX account…
Charly berthet
  • 1,178
  • 5
  • 15
  • 31
2
votes
1 answer

GDAX API with R: invalid signature

I am desperately trying to get the GDAX API to work with R. But I always get the message "invalid" signature. When I use the public API, where no signature is required, I can use the APi without problems. Here is my…
Bombax
  • 23
  • 5
2
votes
2 answers

How to encode the digest output with base64 in python on GDAX

I am trying to use the api on the GDAX exchange. On their website, they give this code: # Requires python-requests. Install with pip: # # pip install requests # # or, with easy-install: # # easy_install requests import json, hmac, hashlib,…
2
votes
1 answer

GDAX API: getting status 'rejected' (reject_reason: post only) when buying

I have a Python script that calls the /orders method with the following parameters: { "size": "0.01", "price": "", "side": "buy", "product_id": "BTC-USD", "type": "limit", "post_only": true } Some times it works,…
Neurus
  • 657
  • 4
  • 27
1
vote
1 answer

Coinbase Pro post request - Malformed JSON

I am currently working on a piece of software that automates trading with Coinbase Pro. I am using the request library and have code that works for "GET" requests but fails for "POST"s. I was wondering if someone could help me understand what is…
μMμ
  • 21
  • 3
1
vote
1 answer

Gdax api returning invalid signature on POST requests

Im trying to integrate with GDAX-API and i've successfully managed to place GET calls and receive an answer, however when i'm trying to make a POST call i get the following answer {"message":"invalid signature"} I've seen something here:…
naoru
  • 2,149
  • 5
  • 34
  • 58
1
vote
0 answers

php GDAX api Client: invalid signature {"message":"invalid signature"}

I've been struggling with getting the private GDAX API to work. When I execute the following script I expect some JSON like: { "trade_id": 74, "product_id": "BTC-USD", "price": "10.00", "size": "0.01", "order_id":…
1
vote
1 answer

Gdax sandbox Websocket API not returning correct prices

I am currently using gdax api python example as found here: https://github.com/danpaquin/gdax-python for learning purposes using the gdax sandbox API. I am trying to get real time trade prices from the sandbox through…
jimbbq
  • 11
  • 1
1
vote
2 answers

Using pandas in python I am trying to group data from price ranges

Here is the code I am running, It creates a bar plot but i would like to group together values within $5 of each other for each bar in the graph. The bar graph currently shows all 50 values as individual bars and makes the data nearly unreadable. Is…
1
vote
1 answer

How to correctly sign GDAX request in Clojure

I have been struggling with signing requests for private GDAX endpoints for a while. Everything I have tried results in a 400 response with a message of "invalid signature." I have read their documentation on the matter several times, which can be…
Brandon
  • 91
  • 1
  • 6
1
vote
2 answers

GDAX API Bad Request 400

I am having trouble signing the message for GDAX API. GDAX API documentation states that status 400 ~ "Bad Request – Invalid request format". Can you please tell me what I need to change? Thanks! protected Void doInBackground(String... params) { …
someone
  • 427
  • 2
  • 11
1
vote
2 answers

GDAX Websocket API - Level 2 timestamp accuracy

I'm currently using the level2 orderbook channel via the GDAX WebSocket API. Quite recently a "time" field started appearing on the l2update JSON messages and this doesn't appear to be documented on the API reference pages. Some questions: What…
1
vote
2 answers

GDAX api, create candle graph

I would like to create a candle graph using GDAX api. I am currently using the HTTP request for historical data https://docs.gdax.com/#get-historic-rates bug this is marked that I should use websocket API. Unfortunately I don't know how to handle…
Charly berthet
  • 1,178
  • 5
  • 15
  • 31