Skip to content

Latest commit

 

History

History
73 lines (54 loc) · 2.63 KB

UserEventApi.md

File metadata and controls

73 lines (54 loc) · 2.63 KB

swagger_client.UserEventApi

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

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

user_event_get

list[UserEvent] user_event_get(count=count, start_id=start_id)

Get your user events

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: apiExpires
configuration = swagger_client.Configuration()
configuration.api_key['api-expires'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['api-expires'] = 'Bearer'
# 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: 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.UserEventApi(swagger_client.ApiClient(configuration))
count = 150 # float | Number of results to fetch. (optional) (default to 150)
start_id = 1.2 # float | Cursor for pagination. (optional)

try:
    # Get your user events
    api_response = api_instance.user_event_get(count=count, start_id=start_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserEventApi->user_event_get: %s\n" % e)

Parameters

Name Type Description Notes
count float Number of results to fetch. [optional] [default to 150]
start_id float 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

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