Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

Latest commit

 

History

History
67 lines (49 loc) · 2.14 KB

APIkeyApi.md

File metadata and controls

67 lines (49 loc) · 2.14 KB

swagger_client.APIkeyApi

All URIs are relative to https://api.bybit.com

Method HTTP request Description
a_p_ikey_info GET /open-api/api-key Get account api-key information.

a_p_ikey_info

object a_p_ikey_info()

Get account api-key information.

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: apiSignature
configuration = swagger_client.Configuration()
configuration.api_key['sign'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['sign'] = 'Bearer'
# Configure API key authorization: timestamp
configuration = swagger_client.Configuration()
configuration.api_key['timestamp'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['timestamp'] = 'Bearer'

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

try:
    # Get account api-key information.
    api_response = api_instance.a_p_ikey_info()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling APIkeyApi->a_p_ikey_info: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

apiKey, apiSignature, timestamp

HTTP request headers

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

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