Search in sources :

Example 1 with GeminiTrailingVolumeRequest

use of org.knowm.xchange.gemini.v1.dto.account.GeminiTrailingVolumeRequest in project XChange by knowm.

the class GeminiAccountServiceRaw method Get30DayTrailingVolumeDescription.

public GeminiTrailingVolumeResponse Get30DayTrailingVolumeDescription() throws IOException {
    try {
        GeminiTrailingVolumeRequest request = new GeminiTrailingVolumeRequest(String.valueOf(exchange.getNonceFactory().createValue()));
        GeminiTrailingVolumeResponse trailingVolResp = gemini.TrailingVolume(apiKey, payloadCreator, signatureCreator, request);
        return trailingVolResp;
    } catch (GeminiException e) {
        throw handleException(e);
    }
}
Also used : GeminiTrailingVolumeResponse(org.knowm.xchange.gemini.v1.dto.account.GeminiTrailingVolumeResponse) GeminiTrailingVolumeRequest(org.knowm.xchange.gemini.v1.dto.account.GeminiTrailingVolumeRequest) GeminiException(org.knowm.xchange.gemini.v1.dto.GeminiException)

Aggregations

GeminiException (org.knowm.xchange.gemini.v1.dto.GeminiException)1 GeminiTrailingVolumeRequest (org.knowm.xchange.gemini.v1.dto.account.GeminiTrailingVolumeRequest)1 GeminiTrailingVolumeResponse (org.knowm.xchange.gemini.v1.dto.account.GeminiTrailingVolumeResponse)1