All URIs are relative to https://www.bitmex.com/api/v1
Method | HTTP request | Description |
---|---|---|
porl_get_nonce | GET /porl/nonce | Get your Proof of Reserves nonce and data. |
porl_get_snapshots | GET /porl/snapshots | Get Proof of Reserves historical snapshots |
Porl porl_get_nonce
Get your Proof of Reserves nonce and data.
Proof of Reserves Nonce This endpoint will return the nonce and associated data needed to validate BitMEX reserves data. <! TODO link to docs, GitHub, etc >
# load the gem
require 'swagger_client'
# setup authorization
SwaggerClient.configure do |config|
# Configure API key authorization: apiExpires
config.api_key['api-expires'] = '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-expires'] = 'Bearer'
# 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['api-signature'] = '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-signature'] = 'Bearer'
end
api_instance = SwaggerClient::PorlApi.new
begin
#Get your Proof of Reserves nonce and data.
result = api_instance.porl_get_nonce
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PorlApi->porl_get_nonce: #{e}"
end
This endpoint does not need any parameter.
apiExpires, apiKey, apiSignature
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript
Array<XAny> porl_get_snapshots
Get Proof of Reserves historical snapshots
# load the gem
require 'swagger_client'
api_instance = SwaggerClient::PorlApi.new
begin
#Get Proof of Reserves historical snapshots
result = api_instance.porl_get_snapshots
p result
rescue SwaggerClient::ApiError => e
puts "Exception when calling PorlApi->porl_get_snapshots: #{e}"
end
This endpoint does not need any parameter.
No authorization required
- Content-Type: application/json, application/x-www-form-urlencoded
- Accept: application/json, application/xml, text/xml, application/javascript, text/javascript