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

Latest commit

 

History

History
65 lines (45 loc) · 1.74 KB

APIkeyApi.md

File metadata and controls

65 lines (45 loc) · 1.74 KB

SwaggerClient::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

# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
  # Configure API key authorization: apiKey
  config.api_key['api_key'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['api_key'] = 'Bearer'

  # Configure API key authorization: apiSignature
  config.api_key['sign'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['sign'] = 'Bearer'

  # Configure API key authorization: timestamp
  config.api_key['timestamp'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['timestamp'] = 'Bearer'
end

api_instance = SwaggerClient::APIkeyApi.new

begin
  #Get account api-key information.
  result = api_instance.a_p_ikey_info
  p result
rescue SwaggerClient::ApiError => e
  puts "Exception when calling APIkeyApi->a_p_ikey_info: #{e}"
end

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