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
Problems getting GDAXTradeHistoryParams #1324
Comments
Hey man did you ever figure this out? |
Figured it out for anyone else. GDAXTradeHistoryParams params = new GDAXTradeHistoryParams(); |
yes exactly, that's what i ended up doing, sorry i didn't follow up here. so eventually my code became:
|
@unk1911 where do you get the passphrase from? |
When you create the API key. The web page asks for a passphrase. |
Hey guys, I don't mean to hijack this thread but how exactly are you getting the tick history from GDAX? I am pretty stumped as the page retrieve function has not been set up. |
Are you referring to the Get Historic Rates query here? If so, then it does not fit into the common XChange set of method calls, you'd have to implement and access it directly from GDAXMarketDataServiceRaw (it is not currently there). |
@madwicket I get it by querying the trades and creating my own tickers from that. Otherwise you could follow @ww3456 's advice. |
I have started on @ww3456 advice but have hit a snag and was wondering if I could get some help? I have added this to GDAX.java Added a class of GDAXHistoricRates: import java.math.BigDecimal; /**
private final Long time; /* public GDAXHistoricRates(@JsonProperty("time") String time, @JsonProperty("low") BigDecimal low, public Long getTime() { public BigDecimal getLow() { public BigDecimal getHigh() { public BigDecimal getOpen() { public BigDecimal getClose() { public BigDecimal getVolume() { @OverRide Also have added this function to GDAXMarketServiceRaw When I test the code with: I am getting an error: So I can see that it is reaching out and getting the data but for some reason it is not deserializing the data could I possibly get some tips from the pro's? |
I'm trying to list historical trades but I'm having issues with the call to createTradeHistoryParams(), it returns null:
ExchangeSpecification specification = new ExchangeSpecification(GDAXExchange.class.getName());
specification.setApiKey(apiKey);
specification.setSecretKey(apiSecret);
specification.setExchangeSpecificParametersItem("passphrase", passphrase);
coinbase = ExchangeFactory.INSTANCE.createExchange(specification);
coinbase.applySpecification(specification);
GDAXTradeHistoryParams params = (GDAXTradeHistoryParams) coinbase.getPollingTradeService().createTradeHistoryParams();
So the params here is null.
The text was updated successfully, but these errors were encountered: