irufus / gdax-java

Java based wrapper for Coinbase Pro (Formerly known as GDAX API and Coinbase Exchange API)
MIT License
177 stars 131 forks source link

Spring example #36

Closed Miguel349 closed 5 years ago

Miguel349 commented 6 years ago

Hi, I´m not new to Spring but i am new to Spring Boot.

I think your library is quite good (or will be when i get to use it) but the curve to start it off is really hard, even for those who know Spring, there is no guide to how to setup the most basic scenario. I recommend you to make a very basic controller/main/example inside the

After various intents on implementing a basic bot with this wrapper I wanted to ask. Could you post a simple process for creating and executing one? Every time i try to get any service its null, even if i autowire it in a way i think is correct and i´m not sure where/how i should put my source code.

For example, to obtain "the ticker" for a certain market:

Thanks

Miguel.

robevansuk commented 6 years ago

:)... youre right. I'll create a base class you can use for bots in the next version. Its actually really simple - when you know how!

gamesbykevin commented 6 years ago

fyi, if you connect via websocket feed to the ticker channel, the prices returned are not always current

Yesterday for several hours Litecoin was returning a $139.09 USD price when the low never dropped below $141 during the time frame I was testing

The rest call to the ticker always seems to return the current price https://api.gdax.com/products/LTC-USD/ticker

CarlClaesson commented 6 years ago

@robevansuk When do you think the base class for bots will be done? Thinking about waiting until I can use it, it is to hard for me right now.

robevansuk commented 6 years ago

hmm good question - I can't put a date on it at the moment but hopefully not longer than another month or two. I think best way forward if you want to get moving is to try and implement the l2update orderbook which provides regular snapshots of what has changed.

robevansuk commented 6 years ago

getting much closer now

robevansuk commented 6 years ago

finally reported all the bugs including this one. Any more, they're contactable by email here: https://support.gdax.com/customer/portal/emails/new - will keep you posted.