Skip to content

Latest commit

 

History

History
76 lines (56 loc) · 2.59 KB

UserEventApi.md

File metadata and controls

76 lines (56 loc) · 2.59 KB

UserEventApi

All URIs are relative to https://www.bitmex.com/api/v1

Method HTTP request Description
userEventGet GET /userEvent Get your user events

userEventGet

List<UserEvent> userEventGet(count, startId)

Get your user events

Example

// Import classes:
//import io.swagger.client.ApiClient;
//import io.swagger.client.ApiException;
//import io.swagger.client.Configuration;
//import io.swagger.client.auth.*;
//import io.swagger.client.api.UserEventApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: apiExpires
ApiKeyAuth apiExpires = (ApiKeyAuth) defaultClient.getAuthentication("apiExpires");
apiExpires.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiExpires.setApiKeyPrefix("Token");

// Configure API key authorization: apiKey
ApiKeyAuth apiKey = (ApiKeyAuth) defaultClient.getAuthentication("apiKey");
apiKey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.setApiKeyPrefix("Token");

// Configure API key authorization: apiSignature
ApiKeyAuth apiSignature = (ApiKeyAuth) defaultClient.getAuthentication("apiSignature");
apiSignature.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiSignature.setApiKeyPrefix("Token");

UserEventApi apiInstance = new UserEventApi();
Double count = 3.4D; // Double | Number of results to fetch.
Double startId = 3.4D; // Double | Cursor for pagination.
try {
    List<UserEvent> result = apiInstance.userEventGet(count, startId);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling UserEventApi#userEventGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
count Double Number of results to fetch. [optional] [default to 100]
startId Double Cursor for pagination. [optional]

Return type

List<UserEvent>

Authorization

apiExpires, apiKey, apiSignature

HTTP request headers

  • Content-Type: application/json, application/x-www-form-urlencoded
  • Accept: application/json, application/xml, text/xml, application/javascript, text/javascript