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

added pagination to the calls #14

Merged
merged 10 commits into from
May 12, 2017
Merged

added pagination to the calls #14

merged 10 commits into from
May 12, 2017

Conversation

robevansuk
Copy link
Collaborator

Added pagination to the calls that made sense. tidied up the project dependencies (might have done that last time). provided better documentation about whats offered from this client library. more tests (warning: a lot of untested methods as well - these are provided as a convenience but require integration with the coinbase api really since they rely on coinbase account details). Another version bump. Added payments/transfers/withdrawal api calls. Changed name of everything to GDAX rather than coinbase since there is already a coinbase api which makes it confusing otherwise. Report calls implemented.

Outstanding - comprehensive tests for all the new endpoints. Will get these added in time but need the sandbox exchange to come back online!

@irufus irufus merged commit f346415 into irufus:master May 12, 2017
@irufus
Copy link
Owner

irufus commented May 12, 2017

Sorry for the wait

@robevansuk
Copy link
Collaborator Author

robevansuk commented May 17, 2017 via email

@irufus
Copy link
Owner

irufus commented May 18, 2017

Oh yeah I have a lot going as well (starting a new job soon)

When I originally started this project my intent was building a platform that would add more features than what Coinbase Exchange (GDAX) offered like automatic trading, signal trading and peer trading. So building separate features like a usable GUI for the order book would be beneficial.

Right now the current order book on GDAX is very chaotic and could probably use something that is more user friendly and useful. (Not a fan of top-down order books) I see a lot of features in platforms like ThinkOrSwim (ThinkTDA) that would certainly help with this issue.

This is something I am interested in working on and will try to take a look at starting next week. (Hopefully earlier)

@robevansuk
Copy link
Collaborator Author

robevansuk commented May 19, 2017 via email

@venkateshthallam
Copy link

venkateshthallam commented Dec 8, 2017

@robevansuk Quick question about the websocket example. I put the following code in a method which I am calling at the startup.

Subscribe message = new Subscribe(); message.setType("subscribe"); message.setProduct_ids(product_ids); System.out.println("wsfeed is "+wsfeed+" orderBookView is "+orderBookView); if(wsfeed!=null) wsfeed.subscribe(message, orderBookView);
For some reason, the onOpen() method in the websocketfeed.java doesn't initialize userSession and the sendMessage is failing with null pointer. I understand that it happens when there is no event fired as the socket is not opened. But I fail to see the actual reason while socket connection is not working.

I have put all the necessary parameters in my property file and that doesn't seem to be the issue. Appreciate any direction on how to resolve this or any actual working example. I am using this in a Spring boot project by the way.``

@robevansuk
Copy link
Collaborator Author

product_ids should be a comma separated list of IDs you want to receive messages for. I'm looking to rewrite this bit anyway as its not working the way it should

@robevansuk
Copy link
Collaborator Author

robevansuk commented Dec 8, 2017

Follow this bit of code which already works.

private void subscribeAndQueueMsgs(OrderBookView thisOrderBook) {
        log.info("*** Subscribing ***");
        websocketFeed.subscribe(new Subscribe(productIds), thisOrderBook);
    }

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

Successfully merging this pull request may close these issues.

3 participants