Skip to content

Latest commit

 

History

History
107 lines (75 loc) · 3.04 KB

File metadata and controls

107 lines (75 loc) · 3.04 KB

BitMexApi.PorlApi

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

Method HTTP request Description
porlGetNonce GET /porl/nonce Get your Proof of Reserves nonce and data.
porlGetSnapshots GET /porl/snapshots Get Proof of Reserves historical snapshots

porlGetNonce

Porl porlGetNonce()

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 >

Example

var BitMexApi = require('bit_mex_api');
var defaultClient = BitMexApi.ApiClient.instance;

// Configure API key authorization: apiExpires
var apiExpires = defaultClient.authentications['apiExpires'];
apiExpires.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiExpires.apiKeyPrefix = 'Token';

// Configure API key authorization: apiKey
var apiKey = defaultClient.authentications['apiKey'];
apiKey.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiKey.apiKeyPrefix = 'Token';

// Configure API key authorization: apiSignature
var apiSignature = defaultClient.authentications['apiSignature'];
apiSignature.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//apiSignature.apiKeyPrefix = 'Token';

var apiInstance = new BitMexApi.PorlApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.porlGetNonce(callback);

Parameters

This endpoint does not need any parameter.

Return type

Porl

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

porlGetSnapshots

[XAny] porlGetSnapshots()

Get Proof of Reserves historical snapshots

Example

var BitMexApi = require('bit_mex_api');

var apiInstance = new BitMexApi.PorlApi();

var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.porlGetSnapshots(callback);

Parameters

This endpoint does not need any parameter.

Return type

[XAny]

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