Skip to content

Latest commit

 

History

History
114 lines (82 loc) · 3.82 KB

LeaderboardApi.md

File metadata and controls

114 lines (82 loc) · 3.82 KB

swagger_client.LeaderboardApi

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

Method HTTP request Description
leaderboard_get GET /leaderboard Get current leaderboard.
leaderboard_get_name GET /leaderboard/name Get your alias on the leaderboard.

leaderboard_get

list[Leaderboard] leaderboard_get(method=method)

Get current leaderboard.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.LeaderboardApi()
method = 'notional' # str | Ranking type. Options: \"notional\", \"ROE\" (optional) (default to notional)

try:
    # Get current leaderboard.
    api_response = api_instance.leaderboard_get(method=method)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LeaderboardApi->leaderboard_get: %s\n" % e)

Parameters

Name Type Description Notes
method str Ranking type. Options: "notional", "ROE" [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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

leaderboard_get_name

InlineResponse2001 leaderboard_get_name()

Get your alias on the leaderboard.

Example

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKey
configuration = swagger_client.Configuration()
configuration.api_key['api-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-key'] = 'Bearer'
# Configure API key authorization: apiNonce
configuration = swagger_client.Configuration()
configuration.api_key['api-nonce'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-nonce'] = 'Bearer'
# Configure API key authorization: apiSignature
configuration = swagger_client.Configuration()
configuration.api_key['api-signature'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-signature'] = 'Bearer'

# create an instance of the API class
api_instance = swagger_client.LeaderboardApi(swagger_client.ApiClient(configuration))

try:
    # Get your alias on the leaderboard.
    api_response = api_instance.leaderboard_get_name()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LeaderboardApi->leaderboard_get_name: %s\n" % e)

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]