Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 2.22 KB

File metadata and controls

86 lines (59 loc) · 2.22 KB

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

// Import classes:
//import io.swagger.client.api.PorlApi;

PorlApi apiInstance = new PorlApi();
try {
    Porl result = apiInstance.porlGetNonce();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling PorlApi#porlGetNonce");
    e.printStackTrace();
}

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

List<XAny> porlGetSnapshots()

Get Proof of Reserves historical snapshots

Example

// Import classes:
//import io.swagger.client.api.PorlApi;

PorlApi apiInstance = new PorlApi();
try {
    List<XAny> result = apiInstance.porlGetSnapshots();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling PorlApi#porlGetSnapshots");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<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