<p>You don't need socket.io. You just need to make HTTP requests for the REST API, and use a websocket client to connect to their websocket server (if indeed you need to use the websocket API).</p>

<p>Everything should be very close to what you see in the GDAX node.js API client (not an API, btw, but a client of GDAX's API). The only difference is that you use browser based implementations for HTTP and Websocket requests/connections (e.g. <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API</a>).</p>

CC BY-SA 3.0
2017-08-28T22:14:48.147Z
Thanks, I'm not experienced with js. I feel ther should be a c library, I would even write one but then id have to do openssl which is a pain. But I figured it out. For rest i use httpgetrequest( url, ...) and for websocket I use the new websocket.
marshal craft
CC BY-SA 3.0
2017-08-28T22:16:16.197Z
Not sure what crypto library to use for authenticated request were I have to sha sign the api keys.
marshal craft
CC BY-SA 3.0
2017-08-27T14:09:07.003Z
2017-08-27T14:09:07.003Z
Steven Kampen
<p>Gdax has a restful api. It has developed a node.js api for it which I have worked with and works well. However I don't intend to develop a server. I would like to write a similar api for client side. </p>

<p>Can anyone point me in a direction to do this? I suspect I can use socket.io to do this, but don't really know? I will need to alter the http headers on get requests and what not as well as send json in body I think. Can any one provide information on this, perhaps on existing client api's, or information about restful requests, socket.io, or easy way to cover more to client js. </p>

<p>I know this is kind of open ended, vaguely related to bitcoin in it's core problem, and vague. I have asked similar on stack exchange but said is off topic?</p>

<coinbase.com>
gdax restful api
marshal craft
# gdax restful api

(Asked by: username_0 on 2017-08-20)

Gdax has a restful api. It has developed a node.js api for it which I have worked with and works well. However I don't intend to develop a server. I would like to write a similar api for client side.

Can anyone point me in a direction to do this? I suspect I can use socket.io to do this, but don't really know? I will need to alter the http headers on get requests and what not as well as send json in body I think. Can any one provide information on this, perhaps on existing client api's, or information about restful requests, socket.io, or easy way to cover more to client js.

I know this is kind of open ended, vaguely related to bitcoin in it's core problem, and vague. I have asked similar on stack exchange but said is off topic?

**Tags:** coinbase.com


---

## 1 answers

### Answer by username_1 on 2017-08-27. Score: 1 | Accepted answer

You don't need socket.io. You just need to make HTTP requests for the REST API, and use a websocket client to connect to their websocket server (if indeed you need to use the websocket API).

Everything should be very close to what you see in the GDAX node.js API client (not an API, btw, but a client of GDAX's API). The only difference is that you use browser based implementations for HTTP and Websocket requests/connections (e.g. <https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API>).

> **Comments:**
> **username_0**: Thanks, I'm not experienced with js. I feel ther should be a c library, I would even write one but then id have to do openssl which is a pain. But I figured it out. For rest i use httpgetrequest( url, ...) and for websocket I use the new websocket.  
> **username_0**: Not sure what crypto library to use for authenticated request were I have to sha sign the api keys.  

---

