Skip to content

Latest commit

 

History

History
114 lines (82 loc) · 3.58 KB

LeaderboardApi.md

File metadata and controls

114 lines (82 loc) · 3.58 KB

LeaderboardApi

All URIs are relative to https://localhost/api/v1

Method HTTP request Description
leaderboardGet GET /leaderboard Get current leaderboard.
leaderboardGetName GET /leaderboard/name Get your alias on the leaderboard.

leaderboardGet

List<Leaderboard> leaderboardGet(method)

Get current leaderboard.

Example

// Import classes:
//import io.swagger.client.ApiException;
//import io.swagger.client.api.LeaderboardApi;


LeaderboardApi apiInstance = new LeaderboardApi();
String method = "notional"; // String | Ranking type. Options: \"notional\", \"ROE\"
try {
    List<Leaderboard> result = apiInstance.leaderboardGet(method);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LeaderboardApi#leaderboardGet");
    e.printStackTrace();
}

Parameters

Name Type Description Notes
method String Ranking type. Options: &quot;notional&quot;, &quot;ROE&quot; [optional] [default to notional]

Return type

List<Leaderboard>

Authorization

No authorization required

HTTP request headers

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

leaderboardGetName

InlineResponse2001 leaderboardGetName()

Get your alias on the leaderboard.

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.LeaderboardApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// 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: apiNonce
ApiKeyAuth apiNonce = (ApiKeyAuth) defaultClient.getAuthentication("apiNonce");
apiNonce.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiNonce.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");

LeaderboardApi apiInstance = new LeaderboardApi();
try {
    InlineResponse2001 result = apiInstance.leaderboardGetName();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LeaderboardApi#leaderboardGetName");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

InlineResponse2001

Authorization

apiKey, apiNonce, apiSignature

HTTP request headers

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