Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pricing API? How do I get buy, sell or spot prices? #25

Open
venkateshthallam opened this issue Nov 26, 2017 · 3 comments
Open

Pricing API? How do I get buy, sell or spot prices? #25

venkateshthallam opened this issue Nov 26, 2017 · 3 comments

Comments

@venkateshthallam
Copy link

I see coinbase has a Pricing API to retrieve all these details, but didn't find anything in the GDAX documentation? Should I use coinbase API for pricing instead?

@robevansuk
Copy link
Collaborator

robevansuk commented Jan 22, 2018

You have a few choices.

  1. For the best bid/ask you will need to call the MarketDataService.getMarketData(product, level) which will return a MarketData object with bids/asks. Do with this what you will. Request level 1 data
  2. For the top 50 I believe you can do a level 2 getMarketData request - this will return something like the top 50 bids/asks in the same way as above.
  3. Download the entire orderbook as it currently stands - this is a level 3 request for the product Id. This will provide a snapshot in time of all bids/asks.
  4. to maintain a live orderbook - this is being worked on and will be available as soon as reasonably possible.

Please see the GDAX documentation for more info https://docs.gdax.com/#market-data

@robevansuk
Copy link
Collaborator

Better documentation needed in this lib so people don't get lost in the Gdax Api Docs

@robevansuk
Copy link
Collaborator

Live orderbook is completed now. Just need a few minor tweaks and I can probably create a pull request tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants