Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

How to pass options/parameters to API methods #51

Closed
jhanstra opened this issue May 28, 2017 · 3 comments · Fixed by #52
Closed

How to pass options/parameters to API methods #51

jhanstra opened this issue May 28, 2017 · 3 comments · Fixed by #52

Comments

@jhanstra
Copy link

This is possibly a dumb question but I don't understand how to pass options to the API methods. For example, in publicClient.getProduct24HrStats((err, res, data) => { }), where do I specify that I want the stats on Ethereum, not Bitcoin? Is this possible?

@awitherow
Copy link
Contributor

Apparently when you initialise the publicClient, you can pass in a productID you want to use there

https://github.com/coinbase/gdax-node/blob/57afad7f7c401ccc6da36d273f14703f0c8a8ea0/lib/clients/public.js#L10

@jhanstra
Copy link
Author

Ah, I see. I might submit a PR for better documentation on that. Thanks @awitherow!

@awitherow
Copy link
Contributor

I already did @jhanstra #52 does it make sense for you?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants